line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# This file was automatically generated by SWIG (http://www.swig.org). |
2
|
|
|
|
|
|
|
# Version 2.0.12 |
3
|
|
|
|
|
|
|
# |
4
|
|
|
|
|
|
|
# Do not make changes to this file unless you know what you are doing--modify |
5
|
|
|
|
|
|
|
# the SWIG interface file instead. |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
package Ufal::Parsito; |
8
|
|
|
|
|
|
|
our $VERSION = '1.0.0.1'; |
9
|
2
|
|
|
2
|
|
23336
|
use base qw(Exporter); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
192
|
|
10
|
2
|
|
|
2
|
|
10
|
use base qw(DynaLoader); |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
659
|
|
11
|
|
|
|
|
|
|
package Ufal::Parsitoc; |
12
|
|
|
|
|
|
|
our $VERSION = '1.0.0.1'; |
13
|
|
|
|
|
|
|
bootstrap Ufal::Parsito; |
14
|
|
|
|
|
|
|
package Ufal::Parsito; |
15
|
|
|
|
|
|
|
@EXPORT = qw(); |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
# ---------- BASE METHODS ------------- |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
package Ufal::Parsito; |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
sub TIEHASH { |
22
|
0
|
|
|
0
|
|
|
my ($classname,$obj) = @_; |
23
|
0
|
|
|
|
|
|
return bless $obj, $classname; |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
0
|
|
|
sub CLEAR { } |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
0
|
|
|
sub FIRSTKEY { } |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
0
|
|
|
sub NEXTKEY { } |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
sub FETCH { |
33
|
0
|
|
|
0
|
|
|
my ($self,$field) = @_; |
34
|
0
|
|
|
|
|
|
my $member_func = "swig_${field}_get"; |
35
|
0
|
|
|
|
|
|
$self->$member_func(); |
36
|
|
|
|
|
|
|
} |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
sub STORE { |
39
|
0
|
|
|
0
|
|
|
my ($self,$field,$newval) = @_; |
40
|
0
|
|
|
|
|
|
my $member_func = "swig_${field}_set"; |
41
|
0
|
|
|
|
|
|
$self->$member_func($newval); |
42
|
|
|
|
|
|
|
} |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
sub this { |
45
|
0
|
|
|
0
|
|
|
my $ptr = shift; |
46
|
0
|
|
|
|
|
|
return tied(%$ptr); |
47
|
|
|
|
|
|
|
} |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
# ------- FUNCTION WRAPPERS -------- |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
package Ufal::Parsito; |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
############# Class : Ufal::Parsito::Children ############## |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
package Ufal::Parsito::Children; |
58
|
|
|
|
|
|
|
our $VERSION = '1.0.0.1'; |
59
|
2
|
|
|
2
|
|
20
|
use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
821
|
|
60
|
|
|
|
|
|
|
@ISA = qw( Ufal::Parsito ); |
61
|
|
|
|
|
|
|
%OWNER = (); |
62
|
|
|
|
|
|
|
%ITERATORS = (); |
63
|
|
|
|
|
|
|
sub new { |
64
|
0
|
|
|
0
|
|
|
my $pkg = shift; |
65
|
0
|
|
|
|
|
|
my $self = Ufal::Parsitoc::new_Children(@_); |
66
|
0
|
0
|
|
|
|
|
bless $self, $pkg if defined($self); |
67
|
|
|
|
|
|
|
} |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
*size = *Ufal::Parsitoc::Children_size; |
70
|
|
|
|
|
|
|
*empty = *Ufal::Parsitoc::Children_empty; |
71
|
|
|
|
|
|
|
*clear = *Ufal::Parsitoc::Children_clear; |
72
|
|
|
|
|
|
|
*push = *Ufal::Parsitoc::Children_push; |
73
|
|
|
|
|
|
|
*pop = *Ufal::Parsitoc::Children_pop; |
74
|
|
|
|
|
|
|
*get = *Ufal::Parsitoc::Children_get; |
75
|
|
|
|
|
|
|
*set = *Ufal::Parsitoc::Children_set; |
76
|
|
|
|
|
|
|
sub DESTROY { |
77
|
0
|
0
|
|
0
|
|
|
return unless $_[0]->isa('HASH'); |
78
|
0
|
|
|
|
|
|
my $self = tied(%{$_[0]}); |
|
0
|
|
|
|
|
|
|
79
|
0
|
0
|
|
|
|
|
return unless defined $self; |
80
|
0
|
|
|
|
|
|
delete $ITERATORS{$self}; |
81
|
0
|
0
|
|
|
|
|
if (exists $OWNER{$self}) { |
82
|
0
|
|
|
|
|
|
Ufal::Parsitoc::delete_Children($self); |
83
|
0
|
|
|
|
|
|
delete $OWNER{$self}; |
84
|
|
|
|
|
|
|
} |
85
|
|
|
|
|
|
|
} |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
sub DISOWN { |
88
|
0
|
|
|
0
|
|
|
my $self = shift; |
89
|
0
|
|
|
|
|
|
my $ptr = tied(%$self); |
90
|
0
|
|
|
|
|
|
delete $OWNER{$ptr}; |
91
|
|
|
|
|
|
|
} |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
sub ACQUIRE { |
94
|
0
|
|
|
0
|
|
|
my $self = shift; |
95
|
0
|
|
|
|
|
|
my $ptr = tied(%$self); |
96
|
0
|
|
|
|
|
|
$OWNER{$ptr} = 1; |
97
|
|
|
|
|
|
|
} |
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
############# Class : Ufal::Parsito::Node ############## |
101
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
package Ufal::Parsito::Node; |
103
|
|
|
|
|
|
|
our $VERSION = '1.0.0.1'; |
104
|
2
|
|
|
2
|
|
8
|
use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
1110
|
|
105
|
|
|
|
|
|
|
@ISA = qw( Ufal::Parsito ); |
106
|
|
|
|
|
|
|
%OWNER = (); |
107
|
|
|
|
|
|
|
%ITERATORS = (); |
108
|
|
|
|
|
|
|
*swig_id_get = *Ufal::Parsitoc::Node_id_get; |
109
|
|
|
|
|
|
|
*swig_id_set = *Ufal::Parsitoc::Node_id_set; |
110
|
|
|
|
|
|
|
*swig_form_get = *Ufal::Parsitoc::Node_form_get; |
111
|
|
|
|
|
|
|
*swig_form_set = *Ufal::Parsitoc::Node_form_set; |
112
|
|
|
|
|
|
|
*swig_lemma_get = *Ufal::Parsitoc::Node_lemma_get; |
113
|
|
|
|
|
|
|
*swig_lemma_set = *Ufal::Parsitoc::Node_lemma_set; |
114
|
|
|
|
|
|
|
*swig_upostag_get = *Ufal::Parsitoc::Node_upostag_get; |
115
|
|
|
|
|
|
|
*swig_upostag_set = *Ufal::Parsitoc::Node_upostag_set; |
116
|
|
|
|
|
|
|
*swig_xpostag_get = *Ufal::Parsitoc::Node_xpostag_get; |
117
|
|
|
|
|
|
|
*swig_xpostag_set = *Ufal::Parsitoc::Node_xpostag_set; |
118
|
|
|
|
|
|
|
*swig_feats_get = *Ufal::Parsitoc::Node_feats_get; |
119
|
|
|
|
|
|
|
*swig_feats_set = *Ufal::Parsitoc::Node_feats_set; |
120
|
|
|
|
|
|
|
*swig_head_get = *Ufal::Parsitoc::Node_head_get; |
121
|
|
|
|
|
|
|
*swig_head_set = *Ufal::Parsitoc::Node_head_set; |
122
|
|
|
|
|
|
|
*swig_deprel_get = *Ufal::Parsitoc::Node_deprel_get; |
123
|
|
|
|
|
|
|
*swig_deprel_set = *Ufal::Parsitoc::Node_deprel_set; |
124
|
|
|
|
|
|
|
*swig_deps_get = *Ufal::Parsitoc::Node_deps_get; |
125
|
|
|
|
|
|
|
*swig_deps_set = *Ufal::Parsitoc::Node_deps_set; |
126
|
|
|
|
|
|
|
*swig_misc_get = *Ufal::Parsitoc::Node_misc_get; |
127
|
|
|
|
|
|
|
*swig_misc_set = *Ufal::Parsitoc::Node_misc_set; |
128
|
|
|
|
|
|
|
*swig_children_get = *Ufal::Parsitoc::Node_children_get; |
129
|
|
|
|
|
|
|
*swig_children_set = *Ufal::Parsitoc::Node_children_set; |
130
|
|
|
|
|
|
|
sub new { |
131
|
0
|
|
|
0
|
|
|
my $pkg = shift; |
132
|
0
|
|
|
|
|
|
my $self = Ufal::Parsitoc::new_Node(@_); |
133
|
0
|
0
|
|
|
|
|
bless $self, $pkg if defined($self); |
134
|
|
|
|
|
|
|
} |
135
|
|
|
|
|
|
|
|
136
|
|
|
|
|
|
|
sub DESTROY { |
137
|
0
|
0
|
|
0
|
|
|
return unless $_[0]->isa('HASH'); |
138
|
0
|
|
|
|
|
|
my $self = tied(%{$_[0]}); |
|
0
|
|
|
|
|
|
|
139
|
0
|
0
|
|
|
|
|
return unless defined $self; |
140
|
0
|
|
|
|
|
|
delete $ITERATORS{$self}; |
141
|
0
|
0
|
|
|
|
|
if (exists $OWNER{$self}) { |
142
|
0
|
|
|
|
|
|
Ufal::Parsitoc::delete_Node($self); |
143
|
0
|
|
|
|
|
|
delete $OWNER{$self}; |
144
|
|
|
|
|
|
|
} |
145
|
|
|
|
|
|
|
} |
146
|
|
|
|
|
|
|
|
147
|
|
|
|
|
|
|
sub DISOWN { |
148
|
0
|
|
|
0
|
|
|
my $self = shift; |
149
|
0
|
|
|
|
|
|
my $ptr = tied(%$self); |
150
|
0
|
|
|
|
|
|
delete $OWNER{$ptr}; |
151
|
|
|
|
|
|
|
} |
152
|
|
|
|
|
|
|
|
153
|
|
|
|
|
|
|
sub ACQUIRE { |
154
|
0
|
|
|
0
|
|
|
my $self = shift; |
155
|
0
|
|
|
|
|
|
my $ptr = tied(%$self); |
156
|
0
|
|
|
|
|
|
$OWNER{$ptr} = 1; |
157
|
|
|
|
|
|
|
} |
158
|
|
|
|
|
|
|
|
159
|
|
|
|
|
|
|
|
160
|
|
|
|
|
|
|
############# Class : Ufal::Parsito::Nodes ############## |
161
|
|
|
|
|
|
|
|
162
|
|
|
|
|
|
|
package Ufal::Parsito::Nodes; |
163
|
|
|
|
|
|
|
our $VERSION = '1.0.0.1'; |
164
|
2
|
|
|
2
|
|
12
|
use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
741
|
|
165
|
|
|
|
|
|
|
@ISA = qw( Ufal::Parsito ); |
166
|
|
|
|
|
|
|
%OWNER = (); |
167
|
|
|
|
|
|
|
%ITERATORS = (); |
168
|
|
|
|
|
|
|
sub new { |
169
|
0
|
|
|
0
|
|
|
my $pkg = shift; |
170
|
0
|
|
|
|
|
|
my $self = Ufal::Parsitoc::new_Nodes(@_); |
171
|
0
|
0
|
|
|
|
|
bless $self, $pkg if defined($self); |
172
|
|
|
|
|
|
|
} |
173
|
|
|
|
|
|
|
|
174
|
|
|
|
|
|
|
*size = *Ufal::Parsitoc::Nodes_size; |
175
|
|
|
|
|
|
|
*empty = *Ufal::Parsitoc::Nodes_empty; |
176
|
|
|
|
|
|
|
*clear = *Ufal::Parsitoc::Nodes_clear; |
177
|
|
|
|
|
|
|
*push = *Ufal::Parsitoc::Nodes_push; |
178
|
|
|
|
|
|
|
*pop = *Ufal::Parsitoc::Nodes_pop; |
179
|
|
|
|
|
|
|
*get = *Ufal::Parsitoc::Nodes_get; |
180
|
|
|
|
|
|
|
*set = *Ufal::Parsitoc::Nodes_set; |
181
|
|
|
|
|
|
|
sub DESTROY { |
182
|
0
|
0
|
|
0
|
|
|
return unless $_[0]->isa('HASH'); |
183
|
0
|
|
|
|
|
|
my $self = tied(%{$_[0]}); |
|
0
|
|
|
|
|
|
|
184
|
0
|
0
|
|
|
|
|
return unless defined $self; |
185
|
0
|
|
|
|
|
|
delete $ITERATORS{$self}; |
186
|
0
|
0
|
|
|
|
|
if (exists $OWNER{$self}) { |
187
|
0
|
|
|
|
|
|
Ufal::Parsitoc::delete_Nodes($self); |
188
|
0
|
|
|
|
|
|
delete $OWNER{$self}; |
189
|
|
|
|
|
|
|
} |
190
|
|
|
|
|
|
|
} |
191
|
|
|
|
|
|
|
|
192
|
|
|
|
|
|
|
sub DISOWN { |
193
|
0
|
|
|
0
|
|
|
my $self = shift; |
194
|
0
|
|
|
|
|
|
my $ptr = tied(%$self); |
195
|
0
|
|
|
|
|
|
delete $OWNER{$ptr}; |
196
|
|
|
|
|
|
|
} |
197
|
|
|
|
|
|
|
|
198
|
|
|
|
|
|
|
sub ACQUIRE { |
199
|
0
|
|
|
0
|
|
|
my $self = shift; |
200
|
0
|
|
|
|
|
|
my $ptr = tied(%$self); |
201
|
0
|
|
|
|
|
|
$OWNER{$ptr} = 1; |
202
|
|
|
|
|
|
|
} |
203
|
|
|
|
|
|
|
|
204
|
|
|
|
|
|
|
|
205
|
|
|
|
|
|
|
############# Class : Ufal::Parsito::Tree ############## |
206
|
|
|
|
|
|
|
|
207
|
|
|
|
|
|
|
package Ufal::Parsito::Tree; |
208
|
|
|
|
|
|
|
our $VERSION = '1.0.0.1'; |
209
|
2
|
|
|
2
|
|
11
|
use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); |
|
2
|
|
|
|
|
9
|
|
|
2
|
|
|
|
|
726
|
|
210
|
|
|
|
|
|
|
@ISA = qw( Ufal::Parsito ); |
211
|
|
|
|
|
|
|
%OWNER = (); |
212
|
|
|
|
|
|
|
%ITERATORS = (); |
213
|
|
|
|
|
|
|
sub new { |
214
|
0
|
|
|
0
|
|
|
my $pkg = shift; |
215
|
0
|
|
|
|
|
|
my $self = Ufal::Parsitoc::new_Tree(@_); |
216
|
0
|
0
|
|
|
|
|
bless $self, $pkg if defined($self); |
217
|
|
|
|
|
|
|
} |
218
|
|
|
|
|
|
|
|
219
|
|
|
|
|
|
|
*swig_nodes_get = *Ufal::Parsitoc::Tree_nodes_get; |
220
|
|
|
|
|
|
|
*swig_nodes_set = *Ufal::Parsitoc::Tree_nodes_set; |
221
|
|
|
|
|
|
|
*empty = *Ufal::Parsitoc::Tree_empty; |
222
|
|
|
|
|
|
|
*clear = *Ufal::Parsitoc::Tree_clear; |
223
|
|
|
|
|
|
|
*addNode = *Ufal::Parsitoc::Tree_addNode; |
224
|
|
|
|
|
|
|
*setHead = *Ufal::Parsitoc::Tree_setHead; |
225
|
|
|
|
|
|
|
*unlinkAllNodes = *Ufal::Parsitoc::Tree_unlinkAllNodes; |
226
|
|
|
|
|
|
|
*root_form = *Ufal::Parsitoc::Tree_root_form; |
227
|
|
|
|
|
|
|
sub DESTROY { |
228
|
0
|
0
|
|
0
|
|
|
return unless $_[0]->isa('HASH'); |
229
|
0
|
|
|
|
|
|
my $self = tied(%{$_[0]}); |
|
0
|
|
|
|
|
|
|
230
|
0
|
0
|
|
|
|
|
return unless defined $self; |
231
|
0
|
|
|
|
|
|
delete $ITERATORS{$self}; |
232
|
0
|
0
|
|
|
|
|
if (exists $OWNER{$self}) { |
233
|
0
|
|
|
|
|
|
Ufal::Parsitoc::delete_Tree($self); |
234
|
0
|
|
|
|
|
|
delete $OWNER{$self}; |
235
|
|
|
|
|
|
|
} |
236
|
|
|
|
|
|
|
} |
237
|
|
|
|
|
|
|
|
238
|
|
|
|
|
|
|
sub DISOWN { |
239
|
0
|
|
|
0
|
|
|
my $self = shift; |
240
|
0
|
|
|
|
|
|
my $ptr = tied(%$self); |
241
|
0
|
|
|
|
|
|
delete $OWNER{$ptr}; |
242
|
|
|
|
|
|
|
} |
243
|
|
|
|
|
|
|
|
244
|
|
|
|
|
|
|
sub ACQUIRE { |
245
|
0
|
|
|
0
|
|
|
my $self = shift; |
246
|
0
|
|
|
|
|
|
my $ptr = tied(%$self); |
247
|
0
|
|
|
|
|
|
$OWNER{$ptr} = 1; |
248
|
|
|
|
|
|
|
} |
249
|
|
|
|
|
|
|
|
250
|
|
|
|
|
|
|
|
251
|
|
|
|
|
|
|
############# Class : Ufal::Parsito::TreeInputFormat ############## |
252
|
|
|
|
|
|
|
|
253
|
|
|
|
|
|
|
package Ufal::Parsito::TreeInputFormat; |
254
|
|
|
|
|
|
|
our $VERSION = '1.0.0.1'; |
255
|
2
|
|
|
2
|
|
11
|
use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); |
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
751
|
|
256
|
|
|
|
|
|
|
@ISA = qw( Ufal::Parsito ); |
257
|
|
|
|
|
|
|
%OWNER = (); |
258
|
|
|
|
|
|
|
%ITERATORS = (); |
259
|
|
|
|
|
|
|
sub DESTROY { |
260
|
0
|
0
|
|
0
|
|
|
return unless $_[0]->isa('HASH'); |
261
|
0
|
|
|
|
|
|
my $self = tied(%{$_[0]}); |
|
0
|
|
|
|
|
|
|
262
|
0
|
0
|
|
|
|
|
return unless defined $self; |
263
|
0
|
|
|
|
|
|
delete $ITERATORS{$self}; |
264
|
0
|
0
|
|
|
|
|
if (exists $OWNER{$self}) { |
265
|
0
|
|
|
|
|
|
Ufal::Parsitoc::delete_TreeInputFormat($self); |
266
|
0
|
|
|
|
|
|
delete $OWNER{$self}; |
267
|
|
|
|
|
|
|
} |
268
|
|
|
|
|
|
|
} |
269
|
|
|
|
|
|
|
|
270
|
|
|
|
|
|
|
*setText = *Ufal::Parsitoc::TreeInputFormat_setText; |
271
|
|
|
|
|
|
|
*nextTree = *Ufal::Parsitoc::TreeInputFormat_nextTree; |
272
|
|
|
|
|
|
|
*lastError = *Ufal::Parsitoc::TreeInputFormat_lastError; |
273
|
|
|
|
|
|
|
*newInputFormat = *Ufal::Parsitoc::TreeInputFormat_newInputFormat; |
274
|
|
|
|
|
|
|
*newConlluInputFormat = *Ufal::Parsitoc::TreeInputFormat_newConlluInputFormat; |
275
|
|
|
|
|
|
|
sub DISOWN { |
276
|
0
|
|
|
0
|
|
|
my $self = shift; |
277
|
0
|
|
|
|
|
|
my $ptr = tied(%$self); |
278
|
0
|
|
|
|
|
|
delete $OWNER{$ptr}; |
279
|
|
|
|
|
|
|
} |
280
|
|
|
|
|
|
|
|
281
|
|
|
|
|
|
|
sub ACQUIRE { |
282
|
0
|
|
|
0
|
|
|
my $self = shift; |
283
|
0
|
|
|
|
|
|
my $ptr = tied(%$self); |
284
|
0
|
|
|
|
|
|
$OWNER{$ptr} = 1; |
285
|
|
|
|
|
|
|
} |
286
|
|
|
|
|
|
|
|
287
|
|
|
|
|
|
|
|
288
|
|
|
|
|
|
|
############# Class : Ufal::Parsito::TreeOutputFormat ############## |
289
|
|
|
|
|
|
|
|
290
|
|
|
|
|
|
|
package Ufal::Parsito::TreeOutputFormat; |
291
|
|
|
|
|
|
|
our $VERSION = '1.0.0.1'; |
292
|
2
|
|
|
2
|
|
14
|
use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); |
|
2
|
|
|
|
|
8
|
|
|
2
|
|
|
|
|
613
|
|
293
|
|
|
|
|
|
|
@ISA = qw( Ufal::Parsito ); |
294
|
|
|
|
|
|
|
%OWNER = (); |
295
|
|
|
|
|
|
|
%ITERATORS = (); |
296
|
|
|
|
|
|
|
sub DESTROY { |
297
|
0
|
0
|
|
0
|
|
|
return unless $_[0]->isa('HASH'); |
298
|
0
|
|
|
|
|
|
my $self = tied(%{$_[0]}); |
|
0
|
|
|
|
|
|
|
299
|
0
|
0
|
|
|
|
|
return unless defined $self; |
300
|
0
|
|
|
|
|
|
delete $ITERATORS{$self}; |
301
|
0
|
0
|
|
|
|
|
if (exists $OWNER{$self}) { |
302
|
0
|
|
|
|
|
|
Ufal::Parsitoc::delete_TreeOutputFormat($self); |
303
|
0
|
|
|
|
|
|
delete $OWNER{$self}; |
304
|
|
|
|
|
|
|
} |
305
|
|
|
|
|
|
|
} |
306
|
|
|
|
|
|
|
|
307
|
|
|
|
|
|
|
*writeTree = *Ufal::Parsitoc::TreeOutputFormat_writeTree; |
308
|
|
|
|
|
|
|
*newOutputFormat = *Ufal::Parsitoc::TreeOutputFormat_newOutputFormat; |
309
|
|
|
|
|
|
|
*newConlluOutputFormat = *Ufal::Parsitoc::TreeOutputFormat_newConlluOutputFormat; |
310
|
|
|
|
|
|
|
sub DISOWN { |
311
|
0
|
|
|
0
|
|
|
my $self = shift; |
312
|
0
|
|
|
|
|
|
my $ptr = tied(%$self); |
313
|
0
|
|
|
|
|
|
delete $OWNER{$ptr}; |
314
|
|
|
|
|
|
|
} |
315
|
|
|
|
|
|
|
|
316
|
|
|
|
|
|
|
sub ACQUIRE { |
317
|
0
|
|
|
0
|
|
|
my $self = shift; |
318
|
0
|
|
|
|
|
|
my $ptr = tied(%$self); |
319
|
0
|
|
|
|
|
|
$OWNER{$ptr} = 1; |
320
|
|
|
|
|
|
|
} |
321
|
|
|
|
|
|
|
|
322
|
|
|
|
|
|
|
|
323
|
|
|
|
|
|
|
############# Class : Ufal::Parsito::Version ############## |
324
|
|
|
|
|
|
|
|
325
|
|
|
|
|
|
|
package Ufal::Parsito::Version; |
326
|
|
|
|
|
|
|
our $VERSION = '1.0.0.1'; |
327
|
2
|
|
|
2
|
|
9
|
use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
777
|
|
328
|
|
|
|
|
|
|
@ISA = qw( Ufal::Parsito ); |
329
|
|
|
|
|
|
|
%OWNER = (); |
330
|
|
|
|
|
|
|
%ITERATORS = (); |
331
|
|
|
|
|
|
|
*swig_major_get = *Ufal::Parsitoc::Version_major_get; |
332
|
|
|
|
|
|
|
*swig_major_set = *Ufal::Parsitoc::Version_major_set; |
333
|
|
|
|
|
|
|
*swig_minor_get = *Ufal::Parsitoc::Version_minor_get; |
334
|
|
|
|
|
|
|
*swig_minor_set = *Ufal::Parsitoc::Version_minor_set; |
335
|
|
|
|
|
|
|
*swig_patch_get = *Ufal::Parsitoc::Version_patch_get; |
336
|
|
|
|
|
|
|
*swig_patch_set = *Ufal::Parsitoc::Version_patch_set; |
337
|
|
|
|
|
|
|
*swig_prerelease_get = *Ufal::Parsitoc::Version_prerelease_get; |
338
|
|
|
|
|
|
|
*swig_prerelease_set = *Ufal::Parsitoc::Version_prerelease_set; |
339
|
|
|
|
|
|
|
*current = *Ufal::Parsitoc::Version_current; |
340
|
|
|
|
|
|
|
sub new { |
341
|
0
|
|
|
0
|
|
|
my $pkg = shift; |
342
|
0
|
|
|
|
|
|
my $self = Ufal::Parsitoc::new_Version(@_); |
343
|
0
|
0
|
|
|
|
|
bless $self, $pkg if defined($self); |
344
|
|
|
|
|
|
|
} |
345
|
|
|
|
|
|
|
|
346
|
|
|
|
|
|
|
sub DESTROY { |
347
|
0
|
0
|
|
0
|
|
|
return unless $_[0]->isa('HASH'); |
348
|
0
|
|
|
|
|
|
my $self = tied(%{$_[0]}); |
|
0
|
|
|
|
|
|
|
349
|
0
|
0
|
|
|
|
|
return unless defined $self; |
350
|
0
|
|
|
|
|
|
delete $ITERATORS{$self}; |
351
|
0
|
0
|
|
|
|
|
if (exists $OWNER{$self}) { |
352
|
0
|
|
|
|
|
|
Ufal::Parsitoc::delete_Version($self); |
353
|
0
|
|
|
|
|
|
delete $OWNER{$self}; |
354
|
|
|
|
|
|
|
} |
355
|
|
|
|
|
|
|
} |
356
|
|
|
|
|
|
|
|
357
|
|
|
|
|
|
|
sub DISOWN { |
358
|
0
|
|
|
0
|
|
|
my $self = shift; |
359
|
0
|
|
|
|
|
|
my $ptr = tied(%$self); |
360
|
0
|
|
|
|
|
|
delete $OWNER{$ptr}; |
361
|
|
|
|
|
|
|
} |
362
|
|
|
|
|
|
|
|
363
|
|
|
|
|
|
|
sub ACQUIRE { |
364
|
0
|
|
|
0
|
|
|
my $self = shift; |
365
|
0
|
|
|
|
|
|
my $ptr = tied(%$self); |
366
|
0
|
|
|
|
|
|
$OWNER{$ptr} = 1; |
367
|
|
|
|
|
|
|
} |
368
|
|
|
|
|
|
|
|
369
|
|
|
|
|
|
|
|
370
|
|
|
|
|
|
|
############# Class : Ufal::Parsito::Parser ############## |
371
|
|
|
|
|
|
|
|
372
|
|
|
|
|
|
|
package Ufal::Parsito::Parser; |
373
|
|
|
|
|
|
|
our $VERSION = '1.0.0.1'; |
374
|
2
|
|
|
2
|
|
16
|
use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
724
|
|
375
|
|
|
|
|
|
|
@ISA = qw( Ufal::Parsito ); |
376
|
|
|
|
|
|
|
%OWNER = (); |
377
|
|
|
|
|
|
|
%ITERATORS = (); |
378
|
|
|
|
|
|
|
sub DESTROY { |
379
|
0
|
0
|
|
0
|
|
|
return unless $_[0]->isa('HASH'); |
380
|
0
|
|
|
|
|
|
my $self = tied(%{$_[0]}); |
|
0
|
|
|
|
|
|
|
381
|
0
|
0
|
|
|
|
|
return unless defined $self; |
382
|
0
|
|
|
|
|
|
delete $ITERATORS{$self}; |
383
|
0
|
0
|
|
|
|
|
if (exists $OWNER{$self}) { |
384
|
0
|
|
|
|
|
|
Ufal::Parsitoc::delete_Parser($self); |
385
|
0
|
|
|
|
|
|
delete $OWNER{$self}; |
386
|
|
|
|
|
|
|
} |
387
|
|
|
|
|
|
|
} |
388
|
|
|
|
|
|
|
|
389
|
|
|
|
|
|
|
*parse = *Ufal::Parsitoc::Parser_parse; |
390
|
|
|
|
|
|
|
*NO_CACHE = *Ufal::Parsitoc::Parser_NO_CACHE; |
391
|
|
|
|
|
|
|
*FULL_CACHE = *Ufal::Parsitoc::Parser_FULL_CACHE; |
392
|
|
|
|
|
|
|
*load = *Ufal::Parsitoc::Parser_load; |
393
|
|
|
|
|
|
|
sub DISOWN { |
394
|
0
|
|
|
0
|
|
|
my $self = shift; |
395
|
0
|
|
|
|
|
|
my $ptr = tied(%$self); |
396
|
0
|
|
|
|
|
|
delete $OWNER{$ptr}; |
397
|
|
|
|
|
|
|
} |
398
|
|
|
|
|
|
|
|
399
|
|
|
|
|
|
|
sub ACQUIRE { |
400
|
0
|
|
|
0
|
|
|
my $self = shift; |
401
|
0
|
|
|
|
|
|
my $ptr = tied(%$self); |
402
|
0
|
|
|
|
|
|
$OWNER{$ptr} = 1; |
403
|
|
|
|
|
|
|
} |
404
|
|
|
|
|
|
|
|
405
|
|
|
|
|
|
|
|
406
|
|
|
|
|
|
|
# ------- VARIABLE STUBS -------- |
407
|
|
|
|
|
|
|
|
408
|
|
|
|
|
|
|
package Ufal::Parsito; |
409
|
|
|
|
|
|
|
|
410
|
|
|
|
|
|
|
*Tree_root_form = *Ufal::Parsitoc::Tree_root_form; |
411
|
|
|
|
|
|
|
1; |