aboutsummaryrefslogtreecommitdiff
path: root/compiler/SomeClass.slul
blob: 3adc49e4e3a80c9000332ad01df29d98ec50b550 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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