Skip to content

Latest commit

 

History

History
38 lines (25 loc) · 3.68 KB

e28d8f32-0117-cb7b-5d31-0a3d9a5d6817.md

File metadata and controls

38 lines (25 loc) · 3.68 KB

nodetype Enumeration

the different nodetypes used in the ast

Namespace: NSS.Blast.Compiler
Assembly: BLAST (in BLAST.dll) Version: 1.0.0

Syntax

C#

public enum nodetype

VB

Public Enumeration nodetype

C++

public enum class nodetype

F#

type nodetype

Members

 

Member nameValueDescription
none0nodetype is not set
root1this is the root node
function2this node represents a function
assignment3this node represents an assignment to identifier
parameter4node represents a parameter to a function or sequence with identifier name/value
index5BS2 parameter indexer, .[]
operation6node represents an operation: +-/ etc.
yield7yield operation, must be in root
compound8represents a compound: ( () )
ifthenelse9the root of an if then else structure
ifthen10the ifthen clausule
ifelse11the ifelse clausule
condition12a condition, either in if statements or while/for loops
whileloop13the root of a while loop
whilecompound14the while loop body, handled as a compound
switchnode15the switch statement root node, transformed into ifthenelse statements during compilation
switchcase16a switch case
switchdefault17the default case
forloop18the root of a for loop
jump_to19a jump instruction inserted by the compiler that jumps to a given label in the ast
label20a label (a jump target) inserted by the compiler
inline_function21an inline function defined in script

See Also

Reference

NSS.Blast.Compiler Namespace