[antlr-interest] beginner's question

Bryan Ewbank ewbank at gmail.com
Tue May 24 17:32:35 PDT 2005


Good catch, Ter; these old eyes missed it.  Specifically, the space
between "#" and "(" prevents recognition of the "#(" operator.

On 5/24/05, Terence Parr <parrt at cs.usfca.edu> wrote:
> On May 24, 2005, at 8:30 AM, Yuxiao Hu wrote:
> > expr    :    # (PLUS expr expr)
> >     |    # (STAR expr expr)
> >     |    INT
> 
> expr    :       #(PLUS expr expr)
>          |       #(STAR expr expr)
>          |       INT
>          ;
> 
> remove spaces. :)


More information about the antlr-interest mailing list