Using Python to generate code?

Alex Martelli aleaxit at yahoo.com
Wed Sep 8 11:47:16 EDT 2004


Jeremy Bowers <jerf at jerf.org> wrote:
   ...
> > 2. Does Python has a parser? It seems to me that there is no-standard
> > Parser for Python right now. If it is the case, can I interface Python
> > with existing cup and lex?
> 
> Why are you asking about a parser when you are talking about *outputting*
> code? Is there something left out of the problem description?

the original poster started his original post with:

> I need your advice on this matter. I am working on a program which
> takes some pieces of System-C code in and generate some other System-C

That "takes some pieces of ... code" sounded to me like an indication
that a parser is needed -- nothing left out of the problem description,
IMHO.


Alex



More information about the Python-list mailing list