diff --git a/src/compilation.rs b/src/compilation.rs index b563f86..bbfa776 100644 --- a/src/compilation.rs +++ b/src/compilation.rs @@ -3,7 +3,7 @@ extern crate llvm_sys; use std::collections::HashMap; use self::llvm_sys::prelude::*; -use parser::{ParseResult, AST, ASTNode, Prototype, Function, Expression}; +use parser::{AST, ASTNode, Function, Expression}; use llvm_wrap as LLVMWrap; diff --git a/src/main.rs b/src/main.rs index 49d066f..ef81027 100644 --- a/src/main.rs +++ b/src/main.rs @@ -114,7 +114,7 @@ fn repl_handler(input: &str, state: &mut InterpreterState) -> String { let mut result = String::new(); let tokens = match tokenize(input) { - Err(e) => return format!("Tokenization error"), + Err(e) => return format!("Tokenization error: {}", e.msg), Ok(t) => t, };