XML based programming language
stefaan
stefaan.himpe at gmail.com
Sun Mar 18 11:22:52 EDT 2007
Hello,
I have recently had to deal with an XML-based
programming language. (The programs are
generated programmatically.)
XML leads to a "two-level" parsing problem: first
parse the xml into tokens, then parse the tokens
to grasp their meaning (based on the semantics
of the programming language).
Basically, I used elementtree as a sophisticated "lexer" and wrote a
recursive descent parser to perform the semantic analysis and
interpretation.
(It works great.)
But I keep wondering: do parser generator tools
exist that I could have used instead of writing
the recursive descent parser manually ?
Best regards,
Stefaan.
More information about the Python-list
mailing list