|
Gyoji Compiler
|
This represents a statement in a function or scope that computes an expression. More...
#include <tree.hpp>


Public Member Functions | |
| ~StatementExpression () | |
Public Member Functions inherited from Gyoji::frontend::ast::SyntaxNode | |
| SyntaxNode (Gyoji::context::TokenID _type, specific_type_t _data, const Gyoji::context::SourceReference &_source_ref) | |
| const std::vector< std::reference_wrapper< const SyntaxNode > > & | get_children () const |
| const Gyoji::context::TokenID & | get_type () const |
| template<class T > | |
| bool | has_data () const |
| template<class T > | |
| const T & | get_data () const |
| const SyntaxNode & | get_syntax_node () const |
| const Gyoji::context::SourceReference & | get_source_ref () const |
This represents a statement in a function or scope that computes an expression.
Statements may contain expressions to be evaluated. For example, a statement may consist of an assignment or a call to a function as shown in this example.
void foo()
{
u32 p = 4;
u32 q = 16;
u32 x;
x = p + q; // Assignment expression with addition expression.
bar(x); // Function-call expression.
}
| StatementExpression::~StatementExpression | ( | ) |
Destructor, nothing special.