diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-06-08 14:58:33 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-06-08 14:58:33 +0300 |
commit | 6774a295aa3b2d3ceb63b503e694f0ffa9b806a5 (patch) | |
tree | 31c701e628397fd4a187db0aede42f029a49d656 | |
parent | 35ddc00e74c82d27ac6eaaceee2169fa252f215d (diff) | |
download | paranucker-6774a295aa3b2d3ceb63b503e694f0ffa9b806a5.tar.gz paranucker-6774a295aa3b2d3ceb63b503e694f0ffa9b806a5.tar.bz2 paranucker-6774a295aa3b2d3ceb63b503e694f0ffa9b806a5.tar.xz paranucker-6774a295aa3b2d3ceb63b503e694f0ffa9b806a5.zip |
Add parsing node NE_EXPR.
-rw-r--r-- | err.txt | 3 | ||||
-rw-r--r-- | src/Makefile.files | 4 | ||||
-rw-r--r-- | src/includes/nodeincludes.h | 1 | ||||
-rw-r--r-- | src/includes/nodeshandling.inc | 1 | ||||
-rw-r--r-- | src/includes/parserdefines.inc | 1 | ||||
-rw-r--r-- | src/nodes/expr/ne_expr.h | 35 | ||||
-rw-r--r-- | src/parsers/expr/ne_expr.cpp | 39 |
7 files changed, 83 insertions, 1 deletions
@@ -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); +} + +} |