[antlr-interest] DFA's encoded directly in java bytecodes

Terence Parr parrt at cs.usfca.edu
Tue Oct 19 13:31:45 PDT 2004



On Oct 19, 2004, at 1:14 PM, matthew ford wrote:

>
> What about debugging.
> You always claimed Antlr's code was readable.
> This is worse the XML :-(

Ah.  Sorry to be unclear.  I still generate pure java source for the 
parsers and lexers, but the prediction decisions that require cyclic 
DFAs (the new LL(*) stuff) are generated in byte codes.  Believe me, 
you can't read the java source for DFAs either.  Only a graphviz 
diagram shows you what the DFA looks like, which I generate for you 
automatically.  Much better than code and is language independent. :)  
Have no fear, you won't even notice the DFAs...

Make sense?

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