2023-11-14 22:26:32 -05:00
|
|
|
================================================================================
|
|
|
|
Simple Yield
|
|
|
|
================================================================================
|
|
|
|
|
|
|
|
1 -> (output)
|
|
|
|
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
|
2023-11-15 20:46:45 -05:00
|
|
|
(root
|
|
|
|
(statement
|
|
|
|
(expression
|
|
|
|
(yield
|
|
|
|
(expression
|
|
|
|
(value
|
|
|
|
(integer)))
|
2023-11-30 11:07:52 -05:00
|
|
|
(identifier)))))
|
2023-11-15 20:46:45 -05:00
|
|
|
|
2023-11-14 22:26:32 -05:00
|
|
|
================================================================================
|
|
|
|
Yield Chain
|
|
|
|
================================================================================
|
|
|
|
|
|
|
|
x -> (foo) -> (bar) -> (abc)
|
|
|
|
|
|
|
|
--------------------------------------------------------------------------------
|
2023-11-15 20:46:45 -05:00
|
|
|
|
|
|
|
(root
|
|
|
|
(statement
|
|
|
|
(expression
|
|
|
|
(yield
|
|
|
|
(expression
|
|
|
|
(yield
|
|
|
|
(expression
|
|
|
|
(yield
|
|
|
|
(expression
|
|
|
|
(identifier))
|
2023-11-30 11:07:52 -05:00
|
|
|
(identifier)))
|
|
|
|
(identifier)))
|
|
|
|
(identifier)))))
|