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, 2013, 2014. Ingy döt Net.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.