Action is now completely working

This commit is contained in:
Dan Hirsch 2014-01-11 02:55:02 +01:00
parent 482e89adf8
commit 0da5867a81
4 changed files with 86 additions and 32 deletions

View file

@ -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 {