[antlr-interest] ANTLRWorks "synpredNN_MyGrammar" labels

Andrew Haritonkin thikone at gmail.com
Sun Nov 9 17:32:52 PST 2008


On Sat, 2008-11-01 at 16:11 -0500, 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).

They are displayed by ANTLRWorks when option backtrack=true; Comment
it, and you will see clean diagrams ;-)

That's why you don't see them in smaller grammar - you forgot to copy
options section, I believe.

Andrew


More information about the antlr-interest mailing list