1
0
dust/tree-sitter-dust/corpus/pipe.txt

41 lines
1.0 KiB
Plaintext

================================================================================
Simple Command Pipe
================================================================================
^ls | ^less
--------------------------------------------------------------------------------
(root
(statement
(pipe
(command
(command_text))
(command
(command_text)))))
================================================================================
Simple Function Pipe
================================================================================
fs:read('file.txt') | output()
--------------------------------------------------------------------------------
(root
(statement
(pipe
(function_call
(function_expression
(index
(index_expression
(identifier))
(index_expression
(identifier))))
(expression
(value
(string))))
(function_call
(function_expression
(identifier))))))