aboutsummaryrefslogtreecommitdiff
path: root/tools/tree-sitter/test/corpus/single_literals.txt
blob: 0c7faab4f26d8a344ccbe25221b6fd682b5a8dc9 (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
46
47
48
49
50
51
52
53
54
55
56
==================
single_literals
==================

module

proc f()
var
  x: const Single := 3.14f
  y: const Single := 1e10f
  z: const Single := 4.567e8f
  t: const Single := 2.5E-3f
return

end.

---

(source_file
  (module_declaration
    (procedure_declaration
      (identifier_definition
        (identifier))
      (parameter_list)
      (procedure_body
        (block
          (var_section
            (variable_declaration
              (identifier_definition
                (identifier))
              (const_type
                (identifier))
              (literal
                (float)))
            (variable_declaration
              (identifier_definition
                (identifier))
              (const_type
                (identifier))
              (literal
                (float)))
            (variable_declaration
              (identifier_definition
                (identifier))
              (const_type
                (identifier))
              (literal
                (float)))
            (variable_declaration
              (identifier_definition
                (identifier))
              (const_type
                (identifier))
              (literal
                (float)))))
        (return_clause)))))