summary refs log tree commit diff
path: root/lib/src
diff options
context:
space:
mode:
authorIrene Knapp <ireneista@gmail.com>2020-12-17 21:56:07 -0800
committerIrene Knapp <ireneista@gmail.com>2020-12-17 21:56:07 -0800
commit781e65e5a4444800982da71d97cb6b05d7dca17e (patch)
treec9919f20c0153409b0d344f33e5a4791177387da /lib/src
parent9acefe571def801d63282620cb31833a321bc551 (diff)
18
Diffstat (limited to 'lib/src')
-rw-r--r--lib/src/error.rs11
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
+  }
+}
+