Phasor 3.3.0
Stack VM based Programming Language
Loading...
Searching...
No Matches
Phasor::AST::TypeNode Struct Reference

Type Node. More...

#include <AST.hpp>

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

Public Member Functions

 TypeNode (std::string n, bool ptr=false, std::vector< int > dims={})
void print (int indent=0) const override
Public Member Functions inherited from Phasor::AST::Node
virtual ~Node ()=default

Public Attributes

std::string name
bool isPointer = false
std::vector< int > arrayDimensions
Public Attributes inherited from Phasor::AST::Node
size_t line = 0
size_t column = 0

Detailed Description

Type Node.

Definition at line 76 of file AST.hpp.

Constructor & Destructor Documentation

◆ TypeNode()

Phasor::AST::TypeNode::TypeNode ( std::string n,
bool ptr = false,
std::vector< int > dims = {} )
inline

Definition at line 82 of file AST.hpp.

Member Function Documentation

◆ print()

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

Implements Phasor::AST::Node.

Definition at line 86 of file AST.hpp.

Member Data Documentation

◆ arrayDimensions

std::vector<int> Phasor::AST::TypeNode::arrayDimensions

Definition at line 80 of file AST.hpp.

◆ isPointer

bool Phasor::AST::TypeNode::isPointer = false

Definition at line 79 of file AST.hpp.

◆ name

std::string Phasor::AST::TypeNode::name

Definition at line 78 of file AST.hpp.


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