summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-13 20:37:49 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-13 20:37:49 +0300
commit223634cba06d72aa62f886506a2e907d1594a9fb (patch)
tree4fdcb709e5a21b002de1e151017fcbdc8a9694cc
parentb75b5c111c562fd5e6ded579de683753c4a5ca18 (diff)
downloadparanucker-223634cba06d72aa62f886506a2e907d1594a9fb.tar.gz
paranucker-223634cba06d72aa62f886506a2e907d1594a9fb.tar.bz2
paranucker-223634cba06d72aa62f886506a2e907d1594a9fb.tar.xz
paranucker-223634cba06d72aa62f886506a2e907d1594a9fb.zip
Add parsing node EXACT_DIV_EXPR.
-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/exactdiv_expr.h35
-rw-r--r--src/parsers/expr/exactdiv_expr.cpp40
6 files changed, 81 insertions, 1 deletions
diff --git a/src/Makefile.files b/src/Makefile.files
index 903232a..a522a6a 100644
--- a/src/Makefile.files
+++ b/src/Makefile.files
@@ -239,4 +239,6 @@ SRC = analysis/analysis.cpp \
nodes/decl/const_decl.h \
parsers/decl/const_decl.cpp \
nodes/decl/template_decl.h \
- parsers/decl/template_decl.cpp \ No newline at end of file
+ parsers/decl/template_decl.cpp \
+ nodes/expr/exactdiv_expr.h \
+ parsers/expr/exactdiv_expr.cpp \ No newline at end of file
diff --git a/src/includes/nodeincludes.h b/src/includes/nodeincludes.h
index 6f91892..f41b46b 100644
--- a/src/includes/nodeincludes.h
+++ b/src/includes/nodeincludes.h
@@ -99,3 +99,4 @@
#include "nodes/decl/using_decl.h"
#include "nodes/decl/const_decl.h"
#include "nodes/decl/template_decl.h"
+#include "nodes/expr/exactdiv_expr.h"
diff --git a/src/includes/nodeshandling.inc b/src/includes/nodeshandling.inc
index 7591aaf..a5e50d9 100644
--- a/src/includes/nodeshandling.inc
+++ b/src/includes/nodeshandling.inc
@@ -98,3 +98,4 @@ handleNodeType(LABEL_DECL, LabelDecl)
handleNodeType(USING_DECL, UsingDecl)
handleNodeType(CONST_DECL, ConstDecl)
handleNodeType(TEMPLATE_DECL, TemplateDecl)
+handleNodeType(EXACT_DIV_EXPR, ExactDivExpr)
diff --git a/src/includes/parserdefines.inc b/src/includes/parserdefines.inc
index 454f9a4..ef52fcd 100644
--- a/src/includes/parserdefines.inc
+++ b/src/includes/parserdefines.inc
@@ -98,3 +98,4 @@ parserDefine(LabelDecl);
parserDefine(UsingDecl);
parserDefine(ConstDecl);
parserDefine(TemplateDecl);
+parserDefine(ExactDivExpr);
diff --git a/src/nodes/expr/exactdiv_expr.h b/src/nodes/expr/exactdiv_expr.h
new file mode 100644
index 0000000..3b5ac5a
--- /dev/null
+++ b/src/nodes/expr/exactdiv_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_EXACTDIVEXPRNODE_H
+#define NODES_EXPR_EXACTDIVEXPRNODE_H
+
+#include "nodes/base/expr.h"
+
+#include <string>
+
+struct ExactDivExprNode : public ExprNode
+{
+ ExactDivExprNode() :
+ ExprNode()
+ {
+ }
+};
+
+#endif // NODES_EXPR_EXACTDIVEXPRNODE_H
diff --git a/src/parsers/expr/exactdiv_expr.cpp b/src/parsers/expr/exactdiv_expr.cpp
new file mode 100644
index 0000000..57bc2bf
--- /dev/null
+++ b/src/parsers/expr/exactdiv_expr.cpp
@@ -0,0 +1,40 @@
+/*
+ * 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(ExactDivExpr);
+
+#include "parsers/base/expr.h"
+
+#include "nodes/expr/exactdiv_expr.h"
+
+namespace Generic
+{
+
+void parseExactDivExprNode(ExactDivExprNode *node)
+{
+ fillType(node);
+ fillExprLocation(node);
+ Log::dump(node);
+
+ fillExprOperands(node);
+}
+
+}