add block expressions
This commit is contained in:
parent
c5b045ebcb
commit
3c184a1ac8
8 changed files with 129 additions and 54 deletions
4
programs/blocks.jang
Normal file
4
programs/blocks.jang
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
let x = {
|
||||
let y = 10;
|
||||
5 + y
|
||||
}
|
||||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue