So, I am a fairly new C programmer and I was wondering...Is there any C equivalent of C#'s System.Reflection.Emit? This C# library emits Microsoft Intermediate Language code (to create an EXE or DLL). At the moment, I am using it to write my own programming language (to emit IL code based on the user's text input), but if I ever wanted my programming language to become mult-platform, I would need to write it in a multi-platform language (C, not C#). Some info on how do do this in C would be wonderful, as would some general pointers on Mac and Linux programming.
Just in case you're interested, here is an example of a script in my programming language:
the console output for this would, obviously be for instance "Bob says hello world", Bob being the user's input (-->).Code:<<.main @message= "hello world!" @says = " says " @name = "" --> name <- name <- says <-- message end.>>
thank you very much,
Normandy
If at first you don't succeed, call it version 1.0