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

While Statement Node. More...

#include <AST.hpp>

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

Public Member Functions

 WhileStmt (std::unique_ptr< Expression > cond, 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< Expressioncondition
std::unique_ptr< Statementbody

Detailed Description

While Statement Node.

Definition at line 519 of file AST.hpp.

Constructor & Destructor Documentation

◆ WhileStmt()

Phasor::AST::WhileStmt::WhileStmt ( std::unique_ptr< Expression > cond,
std::unique_ptr< Statement > b )
inline

Definition at line 524 of file AST.hpp.

Member Function Documentation

◆ print()

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

Implements Phasor::AST::Node.

Definition at line 529 of file AST.hpp.

Member Data Documentation

◆ body

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

Definition at line 522 of file AST.hpp.

◆ condition

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

Definition at line 521 of file AST.hpp.


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