[antlr-interest] Handling explicit continuation characters
JALuber at gmx.de
Tue Jan 13 06:12:52 PST 2009
> At 21:05 13/01/2009, Johannes Luber wrote:
> >Wouldn't it be easier to create an own StringStream (dreived
> >ANTLRStringStream) which silently swallows the + and - as well
> >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.
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger
More information about the antlr-interest