From e9b99a90510309ac4f5d91d4a5138e7a84904057 Mon Sep 17 00:00:00 2001 From: ubq323 Date: Mon, 24 Jun 2024 20:20:06 +0100 Subject: add local variables and (let) form --- tests/vars1.bth | 2 +- tests/vars2.bth | 4 ++++ tests/vars2.out | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 tests/vars2.bth create mode 100644 tests/vars2.out (limited to 'tests') 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 -- cgit v1.2.3