Make compile again

This commit is contained in:
greg 2018-05-14 15:01:37 -07:00
parent 97df2fa344
commit 9fb148bb02
2 changed files with 3 additions and 3 deletions

View File

@ -263,7 +263,7 @@ impl<'a> State<'a> {
//in the values table //in the values table
let type_context = self.type_context_handle.borrow(); let type_context = self.type_context_handle.borrow();
type_context.symbol_table //type_context.symbol_table
match self.values.lookup(&name) { match self.values.lookup(&name) {
None => return Err(format!("Value {} not found", *name)), None => return Err(format!("Value {} not found", *name)),

View File

@ -15,7 +15,7 @@ pub struct TypeContext {
} }
//cf. p. 150 or so of Language Implementation Patterns //cf. p. 150 or so of Language Implementation Patterns
struct SymbolTable { pub struct SymbolTable {
pub values: HashMap<Rc<String>, Symbol> //TODO this will eventually have real type information pub values: HashMap<Rc<String>, Symbol> //TODO this will eventually have real type information
} }
@ -26,7 +26,7 @@ impl SymbolTable {
} }
#[derive(Debug)] #[derive(Debug)]
struct Symbol { pub struct Symbol {
pub name: Rc<String>, pub name: Rc<String>,
pub ty: Type pub ty: Type
} }