Traits on expression tokens can be useful here
# addition
proto sub infix:<+>
is looser(infix:<*>)
is pirop('add') # use PIR 'add'
{ ... }
continued...
| Parrot Compiler Tools | Running Your Programming Language on Parrot | #39 |
# addition
proto sub infix:<+>
is looser(infix:<*>)
is pirop('add') # use PIR 'add'
{ ... }
continued...
| Copyright © 2007 chromatic and Patrick Michaud |