![]() |
![]()
| ![]() |
![]()
NAMEPegex::Input - Pegex Parser Input Abstraction SYNOPSISuse Pegex; use Pegex::Input; my $ast = pegex($foo_grammar)->parse(Pegex::Input->new(string => $foo_input)); DESCRIPTIONPegex::Parser parses input. The input can be a string, a string reference, a file path, or an open file handle. Pegex::Input is an abstraction over any type of input. It provides a uniform interface to the parser. USAGEYou call new() with two arguments, where the first argument is the input type: Pegex::Input->new(file => 'file.txt') The following input types are available: AUTHORIngy döt Net <ingy@cpan.org> COPYRIGHT AND LICENSECopyright 2010-2020. Ingy döt Net. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See <http://www.perl.com/perl/misc/Artistic.html>
|