...
 
Commits (3)
......@@ -12,10 +12,16 @@ import utils
# Symbols that we need internally. These need to be created ASAP, i.e. as soon
# as we have the root environment.
# The nil symbol, obviously, and its name.
Nil = None
NilName = "nil"
# The t symbol and its name.
T = None
TName = "t"
# Symbols used for symbol properties.
NamePropSymbol = None
NamePropSymbolName = "sys:name"
ImmutableSymbol = None
......
......@@ -56,18 +56,19 @@ if ovc.traceback:
stdsyms.enableTraceback(True)
reader.loadpath = ovc.loadpath
reader.load("basedefs.l")
for file in ovc.loadfiles:
reader.load(file)
if __name__ == "__main__":
reader.load("basedefs.l")
for file in ovc.loadfiles:
reader.load(file)
if len(argv) > 0:
# dbg.p(dbg.main, "args are", argv)
for arg in argv:
# dbg.p(dbg.main, "loading", arg)
reader.loadFile(arg)
else:
# dbg.p(dbg.main, "starting interactive repl...")
reader.repl(sys.stdin, "*stdin*", sys.stdout)
if len(argv) > 0:
# dbg.p(dbg.main, "args are", argv)
for arg in argv:
# dbg.p(dbg.main, "loading", arg)
reader.loadFile(arg)
else:
# dbg.p(dbg.main, "starting interactive repl...")
reader.repl(sys.stdin, "*stdin*", sys.stdout)