On Thu, Mar 5, 2009 at 10:49 PM, thyrsus <[email protected]> wrote:

> Is there someone not preoccupied with bug fixing who could give me a
> conceptual guide to class baseScannerClass in leoImport.py?  I've got
> a bunch of ruby code to study, and I've got python envy - I'd like all
> the ruby classes and methods in their own nodes.  All several thousand
> of them.

Perhaps you could try giving the file to pygments (have it do the
tokenization), and then just parse the token stream.

pygments' get_tokens_unprocessed() should come in handy here. It could
also work as a good starting point for introducing other scanners
easily, if you manage to integrate it in general enough fashion.


-- 
Ville M. Vainio
http://tinyurl.com/vainio

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to