hi there,

I've already mentioned this a few times, and also discussed this on
parrotsketch on May 22nd, I've started a little pet project to
implement M1, a simple C-based language to emit M0. You can find it
here:

https://github.com/parrot/m1

Contributions are welcome. I've sprinkled the parser (m1.y) with
several TODOs, so you can pick some low-hanging fruit. More advanced
topics are for instance the code generation for the switch statement.
Also, since PMCs could be written in M1, we need to come up with OO
code, like vtables etc. M0 is pretty bare bones, so all this needs to
be implemented by hand, calculating memory offsets etc. Fun! :-)

Another things that needs much more work is the semantic checker,
which checks types etc. The semantic checker will also decorate the
AST a bit more to make code generation a bit easier. (I think anyway).

I've got a few "how to do this" or "do we want X or Y?" remarks in the
m1.y file. These are points of discussion. Feel free to chip in. Also,
feel free to contact me for more info or if you feel like
contributing!

kjs
_______________________________________________
http://lists.parrot.org/mailman/listinfo/parrot-dev

Reply via email to