[antlr-interest] Dumb newbie question dept: Anyway to simulate lexical states?
Gerald Rosenberg
gerald at certiv.net
Wed Jun 23 09:26:00 PDT 2010
------ Original Message (Wednesday, June 23, 2010 11:34:09
AM) From: scott_boag ------
Subject: [antlr-interest] Dumb newbie question dept: Anyway to simulate
lexical states?
> So, the concrete question is, is it possible in ANTLR3 to filter out sets
> of tokens based on a predicates
>
The short answer is, yes. Without knowing more about the problem you
are having, I can only guess that you may be failing to recognize that
the lexer is effectively k=1. An easy solution is to not leave gaps in
predicate predictions.
More information about the antlr-interest
mailing list