aboutsummaryrefslogtreecommitdiff
path: root/eval.h
diff options
context:
space:
mode:
authorShinichiro Hamaji <shinichiro.hamaji@gmail.com>2016-02-18 18:18:54 +0900
committerShinichiro Hamaji <shinichiro.hamaji@gmail.com>2016-02-22 16:19:42 +0900
commitc9b9e5eea8b477a103cdec951ef2a299f9cd49ba (patch)
treee28f4e11d2e0e15a01082c10f05038f67d298946 /eval.h
parenta67fba3bf217ece75b66cb9adb6539e9d098ce9c (diff)
downloadkati-c9b9e5eea8b477a103cdec951ef2a299f9cd49ba.tar.gz
[C++] Associate global variables with Symbols directly
Diffstat (limited to 'eval.h')
-rw-r--r--eval.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/eval.h b/eval.h
index cb03d5d..3eede2b 100644
--- a/eval.h
+++ b/eval.h
@@ -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_;