[antlr-interest] beginner questions concerning nondeterminism warnings

Gregg Reynolds dev at arabink.com
Sat Jan 21 18:31:13 PST 2006


Scott Amort wrote:
> Hello All,
> 
> I'm new to ANTLR and compiler building in general, and am trying to
> build a scanner (and eventually a parser) for a relatively simple
> textual description language to get myself familiar with the ANTLR
> program.
...

Well, I'm a beginner too, so take this with a grain of salt, but here's
what occurs to me:

Suppose the input is "ais"?  EVENT or ALPHA?

What happens if you put a syntactic predicate on IDENT to recognize the
EQUALS?

-g


More information about the antlr-interest mailing list