diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-06-08 02:00:13 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-06-08 02:00:13 +0300 |
commit | 9888396cfc4a731dbe61a1c2b4dd6ad8584ee9a8 (patch) | |
tree | 664e07b8e3db4cbd131d4fd9fcae941852f29f4c /src/nodes | |
parent | f294d00453f3c66b283ea169da78b144d0d0b9dd (diff) | |
download | paranucker-9888396cfc4a731dbe61a1c2b4dd6ad8584ee9a8.tar.gz paranucker-9888396cfc4a731dbe61a1c2b4dd6ad8584ee9a8.tar.bz2 paranucker-9888396cfc4a731dbe61a1c2b4dd6ad8584ee9a8.tar.xz paranucker-9888396cfc4a731dbe61a1c2b4dd6ad8584ee9a8.zip |
Add parsing node WHILE_STMT.
Diffstat (limited to 'src/nodes')
-rw-r--r-- | src/nodes/stmt/while_stmt.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/src/nodes/stmt/while_stmt.h b/src/nodes/stmt/while_stmt.h new file mode 100644 index 0000000..e86069a --- /dev/null +++ b/src/nodes/stmt/while_stmt.h @@ -0,0 +1,40 @@ +/* + * 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_STMT_WHILESTMTNODE_H +#define NODES_STMT_WHILESTMTNODE_H + +#include "nodes/base/stmt.h" + +#include <string> + +struct WhileStmtNode : public StmtNode +{ + WhileStmtNode() : + StmtNode(), + condition(nullptr), + body(nullptr) + { + } + + Node *condition; + Node *body; +}; + +#endif // NODES_STMT_WHILESTMTNODE_H |