I was wondering if are existing tools or package to write C++ (or other langage) code from lisp.
For example, this afternoon I needed to create 4 basic classes:
class D{
public:
D(){
}
};
class C{
public:
C(){
}
};
class B{
public:
B(){
}
};
class A{
public:
A(){
}
};
Using lisp it would be fairly easy to create a function that takes as an argument the class name and generate the template code from one instance:
class $TAG{
public:
$TAG(){
}
};
where $TAG is going to be replaced by the class name.
I am not really looking at the exact lisp code to produce this because I can code it myself but rather at a package about this philosophy and with extra stuff I haven't thought of.
Please share your thoughts