added support for if elif else statements by returning a boolean

from the identifier syntax parsing
This commit is contained in:
2026-05-26 11:38:14 +01:00
parent 20369ef838
commit 4f7abb5f19
8 changed files with 189 additions and 40 deletions
+11 -3
View File
@@ -1,10 +1,18 @@
@tim says "hello world, it's a good day"
@tim change name "Timothy Fineshooter"
$x = 3
$x + 1
$x - 2
if $x == 4 {
@tim says "5"
}
elif $x < 5 {
@tim says "<5"
}
else {
@tim says "whar"
}
label:
choice "choice numero uno" {
$choice_string = choice "choice numero uno" {
@tim says "super sad"
}
or "choice numero duo" {