Skip to content

Commit d929944

Browse files
committed
be clearer that Terms and Terminators are not ops
1 parent 6074ad5 commit d929944

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

S03-operators.pod

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ Synopsis 3: Operators
88

99
Created: 8 Mar 2004
1010

11-
Last Modified: 29 Mar 2015
12-
Version: 285
11+
Last Modified: 7 Apr 2015
12+
Version: 286
1313

1414
=head1 Overview
1515

@@ -20,11 +20,11 @@ For a summary of the changes from Perl 5, see L</Changes to Perl 5 operators>.
2020
Perl 6 has about the same number of precedence levels as Perl 5,
2121
but they're differently arranged in spots. Here we list the
2222
levels from "tightest" to "loosest", along with a few examples of
23-
each level:
23+
each level. (Column 'A' is for "associativity", see following table.)
2424

2525
A Level Examples
2626
= ===== ========
27-
N Terms 42 3.14 "eek" qq["foo"] $x :!verbose @$array
27+
O Terms 42 3.14 "eek" qq["foo"] $x :!verbose @$array
2828
L Method postfix .meth .+ .? .* .() .[] .{} .<> .«» .:: .= .^ .:
2929
N Autoincrement ++ --
3030
R Exponentiation **
@@ -49,7 +49,7 @@ each level:
4949
X Loose and and andthen
5050
X Loose or or xor orelse
5151
X Sequencer <== ==> <<== ==>>
52-
N Terminator ; {...} unless extra ) ] }
52+
O Terminator ; {...} unless extra ) ] }
5353

5454
Using two C<!> symbols below generically to represent any pair of operators
5555
that have the same precedence, the associativities specified above
@@ -62,6 +62,7 @@ for binary operators are interpreted as follows:
6262
N non ILLEGAL
6363
C chain ($a ! $b) and ($b ! $c)
6464
X list infix:<!>($a; $b; $c)
65+
O N/A (not really an operator)
6566

6667
For unaries this is interpreted as:
6768

0 commit comments

Comments
 (0)