Expand description
Parsing entrypoints, lexer types, and shell-profile configuration. Parser entrypoints, lexical types, and shell-profile configuration.
The parser is recursive descent and produces shuck-ast syntax trees while also collecting
recovery diagnostics and lightweight syntax facts needed by downstream tooling.
Structs§
- Lexed
Token - Token produced by the shell lexer.
- Lexer
- Source-backed lexer for shell scripts.
- Parse
Diagnostic - A parser diagnostic emitted while recovering from invalid input.
- Parse
Result - The result of parsing a script.
- Parser
- Stateful parser for shell scripts.
- Shell
Profile - Complete shell parsing profile.
- Syntax
Facts - Additional parser-owned facts that are useful to downstream consumers.
- ZshCase
Group Part - One branch separator recognized inside a zsh
casepattern group. - ZshOption
State - Snapshot of parser-visible zsh option state.
Enums§
- Option
Value - Tri-state value for a parser-visible zsh option.
- Parse
Status - Overall outcome of a parse attempt.
- Shell
Dialect - Supported shell dialects for parser syntax decisions.
- ZshEmulation
Mode - Target emulation mode for zsh’s
emulatebehavior.
Functions§
- text_
is_ self_ contained_ arithmetic_ expression - Returns whether
textparses as an arithmetic expression without variable references, subscripts, shell words, or assignments. - text_
looks_ like_ nontrivial_ arithmetic_ expression - Returns whether
textparses as a nontrivial arithmetic expression.