From 9fb148bb020c5de8f9a9cceb867f409aad0e5923 Mon Sep 17 00:00:00 2001 From: greg Date: Mon, 14 May 2018 15:01:37 -0700 Subject: [PATCH] Make compile again --- schala-lang/src/eval.rs | 2 +- schala-lang/src/typechecking.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/schala-lang/src/eval.rs b/schala-lang/src/eval.rs index f42691b..da86358 100644 --- a/schala-lang/src/eval.rs +++ b/schala-lang/src/eval.rs @@ -263,7 +263,7 @@ impl<'a> State<'a> { //in the values table let type_context = self.type_context_handle.borrow(); - type_context.symbol_table + //type_context.symbol_table match self.values.lookup(&name) { None => return Err(format!("Value {} not found", *name)), diff --git a/schala-lang/src/typechecking.rs b/schala-lang/src/typechecking.rs index 56ea804..64d57d6 100644 --- a/schala-lang/src/typechecking.rs +++ b/schala-lang/src/typechecking.rs @@ -15,7 +15,7 @@ pub struct TypeContext { } //cf. p. 150 or so of Language Implementation Patterns -struct SymbolTable { +pub struct SymbolTable { pub values: HashMap, Symbol> //TODO this will eventually have real type information } @@ -26,7 +26,7 @@ impl SymbolTable { } #[derive(Debug)] -struct Symbol { +pub struct Symbol { pub name: Rc, pub ty: Type }