AST/Grammar/ECMAScript_262_5/Lexical/NumericLiteral.pm

filter: Statementstmt 100% 17 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 100% 1 / 1 totaltotal 100% 22 / 22 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« AST/Grammar/ECMAScript_262_5/CharacterClasses.pm ↑ Summary AST/Grammar/ECMAScript_262_5/Lexical/RegularExpressionLiteral.pm »
1 6 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 6 ▶use warnings FATAL => 'all';
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 package MarpaX::Languages::ECMAScript::AST::Grammar::ECMAScript_262_5::Lexical::NumericLiteral;
5 6 ▶use parent qw/MarpaX::Languages::ECMAScript::AST::Grammar::ECMAScript_262_5::Base/;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 # ABSTRACT: ECMAScript-262, Edition 5, lexical numeric grammar written in Marpa BNF
8  
9 6 our $VERSION = '0.020'; # VERSION
10  
11  
12 #
13 # Prevent injection of this grammar to collide with others:
14 # ___yy is changed to ___NumericLiteral___yy
15 #
16 6 our $grammar_content = do {local $/; <DATA>};
17 6 $grammar_content =~ s/___/___NumericLiteral___/g;
18  
19  
20 15 ▶sub make_grammar_content {
Subroutine make_grammar_content: called CC=1 SCAR=0.0
Pod documented
21 15 my ($class) = @_;
22 15 return $grammar_content;
23 }
24  
25  
26 6 1;
27  
28 =pod
29  
30 =encoding UTF-8
31  
32 =head1 NAME
33  
34 MarpaX::Languages::ECMAScript::AST::Grammar::ECMAScript_262_5::Lexical::NumericLiteral - ECMAScript-262, Edition 5, lexical numeric grammar written in Marpa BNF
35  
36 =head1 VERSION
37  
38 version 0.020
39  
40 =head1 SYNOPSIS
41  
42 use strict;
43 use warnings FATAL => 'all';
44 use MarpaX::Languages::ECMAScript::AST::Grammar::ECMAScript_262_5::Lexical::NumericLiteral;
45  
46 my $grammar = MarpaX::Languages::ECMAScript::AST::Grammar::ECMAScript_262_5::Lexical::NumericLiteral->new();
47  
48 my $grammar_content = $grammar->content();
49 my $grammar_option = $grammar->grammar_option();
50 my $recce_option = $grammar->recce_option();
51  
52 =head1 DESCRIPTION
53  
54 This modules describes the ECMAScript 262, Edition 5 lexical numeric literal grammar written in Marpa BNF, as of L<http://www.ecma-international.org/publications/standards/Ecma-262.htm>.
55  
56 This module inherits the methods from MarpaX::Languages::ECMAScript::AST::Grammar::ECMAScript_262_5::Base package.
57  
58 =head1 SUBROUTINES/METHODS
59  
60 =head2 make_grammar_content($class)
61  
62 Returns the grammar. This will be injected in the Program's grammar.
63  
64 =head1 SEE ALSO
65  
66 L<MarpaX::Languages::ECMAScript::AST::Grammar::ECMAScript_262_5::Base>
67  
68 =head1 AUTHOR
69  
70 Jean-Damien Durand <jeandamiendurand@free.fr>
71  
72 =head1 COPYRIGHT AND LICENSE
73  
74 This software is copyright (c) 2013 by Jean-Damien Durand.
75  
76 This is free software; you can redistribute it and/or modify it under
77 the same terms as the Perl 5 programming language system itself.
78  
79 =cut
80  
81 __DATA__
« AST/Grammar/ECMAScript_262_5/CharacterClasses.pm ↑ Summary AST/Grammar/ECMAScript_262_5/Lexical/RegularExpressionLiteral.pm »