[antlr-interest] yet more thoughts on error handling / recovery

Terence Parr parrt at cs.usfca.edu
Mon Jun 28 18:05:46 PDT 2004


Howdy,

Got some interesting details written down for error recovery and 
reporting (thinking about auto insertion/deletion for token mismatches, 
dynamic paraphrases, and dynamic resync token sets).

http://www.antlr.org/blog/antlr3/error.handling.tml

I would love the following (particularly for debugging grammars):

line 20:12: expecting ID found LPAREN
         at: methodDef : (access)* returnType @ ID (<args>)? "{" ...
      input: ... public static void @ ( int x ) { float ...

where the @ indicates the position.

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!
Cofounder, http://www.peerscope.com pure link sharing





 
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