![]() |
![]()
| ![]() |
![]()
NAMEPugs::Emitter::Grammar::Perl5 - Perl 5 emitter for grammar ASTs SYNOPSISuse Pugs::Compiler::Grammar; use Pugs::Emitter::Grammar::Perl5; my $ast = Pugs::Grammar::Rule->grammar(q{ grammar MyLang; token def { <type> <?ws> <var_list> <?ws>? ';' } token type { int | float | double | char } token var_list { <ident> <?ws>? [ ',' <?ws>? <ident> ]* } })->(); my $perl5 = Pugs::Emitter::Grammar::Perl5::emit($ast); print $perl5; FUNCTIONS
AUTHORThe Pugs contributors <perl6-compiler@perl.org>. COPYRIGHTCopyright (c) 2007 by Agent Zhang (<agentzh@agentzh.org>) and others. 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> SEE ALSOPugs::Compiler::Grammar, compile_p6grammar.pl.
|