Expand description
Alias crate for unilang_parser. Re-exports unilang_parser for backward compatibility.
Modules§
- config
unilang_parseris a Rust crate designed to parseunilangCLI-like instruction strings. It leveragesstrs_toolsfor initial itemization (splitting the input string into lexical tokens) and then performs syntactic analysis to produce structuredGenericInstructionobjects.- 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.
Structs§
- Argument
- Represents a single argument to a command, either positional or named.
- Generic
Instruction - Represents a generic instruction parsed from the input string or slice.
- Parse
Error - Represents a parsing error with its kind and location.
- Parser
- The main parser struct.
- Rich
Item - Represents a token with its original split information and classified kind.
- StrSpan
- Represents a span of characters in the source string.
- Unilang
Parser Options - Configuration options for the Unilang parser.
Enums§
- Error
Kind - Kinds of parsing errors.
- Source
Location - Represents a location in the source string.
- Unilang
Token Kind - Represents the classified kind of a unilang token.
Functions§
- classify_
split - Classifies a
strs_tools::Splitinto aUnilangTokenKindand returns its adjusted source location. Classifies astrs_tools::Splitinto aUnilangTokenKindand adjusts itsSourceLocation.