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

67 lines
1.6 KiB
Plaintext
Raw Normal View History

2024-01-25 12:10:45 +00:00
================================================================================
Simple Command
================================================================================
*ls
--------------------------------------------------------------------------------
(root
(statement
(expression
(command))))
2024-01-25 12:10:45 +00:00
================================================================================
Command Sequence
2024-01-25 12:10:45 +00:00
================================================================================
*less *ls
--------------------------------------------------------------------------------
(root
(statement
(expression
(command)))
(statement
(expression
(command))))
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
(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
(command_argument)
(command_argument)
(command_argument)
(command_argument))))
(statement
(expression
(command
(command_argument)
(command_argument)))))