Embedded PIR
Grammar:
regex integer { \d+
{{ print "found an integer "
say match }}
}
regex addop { [ '+' | '-' ]
{{ print "found an addop "
say match }}
}
continued...
| Parrot | Perl6Grammar compiler and parsers | #14 |
Grammar:
regex integer { \d+
{{ print "found an integer "
say match }}
}
regex addop { [ '+' | '-' ]
{{ print "found an addop "
say match }}
}
continued...
|
Copyright © 2009 http://www.pmichaud.com/2009/pres/ |