summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-08 14:57:09 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-08 14:58:24 +0300
commit35ddc00e74c82d27ac6eaaceee2169fa252f215d (patch)
treed623d81e7e3d020c4f4b7e0348fc571e658b96a6 /src
parenta79c4d90d2aabe664b25f001d80c5239bd2227fb (diff)
downloadparanucker-35ddc00e74c82d27ac6eaaceee2169fa252f215d.tar.gz
paranucker-35ddc00e74c82d27ac6eaaceee2169fa252f215d.tar.bz2
paranucker-35ddc00e74c82d27ac6eaaceee2169fa252f215d.tar.xz
paranucker-35ddc00e74c82d27ac6eaaceee2169fa252f215d.zip
Add parsing node GE_EXPR.
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.files4
-rw-r--r--src/includes/nodeincludes.h1
-rw-r--r--src/includes/nodeshandling.inc1
-rw-r--r--src/includes/parserdefines.inc1
-rw-r--r--src/nodes/expr/ge_expr.h35
-rw-r--r--src/parsers/expr/ge_expr.cpp39
6 files changed, 80 insertions, 1 deletions
diff --git a/src/Makefile.files b/src/Makefile.files
index 0a84b6a..df06c6a 100644
--- a/src/Makefile.files
+++ b/src/Makefile.files
@@ -90,4 +90,6 @@ SRC = nodes/base/cst.h \
nodes/expr/le_expr.h \
parsers/expr/le_expr.cpp \
nodes/expr/gt_expr.h \
- parsers/expr/gt_expr.cpp \ No newline at end of file
+ parsers/expr/gt_expr.cpp \
+ nodes/expr/ge_expr.h \
+ parsers/expr/ge_expr.cpp \ No newline at end of file
diff --git a/src/includes/nodeincludes.h b/src/includes/nodeincludes.h
index 130f076..e98914c 100644
--- a/src/includes/nodeincludes.h
+++ b/src/includes/nodeincludes.h
@@ -32,3 +32,4 @@
#include "nodes/expr/lt_expr.h"
#include "nodes/expr/le_expr.h"
#include "nodes/expr/gt_expr.h"
+#include "nodes/expr/ge_expr.h"
diff --git a/src/includes/nodeshandling.inc b/src/includes/nodeshandling.inc
index 5056bfc..11ccbc9 100644
--- a/src/includes/nodeshandling.inc
+++ b/src/includes/nodeshandling.inc
@@ -31,3 +31,4 @@ handleNodeType(EQ_EXPR, EqExpr)
handleNodeType(LT_EXPR, LtExpr)
handleNodeType(LE_EXPR, LeExpr)
handleNodeType(GT_EXPR, GtExpr)
+handleNodeType(GE_EXPR, GeExpr)
diff --git a/src/includes/parserdefines.inc b/src/includes/parserdefines.inc
index 1e7c8a8..1524bee 100644
--- a/src/includes/parserdefines.inc
+++ b/src/includes/parserdefines.inc
@@ -31,3 +31,4 @@ parserDefine(EqExpr);
parserDefine(LtExpr);
parserDefine(LeExpr);
parserDefine(GtExpr);
+parserDefine(GeExpr);
diff --git a/src/nodes/expr/ge_expr.h b/src/nodes/expr/ge_expr.h
new file mode 100644
index 0000000..764f093
--- /dev/null
+++ b/src/nodes/expr/ge_expr.h
@@ -0,0 +1,35 @@
+/*
+ * Copyright (C) 2015 Andrei Karas
+ *
+ * This file is part of AstDumper.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef NODES_EXPR_GEEXPRNODE_H
+#define NODES_EXPR_GEEXPRNODE_H
+
+#include "nodes/base/expr.h"
+
+#include <string>
+
+struct GeExprNode : public ExprNode
+{
+ GeExprNode() :
+ ExprNode()
+ {
+ }
+};
+
+#endif // NODES_EXPR_GEEXPRNODE_H
diff --git a/src/parsers/expr/ge_expr.cpp b/src/parsers/expr/ge_expr.cpp
new file mode 100644
index 0000000..d0b82d7
--- /dev/null
+++ b/src/parsers/expr/ge_expr.cpp
@@ -0,0 +1,39 @@
+/*
+ * Copyright (C) 2015 Andrei Karas
+ *
+ * This file is part of AstDumper.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#include "includes/parserincludes.h"
+
+parserDefine(GeExpr);
+
+#include "parsers/base/expr.h"
+
+#include "nodes/expr/ge_expr.h"
+
+namespace Generic
+{
+
+void parseGeExprNode(GeExprNode *node)
+{
+ fillType(node);
+ Log::log(node);
+
+ fillExprOperands(node);
+}
+
+}