2011/7/30 Peter Foelsche <foelsche@sbcglobal.net>
Dear All,

I would like to translate some C-Code into objects.
I did this already for functions and expressions: Writing template functions and passing my expression object as an argument.
Now I want to do this for C-Code, which uses if-statements and variables.
To do this, I would implement some template function for an if-statement.
And some function for an assignment to a variable.
Probably using enumerations to indicate the variable.

Is this the right approach?

Why not Phoenix?

http://www.boost.org/doc/libs/1_47_0/libs/phoenix/doc/html/index.html