From 140a0bbecc144e554c1954f594a9f0d0b2276e9c Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Wed, 21 Mar 2018 12:29:09 -0400 Subject: interpreter overhaul, should be better --- test3 | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 test3 (limited to 'test3') diff --git a/test3 b/test3 new file mode 100644 index 0000000..940ed6f --- /dev/null +++ b/test3 @@ -0,0 +1,25 @@ +# test3 +# verify builtin functions, conditionals and such + +a = 5 + +func(checka) { + if (a == 5) { + print("a == 5") + } else { + print("a != 5") + } +} + +checka + +print("Increment a...") +a = a + 1 +checka + +d = 0 +while (d < 10) { + print(d) + d = d + 1 +} + -- cgit v1.2.3