hissp.repl module#
The Lissp Read-Evaluate-Print Loop. For interactive use.
- class hissp.repl.LisspREPL(locals=None, filename='<console>')[source]#
Bases:
InteractiveConsoleLissp’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
localsif not provided.Unlike
hissp.repl.main, no_macros_are added to the locals to avoid clobbering an existing namespace.
- hissp.repl.main(__main__)[source]#
REPLcommand-line entry point.hissp.macros._macro_is copied into the module namespace, making the bundledmacrosimmediately availableunqualified.