NAME
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!
INHERITANCE
ABNF::Generator::Honest isa ABNF::Generator
DESCRIPTION
METHODS
ABNF::Generator::Honest->new
($grammar, $validator?)
Creates a new ABNF::Generator::Honest object.
$grammar isa ABNF::Grammar.
$validator isa ABNF::Validator.
$honest->generate
($rule, $tail="")
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.
$honest->withoutArguments
($name, $tail="")
Return a string starts like command $name and without arguments if command may have no arguments.
Return an empty string otherwise.
$tail is a string added to result if it absent.
dies if there is no command like $rule.
FUNCTIONS
Honest
()
Return __PACKAGE__ to reduce class name :3
AUTHOR / COPYRIGHT / LICENSE
Copyright (c) 2013 Arseny Krasikov <nyaapa@cpan.org>.
This module is licensed under the same terms as Perl itself.