tree-sitter-dust/corpus/async.txt

85 lines
1.8 KiB
Plaintext
Raw Normal View History

2023-10-16 20:36:07 +00:00
==================
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)))))))))))