aboutsummaryrefslogtreecommitdiff
path: root/tools/tree-sitter/test/corpus/generic_export.txt
diff options
context:
space:
mode:
Diffstat (limited to 'tools/tree-sitter/test/corpus/generic_export.txt')
-rw-r--r--tools/tree-sitter/test/corpus/generic_export.txt53
1 files changed, 53 insertions, 0 deletions
diff --git a/tools/tree-sitter/test/corpus/generic_export.txt b/tools/tree-sitter/test/corpus/generic_export.txt
new file mode 100644
index 0000000..52e767e
--- /dev/null
+++ b/tools/tree-sitter/test/corpus/generic_export.txt
@@ -0,0 +1,53 @@
+==================
+generic_export
+==================
+
+module
+
+type
+ Stack#[T]* = record
+ item: ^T
+ end
+
+proc push#[T]*(s: ^Stack#[T]; item: ^T)
+return
+
+end.
+
+---
+
+(source_file
+ (module_declaration
+ (type_section
+ (type_declaration
+ (identifier_definition
+ (identifier)
+ (type_parameters
+ (identifier)))
+ (record_type
+ (field_declaration
+ (field_identifier
+ (identifier))
+ (pointer_type
+ (identifier))))))
+ (procedure_declaration
+ (identifier_definition
+ (identifier)
+ (type_parameters
+ (identifier)))
+ (parameter_list
+ (field_declaration
+ (field_identifier
+ (identifier))
+ (pointer_type
+ (generic_type
+ (identifier)
+ (type_arguments
+ (identifier)))))
+ (field_declaration
+ (field_identifier
+ (identifier))
+ (pointer_type
+ (identifier))))
+ (procedure_body
+ (return_clause)))))