[antlr-interest] Catch all characters token
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
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.
Yahoo! Groups Links
<*> To visit your group on the web, go to:
<*> To unsubscribe from this group, send an email to:
antlr-interest-unsubscribe at yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
More information about the antlr-interest