[antlr-interest] ANTLR Grammar Operator Precedences
Randall R Schulz
rschulz at sonic.net
Sun Nov 12 20:46:56 PST 2006
Hi,
On Sunday 12 November 2006 20:09, you wrote:
> On 13. Nov 2006, at 5:03 , Randall R Schulz wrote:
> > Is the precedence of the operators in ANTLR v3.0's grammar
> > documented somewhere? I couldn't find anything on the Wiki.
>
> no, there isn't a list, unfortunately.
> if you suspect a parser error to be responsible, consider running
> ANTLR with
> java org.antlr.Tool -Xgrtree yougrammar.g
On what basis would I suspect an error when I don't know what's the
correct behavior?
> that will print out the grammar AST. it could be huge, but at the
> moment this
> is the single most helpful tool we have.
Surely someone knows what the relative priority of the concatenation,
alternation and closure operators are, no? It seems kind of important.
> -k
Randall Schulz
More information about the antlr-interest
mailing list