On Tuesday, November 1, 2016 at 11:08:56 AM UTC-5, Edward K. Ream wrote:

tl;dr: Way ahead of schedule.  I have new ambitions for code better than 
ever before. 

*Status Report*
>
> As expected, a line-oriented approach simplifies much of the code.
>

Unexpected so.  Parsing has collapsed in complexity.  I have completely 
retired the old scan method, all its helpers, many other now-unused 
methods, and the infamous Block class.  Hurray!  They have been moved to 
the attic (leo/doc/leoNotes.txt) as a reminder of the bad old days ;-)

The real trick was to determine which code can be used at the top level and 
during rescan.  The gen_lines method turned out to be that common code.

Now that parsing is handled, I am attempting to generate *perfect* code in 
all cases.  That is, the BLS.check method requires *exact* matches of 
leading whitespace for *all* languages.

This is not yet working for some of my javascript examples.  Some section 
references have incorrect leading whitespace. Hacks in the undent code 
don't work in all cases.

The code generator must somehow get smarter.  Imo, this worth a lot of work.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to