diff options
author | Shinichiro Hamaji <shinichiro.hamaji@gmail.com> | 2016-02-18 18:18:54 +0900 |
---|---|---|
committer | Shinichiro Hamaji <shinichiro.hamaji@gmail.com> | 2016-02-22 16:19:42 +0900 |
commit | c9b9e5eea8b477a103cdec951ef2a299f9cd49ba (patch) | |
tree | e28f4e11d2e0e15a01082c10f05038f67d298946 /eval.h | |
parent | a67fba3bf217ece75b66cb9adb6539e9d098ce9c (diff) | |
download | kati-c9b9e5eea8b477a103cdec951ef2a299f9cd49ba.tar.gz |
[C++] Associate global variables with Symbols directly
Diffstat (limited to 'eval.h')
-rw-r--r-- | eval.h | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -33,7 +33,7 @@ class Vars; class Evaluator { public: - Evaluator(const Vars* vars); + Evaluator(); ~Evaluator(); void EvalAssign(const AssignStmt* stmt); @@ -56,7 +56,6 @@ class Evaluator { const unordered_map<Symbol, Vars*>& rule_vars() const { return rule_vars_; } - Vars* mutable_vars() { return vars_; } const unordered_map<Symbol, bool>& exports() const { return exports_; } void Error(const string& msg); @@ -97,7 +96,6 @@ class Evaluator { Var* LookupVarGlobal(Symbol name); - Vars* vars_; unordered_map<Symbol, Vars*> rule_vars_; vector<const Rule*> rules_; unordered_map<Symbol, bool> exports_; |