[antlr-interest] ANTLRWorks "synpredNN_MyGrammar" labels

Terence Parr parrt at cs.usfca.edu
Sat Nov 1 14:14:31 PDT 2008


On Nov 1, 2008, at 2:11 PM, Ben Gillis wrote:

> OK...thanks. :-)
>
> So, why are they present in some ANTLRWorks Syntax Diagrams, but not  
> in others?  (Exact-same grammar rules, the smaller, trimmed down  
> grammars do not have them...but, beyond being the exact-same rules,  
> sub-rules, etc. I don't know why/what else in the grammar would  
> determine when they're displayed).

ANTLR only backtracks when it can't avoid it. Even if you specify  
backtracking, ANTLR does it when it's necessary only.
T


More information about the antlr-interest mailing list