[antlr-interest] Catch all characters token

Monty Zukowski monty at codetransform.com
Wed Jul 7 09:27:32 PDT 2004


Look at the docs for the greedy option for lexer rules.
On Jul 7, 2004, at 4:06 AM, Steve Jones wrote:

> Hi,
>
> I'm having trouble writting a lexer rule that will match all input 
> between two
> keywords, eg:
>
> BEGIN  any character sequence END
>
>> From this I'd like to generate and pass the tokens:
>
> BEGIN
> SOME_TEXT
> END
>
> to the parser.
>
> Any ideas?
>
> Thanks Steve
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
>

ANTLR & Java Consultant -- http://www.codetransform.com
ANSI C/GCC transformation toolkit -- 
http://www.codetransform.com/gcc.html
Embrace the Decay -- http://www.codetransform.com/EmbraceDecay.html



 
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