[antlr-interest] Lexer syntactic predicate bug
Terence Parr
parrt at cs.usfca.edu
Fri Mar 16 14:07:40 PDT 2007
yep, shouldn't give error; I'm fixing. It shouldn't have a pred though.
Ter
On Mar 16, 2007, at 1:56 PM, Gavin Lambert wrote:
> At 07:40 17/03/2007, Allen Short wrote:
> >LT:
> > '<' ' '*
> > | ('<' IDENT) =>
> > '<' IDENT '>';
> >
> >IDENT: 'a'+;
> >
> >
> >Produces the following error:
> >
> >error(100): x.g:0:0: syntax error: buildnfa: <AST>:5:8: unexpected
> >AST node: synpred1
>
> Actually I half agree with it :) It seems a bit odd to me to use a
> synpred as the final alt, especially when there shouldn't be any
> ambiguity with the first alt.
>
> Probably shouldn't produce an error, though.
>
More information about the antlr-interest
mailing list