aboutsummaryrefslogtreecommitdiff
path: root/neb/std/repl.py
diff options
context:
space:
mode:
authormryouse2022-07-07 03:48:05 +0000
committermryouse2022-07-07 03:48:05 +0000
commit3412d4d0e35dfe1faac5254199aa34f0354e992b (patch)
treed8cb5b69a2cf110d65faa2d2ddf0b6486038015d /neb/std/repl.py
parent46cefa721d145af17bee3696ef533d752989458c (diff)
refactor: add Macro structure under Callable, which is all core
Diffstat (limited to 'neb/std/repl.py')
-rw-r--r--neb/std/repl.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/neb/std/repl.py b/neb/std/repl.py
index 16efb20..73f82d6 100644
--- a/neb/std/repl.py
+++ b/neb/std/repl.py
@@ -1,10 +1,10 @@
-from .. import TypeEnum, Environment, Arg, Builtin, UserFunction, Function, evaluate, InterpretPanic
+from .. import TypeEnum, Environment, Arg, Builtin, UserFunction, Function, evaluate, InterpretPanic, Callable
from ..structs import *
REPL = Environment()
def interpretHowTo(symbol, args, env, ns):
- if not isinstance(args[0], Function):
+ if not isinstance(args[0], Callable):
raise InterpretPanic(symbol, "expects a :func", args[0])
print(args[0].describe())
return List([])