aboutsummaryrefslogtreecommitdiff
path: root/tools/tree-sitter/test/corpus/const_alias.txt
blob: ae19588a0d23aafc4ad16ecda1c1967d12cc9381 (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
==================
const_alias
==================

module

type
  CI = const Int
  CCI = const CI

var
  x: CCI := 8
  y: const CI := 9

end.

---

(source_file
  (module_declaration
    (type_section
      (type_declaration
        (identifier_definition
          (identifier))
        (const_type
          (identifier)))
      (type_declaration
        (identifier_definition
          (identifier))
        (const_type
          (identifier))))
    (var_section
      (variable_declaration
        (identifier_definition
          (identifier))
        (identifier)
        (literal
          (integer)))
      (variable_declaration
        (identifier_definition
          (identifier))
        (const_type
          (identifier))
        (literal
          (integer))))))