Changes by: Aleksey Nogin (nogin at cs.caltech.edu)
Date: 2005-08-30 00:17:45 -0700 (Tue, 30 Aug 2005)
Revision: 1429
Log message:
1) Updating the parsing precedences in osh:
- Pipes are right-associative:
"foo1 | foo2 |& foo3" should _not_ pass foo1's stderr to foo3.
- The "&&" has higher precedence than "||" (same as in tcsh, different from
bash)
- Separately, each of the "&&", "||", and ";" is right-associative (the
semantics is associative, so this does not really matter, but
right-associativity is more efficient at run-time).
The new precedence declaration looks as follows:
%nonassoc TokAmp
%right TokPipe
%right TokSemiColon
%right TokOr
%right TokAnd
%nonassoc TokGreaterThan TokGreaterGreaterThan TokLessThan
2) The group_loc field was redundant and never used, removing.
Changes | Path |
+18 -12 | omake/src/shell/omake_shell_parse.mly |
+1 -2 | omake/src/shell/omake_shell_type.ml |