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

Struct Declaration Node. More...

#include <AST.hpp>

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

Public Member Functions

 StructDecl (std::string n, std::vector< StructField > f)
void print (int indent=0) const override
Public Member Functions inherited from Phasor::AST::Node
virtual ~Node ()=default

Public Attributes

std::string name
std::vector< StructFieldfields

Detailed Description

Struct Declaration Node.

Definition at line 626 of file AST.hpp.

Constructor & Destructor Documentation

◆ StructDecl()

Phasor::AST::StructDecl::StructDecl ( std::string n,
std::vector< StructField > f )
inline

Definition at line 631 of file AST.hpp.

Member Function Documentation

◆ print()

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

Implements Phasor::AST::Node.

Definition at line 635 of file AST.hpp.

Member Data Documentation

◆ fields

std::vector<StructField> Phasor::AST::StructDecl::fields

Definition at line 629 of file AST.hpp.

◆ name

std::string Phasor::AST::StructDecl::name

Definition at line 628 of file AST.hpp.


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