[antlr-interest] Handling explicit continuation characters
Johannes Luber
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
> 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
More information about the antlr-interest
mailing list