diff options
author | Nadrieril | 2019-02-27 15:36:12 +0100 |
---|---|---|
committer | Nadrieril | 2019-02-27 15:36:12 +0100 |
commit | 8a1012be323459440032813c2b21b62174924c6c (patch) | |
tree | d2a64f401f552106318f2ededd7043f5aefbd92e /src/main.rs | |
parent | d5bc8da87f3fed99a010d867a3e34d2768caf768 (diff) |
Revert "Try to update to latest nom"
This reverts commit d5bc8da87f3fed99a010d867a3e34d2768caf768.
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index 2a1eb11..fde3978 100644 --- a/src/main.rs +++ b/src/main.rs @@ -71,7 +71,7 @@ fn main() { io::stdin().read_to_string(&mut buffer).unwrap(); let expr = match parser::parse_expr(&buffer) { Ok(e) => e, - Err(lalrpop_util::ParseError::User { error: lexer::LexicalError(pos, e) }) => { + Err(lalrpop_util::ParseError::User { error: lexer::LexicalError::Error(pos, e) }) => { print_error(&format!("Unexpected token {:?}", e), &buffer, pos, pos); return; } |