From f0f7a8f7fd237d1f8e2bab2bfb2cb4442e1a692f Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sat, 7 Nov 2020 15:05:45 +0100 Subject: Add node map --- cpp.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'cpp.h') 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& pattern) const; ///< returns true iff specified type list matches; "" -> don't care - std::deque> mValues; + std::deque> mValues; // values stack during phase 7.c + + std::unordered_map(index_t)>> getNodeEvalMap(); + std::unordered_map(index_t)>> node_eval_map; + + CPPContext mContext; void getValueOfToken(index_t index); void getValueOfNode(index_t index); void visitRecursive(index_t node_id); -- cgit v1.2.3