summaryrefslogtreecommitdiff
path: root/tnslc/test.tnsl
blob: e0b6c7f88e00ce0c46c7761dd4abe1da3e663be9 (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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
struct Token {
    ~uint8 data,
    int
        tokenType,
        line,
        col
}

enum TOKENS [Token] {
    A = {"asdf", 1, 2, 3}
}

struct PTR_TEST {
    int8 dat, in
}

struct ARRAY_TEST {
    {}PTR_TEST dat
}

enum ENUM_TEST [{}uint8] {
    A = "nizsdd",
    B = {1, 2}
}

uint WAMM = 31, WAM2 = 34

/; module Alpha
    struct A {
        B nxta
    }

    struct B {
        ~A dat
    }

    enum EN_ARR [PTR_TEST] {
        A = {3, 2},
        B = {3, 4}
    }
;/

/; main [int]
    return EN_ARR.A.dat
;/