2023-11-15 03:26:32 +00:00
|
|
|
================================================================================
|
|
|
|
Simple Yield
|
|
|
|
================================================================================
|
|
|
|
|
|
|
|
1 -> (output)
|
|
|
|
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
|
2023-11-16 01:46:45 +00:00
|
|
|
(root
|
|
|
|
(statement
|
|
|
|
(expression
|
|
|
|
(yield
|
|
|
|
(expression
|
|
|
|
(value
|
|
|
|
(integer)))
|
2023-11-16 02:13:14 +00:00
|
|
|
(built_in_function)))))
|
2023-11-16 01:46:45 +00:00
|
|
|
|
2023-11-15 03:26:32 +00:00
|
|
|
================================================================================
|
|
|
|
Yield Chain
|
|
|
|
================================================================================
|
|
|
|
|
|
|
|
x -> (foo) -> (bar) -> (abc)
|
|
|
|
|
|
|
|
--------------------------------------------------------------------------------
|
2023-11-16 01:46:45 +00:00
|
|
|
|
|
|
|
(root
|
|
|
|
(statement
|
|
|
|
(expression
|
|
|
|
(yield
|
|
|
|
(expression
|
|
|
|
(yield
|
|
|
|
(expression
|
|
|
|
(yield
|
|
|
|
(expression
|
|
|
|
(identifier))
|
2023-11-16 02:13:14 +00:00
|
|
|
(identifier)))
|
|
|
|
(identifier)))
|
|
|
|
(identifier)))))
|