nk 1.0.0
C++ Numerical Computing Runtime
Loading...
Searching...
No Matches
nk::ASTNode Struct Reference

Public Member Functions

 ASTNode (NodeType t)

Public Attributes

NodeType type
int line = 0
int col = 0
int endLine = 0
int endCol = 0
std::string strValue
double numValue = 0
bool boolValue = false
bool suppressOutput = false
std::vector< ASTNodePtr > children
std::vector< std::string > paramNames
std::vector< std::string > returnNames
std::vector< std::string > classAttrs
std::vector< ASTNodePtr > lhsTargets
std::vector< std::pair< ASTNodePtr, ASTNodePtr > > branches
ASTNodePtr elseBranch
const void * cachedOp = nullptr
int8_t cachedBuiltinId = 0
const void * cachedUserFunc = nullptr

Detailed Description

Definition at line 65 of file ast.hpp.

Constructor & Destructor Documentation

◆ ASTNode() [1/2]

nk::ASTNode::ASTNode ( )
inline

Definition at line 110 of file ast.hpp.

◆ ASTNode() [2/2]

nk::ASTNode::ASTNode ( NodeType t)
inlineexplicit

Definition at line 113 of file ast.hpp.

Member Data Documentation

◆ boolValue

bool nk::ASTNode::boolValue = false

Definition at line 81 of file ast.hpp.

◆ branches

std::vector<std::pair<ASTNodePtr, ASTNodePtr> > nk::ASTNode::branches

Definition at line 100 of file ast.hpp.

◆ cachedBuiltinId

int8_t nk::ASTNode::cachedBuiltinId = 0
mutable

Definition at line 106 of file ast.hpp.

◆ cachedOp

const void* nk::ASTNode::cachedOp = nullptr
mutable

Definition at line 104 of file ast.hpp.

◆ cachedUserFunc

const void* nk::ASTNode::cachedUserFunc = nullptr
mutable

Definition at line 108 of file ast.hpp.

◆ children

std::vector<ASTNodePtr> nk::ASTNode::children

Definition at line 84 of file ast.hpp.

◆ classAttrs

std::vector<std::string> nk::ASTNode::classAttrs

Definition at line 90 of file ast.hpp.

◆ col

int nk::ASTNode::col = 0

Definition at line 69 of file ast.hpp.

◆ elseBranch

ASTNodePtr nk::ASTNode::elseBranch

Definition at line 101 of file ast.hpp.

◆ endCol

int nk::ASTNode::endCol = 0

Definition at line 77 of file ast.hpp.

◆ endLine

int nk::ASTNode::endLine = 0

Definition at line 70 of file ast.hpp.

◆ lhsTargets

std::vector<ASTNodePtr> nk::ASTNode::lhsTargets

Definition at line 98 of file ast.hpp.

◆ line

int nk::ASTNode::line = 0

Definition at line 68 of file ast.hpp.

◆ numValue

double nk::ASTNode::numValue = 0

Definition at line 80 of file ast.hpp.

◆ paramNames

std::vector<std::string> nk::ASTNode::paramNames

Definition at line 85 of file ast.hpp.

◆ returnNames

std::vector<std::string> nk::ASTNode::returnNames

Definition at line 86 of file ast.hpp.

◆ strValue

std::string nk::ASTNode::strValue

Definition at line 79 of file ast.hpp.

◆ suppressOutput

bool nk::ASTNode::suppressOutput = false

Definition at line 82 of file ast.hpp.

◆ type

NodeType nk::ASTNode::type

Definition at line 67 of file ast.hpp.


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