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