[antlr-interest] Antlr 3 and the newline token problem

MenTaLguY mental at rydia.net
Fri Nov 25 12:41:08 PST 2005


On Sat, 2005-11-26 at 01:44 +0530, Prashant Deva wrote:

> On the other hand Terence suggests that call to newline() can be put
> inside the CharBuffer class where it is handled automatically so
> people who need to track line nos can do so easily.

My feeling is tracking it implicitly inside CharBuffer is best.  The
lines/columns people care about are the "text editor address", which the
grammar itself really shouldn't have to be concerned with.

I like the notion of making offsets the primary notion of ... offsets,
though.

-mental
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://www.antlr.org/pipermail/antlr-interest/attachments/20051125/d56f4d43/attachment.bin


More information about the antlr-interest mailing list