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