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

Postfix Expression Node. More...

#include <AST.hpp>

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

Public Member Functions

 PostfixExpr (PostfixOp o, 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

PostfixOp op
std::unique_ptr< Expressionoperand

Detailed Description

Postfix Expression Node.

Definition at line 164 of file AST.hpp.

Constructor & Destructor Documentation

◆ PostfixExpr()

Phasor::AST::PostfixExpr::PostfixExpr ( PostfixOp o,
std::unique_ptr< Expression > expr )
inline

Definition at line 169 of file AST.hpp.

Member Function Documentation

◆ print()

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

Implements Phasor::AST::Node.

Definition at line 173 of file AST.hpp.

Member Data Documentation

◆ op

PostfixOp Phasor::AST::PostfixExpr::op

Definition at line 166 of file AST.hpp.

◆ operand

std::unique_ptr<Expression> Phasor::AST::PostfixExpr::operand

Definition at line 167 of file AST.hpp.


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