Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Revert "move ~~ from chaining to structural"
This reverts commit 81ad2c0.

Consensus that the damage inflicted by changing the precedence is
worse than the unnaturalness of considering ~~ a chaining op.
  • Loading branch information
TimToady committed Jul 27, 2015
1 parent e3314c8 commit 174049f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Perl6/Grammar.nqp
Expand Up @@ -4001,6 +4001,8 @@ grammar Perl6::Grammar is HLL::Grammar does STD {
token infix:sym<eqv> { <sym> >> <O('%chaining')> }
token infix:sym<before> { <sym> >> <O('%chaining')> }
token infix:sym<after> { <sym> >> <O('%chaining')> }
token infix:sym<~~> { <sym> <O('%chaining')> <!dumbsmart> }
token infix:sym<!~~> { <sym> <O('%chaining')> <!dumbsmart> }
token infix:sym<(elem)> { <sym> <O('%chaining')> }
token infix:sym«» { <sym> <O('%chaining')> }
token infix:sym«» { <sym> <O('%chaining')> }
Expand Down Expand Up @@ -4198,10 +4200,8 @@ grammar Perl6::Grammar is HLL::Grammar does STD {
token infix:sym<but> { <sym> >> <O('%structural')> }
token infix:sym<does> { <sym> >> <O('%structural')> }

token infix:sym<~~> { <sym> <O('%structural')> <!dumbsmart> }
token infix:sym<!~~> { <sym> <O('%structural')> <!dumbsmart> }
token infix:sym<!~> { <sym> \s <.obs('!~ to do negated pattern matching', '!~~')> <O('%structural')> }
token infix:sym<=~> { <sym> <.obs('=~ to do pattern matching', '~~')> <O('%structural')> }
token infix:sym<!~> { <sym> \s <.obs('!~ to do negated pattern matching', '!~~')> <O('%chaining')> }
token infix:sym<=~> { <sym> <.obs('=~ to do pattern matching', '~~')> <O('%chaining')> }

method add_mystery($token, $pos, $ctx) {
my $name := ~$token;
Expand Down

0 comments on commit 174049f

Please sign in to comment.