summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--err.txt3
-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/ne_expr.h35
-rw-r--r--src/parsers/expr/ne_expr.cpp39
7 files changed, 83 insertions, 1 deletions
diff --git a/err.txt b/err.txt
new file mode 100644
index 0000000..16dc1f6
--- /dev/null
+++ b/err.txt
@@ -0,0 +1,3 @@
+mkdir: невозможно создать каталог «build»: Файл существует
+mkdir: невозможно создать каталог «m4»: Файл существует
+ar: `u' modifier ignored since `D' is the default (see `U')
diff --git a/src/Makefile.files b/src/Makefile.files
index df06c6a..f05d44e 100644
--- a/src/Makefile.files
+++ b/src/Makefile.files
@@ -92,4 +92,6 @@ SRC = nodes/base/cst.h \
nodes/expr/gt_expr.h \
parsers/expr/gt_expr.cpp \
nodes/expr/ge_expr.h \
- parsers/expr/ge_expr.cpp \ No newline at end of file
+ parsers/expr/ge_expr.cpp \
+ nodes/expr/ne_expr.h \
+ parsers/expr/ne_expr.cpp \ No newline at end of file
diff --git a/src/includes/nodeincludes.h b/src/includes/nodeincludes.h
index e98914c..cac0c29 100644
--- a/src/includes/nodeincludes.h
+++ b/src/includes/nodeincludes.h
@@ -33,3 +33,4 @@
#include "nodes/expr/le_expr.h"
#include "nodes/expr/gt_expr.h"
#include "nodes/expr/ge_expr.h"
+#include "nodes/expr/ne_expr.h"
diff --git a/src/includes/nodeshandling.inc b/src/includes/nodeshandling.inc
index 11ccbc9..4e98182 100644
--- a/src/includes/nodeshandling.inc
+++ b/src/includes/nodeshandling.inc
@@ -32,3 +32,4 @@ handleNodeType(LT_EXPR, LtExpr)
handleNodeType(LE_EXPR, LeExpr)
handleNodeType(GT_EXPR, GtExpr)
handleNodeType(GE_EXPR, GeExpr)
+handleNodeType(NE_EXPR, NeExpr)
diff --git a/src/includes/parserdefines.inc b/src/includes/parserdefines.inc
index 1524bee..4d817c1 100644
--- a/src/includes/parserdefines.inc
+++ b/src/includes/parserdefines.inc
@@ -32,3 +32,4 @@ parserDefine(LtExpr);
parserDefine(LeExpr);
parserDefine(GtExpr);
parserDefine(GeExpr);
+parserDefine(NeExpr);
diff --git a/src/nodes/expr/ne_expr.h b/src/nodes/expr/ne_expr.h
new file mode 100644
index 0000000..6f168f8
--- /dev/null
+++ b/src/nodes/expr/ne_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_NEEXPRNODE_H
+#define NODES_EXPR_NEEXPRNODE_H
+
+#include "nodes/base/expr.h"
+
+#include <string>
+
+struct NeExprNode : public ExprNode
+{
+ NeExprNode() :
+ ExprNode()
+ {
+ }
+};
+
+#endif // NODES_EXPR_NEEXPRNODE_H
diff --git a/src/parsers/expr/ne_expr.cpp b/src/parsers/expr/ne_expr.cpp
new file mode 100644
index 0000000..a0ba9ba
--- /dev/null
+++ b/src/parsers/expr/ne_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(NeExpr);
+
+#include "parsers/base/expr.h"
+
+#include "nodes/expr/ne_expr.h"
+
+namespace Generic
+{
+
+void parseNeExprNode(NeExprNode *node)
+{
+ fillType(node);
+ Log::log(node);
+
+ fillExprOperands(node);
+}
+
+}