Let me make a couple of wild guesses:
You want to design and build a compiler that takes xml information as
its source code, and compiles those xml files into Intel x86 machine
code. The compiler and the resulting executable needs to run on an x86
Linux machine. Your previous experience was in doing this sort of thing
in C, but you want to try it with Python instead. You want to do it
without using the lxml libraries.
You want to build a python compiler, that takes python source code and
produces Java byte code files. You'd like to do this in C, but don't
want to use any of the available existing CPython or Jython source
code. Your goal is not to make a commercially viable product, but to
learn as much as possible in the process.
DaveA
You haven't specified the OS you'll be using to run the compiler, nor
the one you're targeting, so some of these choices may not be useful.
For example, the first one is Linux only.
http://www.freenet.org.nz/python/pybison/
PyBison - Python binding for Bison/Flex
http://freshmeat.net/projects/yeanpypa/
http://www.slash-me.net/dev/snippets/yeanpypa/documentation.html
http://www.python.org/community/sigs/retired/parser-sig/towards-standard/
Or you could go here, which has links to (most of) these and others.
http://wiki.python.org/moin/LanguageParsing
DaveA
sph
(OP, DESTINATION, ARG1, ARG2)
Cheers,
- Alf
* Steven Howe:
Hi,
please stop starting new threads for the same topic. Instead, reply to
responses you get.
Stefan
Mark Lawrence.