Mercurial > lcfOS
comparison python/ir.py @ 292:534b94b40aa8
Fixup reorganize
author | Windel Bouwman |
---|---|
date | Wed, 27 Nov 2013 08:06:42 +0100 |
parents | 02385f62f250 |
children |
comparison
equal
deleted
inserted
replaced
290:7b38782ed496 | 292:534b94b40aa8 |
---|---|
276 | 276 |
277 def Add(a, b): | 277 def Add(a, b): |
278 """ Convenience call """ | 278 """ Convenience call """ |
279 return Binop(a, '+', b) | 279 return Binop(a, '+', b) |
280 | 280 |
281 | |
281 def Sub(a, b): | 282 def Sub(a, b): |
282 return Binop(a, '-', b) | 283 return Binop(a, '-', b) |
283 | 284 |
285 | |
284 def Mul(a, b): | 286 def Mul(a, b): |
285 return Binop(a, '*', b) | 287 return Binop(a, '*', b) |
288 | |
286 | 289 |
287 def Div(a, b): | 290 def Div(a, b): |
288 return Binop(a, '/', b) | 291 return Binop(a, '/', b) |
289 | 292 |
290 class Eseq(Expression): | 293 class Eseq(Expression): |