Closed stereobooster closed 3 years ago
The Treetop mailing list is used for support: treetop-dev@googlegroups.com
Your implementation does not detect EOF - the original uses !.
Your implementation does not detect EOF - the original uses !.
Yes I know. I wasn't sure how end of file denoted in Treetop
grammar ContextSensetive
rule s
&(a !'b') 'a'* b !.
end
rule a
'a' a 'b' / ''
end
rule b
'b' b 'c' / ''
end
end
this code produces the same error
Your questions will be answered only if you ask the on the mailing list, not in a github issue. Not really sure if I can find another way to say that :)
Case closed. I found paper which shows, that this is indeed an issue in PEG. And it can't handle this grammar the way Ford described https://arxiv.org/pdf/1801.10490.pdf
I took example from Ford's original paper:
And it seems doesn't work as expected: