Parsing library for Python?

Diez B. Roggisch deets_noospaam at web.de
Fri Feb 20 13:34:11 EST 2004


> 
> You could look into SPARK:
> 
> http://pages.cpsc.ucalgary.ca/~aycock/spark/

Yes, I'd recommend that, too - its an early-parser implementation, which is
very powerful and allows e.g. left-recursive rules. however, you can't feed
it a ebnf directly, instead you do things like this (*->* is ebnf, ::= is
spark) :

rule -> term?

becomes

rule ::=
rule ::= term

rule -> (term)*

becomes

rule ::= rule term
rule ::= 


-- 
Regards,

Diez B. Roggisch



More information about the Python-list mailing list