Add modified files
This commit is contained in:
parent
2462ecf887
commit
0c8c2fa900
Binary file not shown.
Binary file not shown.
@ -1,3 +1,3 @@
|
||||
Start testing: Jul 17 19:44 RTZ 2 (çèìà)
|
||||
Start testing: Jul 17 19:58 RTZ 2 (çèìà)
|
||||
----------------------------------------------------------
|
||||
End testing: Jul 17 19:44 RTZ 2 (çèìà)
|
||||
End testing: Jul 17 19:58 RTZ 2 (çèìà)
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE QtCreatorProject>
|
||||
<!-- Written by QtCreator 9.0.0, 2023-07-17T19:51:48. -->
|
||||
<!-- Written by QtCreator 9.0.0, 2023-07-17T22:08:48. -->
|
||||
<qtcreator>
|
||||
<data>
|
||||
<variable>EnvironmentId</variable>
|
||||
|
@ -76,7 +76,7 @@ void CommandExecutor::execute () {
|
||||
}
|
||||
else if (this->bytes.at(0) == byte(0x01)) { // Работа со стэком
|
||||
switch (this->bytes.at(1)) {
|
||||
case byte(0x01): // Добавить значение в стек
|
||||
case byte(0x01): { // Добавить значение в стек
|
||||
STACK_PUSH sp(this->bytes, this->globalStack);
|
||||
sp.exec();
|
||||
while (sp.localStack.size() != 0) {
|
||||
@ -85,6 +85,10 @@ void CommandExecutor::execute () {
|
||||
sp.localStack.rm();
|
||||
}
|
||||
break;
|
||||
}
|
||||
case byte(0x02): { // Изменить значение в стеке
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (this->bytes.at(0) == byte(0x04)) {
|
||||
@ -123,6 +127,7 @@ CommandExecutor::CommandExecutor (vector<byte> bytes, Stack globalStack) {
|
||||
{byte(0x00), byte(0x01)}, // void_ender
|
||||
// Stack
|
||||
{byte(0x01), byte(0x01)},
|
||||
{byte(0x01), byte(0x02)},
|
||||
// Stdout-Stdin
|
||||
{byte(0x04), byte(0x00)},
|
||||
{byte(0x04), byte(0x01)}
|
||||
|
@ -60,6 +60,18 @@ private:
|
||||
vector<byte> bytes;
|
||||
};
|
||||
|
||||
/*class STACK_EDIT {
|
||||
public:
|
||||
STACK_EDIT (vector<byte> bytes, Stack globalStack);
|
||||
virtual bool checkCorrectSyntax ();
|
||||
virtual void exec ();
|
||||
Stack globalStack;
|
||||
Stack localStack;
|
||||
private:
|
||||
// From all comand
|
||||
vector<byte> bytes;
|
||||
};*/
|
||||
|
||||
class STDOUT {
|
||||
public:
|
||||
// From all command
|
||||
|
@ -50,6 +50,15 @@ Example:
|
||||
[0x05] - CALL LIBRARIES
|
||||
----------------------------
|
||||
|
||||
----------------------------
|
||||
[0x06] - LOCAL_VARIABLES
|
||||
----------------------------
|
||||
0x00 {IGNORE_ERRORS:1}
|
||||
IGNORE_ERRORS : 0x00 - Ignore 0xFF - Not ignore
|
||||
Create new local variable (link to current sp)
|
||||
--
|
||||
0x01 {VARS_COUNT}
|
||||
Allocate variable area
|
||||
----------------------------
|
||||
[0xFF] - EXTENSIONS OF COMMANDS
|
||||
----------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user