Phasor 3.1.1
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
Public Attributes inherited from Phasor::AST::Node
size_t line = 0
size_t column = 0

Detailed Description

Struct Declaration Node.

Definition at line 670 of file AST.hpp.

Constructor & Destructor Documentation

◆ StructDecl()

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

Definition at line 675 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 679 of file AST.hpp.

Member Data Documentation

◆ fields

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

Definition at line 673 of file AST.hpp.

◆ name

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

Definition at line 672 of file AST.hpp.


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