3 const char *sltNodeTypeToString(SLTNodeType nodeType
) {
6 case SLTNodeTypeUnknown
:
9 case SLTNodeTypeIdentifier
:
12 case SLTNodeTypeBoolean
:
15 case SLTNodeTypeInteger
:
18 case SLTNodeTypeRawInteger
:
19 return "Integer (Raw)";
21 case SLTNodeTypeFloat
:
24 case SLTNodeTypeString
:
27 case SLTNodeTypeCompound
:
30 case SLTNodeTypeArgument
:
33 case SLTNodeTypeArrayAccess
:
36 case SLTNodeTypeTypeAccess
:
39 case SLTNodeTypeFunctionCall
:
40 return "FunctionCall";
42 case SLTNodeTypeUnaryOperation
:
43 return "UnaryOperation";
45 case SLTNodeTypeBinaryOperation
:
46 return "BinaryOperation";
48 case SLTNodeTypeOperator
:
51 case SLTNodeTypeAssignment
:
54 case SLTNodeTypeReturn
:
57 case SLTNodeTypeSleep
:
60 case SLTNodeTypeBreak
:
63 //case SLTNodeTypeIteration:
64 case SLTNodeTypeForIteration
:
65 case SLTNodeTypeDoIteration
:
66 case SLTNodeTypeWhileIteration
:
69 case SLTNodeTypeSelection
:
72 case SLTNodeTypeStatementBlock
:
73 return "StatementBlock";
75 case SLTNodeTypeVariableDefinition
:
76 return "VariableDefinition";
78 case SLTNodeTypeTypeDefinition
:
79 return "TypeDefinition";
81 case SLTNodeTypeTypeMemberDefinition
:
82 return "TypeMemberDefinition";
84 case SLTNodeTypeFunctionDefinition
:
85 return "FunctionDefinition";
87 case SLTNodeTypeFunctionParameterDefinition
:
88 return "FunctionParameterDefinition";
90 case SLTNodeTypeModule
:
93 case SLTNodeTypeSequence
: