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?