ABNF::Generator::Honest - class to generate valid messages for ABNF-based generators
It have $RECURSION_LIMIT = 16. You can change it to increase lower alarm bound on choices and repetition recursion. but use it carefully!
ABNF::Generator::Honest isa ABNF::Generator
new
Creates a new ABNF::Generator::Honest object.
$grammar isa ABNF::Grammar.
$validator isa ABNF::Validator.
generate
Generates one valid sequence string for command $rule.
Using cache $self->{_cache}->{$rule} for this rule, that speeds up this call.
$rule is a command name.
$tail is a string added to result if it absent.
dies if there is no command like $rule.
withoutArguments
Return a string starts like command $name and without arguments if command may have no arguments.
Return an empty string otherwise.
Honest
Return __PACKAGE__ to reduce class name :3
Copyright (c) 2013 Arseny Krasikov <nyaapa@cpan.org>.
This module is licensed under the same terms as Perl itself.
To install ABNF::Grammar, copy and paste the appropriate command in to your terminal.
cpanm
cpanm ABNF::Grammar
CPAN shell
perl -MCPAN -e shell install ABNF::Grammar
For more information on module installation, please visit the detailed CPAN module installation guide.