From f8b888716211b78900db62ede497fa4ac2100c00 Mon Sep 17 00:00:00 2001 From: AidenRushbrooke <72034940+AidenRushbrooke@users.noreply.github.com> Date: Sun, 7 Nov 2021 01:23:19 +0000 Subject: Basic floating point support and small improvements to error handing --- src/example.txt | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/example.txt') diff --git a/src/example.txt b/src/example.txt index 94a8091..886e85c 100644 --- a/src/example.txt +++ b/src/example.txt @@ -1,8 +1,6 @@ -var :: a -a=5 -if a<2 then -a=a+5 -else -a=a-3 +real :: a +a=6 +if a>2 then +a=a+0.5 endif print a -- cgit v1.2.3