On Fri, Apr 17, 2009 at 9:28 PM, BlueHawk204 <bluehawk...@hotmail.com> wrote: > I been wanting to write my own language and i was thinking about having it > compile with mono. I know boo uses mono. How would have my code compile with > mono? someone suggest outputting the bytecode but i dont want to optimize > (and i imagine mono is loads better at it then i am) so what can i do? > > I could output C# source (or C, or C++). I could also translate it to basic > instructions like int a; a = 5; a+=6*2; into DECL INT a; A = 5; A += 6*2 (or > REG = 6*2; A = A + REG;). What is the easiest way?
I did something like this a while ago. It's a procedural/OO hybrid with a C-like syntax. The environment is defined by the embedding application, and it targets the DynamicMethod type of the 2.0 framework, which means that compiled methods can be garbage-collected normally. If this is what you need then maybe you can look at it. -- Chris Howie http://www.chrishowie.com http://en.wikipedia.org/wiki/User:Crazycomputers _______________________________________________ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list