43 lines
1.0 KiB
Plaintext
43 lines
1.0 KiB
Plaintext
================================================================================
|
|
Simple Yield
|
|
================================================================================
|
|
|
|
1 -> (output)
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
(root
|
|
(statement
|
|
(expression
|
|
(yield
|
|
(expression
|
|
(value
|
|
(integer)))
|
|
(expression
|
|
(identifier))))))
|
|
|
|
================================================================================
|
|
Yield Chain
|
|
================================================================================
|
|
|
|
x -> (foo) -> (bar) -> (abc)
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
(root
|
|
(statement
|
|
(expression
|
|
(yield
|
|
(expression
|
|
(yield
|
|
(expression
|
|
(yield
|
|
(expression
|
|
(identifier))
|
|
(expression
|
|
(identifier))))
|
|
(expression
|
|
(identifier))))
|
|
(expression
|
|
(identifier))))))
|