tree-sitter-dust/corpus/functions.txt
2023-09-30 21:12:35 -04:00

77 lines
1.4 KiB
Plaintext

==================
Simple Function
==================
function { "Hiya" }
---
(root
(item
(statement
(open_statement
(expression
(value
(function
(statement
(open_statement
(expression
(value
(string))))))))))))
==================
Function Call
==================
foobar <"Hiya">
---
(root
(item
(statement
(open_statement
(expression
(function_call
(identifier)
(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
(identifier))))
(statement
(open_statement
(expression
(identifier))))
(statement
(open_statement
(expression
(identifier))))
(statement
(open_statement
(expression
(identifier)))))))))))