The leo-editor-contrib repo 
<https://github.com/leo-editor/leo-editor-contrib> now contains 
pharoTools.leo 
<https://github.com/leo-editor/leo-editor-contrib/blob/master/StudyOutlines/pharoTools.leo>.
  
This .leo file contains notes and the following @button nodes:

*@button file-out*

Writes marked trees as .st files to the base directory.  The marked nodes 
should have headlines starting with "class".

*@button file-in*

Creates an outline from the given .st file.  The .st file can contain 
multiple classes.

This script uses several regex patterns to determine the start of Pharo 
classes.  It creates organizer and other nodes using the "chunk" syntax.  These 
notes <http://wiki.squeak.org/squeak/1105> define the format of chunks used 
in .st file.  The script seems to work fairly well, but it's not guaranteed 
to be perfect.

*Summary*

These two scripts simulate @auto for .st files.  They are also prototypes 
for a Leonine browser for Pharo.

The Grafoscopio.st tree is an example of a tree created from @button 
file-in.  Imo, this tree is much easier to use the Pharo's temple browsers.

The next step will be to use @button file-in to create study outlines for 
Pharo's browsers.

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