[antlr-interest] syntactic predicates vs. backtrack=true
Johannes Luber
jaluber at gmx.de
Tue Feb 5 04:58:48 PST 2008
Mark Volkmann schrieb:
> Can someone describe a case where it's better to use syntactic
> predicates on rule alternatives than just specifying backtrack=true as
> a rule option? It certainly introduces less clutter in the grammar to
> use backtrack and of course there is less to type and less opportunity
> for error. Is it significantly more efficient to use syntactic
> predicates?
>
Maybe
<http://www.antlr.org/wiki/display/ANTLR3/How+to+remove+global+backtracking+from+your+grammar>
includes the required information. It collects my (limited?) knowledge
on this matter.
Johannes
More information about the antlr-interest
mailing list