From 1619e765e3ae2a88765c94a01ec731e8cabd0ff1 Mon Sep 17 00:00:00 2001 From: WormHeamer Date: Tue, 21 Oct 2025 14:50:53 -0400 Subject: save & load scratch in parse_stmt instead of reset in parse_proc --- test.lang | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'test.lang') diff --git a/test.lang b/test.lang index 52e100b..40c3ff7 100644 --- a/test.lang +++ b/test.lang @@ -1,9 +1,11 @@ func main(a, b i64) i64 { let x = 2 if a < b { - x := 3 + (a / x) + x := 3 } else { - x := 4 + (x * b) + let t = a + a := b + b := t } - return x + return a + x } -- cgit v1.2.3