summaryrefslogtreecommitdiff
path: root/src/nodes
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-13 22:49:13 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-13 22:49:13 +0300
commit49a697cb7d536f09bc3c8791eb6f1808e6e0a8d6 (patch)
treed1e3886dfb1ebeeb0aa19e1f8055c7da5883b866 /src/nodes
parent0f84327ef128f4990651d8385117a05e887ce29f (diff)
downloadparanucker-49a697cb7d536f09bc3c8791eb6f1808e6e0a8d6.tar.gz
paranucker-49a697cb7d536f09bc3c8791eb6f1808e6e0a8d6.tar.bz2
paranucker-49a697cb7d536f09bc3c8791eb6f1808e6e0a8d6.tar.xz
paranucker-49a697cb7d536f09bc3c8791eb6f1808e6e0a8d6.zip
Add parsing ENUMERAL_TYPE.
Diffstat (limited to 'src/nodes')
-rw-r--r--src/nodes/type/enumeral_type.h50
1 files changed, 50 insertions, 0 deletions
diff --git a/src/nodes/type/enumeral_type.h b/src/nodes/type/enumeral_type.h
new file mode 100644
index 0000000..ab57adb
--- /dev/null
+++ b/src/nodes/type/enumeral_type.h
@@ -0,0 +1,50 @@
+/*
+ * 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_TYPE_ENUMERALTYPENODE_H
+#define NODES_TYPE_ENUMERALTYPENODE_H
+
+#include "nodes/base/type.h"
+
+#include "nodes/cst/integer_cst.h"
+
+#include "nodes/list/tree_list.h"
+
+#include <string>
+
+struct EnumeralTypeNode : public TypeNode
+{
+ EnumeralTypeNode() :
+ TypeNode(),
+ minValue(nullptr),
+ maxValue(nullptr),
+ values(nullptr),
+ precisionBits(0),
+ isUnsigned(false)
+ {
+ }
+
+ IntegerCstNode *minValue;
+ IntegerCstNode *maxValue;
+ TreeListNode *values;
+ int precisionBits;
+ bool isUnsigned;
+};
+
+#endif // NODES_TYPE_ENUMERALTYPENODE_H