diff --git a/src/parser.rs b/src/parser.rs index b7212ab..65f951f 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -7,8 +7,6 @@ use crate::{ }; use std::{error::Error, fmt::Display, vec}; -pub mod numeric; - #[derive(Clone, Copy, Debug, PartialEq, Eq)] pub enum ParseError { FromLexer(LexError), @@ -20,6 +18,7 @@ pub enum ParseError { NotInfix(TKind, Span), NotPostfix(TKind, Span), } + impl Error for ParseError {} impl Display for ParseError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { diff --git a/src/parser/numeric.rs b/src/parser/numeric.rs deleted file mode 100644 index 8b13789..0000000 --- a/src/parser/numeric.rs +++ /dev/null @@ -1 +0,0 @@ -