1
0
dust/tree-sitter-dust/corpus/async.txt

75 lines
1.5 KiB
Plaintext
Raw Normal View History

==================
Simple Async Statements
==================
async { (output 'Whaddup') }
---
(root
(item
(statement
(async
2023-10-31 05:09:29 +00:00
(item
(statement
(expression
(tool
(expression
(value
(string)))))))))))
==================
Complex Async Statements
==================
async {
if 1 % 2 == 0 {
2023-10-31 05:09:29 +00:00
true
} else {
2023-10-31 05:09:29 +00:00
false
}
2023-10-31 05:09:29 +00:00
'foobar'
}
---
(root
(item
(statement
(async
2023-10-31 05:09:29 +00:00
(item
(statement
(if_else
(if
(expression
(logic
(expression
2023-10-31 05:09:29 +00:00
(math
(expression
(value
(integer)))
(math_operator)
(expression
(value
(integer)))))
(logic_operator)
(expression
(value
(integer)))))
(item
(statement
(expression
2023-10-31 05:09:29 +00:00
(value
(boolean))))))
(else
(item
(statement
2023-10-31 05:09:29 +00:00
(expression
(value
(boolean))))))))
(statement
(expression
(value
(string)))))))))