hissp.repl module#
The Lissp Read-Evaluate-Print Loop. For interactive use.
- class hissp.repl.LisspREPL(locals=None, filename='<console>')#
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. Call interact() to start.
- interact(banner=None, exitmsg=None)#
Imports readline if available, then super().interact().
- hissp.repl.interact(locals=None)#
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__)#
REPL command-line entry point.
hissp.macros._macro_
is imported into the module namespace, making the bundled macros immediately available unqualified.