TITLE ^

PGE/Util.pir - useful rules for working with PGE grammars

DESCRIPTION ^

This module defines a number of useful rules for various parsing tasks using PGE.

Functions ^

die(PMC match, [, message [, ...]] )

Throws an exception at the current point in the match. If message doesn't end with a newline, also produces the line number and offset of the match.

split(PMC regex, STR string [, INT count]

Split the string where the regex matches, returning an array. Optionally limit the number of splits.


parrot