summaryrefslogtreecommitdiff
path: root/examples/basic.tnsl
diff options
context:
space:
mode:
Diffstat (limited to 'examples/basic.tnsl')
-rw-r--r--examples/basic.tnsl17
1 files changed, 16 insertions, 1 deletions
diff --git a/examples/basic.tnsl b/examples/basic.tnsl
index 71d784d..b19532f 100644
--- a/examples/basic.tnsl
+++ b/examples/basic.tnsl
@@ -1,3 +1,18 @@
/; main [int]
- ;return 0
+
+ ;int i = 0
+ ;float f = 0.25
+
+ /; loop (i < 2)
+
+ ;i = i + 1
+
+ /; if (f < 1)
+
+ ;i = i + 1
+ ;break
+ ;/
+ ;/
+
+ ;return i
;/