diff options
author | Roland Reichwein <mail@reichwein.it> | 2020-11-07 22:26:59 +0100 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2020-11-07 22:26:59 +0100 |
commit | dd2a994fbbe946fa751b689e92c85696469e5e5c (patch) | |
tree | 8ac9693b8f921d9111d362dc044745eb9bba33b5 /cpp.h | |
parent | 7b6fc865d9871a63c7377ca8d9ebc57dd854d15c (diff) |
Fill mCPPContext.graph with first node! To be converted to asm
Diffstat (limited to 'cpp.h')
-rw-r--r-- | cpp.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1,5 +1,6 @@ #pragma once +#include "flowgraph/graph.h" #include "grammer.h" #include "minicc.h" @@ -13,6 +14,8 @@ struct CPPContext { // global variable definitions // functions declarations // functions definitions + + FlowGraph::Graph graph; }; class CPP { @@ -62,7 +65,8 @@ private: 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; + CPPContext mCPPContext; + void getValueOfToken(index_t index); void getValueOfNode(index_t index); void visitRecursive(index_t node_id); |