GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  PUGS::EMITTER::GRAMMAR::PERL5 (3)

.ds Aq ’

NAME

Pugs::Emitter::Grammar::Perl5 - Perl 5 emitter for grammar ASTs

CONTENTS

SYNOPSIS



    use 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

$perl5 = Pugs::Emitter::Grammar::Perl5::emit($ast) Generate Perl 5 source code from the grammar AST returned by Pugs::Grammar::Rule’s grammar parser.

AUTHOR

The Pugs contributors <perl6-compiler@perl.org>.

COPYRIGHT

Copyright (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 ALSO

Pugs::Compiler::Grammar, compile_p6grammar.pl.
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 PUGS::EMITTER::GRAMMAR::PERL5 (3) 2008-07-29

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.