From 0ab374bc261f871ab8fbbc13e0096f44225e2a3f Mon Sep 17 00:00:00 2001 From: Joel Martin Date: Sat, 25 Oct 2014 12:41:24 -0500 Subject: rust: add step2_eval. --- rust/src/step1_read_print.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'rust/src/step1_read_print.rs') diff --git a/rust/src/step1_read_print.rs b/rust/src/step1_read_print.rs index c6f87d0..bc4827d 100644 --- a/rust/src/step1_read_print.rs +++ b/rust/src/step1_read_print.rs @@ -4,20 +4,19 @@ extern crate regex_macros; extern crate regex; -use std::rc::Rc; -use types::{MalVal,List,Vector,Int,Nil}; +use types::{MalVal,MalRet}; mod readline; mod types; mod reader; mod printer; // read -fn read(str: String) -> Result { +fn read(str: String) -> MalRet { reader::read_str(str) } // eval -fn eval(ast: MalVal) -> Result { +fn eval(ast: MalVal) -> MalRet { Ok(ast) } -- cgit v1.2.3