2023-09-27 21:41:39 +00:00
|
|
|
==================
|
|
|
|
Simple Statements
|
|
|
|
==================
|
|
|
|
|
|
|
|
1;
|
|
|
|
"one";
|
|
|
|
x;
|
|
|
|
|
|
|
|
---
|
|
|
|
|
2023-09-29 13:53:53 +00:00
|
|
|
(root
|
|
|
|
(item
|
|
|
|
(statement
|
|
|
|
(closed_statement
|
|
|
|
(expression
|
|
|
|
(value
|
|
|
|
(integer)))
|
|
|
|
(close))))
|
|
|
|
(item
|
|
|
|
(statement
|
|
|
|
(closed_statement
|
|
|
|
(expression
|
|
|
|
(value
|
|
|
|
(string)))
|
|
|
|
(close))))
|
|
|
|
(item
|
|
|
|
(statement
|
|
|
|
(closed_statement
|
|
|
|
(expression
|
|
|
|
(identifier))
|
|
|
|
(close)))))
|
2023-09-27 21:41:39 +00:00
|
|
|
|
|
|
|
==================
|
|
|
|
Simple Assignment
|
|
|
|
==================
|
|
|
|
|
|
|
|
x = 1;
|
|
|
|
y = "one";
|
|
|
|
|
|
|
|
---
|
|
|
|
|
2023-09-29 13:53:53 +00:00
|
|
|
(root
|
|
|
|
(item
|
|
|
|
(statement
|
|
|
|
(closed_statement
|
|
|
|
(expression
|
|
|
|
(operation
|
|
|
|
(expression
|
|
|
|
(identifier))
|
|
|
|
(operator)
|
|
|
|
(expression
|
|
|
|
(value
|
|
|
|
(integer)))))
|
|
|
|
(close))))
|
|
|
|
(item
|
|
|
|
(statement
|
|
|
|
(closed_statement
|
|
|
|
(expression
|
|
|
|
(operation
|
|
|
|
(expression
|
|
|
|
(identifier))
|
|
|
|
(operator)
|
|
|
|
(expression
|
|
|
|
(value
|
|
|
|
(string)))))
|
|
|
|
(close)))))
|
2023-09-27 23:10:21 +00:00
|
|
|
|
|
|
|
==================
|
|
|
|
Complex Assignment
|
|
|
|
==================
|
|
|
|
|
|
|
|
x = 1 + 1;
|
|
|
|
|
|
|
|
---
|
|
|
|
|
2023-09-29 13:53:53 +00:00
|
|
|
(root
|
|
|
|
(item
|
|
|
|
(statement
|
|
|
|
(closed_statement
|
|
|
|
(expression
|
|
|
|
(operation
|
|
|
|
(expression
|
|
|
|
(operation
|
|
|
|
(expression
|
|
|
|
(identifier))
|
|
|
|
(operator)
|
|
|
|
(expression
|
|
|
|
(value
|
|
|
|
(integer)))))
|
|
|
|
(operator)
|
|
|
|
(expression
|
|
|
|
(value
|
|
|
|
(integer)))))
|
|
|
|
(close)))))
|