add block expressions

This commit is contained in:
Jim 2025-10-21 08:34:21 -04:00
parent c5b045ebcb
commit 3c184a1ac8
Signed by: jim
GPG key ID: 3236D2F059A7C0AC
8 changed files with 129 additions and 54 deletions

4
programs/blocks.jang Normal file
View file

@ -0,0 +1,4 @@
let x = {
let y = 10;
5 + y
}

View file

@ -1,3 +1,4 @@
{
let five = 5;
let five = five + 3;
fn sum x y = x + y;
@ -999999,3 +1000000,4 @@ fn sum x y = x + y;
fn mul x y = x*y;
let six = sum(1,sum(mul(2,2),3));
six
}

View file

@ -1,3 +1,4 @@
{
let five = 5;
let five = five + 3;
fn sum x y = x + y;
@ -9999,3 +10000,4 @@ fn sum x y = x + y;
fn mul x y = x*y;
let six = sum(1,sum(mul(2,2),3));
six
}

View file

@ -1,3 +1,4 @@
{
let five = 5;
let five = five + 3;
fn sum x y = x + y;
@ -904,3 +905,4 @@ fn sum x y = x + y;
fn mul x y = x*y;
let six = sum(1,sum(mul(2,2),3));
six
}