diff options
Diffstat (limited to 'python/step5_tco.py')
| -rw-r--r-- | python/step5_tco.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/python/step5_tco.py b/python/step5_tco.py index 4335a96..d9d34bc 100644 --- a/python/step5_tco.py +++ b/python/step5_tco.py @@ -65,10 +65,9 @@ def EVAL(ast, env): else: el = eval_ast(ast, env) f = el[0] - if hasattr(f, '__meta__') and f.__meta__.has_key("exp"): - m = f.__meta__ - ast = m['exp'] - env = Env(m['env'], m['params'], el[1:]) + if hasattr(f, '__ast__'): + ast = f.__ast__ + env = f.__gen_env__(el[1:]) else: return f(*el[1:]) |
