[antlr-interest] Simple question

dotnet fr dotnetfr at gmail.com
Tue Jul 25 05:09:45 PDT 2006


Hi Everyone,

I've got a simple question :

-in the parser I have :
chars	:	(CHAR)+	;
option buildAST is set to true;

-in the lexer I have :
CHAR	:   ('a'..'z') | ('A'..'Z')    ;

When I print the ast, my chars is not a token but a letter (the first)
with a lot of siblings. How to get the chars like a Token ?

Thank you in advance

-- 
dotnet


More information about the antlr-interest mailing list