Skip to content

Instantly share code, notes, and snippets.

@juster
Created November 28, 2014 21:13
Show Gist options
  • Save juster/270b18c7c39478a72d2f to your computer and use it in GitHub Desktop.
Save juster/270b18c7c39478a72d2f to your computer and use it in GitHub Desktop.
digraph "Bash Grammar" {
pipeline_command -> command
command -> simple_command
command -> shell_command
command -> function_def -> function_body
shell_command -> for
shell_command -> case
shell_command -> while
shell_command -> until
shell_command -> select
shell_command -> if
shell_command -> "subshell ()"
shell_command -> "group {}"
shell_command -> arith
shell_command -> cond
shell_command -> arith_for
function_body -> shell_command
for -> compound_list
if -> compound_list
while -> compound_list
until -> compound_list
"group {}" -> compound_list
compound_list -> pipeline_command
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment