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

69 lines
1.1 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)
(expression
(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)))))))))