Alan Manuel Gloria:
> I'm proposing, however, that the COLLECTINGLISTEND tokens should be
> *optional*, since we expect the "large" usage of collecting lists to
> encompass entire files.

Stylistically, I'm not sure I'd want to *do* that intentionally, but closing 
out things on EOF isn't insane.  At least we don't get "stuck".  That does 
cause us to lose the ability to detect runaway collecting lists; is that loss 
worth it?

That's trivial to do in the Scheme implementation.

A complication: I'm not sure how to do that in the ANTLR implementation.  It's 
easy to define symbol pairs, but handling EOF this way might be tricky.  I 
guess the lexer could count <* and *>, and emit extra *> if needed.

--- David A. Wheeler



------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
Readable-discuss mailing list
Readable-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/readable-discuss

Reply via email to