Adding a new operator to the parser
To add a new operator to the parser, add it to src/pct/grammar-oper.pg:
proto infix:<**> is tighter(infix:<*>) is pirop('pow') { ... }
Parrot | Parrot Compiler Toolkit | #52 |
To add a new operator to the parser, add it to src/pct/grammar-oper.pg:
proto infix:<**> is tighter(infix:<*>) is pirop('pow') { ... }
Copyright © 2009 http://www.pmichaud.com/2009/pres/ |