aboutsummaryrefslogtreecommitdiff
path: root/compiler/SomeClass.slul
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/SomeClass.slul')
-rw-r--r--compiler/SomeClass.slul25
1 files changed, 25 insertions, 0 deletions
diff --git a/compiler/SomeClass.slul b/compiler/SomeClass.slul
new file mode 100644
index 0000000..3adc49e
--- /dev/null
+++ b/compiler/SomeClass.slul
@@ -0,0 +1,25 @@
+# TODO ! for modifiable variables and for modifications
+unsigned n = 0
+bool b = false
+
+ignore
+func set_b
+ bool value
+code
+ # TODO access to instance variables
+ b = value
+end
+
+ignore
+func count
+returns
+ unsigned value
+code
+ if b
+ # TODO += and -= etc.
+ n = n + 1
+ else
+ n = n - 1
+ elif
+ return n
+end