parse-cmd: grammar.md

This commit is contained in:
Jerome 2025-04-06 14:29:12 +02:00
parent 1da3cac89d
commit 7f509a50c9

View file

@ -6,7 +6,6 @@ and then || and && which share the same priority (priorization therefore
occurs because of left associativity).
```
{
LINE -> CMDS eol
CMDS -> CMDS LIST_OP PIPELINE
CMDS -> PIPELINE
@ -24,7 +23,6 @@ REDIR -> << word REDIR
REDIR -> ε
LIST_OP -> &&
LIST_OP -> ||
}
```
@ -34,7 +32,6 @@ The same priorities as the previous version except it is now LL(1) and
therefore compatible with descending syntax analysisi (LL(1)).
```
{
LINE -> CMDS eol
CMDS -> PIPELINE OPT_CMDS
OPT_CMDS -> LIST_OP PIPELINE OPT_CMDS
@ -54,5 +51,4 @@ REDIR -> << word REDIR
REDIR -> ε
LIST_OP -> &&
LIST_OP -> ||
}
```