]> git.bts.cx Git - sun.git/blob - runtime/src/sun/tree/node_type.c
1dacf19a1dcd013427c498ec10a7fba7a5cedde9
[sun.git] / runtime / src / sun / tree / node_type.c
1 #include "node_type.h"
2
3 const char *sltNodeTypeToString(SLTNodeType nodeType) {
4 switch(nodeType) {
5 default:
6 case SLTNodeTypeUnknown:
7 return "<unknown>";
8
9 case SLTNodeTypeIdentifier:
10 return "Identifier";
11
12 case SLTNodeTypeBoolean:
13 return "Boolean";
14
15 case SLTNodeTypeInteger:
16 return "Integer";
17
18 case SLTNodeTypeRawInteger:
19 return "Integer (Raw)";
20
21 case SLTNodeTypeFloat:
22 return "Float";
23
24 case SLTNodeTypeString:
25 return "String";
26
27 case SLTNodeTypeCompound:
28 return "Compound";
29
30 case SLTNodeTypeArgument:
31 return "Argument";
32
33 case SLTNodeTypeArrayAccess:
34 return "ArrayAccess";
35
36 case SLTNodeTypeTypeAccess:
37 return "TypeAccess";
38
39 case SLTNodeTypeFunctionCall:
40 return "FunctionCall";
41
42 case SLTNodeTypeUnaryOperation:
43 return "UnaryOperation";
44
45 case SLTNodeTypeBinaryOperation:
46 return "BinaryOperation";
47
48 case SLTNodeTypeOperator:
49 return "Operator";
50
51 case SLTNodeTypeAssignment:
52 return "Assignment";
53
54 case SLTNodeTypeReturn:
55 return "Return";
56
57 case SLTNodeTypeSleep:
58 return "Sleep";
59
60 case SLTNodeTypeBreak:
61 return "Break";
62
63 //case SLTNodeTypeIteration:
64 case SLTNodeTypeForIteration:
65 case SLTNodeTypeDoIteration:
66 case SLTNodeTypeWhileIteration:
67 return "Iteration";
68
69 case SLTNodeTypeSelection:
70 return "Selection";
71
72 case SLTNodeTypeStatementBlock:
73 return "StatementBlock";
74
75 case SLTNodeTypeVariableDefinition:
76 return "VariableDefinition";
77
78 case SLTNodeTypeTypeDefinition:
79 return "TypeDefinition";
80
81 case SLTNodeTypeTypeMemberDefinition:
82 return "TypeMemberDefinition";
83
84 case SLTNodeTypeFunctionDefinition:
85 return "FunctionDefinition";
86
87 case SLTNodeTypeFunctionParameterDefinition:
88 return "FunctionParameterDefinition";
89
90 case SLTNodeTypeModule:
91 return "Module";
92
93 case SLTNodeTypeSequence:
94 return "Sequence";
95 }
96 }