[antlr-interest] Antlr v3 -- Lexing '..' and '1.'

Loring Craymer lgcraymer at yahoo.com
Thu Jul 27 19:33:43 PDT 2006


You might also want to make that change to support backtracking--discarding and rebuilding tokens is a needless expense.

--Loring

Terence Parr <parrt at cs.usfca.edu> wrote: 
On Jul 27, 2006, at 7:20 PM, Loring Craymer wrote:

> Ter--
>
> Not supported as of b3.  Lexer.token is single-valued; it needs to  
> be an array to support multiple emits.  The three emits would only  
> result in returning the last DOT.
>

Oh right...you have to subclass to make that a list and then override  
nextToken to pull from list not Token.  Sorry...I should make that  
little class sometime :)

Ter



 		
---------------------------------
Do you Yahoo!?
 Next-gen email? Have it all with the  all-new Yahoo! Mail Beta.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20060727/860cedda/attachment.html


More information about the antlr-interest mailing list