From d8b88c1a5da7218011fca2bccc525907aa439335 Mon Sep 17 00:00:00 2001 From: Nadrieril Date: Wed, 27 Feb 2019 15:45:09 +0100 Subject: Switch to Rust 2018 edition --- src/parser.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/parser.rs') diff --git a/src/parser.rs b/src/parser.rs index 3ad7ffc..2e252b1 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -1,8 +1,8 @@ use lalrpop_util; -use grammar; -use grammar_util::BoxExpr; -use lexer::{Lexer, LexicalError, Tok}; +use crate::grammar; +use crate::grammar_util::BoxExpr; +use crate::lexer::{Lexer, LexicalError, Tok}; pub type ParseError<'i> = lalrpop_util::ParseError, LexicalError>; @@ -12,7 +12,7 @@ pub fn parse_expr(s: &str) -> Result { #[test] fn test_parse() { - use core::Expr::*; + use crate::core::Expr::*; println!("test {:?}", parse_expr("+3 + +5 * +10")); assert!(parse_expr("22").is_ok()); assert!(parse_expr("(22)").is_ok()); -- cgit v1.2.3