The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Parse::RandGen::Subrule - Subrule Condition element, that references a Rule object and a match quantifier

DESCRIPTION

Subrule is a non-terminal Condition element that references a Rule object and contains a match quantifier (how many times the Rule must match for the Condition to be satisfied).

METHODS

new

Creates a new Subrule. The first argument (required) is the Rule that must be satisfied for the condition to match (either a Rule object reference or the name of the rule).

All other arguments are named pairs.

The Subrule class supports the optional arguments "min" and "max", which represent the number of times that the subrule must match for the condition to match.

The "quant" quantifier argument can also be used to specify "min" and "max". The values are the familiar '+', '?', or '*' (also can be 's', '?', or 's?', respectively).

element, min, max

Returns the Condition's attribute of the same name.

subrule

Returns a reference to the Condition's Rule object.

SEE ALSO

Parse::RandGen::Condition, Parse::RandGen::Rule, Parse::RandGen::Production, and Parse::RandGen

AUTHORS

Jeff Dutton