line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package MarpaX::Languages::PowerBuilder::PBT; |
2
|
1
|
|
|
1
|
|
699
|
use base qw(MarpaX::Languages::PowerBuilder::base); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
347
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
#a PBT parser by Sébastien Kirche |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
sub syntax { |
7
|
|
|
|
|
|
|
#~ Format ProjectList AppName AppLib LibList Type |
8
|
0
|
|
|
0
|
0
|
|
my $ppa = shift; |
9
|
0
|
|
|
|
|
|
my ($fmt, $projects, $app, $applib, $libs, $type) = @_; |
10
|
|
|
|
|
|
|
|
11
|
0
|
|
|
|
|
|
my %attrs = ( format => $fmt, projects => $projects, appname => $app, applib => $applib, liblist => $libs, type => $type); |
12
|
0
|
|
|
|
|
|
return \%attrs; |
13
|
|
|
|
|
|
|
} |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub format { |
16
|
0
|
|
|
0
|
0
|
|
my ($ppa, $vers, $date) = @_; |
17
|
0
|
|
|
|
|
|
my %attrs = ( version => $vers, |
18
|
|
|
|
|
|
|
date => $date); |
19
|
0
|
|
|
|
|
|
return \%attrs; |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub indexedItems { |
23
|
0
|
|
|
0
|
0
|
|
my ($ppa, @list) = @_; |
24
|
0
|
|
|
|
|
|
my @items = map {$_->[1]} @list; |
|
0
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
#~ map{$items{$_->[0]} = $_->[1]} @list; |
26
|
0
|
|
|
|
|
|
return \@items; |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
sub libList { |
30
|
0
|
|
|
0
|
0
|
|
my ($ppa, $liblist) = @_; |
31
|
0
|
|
|
|
|
|
my @libs = split ';', $liblist; |
32
|
0
|
|
|
|
|
|
return \@libs; |
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
sub deploy { |
36
|
0
|
|
|
0
|
0
|
|
my ($ppa, $depproj) = @_; |
37
|
0
|
|
|
|
|
|
my @proj; |
38
|
0
|
|
|
|
|
|
foreach my $dp (@$depproj){ |
39
|
0
|
|
|
|
|
|
my ($chk, $name, $lib) = split '&', $dp; |
40
|
0
|
|
|
|
|
|
push @proj, {name => $name, lib => $lib, checked => $chk}; |
41
|
|
|
|
|
|
|
} |
42
|
0
|
|
|
|
|
|
return \@proj; |
43
|
|
|
|
|
|
|
} |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
sub string { |
46
|
0
|
|
|
0
|
0
|
|
my ($ppa, $str) = @_; |
47
|
0
|
|
|
|
|
|
$str =~ s/\\\\/\\/g; |
48
|
0
|
|
|
|
|
|
$str =~ s/^"|"$//g; |
49
|
0
|
|
|
|
|
|
return $str; |
50
|
|
|
|
|
|
|
} |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
1; |
53
|
|
|
|
|
|
|
|