summaryrefslogtreecommitdiff
path: root/tnslc/simple.tnsl
blob: f722359ed386a5254e945e3e93f8a11b55c6e9a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

/; module mod
    uint a = 2, b = 4
    {}uint8 str = "Hello", c = "#"

    struct test {
        int i, j,
        bool k,
        uint8 m
    }
;/


/; main [int]
    ~int b = ~mod.a
    ~int c = b+8
    ~~int d = ~c
    return d``
;/