new testing infrastructure

This commit is contained in:
Francesco Cozzuto
2023-01-22 02:22:44 +01:00
parent 533cf01920
commit 1780826a97
145 changed files with 1432 additions and 938 deletions
@@ -0,0 +1,14 @@
@type [compiler]
@source
do
{}
while none;
@bytecode
begin:
PUSHNNE;
JUMPIFANDPOP begin;
EXIT;
@@ -0,0 +1,19 @@
@type [compiler]
@source
do
true;
while none;
false;
@bytecode
begin:
PUSHTRU;
POP 1;
PUSHNNE;
JUMPIFANDPOP begin;
PUSHFLS;
POP 1;
EXIT;
@@ -0,0 +1,22 @@
@type [compiler]
@source
do {
true;
"Hello, world!";
} while none;
false;
@bytecode
begin:
PUSHTRU;
POP 1;
PUSHSTR "Hello, world!";
POP 1;
PUSHNNE;
JUMPIFANDPOP begin;
PUSHFLS;
POP 1;
EXIT;
@@ -0,0 +1,25 @@
@type [compiler]
@source
do {
true;
"Hello, world!";
break;
} while none;
false;
@bytecode
begin:
PUSHTRU;
POP 1;
PUSHSTR "Hello, world!";
POP 1;
JUMP end;
PUSHNNE;
JUMPIFANDPOP begin;
end:
PUSHFLS;
POP 1;
EXIT;
@@ -0,0 +1,19 @@
@type [compiler]
@source
do
break;
while none;
false;
@bytecode
begin:
JUMP end;
PUSHNNE;
JUMPIFANDPOP begin;
end:
PUSHFLS;
POP 1;
EXIT;