72 lines
773 B
Plaintext
72 lines
773 B
Plaintext
==================
|
|
Simple Statements
|
|
==================
|
|
|
|
1;
|
|
"one";
|
|
x;
|
|
|
|
---
|
|
|
|
(source
|
|
(statement
|
|
(expression
|
|
(value
|
|
(integer)))
|
|
(close))
|
|
(statement
|
|
(expression
|
|
(value
|
|
(string)))
|
|
(close))
|
|
(statement
|
|
(expression
|
|
(identifier))
|
|
(close)))
|
|
|
|
==================
|
|
Simple Assignment
|
|
==================
|
|
|
|
x = 1;
|
|
y = "one";
|
|
|
|
---
|
|
|
|
(source
|
|
(statement
|
|
(expression
|
|
(identifier)
|
|
(operator)
|
|
(value
|
|
(integer)))
|
|
(close))
|
|
(statement
|
|
(expression
|
|
(identifier)
|
|
(operator)
|
|
(value
|
|
(string)))
|
|
(close)))
|
|
|
|
==================
|
|
Complex Assignment
|
|
==================
|
|
|
|
x = 1 + 1;
|
|
|
|
---
|
|
|
|
(source
|
|
(statement
|
|
(expression
|
|
(identifier)
|
|
(operator)
|
|
(expression
|
|
(value
|
|
(integer))
|
|
(operator)
|
|
(value
|
|
(integer))))
|
|
(close)))
|