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

80 lines
2.1 KiB
Plaintext

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