Expand description
This is a parser for Unilang instructions.
It provides functionality to parse single or multiple instructions from a string, handling command paths, arguments, and various syntax rules.
The parser is designed to be robust against various input formats and provides detailed error reporting for invalid instructions.
Re-exports§
pub use prelude::*;
Modules§
- config
unilang_parser
is a Rust crate designed to parseunilang
CLI-like instruction strings. It leveragesstrs_tools
for initial itemization (splitting the input string into lexical tokens) and then performs syntactic analysis to produce structuredGenericInstruction
objects.- error
- Defines error types for the parser. Defines error types for the unilang instruction parser.
- instruction
- Defines instruction and argument structures. Defines the core instruction and argument structures for unilang.
- item_
adapter - Adapts and classifies items from the splitter. Adapters for converting raw string splits into rich, classified tokens.
- parser_
engine - Contains the core parsing engine. Parser for Unilang instructions.
- prelude
- Prelude for commonly used items.