line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
1
|
|
|
1
|
|
4
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
24
|
|
2
|
1
|
|
|
1
|
|
3
|
use warnings FATAL => 'all'; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
44
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
package MarpaX::Languages::C::AST::Grammar::ISO_ANSI_C_2011::Scan::Actions; |
5
|
1
|
|
|
1
|
|
3
|
use parent qw/MarpaX::Languages::C::Scan::Actions/; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
7
|
|
6
|
|
|
|
|
|
|
use SUPER; |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
# ABSTRACT: ISO ANSI C 2011 grammar actions in Scan mode |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
our $VERSION = '0.46'; # 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 ($self) = @_; |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
my ($lhs, @rhs) = super(); |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
# |
30
|
|
|
|
|
|
|
# Remove known hiden terms that rule_expand do not remove |
31
|
|
|
|
|
|
|
# |
32
|
|
|
|
|
|
|
my @okRhs = grep {$_ ne 'structContextStart' && |
33
|
|
|
|
|
|
|
$_ ne 'structContextEnd' && |
34
|
|
|
|
|
|
|
$_ ne 'WS_MANY'} @rhs; |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
return ($lhs, @okRhs); |
37
|
|
|
|
|
|
|
} |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
1; |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
__END__ |