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:
parent
f149d42b82
commit
c79cea756d
|
@ -10,7 +10,7 @@ exp ::= pipe
|
|||
| ('<sh-not> pipe)
|
||||
|
||||
pipe ::= cmd*
|
||||
| ('<sh-pipe> cmd* ...)
|
||||
| ('<sh-pipeline> cmd* ...)
|
||||
|
||||
cmd* ::= cmd
|
||||
| ('<sh-defun> name sync ...)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue