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