Skip to content

Commit

Permalink
Update precedence of setops to match updated spec.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Jan 11, 2013
1 parent 3c475e3 commit 8edd740
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/Perl6/Grammar.pm
Original file line number Diff line number Diff line change
Expand Up @@ -3119,8 +3119,15 @@ grammar Perl6::Grammar is HLL::Grammar does STD {
token infix:sym<.> { <sym> <[\]\)\},:\s\$"']> <.obs('. to concatenate strings', '~')> }

token infix:sym<&> { <sym> <O('%junctive_and')> }
token infix:sym<(&)> { <!before <sym> <infixish> > <sym> <O('%junctive_and')> }
token infix:sym<(.)> { <!before <sym> <infixish> > <sym> <O('%junctive_and')> }

token infix:sym<|> { <sym> <O('%junctive_or')> }
token infix:sym<^> { <sym> <O('%junctive_or')> }
token infix:sym<(|)> { <!before <sym> <infixish> > <sym> <O('%junctive_or')> }
token infix:sym<(^)> { <!before <sym> <infixish> > <sym> <O('%junctive_or')> }
token infix:sym<(+)> { <!before <sym> <infixish> > <sym> <O('%junctive_or')> }
token infix:sym<(-)> { <!before <sym> <infixish> > <sym> <O('%junctive_or')> }

token prefix:sym<let> { <sym> \s+ <!before '=>'> <O('%named_unary')> { $*W.give_cur_block_let($/) } }
token prefix:sym<temp> { <sym> \s+ <!before '=>'> <O('%named_unary')> { $*W.give_cur_block_temp($/) } }
Expand Down Expand Up @@ -3222,12 +3229,6 @@ grammar Perl6::Grammar is HLL::Grammar does STD {

token infix:sym<Z> { <!before <sym> <infixish> > <sym> <O('%list_infix')> }
token infix:sym<X> { <!before <sym> <infixish> > <sym> <O('%list_infix')> }
token infix:sym<(|)> { <!before <sym> <infixish> > <sym> <O('%list_infix')> }
token infix:sym<(&)> { <!before <sym> <infixish> > <sym> <O('%list_infix')> }
token infix:sym<(-)> { <!before <sym> <infixish> > <sym> <O('%list_infix')> }
token infix:sym<(^)> { <!before <sym> <infixish> > <sym> <O('%list_infix')> }
token infix:sym<(.)> { <!before <sym> <infixish> > <sym> <O('%list_infix')> }
token infix:sym<(+)> { <!before <sym> <infixish> > <sym> <O('%list_infix')> }

token infix:sym<...> { <sym> <O('%list_infix')> }
token infix:sym<...^> { <sym> <O('%list_infix')> }
Expand Down

0 comments on commit 8edd740

Please sign in to comment.