Alan Manuel Gloria: > *shrug* well, it's just a spec, and call/cc can be just an > implementation detail. It can be implemented with Erlang processes > and message passing, so that you need Erlang to parse Scheme. LOL.
:-). I have no doubt that this approach would *work*, but the spec would no longer be rigorously checked by a separate tool. The spec-checking was a primary reason I used ANTLR. And I really want the implementation "obviously" matching the spec, while intentionally avoiding capabilities not widely available in Lisps. It's not at all clear that would be easy to do in this alternative approach, while I'm having no trouble doing it with the current one. So I'm rather skeptical of using this spec or implementation approach in the *SRFI* (though after a sample's available I'll certainly take a look). That said, I *am* interested in making the tokenizer/pre-processor spec more rigorous, and I see your tokenizer spec text as prime stuff for stealing to that end :-). And even partial alternative implementation efforts can help us be confident that this is implementable under a wide variety of approaches. > Honestly, I think having an explicitly separate tokenizer is better > because it's easier to carve up the reader into smaller parts that can > be individually debugged. Actually, I also split out it into 3 parts, two of which are the n-expression and parser, so we're in agreement on a lot of it. But instead of a full "tokenizer" I've focused on making a smaller "indent processor". Making this tokenizer small and focused means that all the smarts are in the parser. This has various advantages, e.g., it's much easier to determine who's in control (it's the parser). And I see the "hspace*" items as an _advantage_, because it makes it very obvious where it occurs (compared to SRFI-49's spec). --- David A. Wheeler ------------------------------------------------------------------------------ Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnnow-d2d _______________________________________________ Readable-discuss mailing list Readable-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/readable-discuss