Parrot Parrot Compiler Toolkit #56

Defining an operation

Once the parser knows about an operator token, we need to define what it does

Operators that correspond to Parrot opcodes use 'is pirop':

##  exponentiation
proto infix:<**>
    is tighter(infix:<*>)
    is pirop('pow') { ... }
continued...
Copyright © 2009
http://www.pmichaud.com/2009/pres/