blib/lib/Embperl/Syntax/Perl.pm untested

filter: Statementstmt 0.0% 0 / 20 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 28 CC 2 SCAR 12.0
CC
2
Cov
0%
new
6.0
BEGIN
2.0
BEGIN
2.0
CRAP 3.3
1  
2 ###################################################################################
3 #
4 # Embperl - Copyright (c) 1997-2008 Gerald Richter / ecos gmbh www.ecos.de
5 # Embperl - Copyright (c) 2008-2015 Gerald Richter
6 # Embperl - Copyright (c) 2015-2023 actevy.io
7 #
8 # You may distribute under the terms of either the GNU General Public
9 # License or the Artistic License, as specified in the Perl README file.
10 #
11 # THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
12 # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
13 # WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
14 #
15 ###################################################################################
16
17 package Embperl::Syntax::Perl ;
18  
19 use Embperl::Syntax qw{:types} ;
20 use Embperl::Syntax ;
21  
22 use strict ;
23 use vars qw{@ISA} ;
24  
25 @ISA = qw(Embperl::Syntax) ;
26  
27  
28 ###################################################################################
29 #
30 # Methods
31 #
32 ###################################################################################
33  
34 # ---------------------------------------------------------------------------------
35 #
36 # Create new Syntax Object
37 #
38 # ---------------------------------------------------------------------------------
39  
40  
41 sub new
42  
43 {
44 my $class = shift ;
45  
46 my $self = Embperl::Syntax::new ($class) ;
47  
48 if (!$self -> {-perlInit})
49 {
50 $self -> {-perlInit} = 1 ;
51
52 $self -> AddInitCode (undef, '$_ep_node=%$x%+2; %#1% ;', undef,
53 {
54 removenode => 32,
55 compilechilds => 0,
56 }) ;
57  
58 }
59  
60  
61 return $self ;
62 }
63  
64  
65  
66  
67 1;
68  
69 __END__