tree-sitter-perga/test/corpus/section.txt
2024-12-10 23:39:53 -08:00

78 lines
1.9 KiB
Text

========
Sections
========
section Test
variable (A B C : ★);
hypothesis (x : A) (y : B) (z1 z2 : C);
section Nested
def foo (x : A) := y;
end Nested
end Test
----
(program
(section
(identifier)
(program
(variable
(variable_binding
(identifier)
(identifier)
(identifier)
(expr
(app_term
(binex
(app
(term
(sort
(star)))))))))
(variable
(variable_binding
(identifier)
(expr
(app_term
(binex
(app
(term
(identifier)))))))
(variable_binding
(identifier)
(expr
(app_term
(binex
(app
(term
(identifier)))))))
(variable_binding
(identifier)
(identifier)
(expr
(app_term
(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)))
(identifier)))