You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by pa...@apache.org on 2015/05/21 09:51:10 UTC

[2/4] incubator-groovy git commit: operator precedence doco (make a little bit prettier)

operator precedence doco (make a little bit prettier)


Project: http://git-wip-us.apache.org/repos/asf/incubator-groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-groovy/commit/5e7de109
Tree: http://git-wip-us.apache.org/repos/asf/incubator-groovy/tree/5e7de109
Diff: http://git-wip-us.apache.org/repos/asf/incubator-groovy/diff/5e7de109

Branch: refs/heads/GROOVY_2_4_X
Commit: 5e7de1091de18ebc5fbb3a6730c33ffa407dc5dc
Parents: 9857ebb
Author: Paul King <pa...@asert.com.au>
Authored: Mon May 18 12:02:06 2015 +1000
Committer: Paul King <pa...@asert.com.au>
Committed: Thu May 21 17:50:51 2015 +1000

----------------------------------------------------------------------
 src/spec/doc/core-operators.adoc | 28 ++++++++++++++--------------
 1 file changed, 14 insertions(+), 14 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-groovy/blob/5e7de109/src/spec/doc/core-operators.adoc
----------------------------------------------------------------------
diff --git a/src/spec/doc/core-operators.adoc b/src/spec/doc/core-operators.adoc
index 2492aaa..be1b17b 100644
--- a/src/spec/doc/core-operators.adoc
+++ b/src/spec/doc/core-operators.adoc
@@ -648,20 +648,20 @@ The table below lists all groovy operators in order of precedence.
 [options="header"]
 |======================
 |Level | Operator(s) | Name(s)
-| 1 | `new` `()` | object creation, explicit parentheses
-|   | `()` `{}` `[]` | method call, closure, literal list/map
-|   | `.` `.&` `.@` | member access, method closure, field/attribute access
-|   | `?.` `*` `*.` `*:` | safe dereferencing, spread, spread-dot, spread-map
-|   | `~` `!` `(type)` | bitwise negate/pattern, not, typecast
-|   | [] ++ -- | list/map/array index, post inc/decrement
+| 1 | `new` &#160; `()` | object creation, explicit parentheses
+|   | `()` &#160; `{}` &#160; `[]` | method call, closure, literal list/map
+|   | `.` &#160; `.&` &#160; `.@` | member access, method closure, field/attribute access
+|   | `?.` &#160; `\*` &#160; `*.` &#160; `*:` | safe dereferencing, spread, spread-dot, spread-map
+|   | `~` &#160; `!` &#160; `(type)` | bitwise negate/pattern, not, typecast
+|   | `[]` &#160; `++` &#160; `--` | list/map/array index, post inc/decrement
 | 2 | `**` | power
-| 3 | `++` `--` `+` `-` | pre inc/decrement, unary plus, unary minus
-| 4 | `*` `/` `%` | multiply, div, modulo
-| 5 | `+` `-` | addition, subtraction
-| 6 | `<<` `>>` `>>>` `..` `..<` | left/right (unsigned) shift, inclusive/exclusive range
-| 7 | `<` `\<=` `>` `>=` `in` `instanceof` `as` | less/greater than/or equal, in, instanceof, type coercion
-| 8 | `==` `!=` `pass:[<=>]` | equals, not equals, compare to
-|   | `=~` `==~` | regex find, regex match
+| 3 | `++` &#160; `--` &#160; `+` &#160; `-` | pre inc/decrement, unary plus, unary minus
+| 4 | `*` &#160; `/` &#160; `%` | multiply, div, modulo
+| 5 | `+` &#160; `-` | addition, subtraction
+| 6 | `<<` &#160; `>>` &#160; `>>>` &#160; `..` &#160; `..<` | left/right (unsigned) shift, inclusive/exclusive range
+| 7 | `<` &#160; `\<=` &#160; `>` &#160; `>=` &#160; `in` &#160; `instanceof` &#160; `as` | less/greater than/or equal, in, instanceof, type coercion
+| 8 | `==` &#160; `!=` &#160; `pass:[<=>]` | equals, not equals, compare to
+|   | `=~` &#160; `==~` | regex find, regex match
 | 9 | `&` | binary/bitwise and
 | 10 | `^` | binary/bitwise xor
 | 11 | `\|` | binary/bitwise or
@@ -669,7 +669,7 @@ The table below lists all groovy operators in order of precedence.
 | 13 | `\|\|` | logical or
 | 14 | `? :` | ternary conditional
 |    | `?:` | elvis operator
-| 15 | `=` `\**=` `*=` `/=` `%=` `+=` `-=` `pass:[<<=]` `>>=` `>>>=` `&=` `^=` `\|=` | various assignments
+| 15 | `=` &#160; `\**=` &#160; `*=` &#160; `/=` &#160; `%=` &#160; `+=` &#160; `-=` &#160; `pass:[<<=]` &#160; `>>=` &#160; `>>>=` &#160; `&=` &#160; `^=` &#160; `\|=` | various assignments
 |======================
 
 [[Operator-Overloading]]