Module commands

Module commands 

Source
Expand description

REPL command implementations (:help, :env, :ctx, :load, :reset).

Functions§

cmd_ctx
:ctx — show the staging context’s counters: tower level, fresh variable counter, pending ANF block depth, and memoised closure count.
cmd_env
:env — list every binding in top, or inspect the single binding name when given.
cmd_help
:help — list the REPL commands.
display_binding
Print one name : Kind value line for :env, truncating long values so a big code tree cannot flood the listing.
type_of
A one-word kind tag for a value, shown next to each REPL result.