Crate unilang_parser

Source
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 parse unilang CLI-like instruction strings. It leverages strs_tools for initial itemization (splitting the input string into lexical tokens) and then performs syntactic analysis to produce structured GenericInstruction 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.