On 3/6/07, Ali Afshar <[EMAIL PROTECTED]> wrote:


On 05/03/07, SPE Stani's Python Editor <[EMAIL PROTECTED]> wrote:
> - The hierarchy is extracted in a recursive data class Node by the
> scintilla editor of which the root is passed to a wxTreeCtrl. So this
> should make easy to port it to other gui toolkits which have a
> scintilla control.

Unfortunately, we don't have the scintilla control in PyGTK (well we
do, but we are forced to maintain it ourselves, and we never want to
be bound to use it). I am guessing the crux of the parsing etc is done
by the lexer for the editor, and then extracted. Unfortunately this
would be no good for non-scintilla based applications.

Has anyone done any work on creating a generic parser in Python, or
any other language with Python bindings? Or has anyone got any
knowledge about taking the parser out of Scintilla and running it
independently of the UI?


There is a package called Synopsis...though the issue with Synopsis is that
different languages result in different kinds of nodes that represent the
content of the file, with different attributes and methods.

The extracted scintilla lexers (silvercity) that Stani mentioned is
probably the best choice.  It supports fewer languages than vanilla
scintilla, but it seems usable if you aren't including scintilla with your
application.


- Josiah

Reply via email to