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"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE QtCreatorProject>
|
<!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>
|
<qtcreator>
|
||||||
<data>
|
<data>
|
||||||
<variable>EnvironmentId</variable>
|
<variable>EnvironmentId</variable>
|
||||||
|
@ -76,7 +76,7 @@ void CommandExecutor::execute () {
|
|||||||
}
|
}
|
||||||
else if (this->bytes.at(0) == byte(0x01)) { // Работа со стэком
|
else if (this->bytes.at(0) == byte(0x01)) { // Работа со стэком
|
||||||
switch (this->bytes.at(1)) {
|
switch (this->bytes.at(1)) {
|
||||||
case byte(0x01): // Добавить значение в стек
|
case byte(0x01): { // Добавить значение в стек
|
||||||
STACK_PUSH sp(this->bytes, this->globalStack);
|
STACK_PUSH sp(this->bytes, this->globalStack);
|
||||||
sp.exec();
|
sp.exec();
|
||||||
while (sp.localStack.size() != 0) {
|
while (sp.localStack.size() != 0) {
|
||||||
@ -86,6 +86,10 @@ void CommandExecutor::execute () {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case byte(0x02): { // Изменить значение в стеке
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if (this->bytes.at(0) == byte(0x04)) {
|
else if (this->bytes.at(0) == byte(0x04)) {
|
||||||
switch (this->bytes.at(1)) {
|
switch (this->bytes.at(1)) {
|
||||||
@ -123,6 +127,7 @@ CommandExecutor::CommandExecutor (vector<byte> bytes, Stack globalStack) {
|
|||||||
{byte(0x00), byte(0x01)}, // void_ender
|
{byte(0x00), byte(0x01)}, // void_ender
|
||||||
// Stack
|
// Stack
|
||||||
{byte(0x01), byte(0x01)},
|
{byte(0x01), byte(0x01)},
|
||||||
|
{byte(0x01), byte(0x02)},
|
||||||
// Stdout-Stdin
|
// Stdout-Stdin
|
||||||
{byte(0x04), byte(0x00)},
|
{byte(0x04), byte(0x00)},
|
||||||
{byte(0x04), byte(0x01)}
|
{byte(0x04), byte(0x01)}
|
||||||
|
@ -60,6 +60,18 @@ private:
|
|||||||
vector<byte> bytes;
|
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 {
|
class STDOUT {
|
||||||
public:
|
public:
|
||||||
// From all command
|
// From all command
|
||||||
|
@ -50,6 +50,15 @@ Example:
|
|||||||
[0x05] - CALL LIBRARIES
|
[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
|
[0xFF] - EXTENSIONS OF COMMANDS
|
||||||
----------------------------
|
----------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user