From 4840f480c8f255a6cf3b4eed291a00cea76b0cac Mon Sep 17 00:00:00 2001 From: Anhgelus Morhtuuzh Date: Mon, 10 Nov 2025 17:31:41 +0100 Subject: feat(calc): supports function definition and evaluation --- example/input.txt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'example/input.txt') diff --git a/example/input.txt b/example/input.txt index 9c49d56..bd668e0 100644 --- a/example/input.txt +++ b/example/input.txt @@ -1,9 +1,9 @@ a = 10.05;; b = .95 (a + b) * 10 / 2 -x = 2_0 -y = 2! -z = y/2 -10 + 4(z / y)(x / 4) - -x^(-y) +f: x = x + 1 +x = 2 +# is 24 + 1 = 25 +f(24) +# must be 10 +x(5) -- cgit v1.2.3