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