Program node.
More...
#include <program.hpp>
◆ ProgramNode()
tcalc::ast::ProgramNode::ProgramNode |
( |
std::vector< NodePtr<> > |
statements | ) |
|
|
inlineexplicit |
Construct a new Program Node object with statements.
- Parameters
-
◆ push_statement()
TCALC_INLINE void tcalc::ast::ProgramNode::push_statement |
( |
NodePtr<> |
statement | ) |
|
|
inline |
Push a statement.
- Parameters
-
◆ statements() [1/2]
TCALC_INLINE auto & tcalc::ast::ProgramNode::statements |
( |
| ) |
const |
|
inlinenoexcept |
Get statements.
- Returns
- const std::vector<NodePtr<>>& Statements.
◆ statements() [2/2]
TCALC_INLINE auto & tcalc::ast::ProgramNode::statements |
( |
| ) |
|
|
inlinenoexcept |
Get statements.
- Returns
- std::vector<NodePtr<>>& Statements.
The documentation for this class was generated from the following file: