Gyoji Compiler
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Gyoji::frontend::tree::StatementExpression Class Reference

This represents a statement in a function or scope that computes an expression. More...

#include <tree.hpp>

Inheritance diagram for Gyoji::frontend::tree::StatementExpression:
Inheritance graph
[legend]
Collaboration diagram for Gyoji::frontend::tree::StatementExpression:
Collaboration graph
[legend]

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 SyntaxNodeget_syntax_node () const
 
const Gyoji::context::SourceReferenceget_source_ref () const
 

Detailed Description

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.
}

Constructor & Destructor Documentation

◆ ~StatementExpression()

StatementExpression::~StatementExpression ( )

Destructor, nothing special.


The documentation for this class was generated from the following files: