On Saturday, December 7, 2013 5:35:45 AM UTC-6, Edward K. Ream wrote: > > On Fri, Dec 6, 2013 at 3:02 PM, Dave Loyall <[email protected]>wrote: > >> Is this system aware of the AST of some languages?
> No. Leo only needs to know how to emit an external file from an outline. After I wrote this I realized you might be asking about Leo's importers. These are used by @auto as well as Leo's import command. Afaik, neither org-mode nor org-babel have anything like them. Leo uses a text-based "parse" of languages to split external files into nodes. Although this may seem strange, it is, imo, the simplest way. BTW, I have tons of experience with Python AST's. See my static-type-checking project for details: https://groups.google.com/forum/#!forum/python-static-type-checking, https://launchpad.net/python-static-type-checking/+index To create an importer for a new language, following these directions: leoPy.leo#Code-->Core classes-->@file leoImport.py--><< how to write a new importer >> 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.
