4
Copyright (c) 2019 МГТУ им. Н.Э. Баумана, кафедра ИУ-6, Михаил Фетисов,
6
https://bmstu.codes/lsx/simodo
9
#include "ScriptOperationCode.h"
11
namespace simodo::interpret
13
std::string getSblOperationCodeName(ScriptOperationCode op) noexcept
19
case ScriptOperationCode::None:
22
case ScriptOperationCode::PushConstant:
25
case ScriptOperationCode::PushVariable:
28
case ScriptOperationCode::ObjectElement:
29
str = "ObjectElement";
31
case ScriptOperationCode::FunctionCall:
34
case ScriptOperationCode::ProcedureCheck:
35
str = "ProcedureCheck";
37
case ScriptOperationCode::Print:
40
case ScriptOperationCode::Block:
43
case ScriptOperationCode::ArrayElement:
46
case ScriptOperationCode::Contract:
47
str = "ContractDefinition";
49
case ScriptOperationCode::Type:
50
str = "TypeDefinition";
52
case ScriptOperationCode::Announcement:
55
case ScriptOperationCode::Import:
58
case ScriptOperationCode::Declaration:
61
case ScriptOperationCode::ObjectStructure:
62
str = "RecordStructure";
64
case ScriptOperationCode::ArrayStructure:
65
str = "ArrayStructure";
67
case ScriptOperationCode::Initialize:
70
case ScriptOperationCode::Assignment:
73
case ScriptOperationCode::Plus:
76
case ScriptOperationCode::Minus:
79
case ScriptOperationCode::Or:
82
case ScriptOperationCode::And:
85
case ScriptOperationCode::Equal:
88
case ScriptOperationCode::NotEqual:
91
case ScriptOperationCode::Less:
94
case ScriptOperationCode::LessOrEqual:
97
case ScriptOperationCode::More:
100
case ScriptOperationCode::MoreOrEqual:
103
case ScriptOperationCode::Addition:
106
case ScriptOperationCode::Subtraction:
109
case ScriptOperationCode::Multiplication:
110
str = "Multiplication";
112
case ScriptOperationCode::Division:
115
case ScriptOperationCode::Modulo:
118
case ScriptOperationCode::Power:
121
case ScriptOperationCode::Ternary:
124
case ScriptOperationCode::If:
127
case ScriptOperationCode::MeasureUnit:
130
case ScriptOperationCode::MeasureRatio:
131
str = "MeasureRatio";
133
case ScriptOperationCode::AssignmentAddition:
134
str = "AssignmentAddition";
136
case ScriptOperationCode::AssignmentSubtraction:
137
str = "AssignmentSubtraction";
139
case ScriptOperationCode::AssignmentMultiplication:
140
str = "AssignmentMultiplication";
142
case ScriptOperationCode::AssignmentDivision:
143
str = "AssignmentDivision";
145
case ScriptOperationCode::AssignmentModulo:
146
str = "AssignmentModulo";
148
case ScriptOperationCode::FunctionDefinition:
149
str = "FunctionDefinition";
151
case ScriptOperationCode::FunctionDefinitionEnd:
152
str = "FunctionDefinitionEnd";
154
case ScriptOperationCode::Break:
157
case ScriptOperationCode::Continue:
160
case ScriptOperationCode::Return:
163
case ScriptOperationCode::For:
166
case ScriptOperationCode::While:
169
case ScriptOperationCode::DoWhile:
172
case ScriptOperationCode::Apply:
175
case ScriptOperationCode::Using: