BNF parsing in Python

Konrad Anton usenet at minus1.de
Wed Oct 31 17:25:49 CET 2001


Michael Ströder <michael at stroeder.com> schrieb:
>I'd like to parse strings describing LDAPv3 schema elements which
>seem to be declared as BNF (one example, not complete):
>(...)
>Any clues on where to start? Should be pure Python and
>license-compatible to be included into an open source project
>(probably BSD style license).

You might want to give kjParse (the parsing component in gadfly) a
try.

Gadfly lives somewhere on www.chordate.com and uses kjParse internally
to parse SQL. I've successfully written a parser for C Enums and C
Structs with it.

HTH
Konrad.


-- 
 Konrad Anton <anton at informatik.uni-freiburg.de>  gpg: 0x22954D8A
 Tel. +49-761-881-2122, Fax +49-721-151318943.   Alice:
Serpent. 



More information about the Python-list mailing list