Alan Manuel Gloria:
> > Perhaps we can actually concretely define such a preprocessor for the core 
> > parser?

We could.

Actually, you should take a look at my ANTLR implementation, since I had to 
work to get it right.  If you abstract away its details, you should end up with 
a very clear model for pre-processing.

It turns out that there are several preprocessing approaches that LOOK like 
they'd work, but don't :-(.  In fact, the ANTLR book describes a really clear 
and simple algorithm for generating INDENT and DEDENT; the only problem is that 
it is fundamentally and deeply flawed (as I posted in earlier emails).

--- 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

Reply via email to