Alan Manuel Gloria:
> By my understanding the caller of head assumes that the port has just
> finished eating a newline.  However the above case does not seem to do
> so.  I guess ANTLR can transform it somehow, but the Scheme code we
> derive might need to put the checker here.

Perhaps the issue is that this BNF presumes that lines are preprocessed and 
INDENT or DEDENTs inserted.  That preprocessing consumes the indent characters, 
unsurprisingly, since we have to read them to figure out what to INDENT/DEDENT. 
 In recursive-descent that would just be a comparison of the indent strings.

BTW, I encourage you (or anyone else) to install ANTLR & a Java compiler, so 
that you can try them out and see if they work "like you expect".  It shouldn't 
be hard to translate this BNF to Scheme, but the updated Scheme will inherit 
whatever bugs are in the BNF...!

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