tree-sitter-dust/corpus/functions.txt

63 lines
1.2 KiB
Plaintext

==================
Simple Function
==================
function { output "Hiya" }
---
(root
(item
(statement
(open_statement
(expression
(value
(function
(statement
(open_statement
(expression
(tool))))
(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)))))))))))