summaryrefslogtreecommitdiff
path: root/src/parsers/expr
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-06 23:48:46 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-06 23:48:46 +0300
commit602f18f834797aeebdf76fb3fd92af0cb04cbe1d (patch)
treef41177aac63e54661acb96b99f1c5f28bae58719 /src/parsers/expr
parent7669b85688ca5240b65adff8127c1c28a4c93053 (diff)
downloadparanucker-602f18f834797aeebdf76fb3fd92af0cb04cbe1d.tar.gz
paranucker-602f18f834797aeebdf76fb3fd92af0cb04cbe1d.tar.bz2
paranucker-602f18f834797aeebdf76fb3fd92af0cb04cbe1d.tar.xz
paranucker-602f18f834797aeebdf76fb3fd92af0cb04cbe1d.zip
Add parsing INIT_EXPR node type.
Diffstat (limited to 'src/parsers/expr')
-rw-r--r--src/parsers/expr/init_expr.cpp42
1 files changed, 42 insertions, 0 deletions
diff --git a/src/parsers/expr/init_expr.cpp b/src/parsers/expr/init_expr.cpp
new file mode 100644
index 0000000..9e4f303
--- /dev/null
+++ b/src/parsers/expr/init_expr.cpp
@@ -0,0 +1,42 @@
+/*
+ * 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(InitExpr);
+
+#include "parsers/base/expr.h"
+
+#include "nodes/expr/init_expr.h"
+
+namespace Generic
+{
+
+void parseInitExprNode(InitExprNode *node)
+{
+ fillType(node);
+ Log::log(node);
+
+ fillExprOperands(node);
+
+ // args 0 - left side
+ // args 1 - right side
+}
+
+}