compiler with python

Dave Angel davea at ieee.org
Sat Mar 6 06:37:12 EST 2010


mohamed issolah wrote:
> hey,
>
> How can I construct a compiler with python just for informatiom ., I have
> habit to construct it with C language,
>
> sorry for my english ;-)
>   
You need to tell us what you're really trying to do, what tools you're 
willing to use, and probably why you want it.  And if you're not sure 
about your English, keep the sentence structure straightforward.

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



More information about the Python-list mailing list