unescapeParamsRE = re.compile(r'(\\[\n;\\])')
def unescapeParams(mo):
val = mo.group(0)
- print "About to sub %s for %s" % (val[1], val)
return val[1]
- print "Looking for matches in %s" % t.value
t.value = unescapeParamsRE.sub(unescapeParams, t.value)
t.lexer.begin('asm')
return t
def assemble(self, asm):
self.parser.parse(asm, lexer=self.lexer)
# Begin debug printing
- for macroop in self.parser.macroops.values():
- print macroop
- print self.parser.rom
+ #for macroop in self.parser.macroops.values():
+ # print macroop
+ #print self.parser.rom
# End debug printing
macroops = self.parser.macroops
self.parser.macroops = {}