53 lines
944 B
Plaintext
53 lines
944 B
Plaintext
==================
|
|
If/Then
|
|
==================
|
|
|
|
if true then "True"
|
|
|
|
---
|
|
|
|
(root
|
|
(item
|
|
(statement
|
|
(open_statement
|
|
(expression
|
|
(control_flow
|
|
(expression
|
|
(value
|
|
(boolean)))
|
|
(statement
|
|
(open_statement
|
|
(expression
|
|
(value
|
|
(string)))))))))))
|
|
|
|
|
|
==================
|
|
If/Then Assignment
|
|
==================
|
|
|
|
x = if true then 1
|
|
|
|
---
|
|
|
|
(root
|
|
(item
|
|
(statement
|
|
(open_statement
|
|
(expression
|
|
(operation
|
|
(expression
|
|
(identifier))
|
|
(operator)
|
|
(expression
|
|
(control_flow
|
|
(expression
|
|
(value
|
|
(boolean)))
|
|
(statement
|
|
(open_statement
|
|
(expression
|
|
(value
|
|
(integer)))))))))))))
|
|
|