XML based programming language
Diez B. Roggisch
deets at nospam.web.de
Mon Mar 19 06:49:51 EDT 2007
stefaan wrote:
> Thank you Diez for answering.
> As far as I can see, it more or less corresponds to what I have.
>
> But my question was perhaps more this:
>
> "If elementtree is "lex", what is "yacc" ? "
Elementtree isn't lex. You are comparing apples and oranges here. Lex
tokenizes, yacc creates trees. Both of is covered in XML itself - it's
defined the tokenization and parsing, built into elementtree. So,
elemnttree is lex _and_ yacc for XML. And if your language is written in
XML, that's all there is to it.
Diez
More information about the Python-list
mailing list