diff options
Diffstat (limited to 'python/stepA_more.py')
| -rw-r--r-- | python/stepA_more.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/python/stepA_more.py b/python/stepA_more.py index 7c6a5da..21c1641 100644 --- a/python/stepA_more.py +++ b/python/stepA_more.py @@ -127,10 +127,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:]) |
