summaryrefslogtreecommitdiff
path: root/src/parsers
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-08 15:08:03 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-08 15:08:03 +0300
commitb9e7b30f30fbb0237887d0d962b147dc9a0c74c2 (patch)
treee19c095f08e83bc6132338f01b171990c76b503c /src/parsers
parent6774a295aa3b2d3ceb63b503e694f0ffa9b806a5 (diff)
downloadparanucker-b9e7b30f30fbb0237887d0d962b147dc9a0c74c2.tar.gz
paranucker-b9e7b30f30fbb0237887d0d962b147dc9a0c74c2.tar.bz2
paranucker-b9e7b30f30fbb0237887d0d962b147dc9a0c74c2.tar.xz
paranucker-b9e7b30f30fbb0237887d0d962b147dc9a0c74c2.zip
Add parsing node INDIRECT_REF.
Diffstat (limited to 'src/parsers')
-rw-r--r--src/parsers/expr/indirect_ref.cpp39
1 files changed, 39 insertions, 0 deletions
diff --git a/src/parsers/expr/indirect_ref.cpp b/src/parsers/expr/indirect_ref.cpp
new file mode 100644
index 0000000..d712a08
--- /dev/null
+++ b/src/parsers/expr/indirect_ref.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(IndirectRef);
+
+#include "parsers/base/expr.h"
+
+#include "nodes/expr/indirect_ref.h"
+
+namespace Generic
+{
+
+void parseIndirectRefNode(IndirectRefNode *node)
+{
+ fillType(node);
+ Log::log(node);
+
+ fillExprOperands(node);
+}
+
+}