diff options
Diffstat (limited to 'compiler/SomeClass.slul')
-rw-r--r-- | compiler/SomeClass.slul | 25 |
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 |