[antlr-interest] Lexer question

Micheal J open.zone at virgin.net
Thu Jul 27 09:30:45 PDT 2006


> It's good too.
> But when I generate the AST, the double isn't like a block.
> For example : 10.5
> I will have :
> kid : 10
> sib : .
> sib : 5
> I would like to have 10.5 directly.
> 
> I'm a beginner with ANTLR, perhaps there is a solution to 
> have a block with your solution.

The lexer is responsible for breaking your input into tokens. It's not a
parser's job. Do it in the lexer.


Micheal

-----------------------
The best way to contact me is via the list/forum. My time is very limited.



More information about the antlr-interest mailing list