Skip to main content

Module interpreter

Module interpreter 

Source
Expand description

Interpreter engine: parsing, AST walking, and execution state.

Structs§

CallFrame
A single frame on the function call stack, used to expose FUNCNAME, BASH_SOURCE, and BASH_LINENO arrays.
ExecResult
Result of executing a shell command.
ExecutionCounters
Execution counters, reset per exec() call.
ExecutionLimits
Execution limits.
FunctionDef
Stub for function definitions (execution in a future phase).
InterpreterState
The interpreter’s mutable state, persistent across exec() calls.
ShellOpts
Shell options controlled by set -o / set +o and single-letter flags.
ShoptOpts
Shopt options (shopt -s/-u flags).
Variable
A shell variable with metadata.
VariableAttrs
Attribute flags for a shell variable.

Enums§

ControlFlow
Signal for loop control flow (break, continue) and function return.
VariableValue
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.