summaryrefslogtreecommitdiffhomepage
path: root/cpp.h
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2020-11-07 21:55:45 +0100
committerRoland Reichwein <mail@reichwein.it>2020-11-07 21:55:45 +0100
commit5c7df4f7b09d138df58f720260306afdf0f6713a (patch)
tree4e81ef887606486d4729204d629a5ad029b14256 /cpp.h
parente7d51fff32ea247fd35b56fc7cf5ce06df5dc6bf (diff)
Make "add" result
Diffstat (limited to 'cpp.h')
-rw-r--r--cpp.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/cpp.h b/cpp.h
index abd7e16..4c9f490 100644
--- a/cpp.h
+++ b/cpp.h
@@ -54,13 +54,13 @@ private:
bool childTypesOfNodeMatch(index_t index, const std::vector<std::string>& pattern) const; ///< returns true iff specified type list matches; "" -> don't care
bool childTypesOfChildMatch(index_t index, index_t child_index, const std::vector<std::string>& pattern) const; ///< returns true iff specified type list matches in specified child; "" -> don't care
- std::deque<std::shared_ptr<std::any>> mValues; // values stack during phase 7.c
- std::shared_ptr<std::any> getValue(index_t node_id, index_t child_id);
+ std::deque<std::any> mValues; // values stack during phase 7.c
+ std::any getValue(index_t node_id, index_t child_id);
std::string getType(index_t node_id, index_t child_index);
std::string ruleString(index_t node_id);
- 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;
+ std::unordered_map<std::string, std::function<std::any(index_t)>> getNodeEvalMap();
+ std::unordered_map<std::string, std::function<std::any(index_t)>> node_eval_map;
CPPContext mContext;
void getValueOfToken(index_t index);