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). - awkstr
AwkStr— the byte string an awk value holds.- 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_bridgesubmodule. Bridge between awkrs’s bytecodeOpand fusevm’sfusevm::Op.- intercepts
- Function-call AOP intercepts (before/after/around advice) — awkrs/zshrs-original
extension; no POSIX awk counterpart. Types + pattern matcher live here; the VM
wiring is in
crate::vm, the builtins invm_builtins. Function-call intercept / advice machinery — awkrs/zshrs-original extension. - lsp
- LSP server plus the shared documentation corpus (
builtin_signature,special_doc,keyword_doc,AWK_KEYWORDS) consumed by the offlinegen-docsreference generator. Language Server Protocol (stdio) for editors —awkrs --lsp. - repl
- Interactive REPL (
awkrs --repl, or the default on a bare terminal). Interactive REPL forawkrs/aw— a reedline line editor over the awk engine. - rust_
ffi - awk wiring for inline Rust FFI (
rust { ... }blocks): thefusevm::RustSugarconfig and the source-level desugar the parser runs before lexing. awk wiring for inline Rust FFI (rust { ... }blocks).
Enums§
- Error
Error— see variants for the choices.
Functions§
- run
- Run the interpreter.
bin_nameis used for diagnostics and help (e.g."awkrs"or"ars"). - run_
on_ interpreter_ stack run, on a thread whose stack the call-depth cap can outlast.- run_
program - Embedding entry point: run an awk
programoverinput(treated as the whole input stream) and return everything the programprint/printfs.
Type Aliases§
- Result
Resulttype alias.