[antlr-interest] Differing behavior between ParseTreeDebugParse and Parser

Terence Parr parrt at cs.usfca.edu
Tue Nov 23 09:30:43 PST 2004



On Nov 23, 2004, at 7:23 AM, Kevin Lindsey wrote:

> Hello,
>  
> I decided to follow the suggestion of one of the ANTLR articles which 
> describes how to generate the derivation of a parse for debugging 
> purposes. This was working great and then I started getting stack 
> underflows from ParseTreeDebugParser. I reverted my grammar, but for 
> the life of me the problem persists. I decided to switch back to the 
> default "extends Parser" and the exact same parse completes 
> successfully. I have defaultErrorHandler set to false, so I believe I 
> should see any errors encountered during the parse. Is this an 
> indication that something is wrong with my grammar or with 
> ParseTreeDebugParser. BTW, I'm using the C# generation.

Hi Kevin,

Very strange.  And you reran antlr on the grammar of course before 
recompiling and running?  I sometimes forget ;)

Ter
--
CS Professor & Grad Director, University of San Francisco
Creator, ANTLR Parser Generator, http://www.antlr.org
Cofounder, http://www.jguru.com
Cofounder, http://www.knowspam.net enjoy email again!





 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/antlr-interest/

<*> To unsubscribe from this group, send an email to:
    antlr-interest-unsubscribe at yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 





More information about the antlr-interest mailing list