I intended for the actual DTD -> C++ compiler to be written
in C++ and use the same XMLpg library as the XML parsers generated
by XMLpg would use. (Don't you just find chicken-egg type problems appealing?)
Its probably taken a little longer than I really expected.
It turns out that the DTD grammar as specified by W3C is fine for
humans but not so good for computers. I've given up on earlier attempts
to make a "e;nice"e; parser implementation. My first
implementation will be written in Python
and will use recursive descent. It won't be pretty but Python will
add to its readibility.
|