2024-01-25 13:27:24 +00:00
|
|
|
================================================================================
|
|
|
|
Simple Command Pipe
|
|
|
|
================================================================================
|
|
|
|
|
|
|
|
*ls | *less
|
|
|
|
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
(root
|
|
|
|
(statement
|
|
|
|
(pipe
|
2024-01-26 20:10:46 +00:00
|
|
|
(command)
|
|
|
|
(command))))
|
2024-01-25 13:27:24 +00:00
|
|
|
|
|
|
|
================================================================================
|
|
|
|
Simple Function Pipe
|
|
|
|
================================================================================
|
|
|
|
|
|
|
|
fs:read('file.txt') | output()
|
|
|
|
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
(root
|
|
|
|
(statement
|
|
|
|
(pipe
|
|
|
|
(function_call
|
|
|
|
(function_expression
|
|
|
|
(index
|
|
|
|
(index_expression
|
|
|
|
(value
|
|
|
|
(built_in_value)))
|
|
|
|
(index_expression
|
|
|
|
(identifier))))
|
|
|
|
(expression
|
|
|
|
(value
|
|
|
|
(string))))
|
|
|
|
(function_call
|
|
|
|
(function_expression
|
|
|
|
(value
|
|
|
|
(built_in_value)))))))
|