47 lines
729 B
Plaintext
47 lines
729 B
Plaintext
==================
|
|
If/Then
|
|
==================
|
|
|
|
if true then "True"
|
|
|
|
---
|
|
|
|
(root
|
|
(item
|
|
(statement
|
|
(expression
|
|
(control_flow
|
|
(expression
|
|
(value
|
|
(boolean)))
|
|
(statement
|
|
(expression
|
|
(value
|
|
(string)))))))))
|
|
|
|
|
|
==================
|
|
If/Then Assignment
|
|
==================
|
|
|
|
x = if true then 1
|
|
|
|
---
|
|
|
|
(root
|
|
(item
|
|
(statement
|
|
(expression
|
|
(assignment
|
|
(identifier)
|
|
(expression
|
|
(control_flow
|
|
(expression
|
|
(value
|
|
(boolean)))
|
|
(statement
|
|
(expression
|
|
(value
|
|
(integer)))))))))))
|
|
|