[antlr-interest] synpred/DFA error
Ilia Kantor
ilia at obnovlenie.ru
Sat Apr 28 10:45:00 PDT 2007
Hello,
There is a rule in my grammar:
rule_long_def_part:
MINUS GT WORD ((get_property_arguments)=> get_property_arguments)* |
DOT WORD
;
If backtracking = true
ANTLR generates synpred for
( ( get_property_arguments )=> get_property_arguments )*
!! That works correctly.
If backtracking is off,
ANTLR generates DFA and calls predict() method.
?? That gives wrong alt.
I'm not sure where to dig, is the overall behavior sane ?
No errors/warnings in both cases, Java files are essentially same excepts DFA/synpred difference.
More information about the antlr-interest
mailing list