Skip to content

Commit

Permalink
Implement [expr]'s bitwise not.
Browse files Browse the repository at this point in the history
  • Loading branch information
coke committed Jul 1, 2010
1 parent 84cc2b4 commit 0bd0fb9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Partcl.pir
@@ -1,3 +1,4 @@
.loadlib 'bit_ops'
.loadlib 'io_ops'

## XXX add cheats to String & Integer to provide 'getList'.
Expand Down
1 change: 1 addition & 0 deletions src/Partcl/Grammar.pm
Expand Up @@ -147,6 +147,7 @@ token term:sym<[ ]> { '[' ~ ']' <script> }
token term:sym<" "> { '"' <quoted_atom>* '"' }

token prefix:sym<!> { <sym> <O('%unary, :pirop<not>')> }
token prefix:sym<~> { <sym> <O('%unary, :pirop<bnot>')> }

token infix:sym<*> { <sym> <O('%multiplicative, :pirop<mul>')> }
token infix:sym</> { <sym> <O('%multiplicative, :pirop<div>')> }
Expand Down

0 comments on commit 0bd0fb9

Please sign in to comment.