[antlr-interest] How to tell antlr to create a LALR(1) or LR(1) grammar

Stephen Torri storri at torri.org
Fri Jan 27 16:55:03 PST 2006


I have a grammar that will need left and right associative rules. As I
understand left associative rules they are recursive on the first
element:

A -> A + B |
     B

B -> 1

How do I setup my grammar file to create a parser that can handle left
recursion? Where in the manual is this for further reading?

Stephen



More information about the antlr-interest mailing list