David A. Wheeler scripsit: > If we switch to that more traditional approach, and do not have a > SAME token, then split turns out to be really *easy* to define, and > it works at both the top level and in bodies. I've defined an empty > nonterminal "same" in sweet.g, that basically performs the role of > cheap documentation that we expect the same indentation at that point.
LGTM. > Interestingly, we can now detect "\\" that is after something else > and is at the end of the line. Historically, I had proposed that to > be a "line continuation", like C. Please don't do this. In C, the line continuation is backslash-newline, not backslash-backslash-newline. Having a different convention that isn't already part of Scheme will just confuse users. What's more, backslash-newline is already the line continuation convention within R[67]RS strings, where it is needed. The rest of standard Scheme just treats newlines as whitespace, as opposed to the C preprocessor, which distinguishes them and needs a line-continuation convention. Sweet-expressions do assign a special meaning to newline (it precedes indentation whitespace, whereas whitespace not so preceded is just plain whitespace), but we already have perfectly good escapes involving paired brackets: let's stick to them. -- There is no real going back. Though I John Cowan may come to the Shire, it will not seem co...@ccil.org the same; for I shall not be the same. http://www.ccil.org/~cowan I am wounded with knife, sting, and tooth, and a long burden. Where shall I find rest? --Frodo ------------------------------------------------------------------------------ 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. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122912 _______________________________________________ Readable-discuss mailing list Readable-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/readable-discuss