Module cli

Module cli 

Source
Expand description

CLI argument parsing and execution dispatch for ctoolbox run.

Compiles and executes an arbitrary Document Character (Dc) document or StageL 3 / StageR 3 / WAT / .WASM program through the Dc 1936 execution kernel ([Dc 1938 <pin> [Dc 2608 <quoted_doc>]]), and renders the evaluated semantic DcMstring output via ctb-renderer (RenderTarget::Teletype plain-text UTF-8 lowering by default).

Structs§

RunArgs
CLI arguments for ctoolbox run.

Enums§

RunInputFormat
Parsed --from specification for ctoolbox run.
RunTarget
CLI rendering target selector for ctoolbox run.

Statics§

RUN_AFTER_HELP
Global static lazy help footer for ctoolbox run.

Functions§

execute_cli_run
Executes the ctoolbox run CLI subcommand.
parse_run_input_format
Parses a CLI --from flag into RunInputFormat.
run_dc_document_to_rendered_bytes
Executes an already-loaded [DcMstr] document through the Dc 1936 execution kernel and renders its combined yielded frames and completion output with settings.