(expr)
| 22 | import cd.arith1 as arith1 |
| 23 | context.addCDImplementation(arith1.implementation) |
| 24 | def test(expr): |
| 25 | print "Original: ", expr |
| 26 | print "Evaluated: ", context.evaluate(expr) |
| 27 | test(OMA(arith1.implementation.plus, [1,2])) |
| 28 | test(OMA(arith1.implementation.unary_minus, [10])) |
| 29 | test(OMA(arith1.implementation.times, [3,4])) |