On Sat, Dec 14, 2013 at 11:07 AM, Terry Brown <[email protected]>wrote:

> On Sat, 14 Dec 2013 05:07:29 -0800 (PST)
> "Edward K. Ream" <[email protected]> wrote:
>
> > Last night I realized the Python is, in some sense, the best language for
> > @auto, because indentation matters in Python.
>
>         """ No
> it
>    doesn't """
>   # :-)
>

Thanks for this comment!  Your timing is perfect.

For the last few hours I've been working on a super-quick importer of
Python.  The idea, which I see now needs reworking, is that lines that
start with 'class' or 'def' could be considered sentinels!

If it were just that easy, parsing would be orders of magnitude faster than
the present importer for Python.

But you have just reminded me that 'class' and 'def' can appear in strings.

 Back to the drawing board.

I'm not willing to abandon the idea just yet.  The performance gains are
spectacular.  Even better, a line-oriented approach, by its very nature,
almost guarantees correct imports.  All the picky character-oriented hacks
go away.

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 http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to