switched to lrpar parser generator

This commit is contained in:
2025-10-23 16:15:25 +02:00
parent f9a7016dcf
commit 4c08803a54
19 changed files with 490 additions and 379 deletions

19
src/errors.rs Normal file
View File

@@ -0,0 +1,19 @@
use std::error::Error;
use std::fmt::{Debug, Display, Formatter, Pointer};
pub struct CLIArgumentError(pub &'static str);
impl Display for CLIArgumentError {
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
f.write_str(self.0)
}
}
impl Debug for CLIArgumentError {
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
write!(f, "{}", self.0)
}
}
impl Error for CLIArgumentError {}