| Crates.io | minparser |
| lib.rs | minparser |
| version | 0.8.4 |
| created_at | 2024-08-16 21:11:04.453404+00 |
| updated_at | 2025-08-13 22:14:14.101937+00 |
| description | Simple parsing functions |
| homepage | https://github.com/Loara-crates/minparser |
| repository | https://github.com/Loara-crates/minparser |
| max_upload_size | |
| id | 1340971 |
| size | 144,660 |
Simple parsing functions
This crate is a collection of objects and algorithms shared among different crates that needs to implement a parser.
use minparser::prelude::*;
let view = ViewFile::new_default("My string value");
let (step, mtc) = view.match_tool_string("My string").unwrap();
assert_eq!(mtc, "My string");
assert_eq!(step.get_view(), " value");
let step = step.match_tool(minparser::utils::WhiteTool).unwrap(); // Use the WhiteTool tool to
assert_eq!(step.get_view(), "value"); //match a sequence of whitespaces
assert!(step.match_tool('a').is_err()); // A missing match is an error