[antlr-interest] Detecting incomplete input in ANTLR V2

Thomas Rolfs thomas.rolfs at cox.net
Mon Aug 7 21:02:04 PDT 2006



How do I detect incomplete input in ANTLR 2 C++? I'm guessing I just need
to trap to the "no more input" exception or the exception "I got EOF but was
expecting X", but I'm not familiar enough with the code yet to know
how to do this.

If anyone can point me in the right direction I'd be
very grateful. In the meantime I'll just get on with learning the code :-)

-- 
Thomas Rolfs



More information about the antlr-interest mailing list