Boni-Asm
I just finished a new project. It's an Assembler that can easily support new architectures.
I wrote it in Python for ease of development. I chose Yapps as a Parser Generator because it is the most Pythonic Parser Generator. The Yapps Grammar language is pretty easy to pick up, even though the documentation is a bit incomplete. Yapps produces LL(1) parsers so I had to be a little creative.
Boni's best feature is the dynamicity of the code. The assembler doesn't depend on the format of the machine code being generated. That means Boni can be retargeted by changing one configuration file.
I had a lot of fun writing it. I don't know if it'll ever be useful though. At least the very least it will show how Yapps is used.
Anyway, have a look:
http://github.com/ynd/boni-asm/tree/master
Sunday, November 23, 2008
One-Time Pet Project
Posted by Yann N. Dauphin at 10:25 AM 7 comments
Subscribe to:
Posts (Atom)