Action is now completely working
This commit is contained in:
parent
482e89adf8
commit
0da5867a81
4 changed files with 86 additions and 32 deletions
|
|
@ -27,8 +27,7 @@ parser =
|
|||
h.many(
|
||||
h.action(h.uint8) { |r|
|
||||
#p "TT=#{r[:ast][:token_type]}, value=#{r[:ast][:data][:uint]}"
|
||||
r[:ast][:data][:uint] *= 2
|
||||
r[:ast] if r[:ast][:data][:uint] % 3 == 0
|
||||
r.data * 2
|
||||
})
|
||||
|
||||
#parser = Hammer::Parser.build {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue