[antlr-interest] Catch all characters token

Richard Clark rd_clark at sbcglobal.net
Wed Jul 7 13:28:51 PDT 2004


In lexer terms, you want the "greedy=false" option with k=3 lookahead. 
See the ANTLR lexer documentation ("Limitations of nongreedy 
subrules.")

Though, is there whitespace required after BEGIN and before END? Is it 
disallowed in the text in the middle? If so, you can just match on "a 
run of non-whitespace" (~WS)* for your middle token.

  ...Richard



 
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