line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
1
|
|
|
1
|
|
3
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
31
|
|
2
|
1
|
|
|
1
|
|
7
|
use warnings FATAL => 'all'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
72
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
package MarpaX::Languages::C::AST::Grammar::ISO_ANSI_C_2011::Scan::Actions; |
5
|
1
|
|
|
1
|
|
7
|
use parent qw/MarpaX::Languages::C::Scan::Actions/; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
9
|
|
6
|
|
|
|
|
|
|
use SUPER; |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
# ABSTRACT: ISO ANSI C 2011 grammar actions in Scan mode |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
our $VERSION = '0.47'; # VERSION |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
# |
14
|
|
|
|
|
|
|
# Because Marpa is using $CODE{} |
15
|
|
|
|
|
|
|
# |
16
|
|
|
|
|
|
|
sub new { |
17
|
|
|
|
|
|
|
super() |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
sub nonTerminalSemantic { |
21
|
|
|
|
|
|
|
super() |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub getRuleDescription { |
25
|
|
|
|
|
|
|
my ($lhs, @rhs) = super(); |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
# |
28
|
|
|
|
|
|
|
# Remove known hiden terms that rule_expand do not remove |
29
|
|
|
|
|
|
|
# |
30
|
|
|
|
|
|
|
my @okRhs = grep {$_ ne 'structContextStart' && |
31
|
|
|
|
|
|
|
$_ ne 'structContextEnd' && |
32
|
|
|
|
|
|
|
$_ ne 'WS_MANY'} @rhs; |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
return ($lhs, @okRhs) |
35
|
|
|
|
|
|
|
} |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
1; |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
__END__ |