hissp.repl module#
The Lissp Read-Evaluate-Print Loop. For interactive use.
- class hissp.repl.LisspREPL(locals=None, filename='<console>')[source]#
Bases:
InteractiveConsole
Lissp’s
Read-Evaluate-Print Loop
, layered on Python’s.You can initialize the REPL with a locals dict, which is useful for debugging other modules. See
hissp.subrepl
.Call
interact()
to start.
- hissp.repl.interact(locals=None)[source]#
Convenience function to start a
LisspREPL
.Uses the calling frame’s globals and locals as
locals
if not provided.Unlike
hissp.repl.main
, no_macros_
are added to the locals to avoid clobbering an existing namespace.
- hissp.repl.main(__main__)[source]#
REPL
command-line entry point.hissp.macros._macro_
is copied into the module namespace, making the bundledmacros
immediately availableunqualified
.