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

Array Literal Expression Node. More...

#include <AST.hpp>

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

Public Member Functions

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

Public Attributes

std::vector< std::unique_ptr< Expression > > elements

Detailed Description

Array Literal Expression Node.

Definition at line 304 of file AST.hpp.

Constructor & Destructor Documentation

◆ ArrayLiteralExpr()

Phasor::AST::ArrayLiteralExpr::ArrayLiteralExpr ( std::vector< std::unique_ptr< Expression > > elems)
inline

Definition at line 307 of file AST.hpp.

Member Function Documentation

◆ print()

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

Implements Phasor::AST::Node.

Definition at line 308 of file AST.hpp.

Member Data Documentation

◆ elements

std::vector<std::unique_ptr<Expression> > Phasor::AST::ArrayLiteralExpr::elements

Definition at line 306 of file AST.hpp.


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