tree-sitter-tiger/test/tags/functions.tig
2022-06-04 10:43:35 +02:00

13 lines
263 B
Plaintext

let
primitive print(s: string)
/* ^ definition.function */
function func(a: int) : int = (print("Hello World!"); a)
/* ^ definition.function */
in
print("Hello World!\n");
/* <- reference.call */
func(42)
/* <- reference.call */
end