Skip to content

Commit

Permalink
While %tight_or is indeed list associative, because of the way we com…
Browse files Browse the repository at this point in the history
…pile short-circuit || and //, we need to have them marked as left associative. Fixes RT#73774.
  • Loading branch information
jnthn committed Mar 25, 2010
1 parent d0bf6e3 commit dfbd1d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Perl6/Grammar.pm
Expand Up @@ -1323,9 +1323,9 @@ token infix:sym<~~> { <sym> <O('%chaining')> }

token infix:sym<&&> { <sym> <O('%tight_and, :pasttype<if>')> }

token infix:sym<||> { <sym> <O('%tight_or, :pasttype<unless>')> }
token infix:sym<||> { <sym> <O('%tight_or, :assoc<left>, :pasttype<unless>')> }
token infix:sym<^^> { <sym> <O('%tight_or, :pasttype<xor>')> }
token infix:sym<//> { <sym> <O('%tight_or, :pasttype<def_or>')> }
token infix:sym<//> { <sym> <O('%tight_or, :assoc<left>, :pasttype<def_or>')> }
token infix:sym<min> { <sym> <O('%tight_or')> }
token infix:sym<max> { <sym> <O('%tight_or')> }

Expand Down

0 comments on commit dfbd1d5

Please sign in to comment.