Make compile again
This commit is contained in:
parent
97df2fa344
commit
9fb148bb02
@ -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)),
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user