[antlr-interest] Re: Parsing beginners question - resolved

jenlhunt2003 steam at tapisinc.com
Wed Jan 28 13:21:56 PST 2004


Thanks for your help on this.  It turns out that I made some errors in converting the lexer from java to cpp.
I fixed one pertaining to whitespace and that cleared up much of the problem.  The -trace option is great!

--- In antlr-interest at yahoogroups.com, mzukowski at y... wrote:
> You can use the option codeGenBitsetTestThreshold = 999999; in order to turn
> off the bitset generation and be able to see the actual tokens it is trying
> to match.  Also, have you run it through antlr with the -trace option?  That
> could help with debugging too.
> 
> Actually you do need that syntactic predicate ": ("typedef" | declaration)=>
> declaration".  The parser doesn't know if it is looking at a declaration or
> definition until it sees the semicolon which can be very far (undefined,
> unbounded length) into the file.
> 
> Monty
> 
> -----Original Message-----
> From: jenlhunt2003 [mailto:steam at t...] 
> Sent: Tuesday, January 27, 2004 10:54 PM
> To: antlr-interest at yahoogroups.com
> Subject: [antlr-interest] Parsing beginners question



 

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