Expand description
Interpreter engine: parsing, AST walking, and execution state.
Structs§
- Call
Frame - A single frame on the function call stack, used to expose
FUNCNAME,BASH_SOURCE, andBASH_LINENOarrays. - Exec
Result - Result of executing a shell command.
- Execution
Counters - Execution counters, reset per
exec()call. - Execution
Limits - Execution limits.
- Function
Def - Stub for function definitions (execution in a future phase).
- Interpreter
State - The interpreter’s mutable state, persistent across
exec()calls. - Shell
Opts - Shell options controlled by
set -o/set +oand single-letter flags. - Shopt
Opts - Shopt options (
shopt -s/-uflags). - Variable
- A shell variable with metadata.
- Variable
Attrs - Attribute flags for a shell variable.
Enums§
- Control
Flow - Signal for loop control flow (
break,continue) and function return. - Variable
Value - The value stored in a shell variable: scalar, indexed array, or associative array.
Functions§
- builtin_
names - Return the list of known shell builtin names.
- execute_
program - Execute a parsed program.
- expand_
word - Expand a word into a list of strings (with IFS splitting on unquoted parts).
- parse
- Parse a shell input string into an AST.