the different nodetypes used in the ast
Namespace: NSS.Blast.Compiler
Assembly: BLAST (in BLAST.dll) Version: 1.0.0
C#
public enum nodetype
VB
Public Enumeration nodetype
C++
public enum class nodetype
F#
type nodetype
Member name | Value | Description | |
---|---|---|---|
none | 0 | nodetype is not set | |
root | 1 | this is the root node | |
function | 2 | this node represents a function | |
assignment | 3 | this node represents an assignment to identifier | |
parameter | 4 | node represents a parameter to a function or sequence with identifier name/value | |
index | 5 | BS2 parameter indexer, .[] | |
operation | 6 | node represents an operation: +-/ etc. | |
yield | 7 | yield operation, must be in root | |
compound | 8 | represents a compound: ( () ) | |
ifthenelse | 9 | the root of an if then else structure | |
ifthen | 10 | the ifthen clausule | |
ifelse | 11 | the ifelse clausule | |
condition | 12 | a condition, either in if statements or while/for loops | |
whileloop | 13 | the root of a while loop | |
whilecompound | 14 | the while loop body, handled as a compound | |
switchnode | 15 | the switch statement root node, transformed into ifthenelse statements during compilation | |
switchcase | 16 | a switch case | |
switchdefault | 17 | the default case | |
forloop | 18 | the root of a for loop | |
jump_to | 19 | a jump instruction inserted by the compiler that jumps to a given label in the ast | |
label | 20 | a label (a jump target) inserted by the compiler | |
inline_function | 21 | an inline function defined in script |