NAME

MarpaX::Languages::ECMAScript::AST::Grammar - ECMAScript grammar written in Marpa BNF

VERSION

version 0.020

SYNOPSIS

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();

DESCRIPTION

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

SUBROUTINES/METHODS

new($class, $grammarName, %grammarSpecificOptions)

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-5

ECMAScript-262, Edition 5

program($self)

Returns the program grammar as a reference to hash that is

grammar

A MarpaX::Languages::ECMAScript::AST::Grammar::Base object

impl

A MarpaX::Languages::ECMAScript::AST::Impl object

grammarAlias($self)

Returns the grammar alias, i.e. the one really used in this distribution.

template($self)

Returns the generic template associated to grammarName.

stringNumericLiteral($self)

Returns the stringNumericLiteral grammar.

pattern($self)

Returns the pattern grammar.

JSON($self)

Returns the JSON grammar.

URI($self)

Returns the URI grammar.

spacesAny($self)

Returns the spacesAny grammar.

SEE ALSO

Marpa::R2

MarpaX::Languages::ECMAScript::AST

MarpaX::Languages::ECMAScript::AST::Grammar::Base

MarpaX::Languages::ECMAScript::AST::Impl

AUTHOR

Jean-Damien Durand <jeandamiendurand@free.fr>

COPYRIGHT AND LICENSE

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.