Ingy döt Net > Pegex-0.21 > Pegex::Module

Download:
Pegex-0.21.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

Open  0
View/Report Bugs
Source   Latest Release: Pegex-0.55

NAME ^

Pegex::Module - Base Class for Pegex Grammar Interface Modules

SYNOPSIS ^

    package MyLanguage;
    use Pegex::Base;
    extends 'Pegex::Module';

    has grammar => 'MyLanguage::Grammar';
    has receiver => 'MyLanguage::AST';

    1;

DESCRIPTION ^

The module in the SYNOPSIS above is a complete language parsing module. It just inherits from Pegex::Module, and then overrides the grammar and receiver properties. Pegex::Module provides the parse() method.

AUTHOR ^

Ingy döt Net <ingy@cpan.org>

COPYRIGHT AND LICENSE ^

Copyright (c) 2011, 2012. 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

syntax highlighting: