summaryrefslogtreecommitdiff
path: root/src/nodes
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-13 22:30:53 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-13 22:30:53 +0300
commit0f84327ef128f4990651d8385117a05e887ce29f (patch)
treefb00a375609d81dc82841cda69c914e30ed5d450 /src/nodes
parent412938c6bebd07afbd592ff7a9d75be7110af7c7 (diff)
downloadparanucker-0f84327ef128f4990651d8385117a05e887ce29f.tar.gz
paranucker-0f84327ef128f4990651d8385117a05e887ce29f.tar.bz2
paranucker-0f84327ef128f4990651d8385117a05e887ce29f.tar.xz
paranucker-0f84327ef128f4990651d8385117a05e887ce29f.zip
Add parsing node HANDLER.
Diffstat (limited to 'src/nodes')
-rw-r--r--src/nodes/handler.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/src/nodes/handler.h b/src/nodes/handler.h
new file mode 100644
index 0000000..d512a4a
--- /dev/null
+++ b/src/nodes/handler.h
@@ -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/>.
+ */
+
+#ifndef NODES_HANDLERNODE_H
+#define NODES_HANDLERNODE_H
+
+#include "nodes/base/node.h"
+
+#include <string>
+
+struct HandlerNode : public Node
+{
+ HandlerNode() :
+ Node(),
+ body(nullptr),
+ parms(nullptr),
+ type(nullptr)
+ {
+ }
+
+ Node *body;
+ Node *parms;
+ Node *type;
+};
+
+#endif // NODES_HANDLERNODE_H