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
1 changed files with 7 additions and 1 deletions

View File

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