Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
catch infix << and >> as obsolete bit shift operators
  • Loading branch information
moritz committed Apr 6, 2010
1 parent e54dc62 commit b75b2b3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Perl6/Grammar.pm
Expand Up @@ -1605,6 +1605,11 @@ token infix:sym<+&> { <sym> <O('%multiplicative')> }
token infix:sym<~&> { <sym> <O('%multiplicative')> }
token infix:sym<?&> { <sym> <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')> }
Expand Down

0 comments on commit b75b2b3

Please sign in to comment.