summaryrefslogtreecommitdiffhomepage
path: root/cpp.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpp.h')
-rw-r--r--cpp.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/cpp.h b/cpp.h
index ce4a516..2594a4c 100644
--- a/cpp.h
+++ b/cpp.h
@@ -53,7 +53,12 @@ private:
std::string typeOfChild(int32_t child_id) const;
bool childTypesOfNodeMatch(index_t, const std::vector<std::string>& pattern) const; ///< returns true iff specified type list matches; "" -> don't care
- std::deque<std::shared_ptr<std::any>> mValues;
+ std::deque<std::shared_ptr<std::any>> mValues; // values stack during phase 7.c
+
+ std::unordered_map<std::string, std::function<std::shared_ptr<std::any>(index_t)>> getNodeEvalMap();
+ std::unordered_map<std::string, std::function<std::shared_ptr<std::any>(index_t)>> node_eval_map;
+
+ CPPContext mContext;
void getValueOfToken(index_t index);
void getValueOfNode(index_t index);
void visitRecursive(index_t node_id);