line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Treex::PML::Schema::Constants; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
15
|
use 5.008; |
|
1
|
|
|
|
|
1
|
|
4
|
1
|
|
|
1
|
|
3
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
15
|
|
5
|
1
|
|
|
1
|
|
3
|
use warnings; |
|
1
|
|
|
|
|
0
|
|
|
1
|
|
|
|
|
29
|
|
6
|
|
|
|
|
|
|
|
7
|
1
|
|
|
1
|
|
3
|
use vars qw($VERSION); |
|
1
|
|
|
|
|
0
|
|
|
1
|
|
|
|
|
41
|
|
8
|
|
|
|
|
|
|
BEGIN { |
9
|
1
|
|
|
1
|
|
17
|
$VERSION='2.22'; # version template |
10
|
|
|
|
|
|
|
} |
11
|
1
|
|
|
1
|
|
4
|
use Carp; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
40
|
|
12
|
|
|
|
|
|
|
|
13
|
1
|
|
|
1
|
|
3
|
use constant PML_SCHEMA_NS => "http://ufal.mff.cuni.cz/pdt/pml/schema/"; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
63
|
|
14
|
|
|
|
|
|
|
|
15
|
1
|
|
|
1
|
|
6
|
use constant PML_TYPE_DECL => 1; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
45
|
|
16
|
1
|
|
|
1
|
|
3
|
use constant PML_ROOT_DECL => 2; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
32
|
|
17
|
1
|
|
|
1
|
|
3
|
use constant PML_STRUCTURE_DECL => 3; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
34
|
|
18
|
1
|
|
|
1
|
|
3
|
use constant PML_CONTAINER_DECL => 4; |
|
1
|
|
|
|
|
0
|
|
|
1
|
|
|
|
|
33
|
|
19
|
1
|
|
|
1
|
|
3
|
use constant PML_SEQUENCE_DECL => 5; |
|
1
|
|
|
|
|
0
|
|
|
1
|
|
|
|
|
30
|
|
20
|
1
|
|
|
1
|
|
3
|
use constant PML_LIST_DECL => 6; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
36
|
|
21
|
1
|
|
|
1
|
|
4
|
use constant PML_ALT_DECL => 7; |
|
1
|
|
|
|
|
0
|
|
|
1
|
|
|
|
|
28
|
|
22
|
1
|
|
|
1
|
|
3
|
use constant PML_CDATA_DECL => 8; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
36
|
|
23
|
1
|
|
|
1
|
|
3
|
use constant PML_CHOICE_DECL => 9; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
41
|
|
24
|
1
|
|
|
1
|
|
5
|
use constant PML_CONSTANT_DECL => 10; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
44
|
|
25
|
1
|
|
|
1
|
|
3
|
use constant PML_ATTRIBUTE_DECL => 11; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
40
|
|
26
|
1
|
|
|
1
|
|
3
|
use constant PML_MEMBER_DECL => 12; |
|
1
|
|
|
|
|
0
|
|
|
1
|
|
|
|
|
34
|
|
27
|
1
|
|
|
1
|
|
348
|
use constant PML_ELEMENT_DECL => 13; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
40
|
|
28
|
1
|
|
|
1
|
|
3
|
use constant PML_SCHEMA_DECL => 14; |
|
1
|
|
|
|
|
0
|
|
|
1
|
|
|
|
|
29
|
|
29
|
|
|
|
|
|
|
|
30
|
1
|
|
|
1
|
|
3
|
use constant PML_IMPORT_DECL => 20; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
27
|
|
31
|
1
|
|
|
1
|
|
2
|
use constant PML_DERIVE_DECL => 21; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
28
|
|
32
|
1
|
|
|
1
|
|
3
|
use constant PML_TEMPLATE_DECL => 22; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
41
|
|
33
|
1
|
|
|
1
|
|
3
|
use constant PML_COPY_DECL => 23; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
41
|
|
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
# validation flags |
36
|
1
|
|
|
1
|
|
3
|
use constant PML_VALIDATE_NO_TREES => 1; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
30
|
|
37
|
1
|
|
|
1
|
|
3
|
use constant PML_VALIDATE_NO_CHILDNODES => 2; |
|
1
|
|
|
|
|
0
|
|
|
1
|
|
|
|
|
85
|
|
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
BEGIN { |
40
|
1
|
|
|
1
|
|
3
|
require Exporter; |
41
|
1
|
|
|
|
|
9
|
import Exporter qw( import ); |
42
|
1
|
|
|
|
|
3
|
our @EXPORT = qw( |
43
|
|
|
|
|
|
|
PML_TYPE_DECL |
44
|
|
|
|
|
|
|
PML_ROOT_DECL |
45
|
|
|
|
|
|
|
PML_STRUCTURE_DECL |
46
|
|
|
|
|
|
|
PML_CONTAINER_DECL |
47
|
|
|
|
|
|
|
PML_SEQUENCE_DECL |
48
|
|
|
|
|
|
|
PML_LIST_DECL |
49
|
|
|
|
|
|
|
PML_ALT_DECL |
50
|
|
|
|
|
|
|
PML_CDATA_DECL |
51
|
|
|
|
|
|
|
PML_CHOICE_DECL |
52
|
|
|
|
|
|
|
PML_CONSTANT_DECL |
53
|
|
|
|
|
|
|
PML_ATTRIBUTE_DECL |
54
|
|
|
|
|
|
|
PML_MEMBER_DECL |
55
|
|
|
|
|
|
|
PML_ELEMENT_DECL |
56
|
|
|
|
|
|
|
PML_SCHEMA_DECL |
57
|
|
|
|
|
|
|
PML_IMPORT_DECL |
58
|
|
|
|
|
|
|
PML_DERIVE_DECL |
59
|
|
|
|
|
|
|
PML_TEMPLATE_DECL |
60
|
|
|
|
|
|
|
PML_COPY_DECL |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
PML_VALIDATE_NO_TREES |
63
|
|
|
|
|
|
|
PML_VALIDATE_NO_CHILDNODES |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
PML_SCHEMA_NS |
66
|
|
|
|
|
|
|
); |
67
|
1
|
|
|
|
|
21
|
our %EXPORT_TAGS = ( |
68
|
|
|
|
|
|
|
'constants' => [ @EXPORT ], |
69
|
|
|
|
|
|
|
); |
70
|
|
|
|
|
|
|
} |
71
|
|
|
|
|
|
|
1; |
72
|
|
|
|
|
|
|
__END__ |