Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #31045

Generating C++ code

Date 2012-10-09 18:00 +0200
From Jean-Michel Pichavant <jeanmichel@sequans.com>
Subject Generating C++ code
Newsgroups comp.lang.python
Message-ID <mailman.2008.1349798449.27098.python-list@python.org> (permalink)

Show all headers | View raw


Greetings,

I'm trying to generate C++ code from an XML file. I'd like to use a template engine, which imo produce something readable and maintainable.
My google search about this subject has been quite unsuccessful, I've been redirected to template engine specific to html mostly.

Does anybody knows a python template engine for generating C++ code ?

Here's my flow:

XML file -> nice python app -> C++ code

>From what I know I could use Cheetah, a generic template engine. I never used it though, I'm not sure this is what I need.
I'm familiar with jinja2 but I'm not sure I could use it to generate C++ code, did anybody try ? (maybe that's a silly question)

Any advice would be appreciated.

JM

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Generating C++ code Jean-Michel Pichavant <jeanmichel@sequans.com> - 2012-10-09 18:00 +0200
  Re: Generating C++ code Ulrich Eckhardt <ulrich.eckhardt@dominolaser.com> - 2012-10-10 12:47 +0200
  Re: Generating C++ code Tim Roberts <timr@probo.com> - 2012-10-10 20:12 -0700
    Re: Generating C++ code Etienne Robillard <animelovin@gmail.com> - 2012-10-11 06:00 -0400

csiph-web