From 70c782292f48358fc4d3ac3874ac1951b405de48 Mon Sep 17 00:00:00 2001 From: ubq323 Date: Wed, 3 Jul 2024 11:15:34 +0100 Subject: compile each file like a body, allowing def at file toplevel --- tests/def.bth | 5 +++++ tests/def.out | 2 ++ 2 files changed, 7 insertions(+) create mode 100644 tests/def.bth create mode 100644 tests/def.out (limited to 'tests') diff --git a/tests/def.bth b/tests/def.bth new file mode 100644 index 0000000..d4a7d74 --- /dev/null +++ b/tests/def.bth @@ -0,0 +1,5 @@ +(def a 100) +(def b 200) +(def c 300) +(say b) +(let (q 10 r 20 s 30) (say r)) diff --git a/tests/def.out b/tests/def.out new file mode 100644 index 0000000..f774a6f --- /dev/null +++ b/tests/def.out @@ -0,0 +1,2 @@ +200 +20 -- cgit v1.2.3