diff options
author | Nadrieril | 2019-03-02 22:21:43 +0100 |
---|---|---|
committer | Nadrieril | 2019-03-02 22:25:38 +0100 |
commit | 54d3f23e68bf6e769d8a96e40a2b0c4426e38507 (patch) | |
tree | 60024b9d191aff4dd21d5f3489c786088a07f52c /dhall/src/main.rs | |
parent | 48d89a280838919c1fba9e0acf1e090d3286c470 (diff) |
Add parser/failure tests from spec
Diffstat (limited to '')
-rw-r--r-- | dhall/src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dhall/src/main.rs b/dhall/src/main.rs index cdab3c0..58826bb 100644 --- a/dhall/src/main.rs +++ b/dhall/src/main.rs @@ -52,7 +52,7 @@ fn print_error(message: &str, source: &str, start: usize, end: usize) { fn main() { let mut buffer = String::new(); io::stdin().read_to_string(&mut buffer).unwrap(); - let expr = match parser::parse_expr(&buffer) { + let expr = match parser::parse_expr_lalrpop(&buffer) { Ok(e) => e, Err(lalrpop_util::ParseError::User { error: lexer::LexicalError::Error(pos, e) }) => { print_error(&format!("Unexpected token {:?}", e), &buffer, pos, pos); |