[antlr-interest] Trouble with ANTLR 3 grammar
Terence Parr
parrt at cs.usfca.edu
Thu Jun 29 08:58:23 PDT 2006
On Jun 29, 2006, at 2:01 AM, Emond Papegaaij wrote:
> Hello,
>
> I'm still working on an ANTLR 3 grammar. However I'm having trouble
> with
> version b1. In my lexer I've got several tokens that match almost
> everything.
> These tokens are guarded with semantic predicates. Due to these
> tokens, I
> have to use filtered mode (else ANTLR will run out of memory trying to
> construct the DFA). This used to work fine, however with b1 my
> parser seems
> to receive whitespace tokens:
>
> [specification, nodeDecl]: line 1:9 mismatched token: [@1,9:9='
> ',<12>,1:9];
> expecting type L_CURLY
>
> These tokens are sent to channel=99.
If you print out the tokens, is WS really on channel 99? If so, then
something really strange is happening with the token buffer. Can you
try a diff on your generated lexer between ea10 and b1?
Ter
More information about the antlr-interest
mailing list