tree-sitter-dust/corpus/async.txt
2023-10-16 16:36:07 -04:00

85 lines
1.8 KiB
Plaintext

==================
Simple Async Statements
==================
async (output 'Whaddup')
---
(root
(item
(statement
(async
(item
(statement
(expression
(function_call
(tool)
(expression
(value
(string)))))))))))
==================
Complex Run Statements
==================
async if 1 % 2 == 0 {
(output 'true')
} else {
(output 'false')
}
async (output 'foobar')
---
(root
(item
(statement
(async
(item
(statement
(if_else
(if
(expression
(logic
(expression
(math
(expression
(value
(integer)))
(math_operator)
(expression
(value
(integer)))))
(logic_operator)
(expression
(value
(integer)))))
(statement
(expression
(function_call
(tool)
(expression
(value
(string)))))))
(else
(statement
(expression
(function_call
(tool)
(expression
(value
(string)))))))))))))
(item
(statement
(async
(item
(statement
(expression
(function_call
(tool)
(expression
(value
(string)))))))))))