diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2018-03-21 12:29:09 -0400 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2018-03-21 12:29:09 -0400 |
commit | 140a0bbecc144e554c1954f594a9f0d0b2276e9c (patch) | |
tree | f2c4d0223b8659e259d5efa0a98f99a4a54264aa /test3 | |
parent | 28447df15ac80d7dad1f4889d3d61fe7bfe42a12 (diff) |
interpreter overhaul, should be better
Diffstat (limited to 'test3')
-rw-r--r-- | test3 | 25 |
1 files changed, 25 insertions, 0 deletions
@@ -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 +} + |