2023-09-29 07:52:21 +00:00
|
|
|
==================
|
|
|
|
If/Then
|
|
|
|
==================
|
|
|
|
|
2023-09-29 17:04:19 +00:00
|
|
|
if true then "True"
|
2023-09-29 07:52:21 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
|
2023-09-29 13:53:53 +00:00
|
|
|
(root
|
|
|
|
(item
|
|
|
|
(statement
|
2023-10-01 05:13:29 +00:00
|
|
|
(expression
|
|
|
|
(control_flow
|
|
|
|
(expression
|
|
|
|
(value
|
|
|
|
(boolean)))
|
|
|
|
(statement
|
2023-09-29 13:53:53 +00:00
|
|
|
(expression
|
|
|
|
(value
|
2023-10-01 05:13:29 +00:00
|
|
|
(string)))))))))
|
2023-09-29 13:53:53 +00:00
|
|
|
|
2023-09-29 07:52:21 +00:00
|
|
|
|
|
|
|
==================
|
|
|
|
If/Then Assignment
|
|
|
|
==================
|
|
|
|
|
2023-09-29 17:04:19 +00:00
|
|
|
x = if true then 1
|
2023-09-29 07:52:21 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
|
2023-09-29 13:53:53 +00:00
|
|
|
(root
|
|
|
|
(item
|
|
|
|
(statement
|
2023-10-01 05:13:29 +00:00
|
|
|
(expression
|
|
|
|
(assignment
|
|
|
|
(identifier)
|
|
|
|
(expression
|
|
|
|
(control_flow
|
|
|
|
(expression
|
|
|
|
(value
|
|
|
|
(boolean)))
|
|
|
|
(statement
|
2023-09-29 13:53:53 +00:00
|
|
|
(expression
|
|
|
|
(value
|
2023-10-01 05:13:29 +00:00
|
|
|
(integer)))))))))))
|
2023-09-29 13:53:53 +00:00
|
|
|
|