summaryrefslogtreecommitdiff
path: root/src/parsers/expr
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-17 01:12:21 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-17 01:14:50 +0300
commit2cf7f8659f05c283e8111d93ed35c2c57ed9be36 (patch)
treec90e49e88e964b9d871e91eb2172a2ef2738f69a /src/parsers/expr
parentdeb824c22be221e9e7ffe4298ae8439649cc41d2 (diff)
downloadparanucker-2cf7f8659f05c283e8111d93ed35c2c57ed9be36.tar.gz
paranucker-2cf7f8659f05c283e8111d93ed35c2c57ed9be36.tar.bz2
paranucker-2cf7f8659f05c283e8111d93ed35c2c57ed9be36.tar.xz
paranucker-2cf7f8659f05c283e8111d93ed35c2c57ed9be36.zip
Add parsing node TRUTH_OR_EXPR.
Diffstat (limited to 'src/parsers/expr')
-rw-r--r--src/parsers/expr/truthor_expr.cpp40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/parsers/expr/truthor_expr.cpp b/src/parsers/expr/truthor_expr.cpp
new file mode 100644
index 0000000..2964a06
--- /dev/null
+++ b/src/parsers/expr/truthor_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(TruthOrExpr);
+
+#include "parsers/base/expr.h"
+
+#include "nodes/expr/truthor_expr.h"
+
+namespace Generic
+{
+
+void parseTruthOrExprNode(TruthOrExprNode *node)
+{
+ fillType(node);
+ fillExprLocation(node);
+ Log::dump(node);
+
+ fillExprOperands(node);
+}
+
+}