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

73 lines
1.8 KiB
Plaintext
Raw Normal View History

2024-01-25 12:10:45 +00:00
================================================================================
Simple Command
================================================================================
*ls
--------------------------------------------------------------------------------
(root
(statement
(expression
2024-01-26 20:23:24 +00:00
(command
(command_text)))))
2024-01-25 12:10:45 +00:00
================================================================================
Command Sequence
2024-01-25 12:10:45 +00:00
================================================================================
*less *ls
--------------------------------------------------------------------------------
(root
(statement
(expression
2024-01-26 20:23:24 +00:00
(command
(command_text))))
(statement
(expression
2024-01-26 20:23:24 +00:00
(command
(command_text)))))
2024-01-25 12:10:45 +00:00
================================================================================
Command with Arguments
================================================================================
*ls --long -a
2024-01-25 12:10:45 +00:00
--------------------------------------------------------------------------------
(root
(statement
(expression
(command
2024-01-26 20:23:24 +00:00
(command_text)
(command_argument)
(command_argument)))))
2024-01-25 12:10:45 +00:00
================================================================================
Command Sequence with Arguments
2024-01-25 12:10:45 +00:00
================================================================================
*cargo run -- -c "output('hi there')"
*ls --long -a
2024-01-25 12:10:45 +00:00
--------------------------------------------------------------------------------
(root
(statement
(expression
(command
2024-01-26 20:23:24 +00:00
(command_text)
(command_argument)
(command_argument)
(command_argument)
(command_argument))))
(statement
(expression
(command
2024-01-26 20:23:24 +00:00
(command_text)
(command_argument)
(command_argument)))))