diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-06-12 20:01:04 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-06-12 20:01:04 +0300 |
commit | 8f87b62956ce4cdc0a735d227ebc53746caa9575 (patch) | |
tree | 8d9d04feacf2f2463eb8befd626a9bc261064015 /src/parsers/type | |
parent | dc886f6b7dc5a247235e2d0ccb8e4b3fc75ca89c (diff) | |
download | paranucker-8f87b62956ce4cdc0a735d227ebc53746caa9575.tar.gz paranucker-8f87b62956ce4cdc0a735d227ebc53746caa9575.tar.bz2 paranucker-8f87b62956ce4cdc0a735d227ebc53746caa9575.tar.xz paranucker-8f87b62956ce4cdc0a735d227ebc53746caa9575.zip |
Add parsing node REAL_TYPE.
Diffstat (limited to 'src/parsers/type')
-rw-r--r-- | src/parsers/type/real_type.cpp | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/src/parsers/type/real_type.cpp b/src/parsers/type/real_type.cpp new file mode 100644 index 0000000..e721cd4 --- /dev/null +++ b/src/parsers/type/real_type.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(RealType); + +#include "parsers/base/type.h" + +#include "nodes/type/real_type.h" + +namespace Generic +{ + +void parseRealTypeNode(RealTypeNode *node) +{ + fillType(node); + Log::dump(node); + + setPrintField(node, TYPE_PRECISION, precisionBits); + + fillTypeName(node); + fillTypeAttributes(node); +} + +} |