I have an idea to create scripting language which will make people to program easier doing a lot of macros, functions, simpler function names everything more simpler for simple person to work with. That code (custom scripting language) then should be translated to simple C language things. Like so:
Scripting:
IO[9].high
@include "lib"
for (int i=0 to 55)
end
C:
IO |= (1<<9);
#include "lib.h"
int i = 0;
for (i=0; i<55; i++) {
}
Is it possible somehow efficiently write this macro/scripting language which would nicely output to c code?
Thanks to PyPy, it is possible to translate a subset of Python code into c.
For further details, see the following reference :
http://doc.pypy.org/en/latest/translation.html
See also the following question, which is basically your question specifying Python as the scripting language : Use Cython as Python to C Converter