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

program()
var
  x: Int
  p: ^const Int

begin
  p := @x
end.

---

(source_file
  (program_declaration
    (var_section
      (variable_declaration
        (identifier_definition
          (identifier))
        (identifier))
      (variable_declaration
        (identifier_definition
          (identifier))
        (pointer_type
          (const_type
            (identifier)))))
    (assignment_statement
      (identifier)
      (unary_expression
        (identifier)))))