NAME
MarpaX::Languages::C::AST::Grammar::ISO_ANSI_C_2011 - ISO ANSI C 2011 grammar written in Marpa BNF
VERSION
version 0.48
SYNOPSIS
use strict;
use warnings FATAL => 'all';
use MarpaX::Languages::C::AST::Grammar::ISO_ANSI_C_2011;
my $grammar = MarpaX::Languages::C::AST::Grammar::ISO_ANSI_C_2011->new();
my $grammar_content = $grammar->content();
my $grammar_option = $grammar->grammar_option();
my $recce_option = $grammar->recce_option();
DESCRIPTION
This modules contains the ISO ANSI C 2011 C grammar written in Marpa BNF, as of http://www.quut.com/c/ANSI-C-grammar-y-2011.html and http://www.quut.com/c/ANSI-C-grammar-l.html.
SUBROUTINES/METHODS
new([$pausep, $start, $actionObject, $nonTerminalSemantic, $terminalSemantic])
Instance a new object. Takes an eventual reference to a HASH for lexemes for which a pause after is requested, followed by an eventual start rule, an eventual action object, an eventual default non-terminal semantic action, a default terminal semantic action. Default paused lexemes is hardcoded to a list of lexeme that must always be paused, and this list cannot be altered. Default start rule is 'translationUnit'. Default action object is hardcoded to __PACKAGE__::Actions module. Default non-terminal semantic is hardcoded to ':default ::= action => [values] bless => ::lhs'. Default terminal semantic is hardcoded to :'lexeme default = action => [start,length,value] forgiving => 1'.
content()
Returns the content of the grammar. Takes no argument.
grammar_option()
Returns recommended option for Marpa::R2::Scanless::G->new(), returned as a reference to a hash.
recce_option()
Returns recommended option for Marpa::R2::Scanless::R->new(), returned as a reference to a hash.
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.