2023-10-18 21:52:56 +00:00
|
|
|
==================
|
|
|
|
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)))))))))))
|
2023-10-18 21:52:56 +00:00
|
|
|
|
|
|
|
==================
|
|
|
|
Complex Async Statements
|
|
|
|
==================
|
|
|
|
|
|
|
|
async {
|
|
|
|
if 1 % 2 == 0 {
|
2023-10-31 05:09:29 +00:00
|
|
|
true
|
2023-10-18 21:52:56 +00:00
|
|
|
} else {
|
2023-10-31 05:09:29 +00:00
|
|
|
false
|
2023-10-18 21:52:56 +00:00
|
|
|
}
|
|
|
|
|
2023-10-31 05:09:29 +00:00
|
|
|
'foobar'
|
2023-10-18 21:52:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
(root
|
|
|
|
(item
|
|
|
|
(statement
|
|
|
|
(async
|
2023-10-31 05:09:29 +00:00
|
|
|
(item
|
|
|
|
(statement
|
|
|
|
(if_else
|
|
|
|
(if
|
2023-10-18 21:52:56 +00:00
|
|
|
(expression
|
|
|
|
(logic
|
|
|
|
(expression
|
2023-10-31 05:09:29 +00:00
|
|
|
(math
|
|
|
|
(expression
|
|
|
|
(value
|
|
|
|
(integer)))
|
|
|
|
(math_operator)
|
|
|
|
(expression
|
|
|
|
(value
|
|
|
|
(integer)))))
|
2023-10-18 21:52:56 +00:00
|
|
|
(logic_operator)
|
|
|
|
(expression
|
|
|
|
(value
|
|
|
|
(integer)))))
|
|
|
|
(item
|
|
|
|
(statement
|
|
|
|
(expression
|
2023-10-31 05:09:29 +00:00
|
|
|
(value
|
|
|
|
(boolean))))))
|
|
|
|
(else
|
|
|
|
(item
|
2023-10-18 21:52:56 +00:00
|
|
|
(statement
|
2023-10-31 05:09:29 +00:00
|
|
|
(expression
|
|
|
|
(value
|
|
|
|
(boolean))))))))
|
|
|
|
(statement
|
|
|
|
(expression
|
|
|
|
(value
|
|
|
|
(string)))))))))
|