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

43 lines
1.1 KiB
Plaintext
Raw Normal View History

2024-01-25 13:27:24 +00:00
================================================================================
Simple Command Pipe
================================================================================
^ls | ^less
2024-01-25 13:27:24 +00:00
--------------------------------------------------------------------------------
(root
(statement
2024-02-16 15:55:15 +00:00
(statement_kind
(pipe
(command
(command_text))
(command
(command_text))))))
2024-01-25 13:27:24 +00:00
================================================================================
Simple Function Pipe
================================================================================
fs:read('file.txt') | output()
--------------------------------------------------------------------------------
(root
(statement
2024-02-16 15:55:15 +00:00
(statement_kind
(pipe
(function_call
(function_expression
(index
(index_expression
(identifier))
(index_expression
(identifier))))
(expression
(value
(string))))
(function_call
(function_expression
(identifier)))))))