tree-sitter-dust/corpus/functions.txt

59 lines
1.1 KiB
Plaintext
Raw Normal View History

2023-09-29 18:32:18 +00:00
==================
Simple Function
==================
2023-09-30 21:53:01 +00:00
function { "Hiya" }
2023-09-29 18:32:18 +00:00
---
(root
(item
(statement
(open_statement
(expression
(value
(function
(statement
(open_statement
(expression
(value
(string))))))))))))
==================
Complex Function
==================
function <message, number> {
output message
output number
}
---
(root
(item
(statement
(open_statement
(expression
(value
(function
(identifier)
(identifier)
(statement
(open_statement
(expression
(tool))))
(statement
(open_statement
(expression
(identifier))))
(statement
(open_statement
(expression
(tool))))
(statement
(open_statement
(expression
(identifier)))))))))))