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 -- http://mail.python.org/mailman/listinfo/python-list