diff options
Diffstat (limited to 'tools/tree-sitter/test/corpus/single_literals.txt')
| -rw-r--r-- | tools/tree-sitter/test/corpus/single_literals.txt | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/tools/tree-sitter/test/corpus/single_literals.txt b/tools/tree-sitter/test/corpus/single_literals.txt new file mode 100644 index 0000000..0c7faab --- /dev/null +++ b/tools/tree-sitter/test/corpus/single_literals.txt @@ -0,0 +1,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))))) |
