Skip to main content

Crate awkrs

Crate awkrs 

Source
Expand description

Awk-style record processor: library crate shared by the awkrs and ars binaries.

Modules§

aot
Native AOT for awkrs via fusevm::aot (--aot OUT).
banner
AWKRS ASCII logo + live-stats banner (shared by the REPL and --help). AWKRS ASCII logo + live-stats box banner. Single source of truth shared by:
fusevm_bridge
fusevm_bridge submodule. Bridge between awkrs’s bytecode Op and fusevm’s fusevm::Op.
lsp
LSP server plus the shared documentation corpus (builtin_signature, special_doc, keyword_doc, AWK_KEYWORDS) consumed by the offline gen-docs reference generator. Language Server Protocol (stdio) for editors — awkrs --lsp.
repl
Interactive REPL (awkrs --repl, or the default on a bare terminal). Interactive REPL for awkrs / aw — a reedline line editor over the awk engine.

Enums§

Error
Error — see variants for the choices.

Functions§

run
Run the interpreter. bin_name is used for diagnostics and help (e.g. "awkrs" or "ars").
run_program
Embedding entry point: run an awk program over input (treated as the whole input stream) and return everything the program print/printfs.

Type Aliases§

Result
Result type alias.