Closed senyan closed 9 years ago
Treetop, like all packrat parsers, choose the first option that matches and never considers another. Change the order and it will work.
yeah,
rule a
'sponsored' / 'sponsors' / 'sponsor'
end
this works. Thanks.
Oh, and you might want to spell "sponsor" correctly. "sponser" isn't a word.
Hehe, definetely.
Having a rule like following
It works if I do
parser.parse('sponser')
but not working forparser.parse('sponsered')
orparser.parse('sponsers')
.Please let me know if it is just something I did not do properly.