diff options
author | ubq323 <ubq323@ubq323.website> | 2024-06-24 20:20:06 +0100 |
---|---|---|
committer | ubq323 <ubq323@ubq323.website> | 2024-06-24 20:20:06 +0100 |
commit | e9b99a90510309ac4f5d91d4a5138e7a84904057 (patch) | |
tree | 9d633feb897bcbbd43da6419882df600f9de5595 /tests | |
parent | bc47478d855b08023409dbfc8550958991265c14 (diff) |
add local variables and (let) form
Diffstat (limited to 'tests')
-rw-r--r-- | tests/vars1.bth | 2 | ||||
-rw-r--r-- | tests/vars2.bth | 4 | ||||
-rw-r--r-- | tests/vars2.out | 1 |
3 files changed, 6 insertions, 1 deletions
diff --git a/tests/vars1.bth b/tests/vars1.bth index 718b52b..6e91bf0 100644 --- a/tests/vars1.bth +++ b/tests/vars1.bth @@ -1,2 +1,2 @@ (+ 2 (let (a 10) - (* a a))) + (* a a))) diff --git a/tests/vars2.bth b/tests/vars2.bth new file mode 100644 index 0000000..3474d54 --- /dev/null +++ b/tests/vars2.bth @@ -0,0 +1,4 @@ +(+ 2 (* 6 (let (a 10 + b 20 + c 30) + (* b b)))) diff --git a/tests/vars2.out b/tests/vars2.out new file mode 100644 index 0000000..65b7a7f --- /dev/null +++ b/tests/vars2.out @@ -0,0 +1 @@ +2402 |