dust/tree-sitter-dust/corpus/yield.txt
2023-11-15 20:46:45 -05:00

43 lines
1.1 KiB
Plaintext

================================================================================
Simple Yield
================================================================================
1 -> (output)
--------------------------------------------------------------------------------
(root
(statement
(expression
(yield
(expression
(value
(integer)))
(function_call
(built_in_function))))))
================================================================================
Yield Chain
================================================================================
x -> (foo) -> (bar) -> (abc)
--------------------------------------------------------------------------------
(root
(statement
(expression
(yield
(expression
(yield
(expression
(yield
(expression
(identifier))
(function_call
(identifier))))
(function_call
(identifier))))
(function_call
(identifier))))))