Random notes re: symbol table

I'm proably gonna want to redo the symbol table stuff after reading Language
Implementation Patterns, esp. to accomodate scopes
This commit is contained in:
greg 2018-05-10 21:41:28 -07:00
parent 4f49c183b0
commit c5e8d3e080

View File

@ -11,6 +11,12 @@ use parsing;
pub struct TypeContext { pub struct TypeContext {
type_var_count: u64, type_var_count: u64,
bindings: HashMap<Rc<String>, Type>, bindings: HashMap<Rc<String>, Type>,
//symbol_table: SymbolTable
}
//cf. p. 150 or so of Language Implementation Patterns
struct SymbolTable {
} }
#[derive(Debug, PartialEq, Clone)] #[derive(Debug, PartialEq, Clone)]