Phasor 2.2.0
Stack VM based Programming Language
Loading...
Searching...
No Matches
Phasor::AST::ExpressionStmt Struct Reference

Expression Statement Node. More...

#include <AST.hpp>

Inheritance diagram for Phasor::AST::ExpressionStmt:
[legend]
Collaboration diagram for Phasor::AST::ExpressionStmt:
[legend]

Public Member Functions

 ExpressionStmt (std::unique_ptr< Expression > expr)
void print (int indent=0) const override
Public Member Functions inherited from Phasor::AST::Node
virtual ~Node ()=default

Public Attributes

std::unique_ptr< Expressionexpression

Detailed Description

Expression Statement Node.

Definition at line 390 of file AST.hpp.

Constructor & Destructor Documentation

◆ ExpressionStmt()

Phasor::AST::ExpressionStmt::ExpressionStmt ( std::unique_ptr< Expression > expr)
inline

Definition at line 393 of file AST.hpp.

Member Function Documentation

◆ print()

void Phasor::AST::ExpressionStmt::print ( int indent = 0) const
inlineoverridevirtual

Implements Phasor::AST::Node.

Definition at line 396 of file AST.hpp.

Member Data Documentation

◆ expression

std::unique_ptr<Expression> Phasor::AST::ExpressionStmt::expression

Definition at line 392 of file AST.hpp.


The documentation for this struct was generated from the following file: