| Crates.io | unilang_instruction_parser |
| lib.rs | unilang_instruction_parser |
| version | 0.2.0 |
| created_at | 2025-07-20 21:31:08.855793+00 |
| updated_at | 2025-07-23 21:26:07.983832+00 |
| description | Alias crate for `unilang_parser`. Re-exports `unilang_parser` for backward compatibility. |
| homepage | https://github.com/Wandalen/wTools/tree/master/module/alias/unilang_instruction_parser |
| repository | https://github.com/Wandalen/wTools/tree/master/module/alias/unilang_instruction_parser |
| max_upload_size | |
| id | 1761423 |
| size | 21,765 |
Alias crate for unilang_parser. Re-exports unilang_parser for backward compatibility.
This crate serves as a compatibility alias for the core unilang_parser library, which provides syntactic analysis for CLI-like instruction strings within the Unilang Framework. It enables parsing of command strings into structured GenericInstruction objects.
namespace.command)key::value)? help request handling;; separatoruse unilang_instruction_parser::{Parser, UnilangParserOptions};
let parser = Parser::new(UnilangParserOptions::default());
let input = "log.level severity::debug message::'Hello World!'";
match parser.parse_single_instruction(input) {
Ok(instruction) => {
println!("Command: {:?}", instruction.command_path_slices);
println!("Named args: {:?}", instruction.named_arguments);
},
Err(e) => eprintln!("Parse error: {}", e),
}
This is an alias crate that re-exports unilang_parser. For new projects, consider using unilang_parser directly. This crate exists to maintain backward compatibility for existing code.
For complete documentation and examples, see:
MIT License. See LICENSE file for details.