Fix memory issues, add HBytes#token.
This commit is contained in:
parent
cf59ec83ed
commit
b16eab8f33
3 changed files with 23 additions and 3 deletions
|
|
@ -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 }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue