Rename '<sh-pipe>' to '<sh-pipeline>'

* doc/syntax.txt: Rename '<sh-pipe>' to '<sh-pipeline>'.
* geesh/parser.scm (make-parser): Ditto.
* tests/parser.scm: Fix test accordingly.
This commit is contained in:
Timothy Sample 2018-07-19 01:19:00 -04:00
parent f149d42b82
commit c79cea756d
3 changed files with 4 additions and 4 deletions

View File

@ -10,7 +10,7 @@ exp ::= pipe
| ('<sh-not> pipe)
pipe ::= cmd*
| ('<sh-pipe> cmd* ...)
| ('<sh-pipeline> cmd* ...)
cmd* ::= cmd
| ('<sh-defun> name sync ...)

View File

@ -289,7 +289,7 @@ the same number of times.)"
(command)
: `(,$1)
(pipe-sequence PIPE linebreak command)
: `(<sh-pipe> ,(append $1 (list $4))))
: `(<sh-pipeline> ,(append $1 (list $4))))
(command
(simple-command)

View File

@ -126,8 +126,8 @@
;; Pipelines
(test-equal "Parses pipelines"
'(<sh-pipe> ((<sh-exec> "cat" "foo.txt")
(<sh-exec> "grep" "bar")))
'(<sh-pipeline> ((<sh-exec> "cat" "foo.txt")
(<sh-exec> "grep" "bar")))
(parse "cat foo.txt | grep bar"))
;; Brace groups and subshells