Writing an assembler in Python

mk mrkafk at gmail.com
Tue Feb 23 16:00:18 CET 2010

Giorgos Tzampanakis wrote:
> I'm implementing a CPU that will run on an FPGA. I want to have a  
> (dead) simple assembler that will generate the machine code for 
> me. I want to use Python for that. Are there any libraries that 
> can help me with the parsing of the assembly code?

I'm not sure about your field of application (never done anything like 
that), but I found pyparsing highly usable.


More information about the Python-list mailing list