[antlr-interest] abort parsing with special token

Oliver Leimig olimail at gmx.net
Tue Aug 17 07:55:37 PDT 2004


Hello!  
  
I'm currently creating an ANTLR grammar for target language java.  
My grammar shall have a command "%cancel" to abort parsing when this  
command appears in the InputStream.  
  
What's probably the best way to tell ANTLR to stopp reading from the 
InputStream?   
{ doCancel(); } ?  
Perhaps filtering the Stream in advance? How?  
  
Thanx  
Oliver  
  




 
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