2024-01-25 13:27:24 +00:00
|
|
|
================================================================================
|
|
|
|
Simple Command Pipe
|
|
|
|
================================================================================
|
|
|
|
|
2024-01-29 23:17:50 +00:00
|
|
|
^ls | ^less
|
2024-01-25 13:27:24 +00:00
|
|
|
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
(root
|
|
|
|
(statement
|
|
|
|
(pipe
|
2024-01-26 20:23:24 +00:00
|
|
|
(command
|
|
|
|
(command_text))
|
|
|
|
(command
|
|
|
|
(command_text)))))
|
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
|
2024-02-15 07:02:48 +00:00
|
|
|
(identifier))
|
2024-01-25 13:27:24 +00:00
|
|
|
(index_expression
|
|
|
|
(identifier))))
|
|
|
|
(expression
|
|
|
|
(value
|
|
|
|
(string))))
|
|
|
|
(function_call
|
|
|
|
(function_expression
|
2024-02-15 07:02:48 +00:00
|
|
|
(identifier))))))
|