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-09-29 17:04:19 +00:00
|
|
|
(open_statement
|
2023-09-29 13:53:53 +00:00
|
|
|
(expression
|
|
|
|
(control_flow
|
|
|
|
(expression
|
|
|
|
(value
|
|
|
|
(boolean)))
|
|
|
|
(statement
|
|
|
|
(open_statement
|
|
|
|
(expression
|
|
|
|
(value
|
2023-09-29 17:04:19 +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-09-29 17:04:19 +00:00
|
|
|
(open_statement
|
2023-09-29 13:53:53 +00:00
|
|
|
(expression
|
|
|
|
(operation
|
|
|
|
(expression
|
|
|
|
(identifier))
|
|
|
|
(operator)
|
|
|
|
(expression
|
|
|
|
(control_flow
|
|
|
|
(expression
|
|
|
|
(value
|
|
|
|
(boolean)))
|
|
|
|
(statement
|
|
|
|
(open_statement
|
|
|
|
(expression
|
|
|
|
(value
|
2023-09-29 17:04:19 +00:00
|
|
|
(integer)))))))))))))
|
2023-09-29 13:53:53 +00:00
|
|
|
|