> At 21:05 13/01/2009, Johannes Luber wrote:
>  >Wouldn't it be easier to create an own StringStream (dreived 
> from
>  >ANTLRStringStream) which silently swallows the + and - as well 
> the
>  >following newline? Then both lexer and parser are cleaner.
> 
> That's certainly a possibility (and perhaps a good one), but 
> that'd end up screwing up the line numbering, wouldn't it?

I don't see, why swallowing the two characters would prevent increasing the 
line count. Tokens receive the line number from the stream itself and not 
because the lexer counts newlines.

Johannes
> 
> 
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe:
> http://www.antlr.org/mailman/options/antlr-interest/your-email-address

-- 
Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: 
http://www.gmx.net/de/go/multimessenger

List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to