MarpaX::Languages::ECMAScript::AST::Grammar - ECMAScript grammar written in Marpa BNF
version 0.020
use MarpaX::Languages::ECMAScript::AST::Grammar; my $grammar = MarpaX::Languages::ECMAScript::AST::Grammar->new('ECMAScript-262-5'); my $grammar_content = $grammar->content(); my $grammar_option = $grammar->grammar_option(); my $recce_option = $grammar->recce_option();
This modules returns ECMAScript grammar(s) written in Marpa BNF. Current grammars are: =over =item * ECMAScript-262-5. The ECMAScript-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:
ECMAScript-262, Edition 5
Returns the program grammar as a reference to hash that is
A MarpaX::Languages::ECMAScript::AST::Grammar::Base object
A MarpaX::Languages::ECMAScript::AST::Impl object
Returns the grammar alias, i.e. the one really used in this distribution.
Returns the generic template associated to grammarName.
Returns the stringNumericLiteral grammar.
Returns the pattern grammar.
Returns the JSON grammar.
Returns the URI grammar.
Returns the spacesAny grammar.
Marpa::R2
MarpaX::Languages::ECMAScript::AST
MarpaX::Languages::ECMAScript::AST::Grammar::Base
MarpaX::Languages::ECMAScript::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::ECMAScript::AST, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MarpaX::Languages::ECMAScript::AST
CPAN shell
perl -MCPAN -e shell install MarpaX::Languages::ECMAScript::AST
For more information on module installation, please visit the detailed CPAN module installation guide.