Writing an assembler in Python

Paul Rubin no.email at nospam.invalid
Tue Feb 23 03:33:40 CET 2010

Giorgos Tzampanakis <gt67 at hw.ac.uk> writes:
> 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?

One "dead simple" option is the re module.

More information about the Python-list mailing list