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

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

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

mod.test tv = {
    1, 2, false, 0
}

/; main [int]
    ~int i = ~tv.i
    return i`
;/