72 lines
1.2 KiB
Plaintext
72 lines
1.2 KiB
Plaintext
|
==================
|
||
|
Simple Yield
|
||
|
==================
|
||
|
|
||
|
1 -> output
|
||
|
|
||
|
---
|
||
|
|
||
|
(root
|
||
|
(item
|
||
|
(statement
|
||
|
(yield
|
||
|
(expression
|
||
|
(value
|
||
|
(integer)))
|
||
|
(expression
|
||
|
(identifier))))))
|
||
|
|
||
|
==================
|
||
|
Complex Yield
|
||
|
==================
|
||
|
|
||
|
1 + 1 -> to_string -> output
|
||
|
|
||
|
---
|
||
|
|
||
|
(root
|
||
|
(item
|
||
|
(statement
|
||
|
(yield
|
||
|
(expression
|
||
|
(math
|
||
|
(expression
|
||
|
(value
|
||
|
(integer)))
|
||
|
(math_operator)
|
||
|
(expression
|
||
|
(value
|
||
|
(integer)))))
|
||
|
(expression
|
||
|
(identifier))
|
||
|
(expression
|
||
|
(identifier))))))
|
||
|
|
||
|
==================
|
||
|
Yield Assignment
|
||
|
==================
|
||
|
|
||
|
x = 1 + 1 -> to_string
|
||
|
|
||
|
---
|
||
|
|
||
|
(root
|
||
|
(item
|
||
|
(statement
|
||
|
(expression
|
||
|
(assignment
|
||
|
(identifier)
|
||
|
(statement
|
||
|
(yield
|
||
|
(expression
|
||
|
(math
|
||
|
(expression
|
||
|
(value
|
||
|
(integer)))
|
||
|
(math_operator)
|
||
|
(expression
|
||
|
(value
|
||
|
(integer)))))
|
||
|
(expression
|
||
|
(identifier)))))))))
|