Reommended compiler toolkit

Dang Griffith noemail at noemail4u.com
Thu Apr 15 07:31:27 EDT 2004


On Thu, 15 Apr 2004 01:15:30 +1000, huy <nytimes at swiftdsl.com.au>
wrote:

>Miki Tebeka wrote:
>> Hello All,
>> 
>> I'm looking for a pure python compiler toolkit (lexer + parser, like 
>> flex + bison).
[snip]
>
>Have a look at http://dparser.sourceforge.net/
>
>It supports BNF (EBNF?) notation which IMO is nicer then the PLY grammar 
>specs. I haven't tried dparser yet, so let us know how it is (compared 
>to PLY) if you decide to use it.
>
But it's not pure python.  It includes a Python interface to the
C-based parser (via SWIG).  OTOH, it does seem pretty powerful.
    --dang



More information about the Python-list mailing list