Parse::RandGen::Subrule - Subrule Condition element, that references a Rule object and a match quantifier
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).
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).
Returns the Condition's attribute of the same name.
Returns a reference to the Condition's Rule object.
Parse::RandGen::Condition, Parse::RandGen::Rule, Parse::RandGen::Production, and Parse::RandGen
Jeff Dutton
To install Parse::RandGen, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Parse::RandGen
CPAN shell
perl -MCPAN -e shell install Parse::RandGen
For more information on module installation, please visit the detailed CPAN module installation guide.