Using Python to generate code?

Andrei project5 at
Wed Sep 8 10:20:13 CEST 2004

Tran Tuan Anh <anhtt <at>> writes:

> 1. Can Python help to solve this issue?

I have used Python for quite simple code generation/templating - not in C++, but
that makes no difference. There are even special and not that complex tools for
code generation, e.g. Cog (

> 2. Does Python has a parser? It seems to me that there is no-standard

There are all kinds of parsers, but I've never used any of them. Google gives
tons of links when searching for "python parser", so a more specific search
would be wise.



More information about the Python-list mailing list