tree-sitter-perga/test/corpus/section.txt

75 lines
1.7 KiB
Text
Raw Normal View History

2024-12-06 15:25:45 -08:00
========
Sections
========
section Test
2024-12-10 21:40:39 -08:00
variable (A B C : ★);
2024-12-06 15:25:45 -08:00
hypothesis (x : A) (y : B) (z1 z2 : C);
section Nested
def foo (x : A) := y;
end Nested
end Test
----
(program
(section
(identifier)
(program
2024-12-10 21:40:39 -08:00
(variable
2024-12-06 15:25:45 -08:00
(identifier)
2024-12-10 21:40:39 -08:00
(identifier)
(identifier)
(expr
(app_term
(binex
(app
(term
(sort
(star))))))))
(variable
(identifier)
(expr
(app_term
(binex
(app
(term
(identifier))))))
(identifier)
(expr
(app_term
(binex
2024-12-06 15:25:45 -08:00
(app
(term
(identifier))))))
2024-12-10 21:40:39 -08:00
(identifier)
(identifier)
2024-12-06 15:25:45 -08:00
(expr
(app_term
2024-12-10 21:40:39 -08:00
(binex
(app
(term
(identifier)))))))
(section
(identifier)
(program
(definition
(identifier)
(param_block
(identifier)
(expr
(app_term
(binex
(app
(term
(identifier)))))))
(expr
(app_term
(binex
(app
(term
(identifier))))))))
(identifier)))
2024-12-06 15:25:45 -08:00
(identifier)))