comparison python/testc3.py @ 182:e9b27f7193e3

Replace clear function by function also supported in python 3.2
author Windel Bouwman
date Sat, 18 May 2013 18:24:42 +0200
parents 25a0753da4cf
children 46d62dadd61b
comparison
equal deleted inserted replaced
181:216da5e46efc 182:e9b27f7193e3
82 def c3compile(src, diag): 82 def c3compile(src, diag):
83 # Structures: 83 # Structures:
84 builder = c3.Builder(diag) 84 builder = c3.Builder(diag)
85 ir = builder.build(src) 85 ir = builder.build(src)
86 # optional optimize here 86 # optional optimize here
87 x86gen = x86.X86CodeGen(diag) 87 x86gen = x86.X86CodeGenSimple(diag)
88 ok = len(diag.diags) == 0 88 ok = len(diag.diags) == 0
89 if not ok: 89 if not ok:
90 return 90 return
91 print('generating x86 code') 91 print('generating x86 code')
92 x86gen.genBin(ir) 92 x86gen.genBin(ir)