[antlr-interest] help - input to lexer

Joan Pujol joanpujol at gmail.com
Sat Nov 6 12:14:38 PST 2004


I don't know if this is what you want. But...

DIGIT: '0'..'9';
LETER: 'a'..'z'|'A'..'Z';
WHITES:	( ' ' | '\t');

STRING: '\"' (DIGIT|LETER|WHITES)* '\"';



On Thu, 04 Nov 2004 11:05:43 -0000, s2jafer1 <s2jafer1 at yahoo.com> wrote:
> 
> 
>      i want to know "how to define the token in lexer and in parser"
> 
> such that the input for a token accepts a string which contains both
> 
> whitespace and tab characters along with alpha numeric characters.
> 
> 
> 
> 
> The following link which is mentioned below is not opening .
> 
> http://www.antlr.org/fieldguide/whitespace
> 
> Yahoo! Groups Links
> 
> 
> 
> 
> 


-- 
Joan Jesús Pujol Espinar


 
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