loom
1/*
2MIT License
3
4Copyright (c) 2019 МГТУ им. Н.Э. Баумана, кафедра ИУ-6, Михаил Фетисов,
5
6https://bmstu.codes/lsx/simodo
7*/
8
9#include "simodo/parser/fuze/BaseOperationCode.h"
10
11namespace simodo::parser
12{
13const char * getBaseOperationCodeName(BaseOperationCode op) noexcept
14{
15switch(op)
16{
17case BaseOperationCode::None:
18return "None";
19case BaseOperationCode::PushConstant:
20return "PushConstant";
21case BaseOperationCode::PushVariable:
22return "PushVariable";
23case BaseOperationCode::ObjectElement:
24return "ObjectElement";
25case BaseOperationCode::FunctionCall:
26return "FunctionCall";
27case BaseOperationCode::ProcedureCheck:
28return "ProcedureCheck";
29case BaseOperationCode::Print:
30return "Print";
31case BaseOperationCode::Block:
32return "Block";
33case BaseOperationCode::Pop:
34return "Pop";
35default:
36return "***";
37}
38}
39
40}