[antlr-interest] Parser inheriting from DebugParser instead of Parser

Gavin Lambert antlr at mirality.co.nz
Thu Jan 24 02:27:43 PST 2008


At 08:31 24/01/2008, Dejas Ninethousand wrote:

>I was somehow able to place ANTLRWorks into a mode where its C# 
>generated parser class inherited from a class called DebugParser 
>instead of Parser.  However, now the program is back in a state 
>generating code that descends from Parser.  It appears descending 
>from DebugParser may have uncovered a bug in the MS C# complier, 
>so I am interested in generating the old version of the class 
>again (descending from DebugParser) but can't figure out how to 
>do it.  Does anyone know how this is done?

If you pass -debug to ANTLR when compiling your grammar, it will 
generate code with debugging hooks. 



More information about the antlr-interest mailing list