MarpaX::Languages::ECMA::AST::Grammar - ECMA grammar written in Marpa BNF
version 0.001
use MarpaX::Languages::ECMA::AST::Grammar; my $grammar = MarpaX::Languages::ECMA::AST::Grammar->new('ECMA-262-5'); my $grammar_content = $grammar->content(); my $grammar_option = $grammar->grammar_option(); my $recce_option = $grammar->recce_option();
This modules returns ECMA grammar(s) written in Marpa BNF. Current grammars are: =over =item * ECMA-262-5. The ECMA-262, Edition 5, as of http://www.ecma-international.org/publications/standards/Ecma-262.htm. =back
Instance a new object. Takes the name of the grammar as argument. Remaining arguments are passed to the sub grammar method. Supported grammars are:
ECMA-262, Edition 5
Returns the program grammar as a reference to hash that is
A MarpaX::Languages::ECMA::AST::Grammar::Base object
A MarpaX::Languages::ECMA::AST::Impl object
Marpa::R2
MarpaX::Languages::ECMA::AST
MarpaX::Languages::ECMA::AST::Grammar::Base
MarpaX::Languages::ECMA::AST::Impl
Jean-Damien Durand <jeandamiendurand@free.fr>
This software is copyright (c) 2013 by Jean-Damien Durand.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install MarpaX::Languages::ECMA::AST, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MarpaX::Languages::ECMA::AST
CPAN shell
perl -MCPAN -e shell install MarpaX::Languages::ECMA::AST
For more information on module installation, please visit the detailed CPAN module installation guide.