line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Gcode::Interpreter; |
2
|
|
|
|
|
|
|
|
3
|
4
|
|
|
4
|
|
105317
|
use strict; |
|
4
|
|
|
|
|
10
|
|
|
4
|
|
|
|
|
139
|
|
4
|
4
|
|
|
4
|
|
23
|
use warnings; |
|
4
|
|
|
|
|
8
|
|
|
4
|
|
|
|
|
102
|
|
5
|
|
|
|
|
|
|
|
6
|
4
|
|
|
4
|
|
21
|
use Exporter; |
|
4
|
|
|
|
|
11
|
|
|
4
|
|
|
|
|
204
|
|
7
|
4
|
|
|
4
|
|
34
|
use vars qw($VERSION @ISA); |
|
4
|
|
|
|
|
7
|
|
|
4
|
|
|
|
|
460
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
$VERSION = 1.0.1; |
10
|
|
|
|
|
|
|
@ISA = qw(Exporter); |
11
|
|
|
|
|
|
|
|
12
|
4
|
|
|
4
|
|
2759
|
use Gcode::Interpreter::Ultimaker; |
|
4
|
|
|
|
|
14
|
|
|
4
|
|
|
|
|
879
|
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub new { |
15
|
7
|
|
|
7
|
1
|
4213
|
my $class = shift(@_); |
16
|
|
|
|
|
|
|
|
17
|
7
|
|
|
|
|
28
|
my $machine_type = shift(@_); |
18
|
|
|
|
|
|
|
|
19
|
7
|
50
|
33
|
|
|
86
|
die "Unsupported machine type '$machine_type'\n" if($machine_type && $machine_type ne 'Ultimaker'); |
20
|
|
|
|
|
|
|
|
21
|
7
|
|
|
|
|
53
|
return Gcode::Interpreter::Ultimaker->new(@_); |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub position { |
25
|
0
|
|
|
0
|
1
|
|
return [undef,undef,undef,undef]; |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
sub stats { |
29
|
0
|
|
|
0
|
1
|
|
return {'duration' => undef, 'extruded' => undef}; |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
sub process_line { |
33
|
0
|
|
|
0
|
1
|
|
return 0; |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
1; |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
__END__ |