tree-sitter-dust/corpus/functions.txt
2023-10-01 01:13:29 -04:00

68 lines
1.0 KiB
Plaintext

==================
Simple Function
==================
function { "Hiya" }
---
(root
(item
(statement
(expression
(value
(function
(statement
(expression
(value
(string))))))))))
==================
Function Call
==================
foobar <"Hiya">
---
(root
(item
(statement
(expression
(function_call
(identifier)
(value
(string)))))))
==================
Complex Function
==================
function <message, number> {
output message
output number
}
---
(root
(item
(statement
(expression
(value
(function
(identifier)
(identifier)
(statement
(expression
(identifier)))
(statement
(expression
(identifier)))
(statement
(expression
(identifier)))
(statement
(expression
(identifier)))))))))