diff options
Diffstat (limited to 'lib/src')
-rw-r--r-- | lib/src/error.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/src/error.rs b/lib/src/error.rs index 216df78..4f594b7 100644 --- a/lib/src/error.rs +++ b/lib/src/error.rs @@ -39,3 +39,14 @@ impl From<std::num::ParseIntError> for Error { Error::Parse } } + +impl From<lalrpop_util::ParseError<usize, lalrpop_util::lexer::Token<'_>, + &str>> for Error +{ + fn from(_: lalrpop_util::ParseError<usize, lalrpop_util::lexer::Token<'_>, + &str>) -> Error + { + Error::Parse + } +} + |