summaryrefslogtreecommitdiff
path: root/examples/power.int
blob: 119166dd209182e001f3fed535e84ad50b0bcc0f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
[def -- [x]
    [- x 1]]

[def +++ [x y]
    [+ x y]]

[def *** [x y]
    [if x
        [+++ y [*** [-- x] y]]
        0]]

[def ^^^ [b p]
    [if p
        [*** b [^^^ b [-- p]]]
        1]]

[def inter_main []
    [debug_int [^^^ 3 6]]]