diff options
Diffstat (limited to 'src')
-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/le_expr.h | 35 | ||||
-rw-r--r-- | src/parsers/expr/le_expr.cpp | 39 |
6 files changed, 80 insertions, 1 deletions
diff --git a/src/Makefile.files b/src/Makefile.files index 8f915fc..31f822b 100644 --- a/src/Makefile.files +++ b/src/Makefile.files @@ -86,4 +86,6 @@ SRC = nodes/base/cst.h \ nodes/expr/eq_expr.h \ parsers/expr/eq_expr.cpp \ nodes/expr/lt_expr.h \ - parsers/expr/lt_expr.cpp
\ No newline at end of file + parsers/expr/lt_expr.cpp \ + nodes/expr/le_expr.h \ + parsers/expr/le_expr.cpp
\ No newline at end of file diff --git a/src/includes/nodeincludes.h b/src/includes/nodeincludes.h index 64969f2..c7b4a86 100644 --- a/src/includes/nodeincludes.h +++ b/src/includes/nodeincludes.h @@ -30,3 +30,4 @@ #include "nodes/expr/addr_expr.h" #include "nodes/expr/eq_expr.h" #include "nodes/expr/lt_expr.h" +#include "nodes/expr/le_expr.h" diff --git a/src/includes/nodeshandling.inc b/src/includes/nodeshandling.inc index a8b86b1..f45b39e 100644 --- a/src/includes/nodeshandling.inc +++ b/src/includes/nodeshandling.inc @@ -29,3 +29,4 @@ handleNodeType(CALL_EXPR, CallExpr) handleNodeType(ADDR_EXPR, AddrExpr) handleNodeType(EQ_EXPR, EqExpr) handleNodeType(LT_EXPR, LtExpr) +handleNodeType(LE_EXPR, LeExpr) diff --git a/src/includes/parserdefines.inc b/src/includes/parserdefines.inc index 362588f..5b15051 100644 --- a/src/includes/parserdefines.inc +++ b/src/includes/parserdefines.inc @@ -29,3 +29,4 @@ parserDefine(CallExpr); parserDefine(AddrExpr); parserDefine(EqExpr); parserDefine(LtExpr); +parserDefine(LeExpr); diff --git a/src/nodes/expr/le_expr.h b/src/nodes/expr/le_expr.h new file mode 100644 index 0000000..eb324a9 --- /dev/null +++ b/src/nodes/expr/le_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_LEEXPRNODE_H +#define NODES_EXPR_LEEXPRNODE_H + +#include "nodes/base/expr.h" + +#include <string> + +struct LeExprNode : public ExprNode +{ + LeExprNode() : + ExprNode() + { + } +}; + +#endif // NODES_EXPR_LEEXPRNODE_H diff --git a/src/parsers/expr/le_expr.cpp b/src/parsers/expr/le_expr.cpp new file mode 100644 index 0000000..0114125 --- /dev/null +++ b/src/parsers/expr/le_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(LeExpr); + +#include "parsers/base/expr.h" + +#include "nodes/expr/le_expr.h" + +namespace Generic +{ + +void parseLeExprNode(LeExprNode *node) +{ + fillType(node); + Log::log(node); + + fillExprOperands(node); +} + +} |