Fix memory issues, add HBytes#token.

This commit is contained in:
Jakob Rath 2013-12-16 21:00:59 +01:00 committed by Dan Hirsch
parent cf59ec83ed
commit b16eab8f33
3 changed files with 23 additions and 3 deletions

View file

@ -16,4 +16,7 @@ parser = Hammer::Parser.build {
}
x.bind(Hammer::Parser.token('abd'))
#$p = parser
$r = parser.parse 'abcabd'
p $r[:ast][:data][:seq].elements.map {|e| e[:data][:bytes].token }