summaryrefslogtreecommitdiff
path: root/node/StatementNode.cc
diff options
context:
space:
mode:
Diffstat (limited to 'node/StatementNode.cc')
-rw-r--r--node/StatementNode.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/node/StatementNode.cc b/node/StatementNode.cc
new file mode 100644
index 0000000..b373b70
--- /dev/null
+++ b/node/StatementNode.cc
@@ -0,0 +1,11 @@
+#include "StatementNode.hh"
+
+namespace pcc {
+template <> Value StatementListNode::CodeGen() {
+ Value result = nullptr;
+ for (auto& child : childs_) {
+ result = child->CodeGen();
+ }
+ return result;
+}
+} // namespace pcc