summaryrefslogtreecommitdiffhomepage
path: root/cpp.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpp.h')
-rw-r--r--cpp.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/cpp.h b/cpp.h
index 4c9f490..267aa9d 100644
--- a/cpp.h
+++ b/cpp.h
@@ -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);