Phasor 3.1.1
Stack VM based Programming Language
Loading...
Searching...
No Matches
Phasor::AST::ForStmt Struct Reference

For Statement Node. More...

#include <AST.hpp>

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

Public Member Functions

 ForStmt (std::unique_ptr< Statement > init, std::unique_ptr< Expression > cond, std::unique_ptr< Expression > incr, std::unique_ptr< Statement > b)
void print (int indent=0) const override
Public Member Functions inherited from Phasor::AST::Node
virtual ~Node ()=default

Public Attributes

std::unique_ptr< Statementinitializer
std::unique_ptr< Expressioncondition
std::unique_ptr< Expressionincrement
std::unique_ptr< Statementbody
Public Attributes inherited from Phasor::AST::Node
size_t line = 0
size_t column = 0

Detailed Description

For Statement Node.

Definition at line 582 of file AST.hpp.

Constructor & Destructor Documentation

◆ ForStmt()

Phasor::AST::ForStmt::ForStmt ( std::unique_ptr< Statement > init,
std::unique_ptr< Expression > cond,
std::unique_ptr< Expression > incr,
std::unique_ptr< Statement > b )
inline

Definition at line 589 of file AST.hpp.

Member Function Documentation

◆ print()

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

Implements Phasor::AST::Node.

Definition at line 595 of file AST.hpp.

Member Data Documentation

◆ body

std::unique_ptr<Statement> Phasor::AST::ForStmt::body

Definition at line 587 of file AST.hpp.

◆ condition

std::unique_ptr<Expression> Phasor::AST::ForStmt::condition

Definition at line 585 of file AST.hpp.

◆ increment

std::unique_ptr<Expression> Phasor::AST::ForStmt::increment

Definition at line 586 of file AST.hpp.

◆ initializer

std::unique_ptr<Statement> Phasor::AST::ForStmt::initializer

Definition at line 584 of file AST.hpp.


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