[antlr-interest] How do I throw exception on ERROR "no viable alternative at character "

Tilman Bender tbender at stud.hs-heilbronn.de
Fri May 15 07:24:12 PDT 2009


Hi,

Good to hear it works for you. But you probably shouldn't do that in  
the generated code or it will be gone
once you need to regenerate the Praser/Lexer in case you change  
something. Instead you should do
the overriding in a @members{} block like it is described on the wiki- 
page.

hth

Tilman Bender
Student des Software Engineering
Hochschule Heilbronn
tbender at stud.hs-heilbronn.de



Am 15.05.2009 um 16:07 schrieb Bharath R:

> I have overridden the below method in the parser and lexer code  
> generated.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20090515/8cb24d7d/attachment.html 


More information about the antlr-interest mailing list