File Coverage

blib/lib/RPerl/Generator.pm
Criterion Covered Total %
statement 1353 3407 39.7
branch n/a
condition n/a
subroutine 347 348 99.7
pod n/a
total 1700 3755 45.2


line stmt bran cond sub pod time code
1             ## no critic qw(ProhibitExcessMainComplexity) # SYSTEM SPECIAL 4: allow complex code outside subroutines, must be on line 1
2             # [[[ HEADER ]]]
3             package RPerl::Generator;
4 4     4   26 use strict;
  4         9  
  4         281  
5 4     4   26 use warnings;
  4         10  
  4         102  
6 4     4   23 use RPerl::AfterSubclass;
  4         9  
  4         541  
7             our $VERSION = 0.005_000;
8              
9             # [[[ OO INHERITANCE ]]]
10 4     4   30 use parent qw(RPerl::CompileUnit::Module::Class);
  4         7  
  4         24  
11 4     4   276 use RPerl::CompileUnit::Module::Class;
  4         8  
  4         95  
12              
13             # [[[ CRITICS ]]]
14             ## no critic qw(ProhibitUselessNoCritic ProhibitMagicNumbers RequireCheckedSyscalls) # USER DEFAULT 1: allow numeric values & print operator
15             ## no critic qw(RequireInterpolationOfMetachars) # USER DEFAULT 2: allow single-quoted control characters & sigils
16             ## no critic qw(ProhibitStringyEval) # SYSTEM DEFAULT 1: allow eval()
17              
18             # [[[ INCLUDES ]]]
19 4     4   20 use RPerl::Grammar;
  4         14  
  4         107  
20 4     4   1854 use RPerl::Compiler; # for post_processor_cpp_*()
  4         12  
  4         126  
21 4     4   1625 use rperltypesconv;
  4         13  
  4         662  
22 4     4   34 use IPC::Cmd qw(can_run); # to check for `astyle`
  4         10  
  4         185  
23 4     4   23 use File::Temp qw(tempfile);
  4         8  
  4         158  
24 4     4   24 use File::Basename;
  4         9  
  4         197  
25 4     4   759 use Alien::astyle;
  4         14149  
  4         34  
26 4     4   14316 use Env qw(@PATH);
  4         2556  
  4         26  
27             unshift @PATH, Alien::astyle->bin_dir();
28              
29             #use RPerl::Parser;
30             #require RPerl::Parser;
31             #eval 'require RPerl::Parser;';
32             eval { require RPerl::Parser; };
33             if ( $EVAL_ERROR and ( $EVAL_ERROR =~ /attempt to reload/i ) ) {
34             delete $INC{'RPerl::Parser'};
35             require RPerl::Parser;
36             }
37             elsif ( $EVAL_ERROR ne q{} ) { die $EVAL_ERROR; }
38              
39 4     4   954 use English qw(-no_match_vars); # for $OSNAME; NEED ANSWER: why isn't this included from 'require RPerl::Config', which is included from 'use RPerl' above?
  4         8  
  4         43  
40              
41             # [[[ CONSTANTS ]]]
42             # NEED UPGRADE, CORRELATION #rp035: allow multi-line subroutines & other code blocks, where they would be less than 160 chars if on a single line
43 4     4   1517 use constant PERLTIDY_LINE_WIDTH => my number $TYPED_PERLTIDY_LINE_WIDTH = 160;
  4         10  
  4         10027  
44              
45             # [[[ OO PROPERTIES ]]]
46             our hashref $properties = {};
47              
48             # [[[ PROCEDURAL SUBROUTINES ]]]
49              
50             # convert array max index to array size (difference of 1)
51             our object $arrayref_convert_index_max_to_size = sub {
52             ( my object $subexpression ) = @_;
53              
54             # RPerl::diag( 'in Generator->arrayref_convert_index_max_to_size(), received $subexpression = ' . "\n" . RPerl::Parser::rperl_ast__dump($subexpression) . "\n" );
55              
56             my object $subexpression_original = $subexpression;
57             my boolean $is_modified = 0;
58             my integer $nested_parenthesis = 0;
59            
60             # look inside nested parenthesis-as-subexpressions, always length 1 so no need to check length
61             while ((ref $subexpression) eq 'SubExpression_143') { # RPerl::Operation::Expression::SubExpression::Parenthesis
62             $subexpression = $subexpression->{children}->[1];
63             $nested_parenthesis++;
64             }
65            
66             # RPerl::diag( 'in Generator->arrayref_convert_index_max_to_size(), have post-nested-parens $subexpression = ' . "\n" . RPerl::Parser::rperl_ast__dump($subexpression) . "\n" );
67              
68             if ( $subexpression->{children}->[0]->isa('RPerl::Operation::Expression::Operator') ) {
69             if ( $subexpression->{children}->[0]->{children}->[0]->isa('RPerl::Operation::Expression::Operator::Arithmetic::AddSubtract') ) {
70             if ( ( exists $subexpression->{children}->[0]->{children}->[0]->{children}->[1] )
71             and ( $subexpression->{children}->[0]->{children}->[0]->{children}->[1] =~ /^-\s*$/xms ) )
72             {
73             if ( $subexpression->{children}->[0]->{children}->[0]->{children}->[2]->isa('RPerl::Operation::Expression::SubExpression::Literal') ) {
74             if ( $subexpression->{children}->[0]->{children}->[0]->{children}->[2]->{children}->[0]
75             ->isa('RPerl::Operation::Expression::SubExpression::Literal::Number') )
76             {
77             if ( $subexpression->{children}->[0]->{children}->[0]->{children}->[2]->{children}->[0]->{children}->[0] eq q{1} ) {
78             # '$foo - 1' becomes '$foo'
79             # RPerl::diag( 'in Generator->arrayref_convert_index_max_to_size(), setting ($foo - 1) to ($foo)' . "\n");
80             $subexpression = $subexpression->{children}->[0]->{children}->[0]->{children}->[0];
81             $is_modified = 1;
82             $nested_parenthesis = 0; # discard parens if present
83             }
84             else {
85             # '$foo - 10' becomes '$foo - 9'
86             my number $tmp_number
87             = string_to_number( $subexpression->{children}->[0]->{children}->[0]->{children}->[2]->{children}->[0]->{children}->[0] );
88             # RPerl::diag( 'in Generator->arrayref_convert_index_max_to_size(), setting ($foo - ' . $tmp_number . ') to ($foo - ' . ($tmp_number - 1) .')' . "\n");
89             $tmp_number--;
90             $subexpression->{children}->[0]->{children}->[0]->{children}->[2]->{children}->[0]->{children}->[0]
91             = number_to_string($tmp_number);
92             $is_modified = 1;
93             if ($nested_parenthesis) { $nested_parenthesis = 1; } # keep 1 set of parens if 1 or more is present
94             }
95             }
96             }
97             }
98             }
99             }
100             # else { RPerl::diag( 'in Generator->arrayref_convert_index_max_to_size(), have non-Operator $subexpression, not modifying' . "\n"); }
101              
102             if ($is_modified) {
103             if ($nested_parenthesis) {
104             # create new-but-equivalent object to alert caller of modification
105             my object $subexpression_modified = RPerl::CompileUnit::Module::Class::new('SubExpression_143');
106             $subexpression_modified->{children}->[0] = '(';
107             $subexpression_modified->{children}->[1] = $subexpression;
108             $subexpression_modified->{children}->[2] = ')';
109             $subexpression = $subexpression_modified;
110             }
111             else {
112             # create new-but-equivalent object to alert caller of modification
113             my object $subexpression_modified = RPerl::CompileUnit::Module::Class::new(ref $subexpression);
114             $subexpression_modified->{children} = $subexpression->{children};
115             $subexpression = $subexpression_modified;
116             }
117             }
118             return $subexpression;
119             };
120              
121             # convert RPerl types to C++ types
122             our string $type_convert_perl_to_cpp = sub {
123             ( my string $return_type, my boolean $pointerify_classes ) = @_;
124              
125             # RPerl::diag('in Generator->type_convert_perl_to_cpp(), received $return_type = ' . $return_type . "\n");
126             # RPerl::diag('in Generator->type_convert_perl_to_cpp(), received $pointerify_classes = ' . $pointerify_classes . "\n");
127              
128             if ( exists $rperlnamespaces_generated::RPERL->{ $return_type . '::' } ) { # RPerl types
129             $return_type =~ s/^constant_/const\ /gxms; # 'constant_foo' becomes 'const foo'
130             }
131             else { # user-defined types AKA classes
132             $return_type =~ s/:/_/gxms; # 'Foo::Bar::Baz' becomes 'Foo__Bar__Baz'
133             if ($pointerify_classes) {
134             if ( $return_type =~ /_raw$/ ) {
135             $return_type =~ s/_raw$/_rawptr/xms; # 'Foo__Bar__Baz_raw' becomes 'Foo__Bar__Baz_rawptr'
136             }
137             elsif ( ( $return_type !~ /_arrayref$/ ) and ( $return_type !~ /_hashref$/ ) ) {
138              
139             # don't pointerify arrayrefs or hashrefs, they are already pointerified
140             $return_type .= '_ptr'; # 'Foo__Bar__Baz' becomes 'Foo__Bar__Baz_ptr'
141             }
142             }
143             }
144             return $return_type; # much meta
145             };
146              
147             # search for dummy source code
148             our boolean $dummy_source_code_find = sub {
149             ( my string_hashref $source_group ) = @_;
150             foreach my string $suffix_key ( sort keys %{$source_group} ) {
151             if ( $source_group->{$suffix_key} =~ /__DUMMY_SOURCE_CODE/xms ) {
152             return 1;
153             }
154             }
155             return 0;
156             };
157              
158             # line-by-line comparison of file contents vs string contents;
159             # returns -1 __DUMMY_SOURCE_CODE found, 0 no difference, >0 line number of first difference
160             our hashref $diff_check_file_vs_string = sub {
161             ( my string $file_name_reference, my string_hashref $source_group, my string $suffix_key, my string_hashref $file_name_group, my string_hashref $modes ) = @_;
162             # RPerl::diag('in Generator->diff_check_file_vs_string(), TOP OF SUBROUTINE ' . "\n");
163             # RPerl::diag('in Generator->diff_check_file_vs_string(), received $file_name_reference = ' . $file_name_reference . "\n");
164             # RPerl::diag('in Generator->diff_check_file_vs_string(), contents of file = ' . "\n");
165             # system 'cat', $file_name_reference;
166             # RPerl::diag('in Generator->diff_check_file_vs_string(), received $source_group = ' . "\n" . Dumper($source_group) . "\n\n");
167             # RPerl::diag('in Generator->diff_check_file_vs_string(), received $suffix_key = ' . $suffix_key . "\n");
168             # RPerl::diag('in Generator->diff_check_file_vs_string(), received $file_name_group = ' . "\n" . Dumper($file_name_group) . "\n\n");
169             # RPerl::diag('in Generator->diff_check_file_vs_string(), received $modes = ' . "\n" . Dumper($modes) . "\n\n");
170              
171             my string $string_generated = $source_group->{$suffix_key};
172             # RPerl::diag('in Generator->diff_check_file_vs_string(), have $string_generated = $source_group->{$suffix_key} = ' . "\n" . $string_generated . "\n\n");
173              
174             if (( not -e $file_name_reference ) or ( not -f $file_name_reference ) or ( not -T $file_name_reference )) {
175             die 'ERROR ECOGEDI00, RPERL GENERATOR, DIFF CHECK: Missing or invalid file, ' . q{'} . $file_name_reference . q{'} . "\n" . ', dying' . "\n";
176             }
177              
178             open my filehandleref $FILE_HANDLE_REFERENCE, '<', $file_name_reference
179             or die 'ERROR ECOGEDI01, RPERL GENERATOR, DIFF CHECK: Cannot open file ' . q{'} . $file_name_reference . q{'} . ' for reading,' . $OS_ERROR . ', dying' . "\n";
180              
181             # read in file, strip blank lines
182             my string $file_line;
183             my string $string_reference = q{};
184             while ( $file_line = <$FILE_HANDLE_REFERENCE> ) {
185             $file_line =~ s/^\s+//xms; # strip leading whitespace
186              
187             # discard blank & all-whitespace lines
188             if ( $file_line =~ /^\s*$/xms ) {
189             next;
190             }
191              
192             # strip trailing whitespace, if present
193             $file_line =~ s/[ \t]+$//;
194             $string_reference .= $file_line;
195             }
196              
197             close $FILE_HANDLE_REFERENCE
198             or die 'ERROR ECOGEDI02, RPERL GENERATOR, DIFF CHECK: Cannot close file ' . q{'} . $file_name_reference . q{'} . ' after reading, ' . $OS_ERROR . ', dying' . "\n";
199              
200             # remove extra blank lines inserted by RPerl generators
201             $string_generated =~ s/\n\n/\n/gxms;
202              
203             # RPerl::diag( 'in Generator->diff_check_file_vs_string(), have $string_reference = ' . "\n" . ( q{=} x 60 ) . "\n" . $string_reference . "\n" . ( q{=} x 60 ) . "\n\n" );
204             # RPerl::diag( 'in Generator->diff_check_file_vs_string(), have $string_generated = ' . "\n" . ( q{=} x 60 ) . "\n" . $string_generated . "\n" . ( q{=} x 60 ) . "\n\n" );
205            
206             # [ TIDY/FORMAT ALL CODE ]
207             my string $string_reference_tidied = q{};
208             my string $string_generated_tidied = q{};
209             if (( $suffix_key eq 'PMC' ) or (($modes->{ops} eq 'PERL') and ($suffix_key eq 'EXE'))) {
210              
211             # TIDY REFERENCE PERL SOURCE CODE
212             my string $perltidy_stderr_string = undef;
213             my scalartype $perltidy_errored = Perl::Tidy::perltidy(
214              
215             # same as Compiler::save_source_files() except '-se' to redirect STDERR
216             # argv => q{-pbp --ignore-side-comment-lengths --converge -l=160 -b -nst -bext='/' -q -se},
217             argv => q{-pbp --ignore-side-comment-lengths --converge -l=} . PERLTIDY_LINE_WIDTH() . q{ -b -nst -bext='/' -q -se},
218             source => \$string_reference,
219             destination => \$string_reference_tidied,
220             stderr => \$perltidy_stderr_string,
221             );
222             if ($perltidy_errored) { # serious error in input parameters, no tidied output
223             die 'ERROR ECOGEDI03: Perl::Tidy major failure in file ' . q{'} . $file_name_reference . q{'} . ' with the following STDERR output, dying' . "\n" . $perltidy_stderr_string . "\n";
224             }
225             elsif ($perltidy_stderr_string) {
226             die 'ERROR ECOGEDI04: Perl::Tidy minor failure in file ' . q{'} . $file_name_reference . q{'} . ' with the following STDERR output, dying' . "\n" . $perltidy_stderr_string . "\n";
227             }
228              
229             # TIDY GENERATED PERL SOURCE CODE
230             $perltidy_errored = Perl::Tidy::perltidy(
231             # argv => q{-pbp --ignore-side-comment-lengths --converge -l=160 -b -nst -bext='/' -q -se},
232             argv => q{-pbp --ignore-side-comment-lengths --converge -l=} . PERLTIDY_LINE_WIDTH() . q{ -b -nst -bext='/' -q -se},
233             source => \$string_generated,
234             destination => \$string_generated_tidied,
235             stderr => \$perltidy_stderr_string,
236             );
237             if ($perltidy_errored) {
238             die 'ERROR ECOGEDI05: Perl::Tidy major failure in generated source code string with the following STDERR output, dying' . "\n" . $perltidy_stderr_string . "\n";
239             }
240             elsif ($perltidy_stderr_string) {
241             die 'ERROR ECOGEDI06: Perl::Tidy minor failure in generated source code string with the following STDERR output, dying' . "\n" . $perltidy_stderr_string . "\n";
242             }
243              
244             # POST-PROCESS PERL SOURCE CODE
245             $string_reference_tidied = RPerl::Compiler::post_processor_perl__comments_whitespace_delete($string_reference_tidied);
246             $string_generated_tidied = RPerl::Compiler::post_processor_perl__comments_whitespace_delete($string_generated_tidied);
247             }
248             elsif (($suffix_key eq 'H') or ($suffix_key eq 'CPP') or (($modes->{ops} eq 'CPP') and ($suffix_key eq 'EXE'))) {
249             # FORMAT REFERENCE C++ SOURCE CODE
250             my filehandleref $FILE_HANDLE_REFERENCE_TMP;
251             (my string $file_name_reference_tmp, my string $file_name_reference_tmp_dirs, my string $file_name_reference_tmp_suffix) = fileparse($file_name_reference);
252             # RPerl::diag( 'in Generator->diff_check_file_vs_string(), have $file_name_reference_tmp = ' . q{'} . $file_name_reference_tmp . q{'} . "\n" );
253             # RPerl::diag( 'in Generator->diff_check_file_vs_string(), have $file_name_reference_tmp_dirs = ' . q{'} . $file_name_reference_tmp_dirs . q{'} . "\n" );
254             # RPerl::diag( 'in Generator->diff_check_file_vs_string(), have $file_name_reference_tmp_suffix = ' . q{'} . $file_name_reference_tmp_suffix . q{'} . "\n" );
255            
256             ( $FILE_HANDLE_REFERENCE_TMP, $file_name_reference_tmp ) = tempfile( $file_name_reference_tmp . '.reference.tempfileXXXX', UNLINK => 1, TMPDIR => 1 );
257             # RPerl::diag( 'in Generator->diff_check_file_vs_string(), have modified $file_name_reference_tmp = ' . q{'} . $file_name_reference_tmp . q{'} . "\n" );
258            
259             print {$FILE_HANDLE_REFERENCE_TMP} $string_reference or croak("\nERROR ECOGEFI00, GENERATOR, FILE SYSTEM: Attempting to save new file '$file_name_reference_tmp', cannot write to file,\ncroaking: $OS_ERROR");
260             close $FILE_HANDLE_REFERENCE_TMP or croak("\nERROR ECOGEFI01, GENERATOR, FILE SYSTEM: Attempting to save new file '$file_name_reference_tmp', cannot close file,\ncroaking: $OS_ERROR");
261              
262             my string $astyle_path = can_run('astyle');
263             if ( defined $astyle_path ) {
264             # don't insert extra newlines, which causes accessors, mutators, and ops_types reporting subroutines to be broken into multiple lines
265             my string $astyle_command = join q{ }, ($astyle_path, '-q', '--keep-one-line-blocks', '--keep-one-line-statements', $file_name_reference_tmp);
266             # RPerl::diag( 'in Generator->diff_check_file_vs_string(), about to call system, have $astyle_command = ' . "\n" . $astyle_command . "\n" );
267             system $astyle_command;
268             # RPerl::diag( 'in Generator->diff_check_file_vs_string(), returned from call to system' . "\n" );
269              
270             if (( -e $file_name_reference_tmp . '.orig' ) and ( -f $file_name_reference_tmp . '.orig' )) {
271             unlink( $file_name_reference_tmp . '.orig' ) or croak( "\n" . 'ERROR ECOGEFI02, GENERATOR, FILE SYSTEM: Cannot delete Artistic Style original file ' . q{'} . $file_name_reference_tmp . '.orig' . q{'} . ',' . "\n" . 'croaking:' . $OS_ERROR);
272             }
273             # DEV NOTE: astyle does not create a .orig file if there are no formatting changes made, so it is not actually a warning
274             # else { RPerl::warning( 'WARNING WCOGEFI01, COMPILER, C++ CODE FORMATTING: Artistic Style command `astyle` did not create the file' . q{'} . $file_name_reference_tmp . '.orig' . q{'} . ', did something go wrong?' . "\n" ); }
275             }
276             else {
277             RPerl::warning( 'WARNING WCOGEFI00, COMPILER, C++ CODE FORMATTING: Artistic Style command `astyle` not found, abandoning formatting' . "\n" );
278             }
279              
280             if (( not -e $file_name_reference_tmp ) or ( not -f $file_name_reference_tmp ) or ( not -T $file_name_reference_tmp )) {
281             die 'ERROR ECOGEDI07, RPERL GENERATOR, DIFF CHECK: Missing or invalid temporary AStyle-tidied file, ' . q{'} . $file_name_reference_tmp . q{'} . "\n" . ', dying' . "\n";
282             }
283            
284             open $FILE_HANDLE_REFERENCE_TMP, '<', $file_name_reference_tmp
285             or die 'ERROR ECOGEDI08, RPERL GENERATOR, DIFF CHECK: Cannot open temporary AStyle-tidied file ' . q{'} . $file_name_reference_tmp . q{'} . ' for reading,' . $OS_ERROR . ', dying' . "\n";
286            
287             # read in tidied file
288             my string $file_line_reference_tmp;
289             while ( $file_line_reference_tmp = <$FILE_HANDLE_REFERENCE_TMP> ) {
290             $string_reference_tidied .= $file_line_reference_tmp . "\n";
291             }
292              
293             close $FILE_HANDLE_REFERENCE_TMP
294             or die 'ERROR ECOGEDI09, RPERL GENERATOR, DIFF CHECK: Cannot close temporary AStyle-tidied file ' . q{'} . $file_name_reference_tmp . q{'} . ' after reading, ' . $OS_ERROR . ', dying' . "\n";
295              
296             # FORMAT GENERATED C++ SOURCE CODE
297             my filehandleref $FILE_HANDLE_GENERATED_TMP;
298             (my string $file_name_generated_tmp, my string $file_name_generated_tmp_dirs, my string $file_name_generated_tmp_suffix) = fileparse($file_name_reference);
299             # RPerl::diag( 'in Generator->diff_check_file_vs_string(), have $file_name_generated_tmp = ' . q{'} . $file_name_generated_tmp . q{'} . "\n" );
300             # RPerl::diag( 'in Generator->diff_check_file_vs_string(), have $file_name_generated_tmp_dirs = ' . q{'} . $file_name_generated_tmp_dirs . q{'} . "\n" );
301             # RPerl::diag( 'in Generator->diff_check_file_vs_string(), have $file_name_generated_tmp_suffix = ' . q{'} . $file_name_generated_tmp_suffix . q{'} . "\n" );
302              
303             ( $FILE_HANDLE_GENERATED_TMP, $file_name_generated_tmp ) = tempfile( $file_name_generated_tmp . '.generated.tempfileXXXX', UNLINK => 1, TMPDIR => 1 );
304             # RPerl::diag( 'in Generator->diff_check_file_vs_string(), have modified $file_name_generated_tmp = ' . q{'} . $file_name_generated_tmp . q{'} . "\n" );
305             # RPerl::diag( 'in Generator->diff_check_file_vs_string(), about to save content $string_generated = $source_group->{' . $suffix_key . '} = ' . "\n" . $string_generated . "\n\n");
306              
307             print {$FILE_HANDLE_GENERATED_TMP} $string_generated or croak("\nERROR ECOGEFI00, GENERATOR, FILE SYSTEM: Attempting to save new file '$file_name_generated_tmp', cannot write to file,\ncroaking: $OS_ERROR");
308             close $FILE_HANDLE_GENERATED_TMP or croak("\nERROR ECOGEFI01, GENERATOR, FILE SYSTEM: Attempting to save new file '$file_name_generated_tmp', cannot close file,\ncroaking: $OS_ERROR");
309              
310             # my string $astyle_path = can_run('astyle');
311             if ( defined $astyle_path ) {
312             # don't insert extra newlines, which causes accessors, mutators, and ops_types reporting subroutines to be broken into multiple lines
313             my string $astyle_command = join q{ }, ($astyle_path, '-q', '--keep-one-line-blocks', '--keep-one-line-statements', $file_name_generated_tmp);
314             # RPerl::diag( 'in Generator->diff_check_file_vs_string(), about to call system, have $astyle_command = ' . "\n" . $astyle_command . "\n" );
315             system $astyle_command;
316             # RPerl::diag( 'in Generator->diff_check_file_vs_string(), returned from call to system' . "\n" );
317              
318             if (( -e $file_name_generated_tmp . '.orig' ) and ( -f $file_name_generated_tmp . '.orig' )) {
319             unlink( $file_name_generated_tmp . '.orig' ) or croak( "\n" . 'ERROR ECOGEFI02, GENERATOR, FILE SYSTEM: Cannot delete Artistic Style original file ' . q{'} . $file_name_generated_tmp . '.orig' . q{'} . ',' . "\n" . 'croaking:' . $OS_ERROR);
320             }
321             # DEV NOTE: astyle does not create a .orig file if there are no formatting changes made, so it is not actually a warning
322             # else { RPerl::warning( 'WARNING WCOGEFI01, COMPILER, C++ CODE FORMATTING: Artistic Style command `astyle` did not create the file' . q{'} . $file_name_generated_tmp . '.orig' . q{'} . ', did something go wrong?' . "\n" ); }
323             }
324             else {
325             RPerl::warning( 'WARNING WCOGEFI00, COMPILER, C++ CODE FORMATTING: Artistic Style command `astyle` not found, abandoning formatting' . "\n" );
326             }
327              
328             if (( not -e $file_name_generated_tmp ) or ( not -f $file_name_generated_tmp ) or ( not -T $file_name_generated_tmp )) {
329             die 'ERROR ECOGEDI07, RPERL GENERATOR, DIFF CHECK: Missing or invalid temporary AStyle-tidied file, ' . q{'} . $file_name_generated_tmp . q{'} . "\n" . ', dying' . "\n";
330             }
331            
332             open $FILE_HANDLE_GENERATED_TMP, '<', $file_name_generated_tmp
333             or die 'ERROR ECOGEDI08, RPERL GENERATOR, DIFF CHECK: Cannot open temporary AStyle-tidied file ' . q{'} . $file_name_generated_tmp . q{'} . ' for reading,' . $OS_ERROR . ', dying' . "\n";
334            
335             # read in tidied file
336             my string $file_line_generated_tmp;
337             while ( $file_line_generated_tmp = <$FILE_HANDLE_GENERATED_TMP> ) {
338             $string_generated_tidied .= $file_line_generated_tmp . "\n";
339             }
340              
341             close $FILE_HANDLE_GENERATED_TMP
342             or die 'ERROR ECOGEDI09, RPERL GENERATOR, DIFF CHECK: Cannot close temporary AStyle-tidied file ' . q{'} . $file_name_generated_tmp . q{'} . ' after reading, ' . $OS_ERROR . ', dying' . "\n";
343            
344             # POST-PROCESS C++ SOURCE CODE
345             $string_generated_tidied = RPerl::Compiler::post_processor_cpp__header_or_cpp_path($string_generated_tidied, $file_name_group->{H});
346              
347             # discard code we are not currently checking, no extra work performed by post-processor
348             my string_hashref $source_group_tmp = RPerl::Compiler::post_processor_cpp__types_change({$suffix_key => $string_generated_tidied}, $modes);
349             $string_generated_tidied = $source_group_tmp->{$suffix_key};
350              
351             $string_reference_tidied = RPerl::Compiler::post_processor_cpp__comments_whitespace_delete($string_reference_tidied);
352             $string_generated_tidied = RPerl::Compiler::post_processor_cpp__comments_whitespace_delete($string_generated_tidied);
353             }
354              
355             # ACTUALLY START COMPARING REFERENCE VS GENERATED CODE STRINGS IN MEMORY
356              
357             # RPerl::diag( 'in Generator->diff_check_file_vs_string(), have $string_reference_tidied = ' . "\n" . ( q{=} x 60 ) . "\n" . $string_reference_tidied . "\n" . ( q{=} x 60 ) . "\n\n" );
358             # RPerl::diag( 'in Generator->diff_check_file_vs_string(), have $string_generated_tidied = ' . "\n" . ( q{=} x 60 ) . "\n" . $string_generated_tidied . "\n" . ( q{=} x 60 ) . "\n\n" );
359              
360             my string_arrayref $string_reference_split = [ ( split /\n/xms, $string_reference_tidied ) ];
361             my string_arrayref $string_generated_split = [ ( split /\n/xms, $string_generated_tidied ) ];
362             my string $line_generated;
363              
364             my hashref $return_value = {};
365             $return_value->{diff_line} = 0; # default return value, files do not differ
366              
367             for my integer $i ( 0 .. ( ( scalar @{$string_reference_split} ) - 1 ) ) {
368             my string $line_reference = $string_reference_split->[$i];
369             $line_generated = $string_generated_split->[$i];
370             if ( $line_generated =~ /__DUMMY_SOURCE_CODE/xms ) {
371             RPerl::warning( 'WARNING WCOGEDI00, RPERL GENERATOR, DIFF CHECK: Dummy source code found, attempt to utilize incomplete RPerl feature, abandoning check' . "\n" );
372             $return_value->{diff_line} = -1;
373             last;
374             }
375            
376             # trim trailing whitespace
377             $line_reference =~ s/\s+$//gxms;
378             $line_generated =~ s/\s+$//gxms;
379              
380             if ( $line_reference ne $line_generated ) {
381             # RPerl::diag( 'in Generator->diff_check_file_vs_string(), have non-matching $line_reference =' . "\n" . $line_reference . "\n" );
382             # RPerl::diag( 'in Generator->diff_check_file_vs_string(), have non-matching $line_generated =' . "\n" . $line_generated . "\n" );
383             $return_value->{diff_line} = $i + 1; # arrays indexed from 0, file lines indexed from 1
384             $return_value->{line_reference} = $line_reference;
385             $return_value->{line_generated} = $line_generated;
386             last;
387             }
388             }
389              
390             # RPerl::diag( 'in Generator->diff_check_file_vs_string(), about to return $return_value =' . "\n" . $return_value . "\n" );
391             return $return_value;
392             };
393              
394             # Generate from RPerl AST back to RPerl Source Code
395             our string_hashref $ast_to_rperl__generate = sub {
396             ( my object $node, my string_hashref $modes) = @_;
397              
398             # RPerl::diag("in Generator::ast_to_rperl__generate(), received \$node =\n" . RPerl::Parser::rperl_ast__dump($node) . "\n");
399             # RPerl::diag("in Generator::ast_to_rperl__generate(), received \$modes =\n" . Dumper($modes) . "\n");
400              
401             RPerl::verbose('GENERATE: Generate RPerl syntax... ');
402              
403             if ( not( defined $modes->{types} ) ) {
404             die 'ERROR ECOGEMO00, RPERL GENERATOR, RPERL TYPES MODE: ' . q{'PERL'} . ' types mode expected in PERL ops mode, but undefined/null value found, dying' . "\n";
405             }
406             if ( not( $modes->{types} eq 'PERL' ) ) {
407             die 'ERROR ECOGEMO01, RPERL GENERATOR, RPERL TYPES MODE: ' . q{'PERL'} . ' types mode expected in PERL ops mode, but non-matching value ' . q{'} . $modes->{types} . q{'} . ' found, dying' . "\n";
408             }
409              
410             grammar_rules__map();
411              
412             # NEED FIX: check to ensure we are generating a valid return object
413             my string_hashref $rperl_source_group = $node->ast_to_rperl__generate($modes);
414              
415             RPerl::verbose( ' done.' . "\n" );
416             return $rperl_source_group;
417             };
418              
419             # Generate from RPerl AST to C++ Source Code
420             our string_hashref $ast_to_cpp__generate = sub {
421             ( my object $node, my string_hashref $modes) = @_;
422              
423             # RPerl::diag("in Generator::ast_to_cpp__generate(), received \$node =\n" . RPerl::Parser::rperl_ast__dump($node) . "\n");
424             # RPerl::diag("in Generator::ast_to_cpp__generate(), received \$modes =\n" . Dumper($modes) . "\n");
425             # RPerl::diag( 'in Generator::ast_to_cpp__generate(), received $modes->{_symbol_table} = ' . "\n" . Dumper($modes->{_symbol_table}) . "\n" );
426              
427             RPerl::verbose('GENERATE: Generate C++ syntax... ');
428              
429             if ( not( defined $modes->{types} ) ) {
430             die 'ERROR ECOGEMO02, C++ GENERATOR, RPERL TYPES MODE: ' . q{'PERL' or 'CPP'} . ' types mode expected in CPP ops mode, but undefined/null value found, dying' . "\n";
431             }
432             if ( not( ( $modes->{types} eq 'PERL' ) or ( $modes->{types} eq 'CPP' ) ) ) {
433             die 'ERROR ECOGEMO03, C++ GENERATOR, RPERL TYPES MODE: ' . q{'PERL' or 'CPP'} . ' types mode expected in CPP ops mode, but non-matching value ' . q{'} . $modes->{types} . q{'} . ' found, dying' . "\n";
434             }
435              
436             grammar_rules__map();
437              
438             # NEED FIX: check to ensure we are generating a valid return object
439             my string_hashref $cpp_source_group;
440              
441             if ( $modes->{types} eq 'PERL' ) {
442             $cpp_source_group = $node->ast_to_cpp__generate__CPPOPS_PERLTYPES($modes);
443             }
444             else {
445             $cpp_source_group = $node->ast_to_cpp__generate__CPPOPS_CPPTYPES($modes);
446             }
447              
448             RPerl::verbose( ' done.' . "\n" );
449             return $cpp_source_group;
450             };
451              
452             # Append All Source Code Entries From Group 2 Onto The Respective Entries In Group 1
453             #our string_hashref $source_group_append = sub {
454             our void $source_group_append = sub {
455             ( my string_hashref $rperl_source_group_1, my string_hashref $rperl_source_group_2) = @_;
456              
457             # RPerl::diag('in Generator::source_group_append(), received $rperl_source_group_1 =' . "\n" . Dumper($rperl_source_group_1) . "\n");
458             # RPerl::diag('in Generator::source_group_append(), received $rperl_source_group_2 =' . "\n" . Dumper($rperl_source_group_2) . "\n");
459              
460             my string $type_1;
461             my string $type_2;
462             foreach my string $suffix_key ( sort keys %{$rperl_source_group_2} ) {
463             if ( defined $rperl_source_group_2->{$suffix_key} ) {
464             $type_2 = ref $rperl_source_group_2->{$suffix_key};
465             if ($type_2 eq q{}) { $type_2 = 'SCALAR'; }
466             if ( ( exists $rperl_source_group_1->{$suffix_key} )
467             and ( defined $rperl_source_group_1->{$suffix_key} ) ) {
468             $type_1 = ref $rperl_source_group_1->{$suffix_key};
469             if ($type_1 eq q{}) { $type_1 = 'SCALAR'; }
470             if ($type_1 ne $type_2) {
471             die 'ERROR ECOGE00, GENERATOR: Source group entries type mismatch, ' . q{'} . $type_1 . q{'} . ' is different than ' . q{'} . $type_2 . q{'} . ', dying' . "\n";
472             }
473             }
474             else { $type_1 = undef; }
475              
476             # RPerl::diag('in Generator::source_group_append(), have $type_1 =' . $type_1 . "\n");
477             # RPerl::diag('in Generator::source_group_append(), have $type_2 =' . $type_2 . "\n");
478              
479             # init to empty thing if not already defined
480             if ( not defined $type_1 ) {
481             if ($type_2 eq 'ARRAY') {
482             $rperl_source_group_1->{$suffix_key} = [];
483             }
484             elsif ($type_2 eq 'HASH') {
485             $rperl_source_group_1->{$suffix_key} = {};
486             }
487             else {
488             $rperl_source_group_1->{$suffix_key} = q{};
489             }
490             }
491             if ($type_2 eq 'ARRAY') {
492             $rperl_source_group_1->{$suffix_key} = [@{$rperl_source_group_1->{$suffix_key}}, @{$rperl_source_group_2->{$suffix_key}}];
493             }
494             elsif ($type_2 eq 'HASH') {
495             $rperl_source_group_1->{$suffix_key} = {%{$rperl_source_group_1->{$suffix_key}}, %{$rperl_source_group_2->{$suffix_key}}};
496             }
497             else {
498             if (($suffix_key eq '_package_name') or ($suffix_key eq '_package_name_underscores')) {
499             # replace (don't append) special system data items
500             $rperl_source_group_1->{$suffix_key} = $rperl_source_group_2->{$suffix_key};
501             }
502             else {
503             $rperl_source_group_1->{$suffix_key} .= $rperl_source_group_2->{$suffix_key};
504             }
505             }
506             }
507             }
508             };
509              
510             our void $grammar_rules__map = sub {
511              
512             # do not attempt to re-map grammar rules if already mapped
513             if ( ( exists &CompileUnit_5::ast_to_rperl__generate )
514             and ( defined &CompileUnit_5::ast_to_rperl__generate ) )
515             {
516             return;
517             }
518              
519             # RPerl::diag("in Generator::grammar_rules__map(), have \$RPerl::Grammar::RULES =\n" . Dumper($RPerl::Grammar::RULES) . "\n");
520             foreach my string $rule ( sort keys %{$RPerl::Grammar::RULES} ) {
521              
522             # create mapped class/package (namespace) and set up Perl inheritance
523             my string $eval_string
524             = 'package '
525             . $rule
526             . q{; use parent qw(}
527             . $RPerl::Grammar::RULES->{$rule}
528             . q{); use }
529             . $RPerl::Grammar::RULES->{$rule}
530             . q{; our hashref $properties = {}; 1;};
531              
532             # RPerl::diag('in Generator::grammar_rules_map(), have 1st $eval_string = ' . "\n" . $eval_string . "\n");
533 1     1   16 my integer $eval_retval = eval $eval_string;
  1     1   3  
  1     1   13  
  1     1   127  
  1     1   3  
  1     1   62  
  1     1   6  
  1     1   4  
  1     1   8  
  1     1   83  
  1     1   2  
  1     1   27  
  1     1   7  
  1     1   2  
  1     1   7  
  1     1   90  
  1     1   3  
  1     1   31  
  1     1   7  
  1     1   2  
  1     1   9  
  1     1   83  
  1     1   5  
  1     1   29  
  1     1   6  
  1     1   2  
  1     1   7  
  1     1   76  
  1     1   3  
  1     1   25  
  1     1   7  
  1     1   2  
  1     1   6  
  1     1   85  
  1     1   3  
  1     1   25  
  1     1   6  
  1     1   3  
  1     1   6  
  1     1   83  
  1     1   3  
  1     1   27  
  1     1   10  
  1     1   3  
  1     1   7  
  1     1   119  
  1     1   2  
  1     1   29  
  1     1   7  
  1     1   3  
  1     1   6  
  1     1   77  
  1     1   3  
  1     1   23  
  1     1   9  
  1     1   3  
  1     1   8  
  1     1   81  
  1     1   3  
  1     1   23  
  1     1   9  
  1     1   2  
  1     1   6  
  1     1   84  
  1     1   3  
  1     1   24  
  1     1   8  
  1     1   3  
  1     1   6  
  1     1   82  
  1     1   2  
  1     1   25  
  1     1   7  
  1     1   2  
  1     1   7  
  1     1   80  
  1     1   2  
  1     1   26  
  1     1   10  
  1     1   3  
  1     1   7  
  1     1   84  
  1     1   3  
  1     1   30  
  1     1   10  
  1     1   3  
  1     1   8  
  1     1   92  
  1     1   2  
  1     1   29  
  1     1   7  
  1     1   3  
  1     1   6  
  1     1   78  
  1     1   3  
  1     1   55  
  1     1   8  
  1     1   3  
  1     1   6  
  1     1   86  
  1     1   3  
  1     1   26  
  1     1   8  
  1     1   2  
  1     1   5  
  1     1   78  
  1     1   2  
  1     1   26  
  1     1   6  
  1     1   4  
  1     1   7  
  1     1   79  
  1     1   3  
  1     1   27  
  1     1   7  
  1     1   3  
  1     1   7  
  1     1   87  
  1     1   2  
  1     1   24  
  1     1   6  
  1     1   2  
  1     1   6  
  1     1   76  
  1     1   4  
  1     1   27  
  1     1   6  
  1     1   3  
  1     1   10  
  1     1   72  
  1     1   2  
  1     1   25  
  1     1   7  
  1     1   4  
  1     1   6  
  1     1   85  
  1     1   3  
  1     1   27  
  1     1   6  
  1     1   3  
  1     1   6  
  1     1   72  
  1     1   2  
  1     1   25  
  1     1   7  
  1     1   3  
  1     1   6  
  1     1   69  
  1     1   2  
  1     1   24  
  1     1   6  
  1     1   3  
  1     1   6  
  1     1   84  
  1     1   4  
  1     1   24  
  1     1   6  
  1     1   2  
  1     1   6  
  1     1   71  
  1     1   2  
  1     1   25  
  1     1   6  
  1     1   4  
  1     1   6  
  1     1   80  
  1     1   3  
  1     1   25  
  1     1   6  
  1     1   2  
  1     1   7  
  1     1   78  
  1     1   2  
  1     1   27  
  1     1   6  
  1     1   4  
  1     1   6  
  1     1   127  
  1     1   3  
  1     1   30  
  1     1   7  
  1     1   2  
  1     1   6  
  1     1   71  
  1     1   2  
  1     1   24  
  1     1   5  
  1     1   3  
  1     1   6  
  1     1   82  
  1     1   5  
  1     1   24  
  1     1   8  
  1     1   4  
  1     1   5  
  1     1   81  
  1     1   2  
  1     1   25  
  1     1   6  
  1     1   4  
  1     1   9  
  1     1   83  
  1     1   3  
  1     1   31  
  1     1   6  
  1     1   2  
  1     1   5  
  1     1   99  
  1     1   3  
  1     1   33  
  1     1   9  
  1     1   4  
  1     1   5  
  1     1   88  
  1     1   6  
  1     1   27  
  1     1   7  
  1     1   2  
  1     1   5  
  1     1   75  
  1     1   2  
  1     1   25  
  1     1   8  
  1     1   3  
  1     1   5  
  1     1   70  
  1     1   3  
  1     1   23  
  1     1   6  
  1     1   2  
  1     1   7  
  1     1   83  
  1     1   3  
  1     1   27  
  1     1   7  
  1     1   2  
  1     1   6  
  1     1   75  
  1     1   3  
  1     1   25  
  1     1   7  
  1     1   2  
  1     1   6  
  1     1   107  
  1     1   2  
  1     1   30  
  1     1   7  
  1     1   2  
  1     1   5  
  1     1   81  
  1     1   3  
  1     1   26  
  1     1   6  
  1     1   3  
  1     1   5  
  1     1   75  
  1     1   4  
  1     1   37  
  1     1   6  
  1     1   3  
  1     1   5  
  1     1   90  
  1     1   4  
  1     1   29  
  1     1   7  
  1     1   3  
  1     1   6  
  1     1   125  
  1     1   6  
  1     1   46  
  1     1   7  
  1     1   3  
  1     1   6  
  1     1   106  
  1     1   2  
  1     1   30  
  1     1   7  
  1     1   3  
  1     1   6  
  1     1   86  
  1     1   4  
  1     1   32  
  1     1   7  
  1     1   3  
  1     1   7  
  1     1   75  
  1     1   3  
  1     1   24  
  1     1   6  
  1     1   3  
  1     1   6  
  1     1   71  
  1     1   3  
  1     1   24  
  1     1   7  
  1     1   4  
  1     1   6  
  1     1   72  
  1     1   3  
  1     1   24  
  1     1   6  
  1     1   3  
  1     1   6  
  1     1   73  
  1     1   3  
  1     1   25  
  1     1   6  
  1     1   4  
  1     1   6  
  1     1   67  
  1     1   3  
  1     1   24  
  1     1   8  
  1     1   3  
  1     1   7  
  1     1   86  
  1     1   3  
  1     1   27  
  1     1   6  
  1     1   7  
  1     1   7  
  1     1   71  
  1     1   2  
  1     1   24  
  1     1   8  
  1     1   4  
  1     1   5  
  1     1   69  
  1     1   2  
  1     1   24  
  1     1   7  
  1     1   3  
  1         5  
  1         66  
  1         3  
  1         27  
  1         7  
  1         3  
  1         6  
  1         67  
  1         2  
  1         22  
  1         9  
  1         3  
  1         6  
  1         74  
  1         3  
  1         25  
  1         6  
  1         4  
  1         5  
  1         379  
  1         6  
  1         43  
  1         7  
  1         2  
  1         7  
  1         71  
  1         3  
  1         26  
  1         7  
  1         2  
  1         6  
  1         80  
  1         2  
  1         25  
  1         6  
  1         3  
  1         6  
  1         70  
  1         3  
  1         24  
  1         7  
  1         3  
  1         7  
  1         83  
  1         3  
  1         31  
  1         6  
  1         3  
  1         7  
  1         67  
  1         3  
  1         24  
  1         7  
  1         2  
  1         5  
  1         68  
  1         3  
  1         23  
  1         7  
  1         3  
  1         6  
  1         69  
  1         4  
  1         23  
  1         8  
  1         2  
  1         6  
  1         71  
  1         2  
  1         25  
  1         7  
  1         2  
  1         5  
  1         68  
  1         3  
  1         24  
  1         7  
  1         3  
  1         6  
  1         67  
  1         3  
  1         23  
  1         7  
  1         2  
  1         5  
  1         68  
  1         3  
  1         24  
  1         6  
  1         2  
  1         5  
  1         68  
  1         783  
  1         33  
  1         7  
  1         2  
  1         5  
  1         78  
  1         2  
  1         26  
  1         6  
  1         2  
  1         5  
  1         88  
  1         3  
  1         27  
  1         6  
  1         3  
  1         4  
  1         85  
  1         2  
  1         29  
  1         7  
  1         2  
  1         5  
  1         78  
  1         3  
  1         24  
  1         7  
  1         3  
  1         6  
  1         89  
  1         3  
  1         43  
  1         7  
  1         2  
  1         4  
  1         78  
  1         2  
  1         25  
  1         6  
  1         2  
  1         5  
  1         80  
  1         3  
  1         25  
  1         7  
  1         2  
  1         5  
  1         76  
  1         3  
  1         26  
  1         6  
  1         3  
  1         5  
  1         79  
  1         2  
  1         25  
  1         9  
  1         3  
  1         8  
  1         89  
  1         3  
  1         40  
  1         9  
  1         3  
  1         9  
  1         106  
  1         4  
  1         39  
  1         7  
  1         3  
  1         8  
  1         93  
  1         2  
  1         30  
  1         7  
  1         2  
  1         8  
  1         133  
  1         24  
  1         37  
  1         7  
  1         3  
  1         6  
  1         86  
  1         3  
  1         61  
  1         7  
  1         2  
  1         7  
  1         81  
  1         4  
  1         56  
  1         6  
  1         4  
  1         5  
  1         114  
  1         3  
  1         33  
  1         6  
  1         4  
  1         7  
  1         82  
  1         3  
  1         38  
  1         7  
  1         3  
  1         5  
  1         84  
  1         2  
  1         26  
  1         6  
  1         3  
  1         5  
  1         103  
  1         3  
  1         43  
  1         6  
  1         2  
  1         7  
  1         106  
  1         3  
  1         35  
  1         8  
  1         2  
  1         6  
  1         174  
  1         2  
  1         31  
  1         6  
  1         2  
  1         8  
  1         103  
  1         2  
  1         27  
  1         9  
  1         4  
  1         6  
  1         120  
  1         4  
  1         47  
  1         8  
  1         5  
  1         6  
  1         82  
  1         3  
  1         26  
  1         7  
  1         2  
  1         6  
  1         81  
  1         3  
  1         27  
  1         7  
  1         2  
  1         6  
  1         85  
  1         8  
  1         27  
  1         6  
  1         2  
  1         6  
  1         79  
  1         3  
  1         27  
  1         7  
  1         2  
  1         7  
  1         105  
  1         4  
  1         33  
  1         7  
  1         2  
  1         6  
  1         83  
  1         3  
  1         26  
  1         7  
  1         4  
  1         5  
  1         86  
  1         2  
  1         27  
  1         7  
  1         3  
  1         6  
  1         79  
  1         3  
  1         26  
  1         6  
  1         2  
  1         5  
  1         87  
  1         3  
  1         26  
  1         7  
  1         3  
  1         6  
  1         88  
  1         3  
  1         30  
  1         6  
  1         3  
  1         7  
  1         84  
  1         2  
  1         32  
  1         7  
  1         3  
  1         6  
  1         82  
  1         2  
  1         27  
  1         6  
  1         4  
  1         4  
  1         82  
  1         3  
  1         27  
  1         8  
  1         4  
  1         11  
  1         115  
  1         3  
  1         28  
  1         7  
  1         2  
  1         6  
  1         83  
  1         3  
  1         27  
  1         7  
  1         2  
  1         7  
  1         82  
  1         3  
  1         25  
  1         7  
  1         2  
  1         4  
  1         88  
  1         3  
  1         30  
  1         6  
  1         2  
  1         5  
  1         83  
  1         3  
  1         28  
  1         6  
  1         3  
  1         6  
  1         84  
  1         2  
  1         26  
  1         6  
  1         3  
  1         6  
  1         85  
  1         3  
  1         28  
  1         6  
  1         3  
  1         6  
  1         121  
  1         4  
  1         32  
  1         6  
  1         2  
  1         5  
  1         75  
  1         3  
  1         24  
  1         8  
  1         3  
  1         7  
  1         74  
  1         3  
  1         30  
  1         7  
  1         3  
  1         8  
  1         86  
  1         2  
  1         27  
  1         6  
  1         3  
  1         4  
  1         105  
  1         3  
  1         31  
  1         7  
  1         2  
  1         9  
  1         81  
  1         4  
  1         25  
  1         7  
  1         2  
  1         7  
  1         108  
  1         2  
  1         30  
  1         8  
  1         2  
  1         5  
  1         86  
  1         3  
  1         31  
  1         7  
  1         4  
  1         6  
  1         85  
  1         3  
  1         26  
  1         12  
  1         5  
  1         8  
  1         112  
  1         3  
  1         27  
  1         7  
  1         2  
  1         9  
  1         77  
  1         3  
  1         24  
  1         6  
  1         3  
  1         5  
  1         76  
  1         3  
  1         26  
  1         6  
  1         4  
  1         7  
  1         78  
  1         2  
  1         25  
  1         6  
  1         4  
  1         6  
  1         75  
  1         2  
  1         25  
  1         7  
  1         3  
  1         6  
  1         84  
  1         4  
  1         32  
  1         6  
  1         2  
  1         5  
  1         103  
  1         2  
  1         27  
  1         8  
  1         2  
  1         5  
  1         80  
  1         3  
  1         28  
  1         8  
  1         3  
  1         6  
  1         78  
  1         3  
  1         27  
  1         7  
  1         2  
  1         7  
  1         80  
  1         3  
  1         25  
  1         7  
  1         2  
  1         28  
  1         138  
  1         7  
  1         45  
  1         6  
  1         2  
  1         7  
  1         81  
  1         3  
  1         27  
  1         10  
  1         3  
  1         7  
  1         88  
  1         3  
  1         28  
  1         9  
  1         3  
  1         5  
  1         78  
  1         3  
  1         24  
  1         7  
  1         2  
  1         6  
  1         76  
  1         3  
  1         25  
  1         8  
  1         3  
  1         8  
  1         79  
  1         3  
  1         24  
  1         6  
  1         3  
  1         6  
  1         75  
  1         3  
  1         25  
  1         7  
  1         3  
  1         5  
  1         73  
  1         3  
  1         24  
  1         7  
  1         3  
  1         7  
  1         69  
  1         3  
  1         23  
  1         8  
  1         3  
  1         6  
  1         94  
  1         3  
  1         35  
  1         7  
  1         2  
  1         5  
  1         83  
  1         2  
  1         25  
  1         7  
  1         2  
  1         6  
  1         73  
  1         2  
  1         23  
  1         8  
  1         2  
  1         6  
  1         68  
  1         2  
  1         23  
  1         7  
  1         4  
  1         6  
  1         71  
  1         3  
  1         24  
  1         7  
  1         3  
  1         6  
  1         82  
  1         4  
  1         28  
  1         7  
  1         2  
  1         7  
  1         84  
  1         4  
  1         27  
  1         7  
  1         3  
  1         7  
  1         68  
  1         3  
  1         24  
  1         7  
  1         2  
  1         5  
  1         83  
  1         2  
  1         29  
  1         6  
  1         4  
  1         7  
  1         96  
  1         3  
  1         25  
  1         12  
  1         3  
  1         8  
  1         101  
  1         4  
  1         25  
  1         8  
  1         3  
  1         6  
  1         79  
  1         4  
  1         26  
  1         8  
  1         3  
  1         5  
  1         78  
  1         3  
  1         26  
  1         6  
  1         3  
  1         7  
  1         76  
  1         3  
  1         25  
  1         6  
  1         3  
  1         5  
  1         81  
  1         2  
  1         35  
  1         6  
  1         3  
  1         5  
  1         79  
  1         4  
  1         27  
  1         6  
  1         3  
  1         6  
  1         82  
  1         2  
  1         27  
  1         7  
  1         2  
  1         5  
  1         84  
  1         3  
  1         25  
  1         7  
  1         4  
  1         6  
  1         82  
  1         3  
  1         25  
  1         6  
  1         3  
  1         7  
  1         70  
  1         3  
  1         24  
  1         6  
  1         3  
  1         5  
  1         69  
  1         3  
  1         23  
  1         6  
  1         2  
  1         6  
  1         78  
  1         2  
  1         26  
  1         6  
  1         4  
  1         5  
  1         70  
  1         3  
  1         27  
  1         6  
  1         3  
  1         6  
  1         70  
  1         3  
  1         24  
534             if ( ( not defined $eval_retval ) or ( $EVAL_ERROR ne q{} ) ) {
535             die 'ERROR ECOGE01, GENERATOR: Grammar rules map, failed to create pre-mapped namespace, dying' . "\n" . $EVAL_ERROR . "\n";
536             }
537              
538             # if (not defined $eval_retval) {die $EVAL_ERROR . "\n";}
539              
540             # copy all subroutines (and thus methods) from original class/package (namespace) into mapped class/package at runtime;
541             # DEV NOTE: I thought this would be handled automatically by Perl inheritance above, but I guess not, probably due to how Class.pm sets subroutines during INIT compile time
542             # NEED REMOVE HIGH MAGIC: double-eval'ed short form, long form available in scripts/development/unused/rsubs.pl, possibly replace this entire grammar_rules__map() subroutine with hard-coded *.pm files
543             $eval_string
544             = q[foreach my $key ( keys %]
545             . $RPerl::Grammar::RULES->{$rule}
546             . q[:: ) { if (defined &{ $]
547             . $RPerl::Grammar::RULES->{$rule}
548             . q[::{ $key} } ) { if (not defined eval q<*{]
549             . $rule
550             . q[::> . $key . q<} = sub { return &{ $]
551             . $RPerl::Grammar::RULES->{$rule}
552             . q[::{'> . $key . q<'} }(@_); };>) {die $EVAL_ERROR . "\n";} } }];
553              
554             # RPerl::diag('in Generator::grammar_rules_map(), have 2nd $eval_string = ' . "\n" . $eval_string . "\n");
555 0     0   0 $eval_retval = eval $eval_string;
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  35         121  
  35         1356  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  2         6  
  2         414  
  6         22  
  6         463  
  22         73  
  22         626  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  53         149  
  53         1522  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  43         188  
  43         1419  
  55         158  
  55         1441  
  6         24  
  6         138  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  14         67  
  14         470  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  6         27  
  6         218  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  11         38  
  11         466  
  0         0  
  0         0  
  10         27  
  10         241  
  0         0  
  0         0  
  139         401  
  139         3192  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  13         44  
  13         373  
  0         0  
  0         0  
  3         13  
  3         126  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  1         5  
  1         38  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  2063         5377  
  2063         46912  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  60         197  
  60         3202  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  1         7  
  1         50  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  6         27  
  6         762  
  13         53  
  13         502  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  28         116  
  28         3730  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  5         25  
  5         172  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  18         135  
  18         906  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  20         115  
  20         689  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  297         924  
  297         44191  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  5         20  
  5         995  
  0         0  
  0         0  
  2         12  
  2         71  
  4         15  
  4         148  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  22         75  
  22         740  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  14         44  
  14         427  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  76         212  
  76         1775  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  10         30  
  10         241  
  13         48  
  13         531  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  3         14  
  3         105  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  20         63  
  20         502  
  4         22  
  4         162  
  12         51  
  12         1003  
  139         383  
  139         9860  
  8         36  
  8         375  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  2092         7214  
  2092         166285  
  0         0  
  0         0  
  0         0  
  0         0  
  1         10  
  1         34  
  8         34  
  8         293  
  0         0  
  0         0  
  7         23  
  7         479  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  103         348  
  103         20548  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  70         233  
  70         1701  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  6         20  
  6         150  
  0         0  
  0         0  
  1864         5578  
  1864         44252  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  2         9  
  2         66  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  28         107  
  28         877  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  1         5  
  1         121  
  0         0  
  0         0  
  0         0  
  0         0  
  6         31  
  6         209  
  16         101  
  16         3276  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  25         65  
  25         536  
  0         0  
  0         0  
  8         33  
  8         314  
  0         0  
  0         0  
  0         0  
  0         0  
  23         73  
  23         592  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  3         16  
  3         114  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  37         140  
  37         1342  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  6         20  
  6         148  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  784         2768  
  784         20179  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  48         189  
  48         1515  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  22         76  
  22         529  
  268         1086  
  268         8078  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  750         2317  
  750         50962  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  6         20  
  6         140  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  162         543  
  162         4026  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  87         315  
  87         2628  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  32         104  
  32         813  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  38         206  
  38         1519  
  0         0  
  0         0  
  6         24  
  6         146  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  284         892  
  284         32228  
  67         239  
  67         4865  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  103         489  
  103         2926  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  8         28  
  8         183  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  22         93  
  22         928  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  10         45  
  10         328  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  10         39  
  10         269  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  81         334  
  81         2382  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  1011         3116  
  1011         25218  
  0         0  
  0         0  
  0         0  
  0         0  
  15         62  
  15         540  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  7         23  
  7         161  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  189         1031  
  189         82726  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  3         19  
  3         103  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  468         1470  
  468         13471  
  2         10  
  2         91  
  77         261  
  77         1861  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  22         91  
  22         584  
  0         0  
  0         0  
  9         30  
  9         214  
  0         0  
  0         0  
  177         477  
  177         8435  
  0         0  
  0         0  
  278         1501  
  278         11287  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  49         171  
  49         14835  
  0         0  
  0         0  
  1         7  
  1         39  
  0         0  
  0         0  
  0         0  
  0         0  
  22         69  
  22         759  
  40         150  
  40         1112  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  2         10  
  2         75  
  54         220  
  54         1888  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  449         1764  
  449         13121  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  1861         6408  
  1861         46573  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  15         50  
  15         363  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  5         19  
  5         161  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  24         92  
  24         4950  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  154         585  
  154         40114  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  4         15  
  4         184  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  6         25  
  6         175  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  54         203  
  54         2025  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  2         9  
  2         246  
  32         186  
  32         1336  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  38         119  
  38         1159  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  1         10  
  1         108  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  6         19  
  6         142  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  18         62  
  18         556  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  1137         3967  
  1137         40843  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  6         22  
  6         149  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  1006         3386  
  1006         176670  
  0         0  
  0         0  
  0         0  
  0         0  
  54         162  
  54         1580  
  989         4087  
  989         31771  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  1         9  
  1         123  
  0         0  
  0         0  
  0         0  
  0         0  
  3         13  
  3         80  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  549         2024  
  549         17070  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  160         1124  
  160         9073  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  91         318  
  91         2426  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  33         109  
  33         920  
  12         45  
  12         267  
  0         0  
  0         0  
  32         103  
  32         766  
  0         0  
  0         0  
  3876         11629  
  3876         107995  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  37         132  
  37         972  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  687         2048  
  687         50129  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  44         232  
  44         1620  
  0         0  
  0         0  
  0         0  
  0         0  
  1         9  
  1         64  
  23         68  
  23         821  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  197         618  
  197         21075  
  576         1940  
  576         13839  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  2         8  
  2         66  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  102         285  
  102         2330  
  1         5  
  1         52  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  7         23  
  7         228  
  3891         11040  
  3891         179572  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  80         419  
  80         2864  
  62         211  
  62         2221  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  14         57  
  14         404  
  57         184  
  57         1580  
  0         0  
  0         0  
  4         18  
  4         139  
  344         1983  
  344         13049  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  164         856  
  164         6299  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  120         653  
  120         4355  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  27         119  
  27         906  
  71         240  
  71         2395  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  28         101  
  28         707  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  6         23  
  6         147  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  182         472  
  182         4992  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  22         79  
  22         1216  
  0         0  
  0         0  
  0         0  
  0         0  
  4         19  
  4         184  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  9         36  
  9         326  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  12         30  
  12         388  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  8         32  
  8         265  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  0         0  
  441         3156  
  441         20468  
  0            
  0            
556             if ( ( not defined $eval_retval ) or ( $EVAL_ERROR ne q{} ) ) {
557             die 'ERROR ECOGE02, GENERATOR: Grammar rules map, failed copy subroutines into mapped namespace, dying' . "\n" . $EVAL_ERROR . "\n";
558             }
559             }
560             };
561              
562             1; # end of class