Skip to content

Commit

Permalink
Fix precedence of numeric bitshift operators; fixes RT #77232 (masak++).
Browse files Browse the repository at this point in the history
  • Loading branch information
pmichaud committed Aug 16, 2010
1 parent bef86ee commit 2f18a49
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Perl6/Grammar.pm
Expand Up @@ -1795,20 +1795,19 @@ token infix:sym<%%> { <sym> <O('%multiplicative')> }
token infix:sym<+&> { <sym> <O('%multiplicative')> }
token infix:sym<~&> { <sym> <O('%multiplicative')> }
token infix:sym<?&> { <sym> <O('%multiplicative')> }
token infix:sym«+<» { <sym> <!before '<'> <O('%multiplicative')> }
token infix:sym«+>» { <sym> <!before '>'> <O('%multiplicative')> }

token infix:sym«<<» { <sym> \s <.obs('<< to do left shift', '+< or ~<')> }

token infix:sym«>>» { <sym> \s <.obs('>> to do right shift', '+> or ~>')> }


token infix:sym<+> { <sym> <O('%additive')> }
token infix:sym<-> { <sym> <![>]> <O('%additive')> }
token infix:sym<+|> { <sym> <O('%additive')> }
token infix:sym<+^> { <sym> <O('%additive')> }
token infix:sym<~|> { <sym> <O('%additive')> }
token infix:sym<~^> { <sym> <O('%additive')> }
token infix:sym«+<» { <sym> <!before '<'> <O('%additive')> }
token infix:sym«+>» { <sym> <!before '>'> <O('%additive')> }
token infix:sym<?|> { <sym> <O('%additive')> }
token infix:sym<?^> { <sym> <O('%additive')> }

Expand Down

0 comments on commit 2f18a49

Please sign in to comment.