ABNF::Validator - class to verify strings based on ABNF-grammars
new
Creates a new ABNF::Validator object.
$grammar isa ABNF::Grammar.
validate
Return 1 if $string matches $rule and 0 otherwise.
$rule is rulename.
$string is arguments string.
dies if there is no command like $rule.
validateArguments
Return 1 if $string matches arguments rules form $rule and 0 otherwise.
validateCommand
Return 1 if there exists command like $command and 0 otherwise
hasCommand
Validator
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.