line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Treex::PML::Schema::Constants; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
13
|
use 5.008; |
|
1
|
|
|
|
|
2
|
|
4
|
1
|
|
|
1
|
|
3
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
15
|
|
5
|
1
|
|
|
1
|
|
2
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
28
|
|
6
|
|
|
|
|
|
|
|
7
|
1
|
|
|
1
|
|
3
|
use vars qw($VERSION); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
35
|
|
8
|
|
|
|
|
|
|
BEGIN { |
9
|
1
|
|
|
1
|
|
13
|
$VERSION='2.21'; # version template |
10
|
|
|
|
|
|
|
} |
11
|
1
|
|
|
1
|
|
2
|
use Carp; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
39
|
|
12
|
|
|
|
|
|
|
|
13
|
1
|
|
|
1
|
|
3
|
use constant PML_SCHEMA_NS => "http://ufal.mff.cuni.cz/pdt/pml/schema/"; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
59
|
|
14
|
|
|
|
|
|
|
|
15
|
1
|
|
|
1
|
|
4
|
use constant PML_TYPE_DECL => 1; |
|
1
|
|
|
|
|
0
|
|
|
1
|
|
|
|
|
39
|
|
16
|
1
|
|
|
1
|
|
3
|
use constant PML_ROOT_DECL => 2; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
31
|
|
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
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
29
|
|
19
|
1
|
|
|
1
|
|
4
|
use constant PML_SEQUENCE_DECL => 5; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
62
|
|
20
|
1
|
|
|
1
|
|
6
|
use constant PML_LIST_DECL => 6; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
60
|
|
21
|
1
|
|
|
1
|
|
9
|
use constant PML_ALT_DECL => 7; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
53
|
|
22
|
1
|
|
|
1
|
|
8
|
use constant PML_CDATA_DECL => 8; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
55
|
|
23
|
1
|
|
|
1
|
|
4
|
use constant PML_CHOICE_DECL => 9; |
|
1
|
|
|
|
|
0
|
|
|
1
|
|
|
|
|
39
|
|
24
|
1
|
|
|
1
|
|
4
|
use constant PML_CONSTANT_DECL => 10; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
37
|
|
25
|
1
|
|
|
1
|
|
2
|
use constant PML_ATTRIBUTE_DECL => 11; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
32
|
|
26
|
1
|
|
|
1
|
|
3
|
use constant PML_MEMBER_DECL => 12; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
77
|
|
27
|
1
|
|
|
1
|
|
13
|
use constant PML_ELEMENT_DECL => 13; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
39
|
|
28
|
1
|
|
|
1
|
|
3
|
use constant PML_SCHEMA_DECL => 14; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
34
|
|
29
|
|
|
|
|
|
|
|
30
|
1
|
|
|
1
|
|
3
|
use constant PML_IMPORT_DECL => 20; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
29
|
|
31
|
1
|
|
|
1
|
|
3
|
use constant PML_DERIVE_DECL => 21; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
32
|
|
32
|
1
|
|
|
1
|
|
4
|
use constant PML_TEMPLATE_DECL => 22; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
34
|
|
33
|
1
|
|
|
1
|
|
3
|
use constant PML_COPY_DECL => 23; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
42
|
|
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
# validation flags |
36
|
1
|
|
|
1
|
|
3
|
use constant PML_VALIDATE_NO_TREES => 1; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
37
|
|
37
|
1
|
|
|
1
|
|
3
|
use constant PML_VALIDATE_NO_CHILDNODES => 2; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
406
|
|
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
BEGIN { |
40
|
1
|
|
|
1
|
|
4
|
require Exporter; |
41
|
1
|
|
|
|
|
9
|
import Exporter qw( import ); |
42
|
1
|
|
|
|
|
2
|
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
|
|
|
|
|
18
|
our %EXPORT_TAGS = ( |
68
|
|
|
|
|
|
|
'constants' => [ @EXPORT ], |
69
|
|
|
|
|
|
|
); |
70
|
|
|
|
|
|
|
} |
71
|
|
|
|
|
|
|
1; |
72
|
|
|
|
|
|
|
__END__ |