Skip to content

Commit

Permalink
implement infix:<!%>
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz committed Aug 9, 2009
1 parent 75d2b7d commit 5517d80
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/parser/grammar-oper.pg
Expand Up @@ -29,6 +29,7 @@ proto prefix:<|> is equiv(prefix:<+>) { ... }
proto infix:<*> is precedence('u=') { ... }
proto infix:</> is equiv(infix:<*>) { ... }
proto infix:<%> is equiv(infix:<*>) { ... }
proto infix:<!%> is equiv(infix:<*>) { ... }
proto infix:<+&> is equiv(infix:<*>) { ... }
proto infix:<+^> is equiv(infix:<*>) { ... }
proto infix:«+<» is equiv(infix:<*>) { ... }
Expand Down
2 changes: 2 additions & 0 deletions src/setting/Operators.pm
Expand Up @@ -84,4 +84,6 @@ sub prefix:<[||]>(*@a) {
return ();
}

sub infix:<!%>($a, $b) { ! ($a % $b) }

# vim: ft=perl6

0 comments on commit 5517d80

Please sign in to comment.