Implement simple if conditions

This commit is contained in:
2024-03-17 01:00:44 +01:00
parent 99a1ef5f96
commit 27197c7725
13 changed files with 592 additions and 33 deletions

View File

@ -1,4 +1,4 @@
var x;
var x: Int;
begin
x := 5;
! x

View File

@ -0,0 +1 @@
8

View File

@ -0,0 +1,2 @@
1
0

9
tests/if_condition.eln Normal file
View File

@ -0,0 +1,9 @@
begin
if True then ! 8;
if False then
begin
! 5;
! 5;
! 5
end
end.

4
tests/print_boolean.eln Normal file
View File

@ -0,0 +1,4 @@
begin
? True;
? False
end.