Re: Generating C++ code

2012-10-11 Thread Etienne Robillard
rch 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 ? > > I'm a big fan of Cheetah. It's simple but flexible enough to b

Re: Generating C++ code

2012-10-10 Thread Tim Roberts
to template engine specific to html mostly. > >Does anybody knows a python template engine for generating C++ code ? I'm a big fan of Cheetah. It's simple but flexible enough to be useful. Besides the many web projects I've done with it, I also I use it in one project to generat

Re: Generating C++ code

2012-10-10 Thread Stefan Behnel
Jean-Michel Pichavant, 10.10.2012 17:05: >> SoC == System On a Chip. >> >> It's a single-chip micro-controller embedded inside something that's >> not a general purpose computer (e.g. it's in a router, or piece of >> industrial equipment, or whatever). It may only have a couple MB of >> memory, it

Re: Generating C++ code

2012-10-10 Thread Jean-Michel Pichavant
- Original Message - > On 2012-10-10, Etienne Robillard wrote: > > On Wed, 10 Oct 2012 11:59:50 +0200 (CEST) > > Jean-Michel Pichavant wrote: > > > >> Well, the C++ code will end up running on a MIPS on a SOC, > >> unfortunately, python is not an option here. The xml to C++ makes > >> a

Re: Generating C++ code

2012-10-10 Thread Grant Edwards
On 2012-10-10, Etienne Robillard wrote: > On Wed, 10 Oct 2012 11:59:50 +0200 (CEST) > Jean-Michel Pichavant wrote: > >> Well, the C++ code will end up running on a MIPS on a SOC, >> unfortunately, python is not an option here. The xml to C++ makes a >> lot of sense, because only a small part of

Re: Generating C++ code

2012-10-10 Thread Michael Torrie
On 10/09/2012 10:00 AM, Jean-Michel Pichavant wrote: > 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 > redir

Re: Generating C++ code

2012-10-10 Thread Jean-Michel Pichavant
> sorry but i don't get what you mean with a "MIPS on a SOC". Is not > Python well supported on MIPS ? Sorry, SOC means system on chip. The binary runs on the MIPS, there's no file system, no operanding system, except for one very basic task scheduler. That's why everything is done at compile t

Re: Generating C++ code

2012-10-10 Thread Ulrich Eckhardt
Am 09.10.2012 18:00, schrieb Jean-Michel Pichavant: 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. [...] Here's my flow: XML file -> nice python app -> C++ code There is one question that you should an

Re: Generating C++ code

2012-10-10 Thread andrea crotti
2012/10/10 Jean-Michel Pichavant : > Well, the C++ code will end up running on a MIPS on a SOC, unfortunately, > python is not an option here. > The xml to C++ makes a lot of sense, because only a small part of the code is > generated that way (everything related to log & fatal events). Everythin

Re: Generating C++ code

2012-10-10 Thread Stefan Behnel
Jean-Michel Pichavant, 10.10.2012 11:59: > Well, the C++ code will end up running on a MIPS on a SOC, > unfortunately, python is not an option here. The xml to C++ makes a lot > of sense, because only a small part of the code is generated that way > (everything related to log & fatal events). Every

Re: Generating C++ code

2012-10-10 Thread Etienne Robillard
On Wed, 10 Oct 2012 11:59:50 +0200 (CEST) Jean-Michel Pichavant wrote: > Well, the C++ code will end up running on a MIPS on a SOC, unfortunately, > python is not an option here. > The xml to C++ makes a lot of sense, because only a small part of the code is > generated that way (everything re

Re: Generating C++ code

2012-10-10 Thread Jean-Michel Pichavant
> > > 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. > > > > &

Re: Generating C++ code

2012-10-09 Thread Etienne Robillard
dable 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 m

Re: Generating C++ code

2012-10-09 Thread Andrea Crotti
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 no

Generating C++ code

2012-10-09 Thread Jean-Michel Pichavant
. 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 w