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

76 lines
1.8 KiB
Plaintext
Raw Normal View History

2024-01-25 12:10:45 +00:00
================================================================================
Simple Command
================================================================================
*ls
--------------------------------------------------------------------------------
(root
(statement
(expression
(command
(identifier)))))
================================================================================
Nested Command
================================================================================
*less *ls
--------------------------------------------------------------------------------
(root
(statement
(expression
(command
(identifier)
(command
(identifier))))))
================================================================================
Command with Arguments
================================================================================
*ls --long -a;
(*git status)
*git log;
--------------------------------------------------------------------------------
(root
(statement
(expression
(command
(identifier)
(command_argument)
(command_argument))))
(statement
(expression
(command
(identifier)
(command_argument))))
(statement
(expression
(command
(identifier)
(command_argument)))))
================================================================================
Nested Command with Arguments
================================================================================
*less *ls --long -a
--------------------------------------------------------------------------------
(root
(statement
(expression
(command
(identifier)
(command
(identifier)
(command_argument)
(command_argument))))))