Skip to content

Commit

Permalink
Switch the grammar to look for an infixish rather than an infix after…
Browse files Browse the repository at this point in the history
… infix_prefix_meta_operator so that you can stack metaops.
  • Loading branch information
colomon committed Mar 15, 2010
1 parent f6de386 commit eff4bd3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Perl6/Actions.pm
Expand Up @@ -1915,7 +1915,7 @@ method infixish($/) {

if $<infix_prefix_meta_operator> {
my $metaop := ~$<infix_prefix_meta_operator><sym>;
my $sym := ~$<infix><sym>;
my $sym := ~$<infixish>;
my $opsub := "&infix:<$metaop$sym>";
unless %*METAOPGEN{$opsub} {
if $metaop eq '!' {
Expand Down
2 changes: 1 addition & 1 deletion src/Perl6/Grammar.pm
Expand Up @@ -1034,7 +1034,7 @@ INIT {
token infixish {
| <OPER=infix> <![=]>
| <infix> <OPER=infix_postfix_meta_operator>
| <OPER=infix_prefix_meta_operator> <infix>
| <OPER=infix_prefix_meta_operator> <infixish>
}

token postfixish {
Expand Down

0 comments on commit eff4bd3

Please sign in to comment.