ABNF::Generator::Liar - class to generate invalid messages for ABNF-based generators
ABNF::Generator::Liar isa BNF::Generator
new
Creates a new ABNF::Generator::Liar object.
$grammar isa ABNF::Grammar.
$validator isa ABNF::Validator.
generate
Generates one invalid 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 it possible.
Return an empty string if command may have no arguments.
unExistedCommand
Return an string starts with char sequence that doesn't match any command
endlessCommand
Return an string starts like command $name and length more then $ENDLESS = 513 * 1024 / 4
Liar
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.