89 lines
1.4 KiB
Plaintext
89 lines
1.4 KiB
Plaintext
==================
|
|
Simple Statements
|
|
==================
|
|
|
|
1
|
|
"one"
|
|
x
|
|
|
|
---
|
|
|
|
(root
|
|
(item
|
|
(statement
|
|
(open_statement
|
|
(expression
|
|
(value
|
|
(integer))))))
|
|
(item
|
|
(statement
|
|
(open_statement
|
|
(expression
|
|
(value
|
|
(string))))))
|
|
(item
|
|
(statement
|
|
(open_statement
|
|
(expression
|
|
(identifier))))))
|
|
|
|
==================
|
|
Simple Assignment
|
|
==================
|
|
|
|
x = 1
|
|
y = "one"
|
|
|
|
---
|
|
|
|
(root
|
|
(item
|
|
(statement
|
|
(open_statement
|
|
(expression
|
|
(operation
|
|
(expression
|
|
(identifier))
|
|
(operator)
|
|
(expression
|
|
(value
|
|
(integer))))))))
|
|
(item
|
|
(statement
|
|
(open_statement
|
|
(expression
|
|
(operation
|
|
(expression
|
|
(identifier))
|
|
(operator)
|
|
(expression
|
|
(value
|
|
(string)))))))))
|
|
|
|
==================
|
|
Complex Assignment
|
|
==================
|
|
|
|
x = 1 + 1
|
|
|
|
---
|
|
|
|
(root
|
|
(item
|
|
(statement
|
|
(open_statement
|
|
(expression
|
|
(operation
|
|
(expression
|
|
(identifier))
|
|
(operator)
|
|
(expression
|
|
(operation
|
|
(expression
|
|
(value
|
|
(integer)))
|
|
(operator)
|
|
(expression
|
|
(value
|
|
(integer)))))))))))
|