swigra_tex.pl
702 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
%
% Author: Marcin Woliński
% This file is in the public domain.
%
% parser wypluwający drzewa texowe:
:-[
birnam_run,
% birnam_dumpforest,
% birnam_gettree,
gettreetex,
gfjp_morfologia,
slowczas,
gfjp_analiza,
gfjp_wymagania,
gfjp_warunki,
gfjp,
gfjp_arnoscint
].
statprint(X,Y) :-
format("%~a: ~a\n",[X,Y]).
process_parses(NT,Od,Do) :-
flag(trees,_,0),
gettree(NT,Od,Do,_TrId,Drzewo),
treeprint(Drzewo),
flag(trees,N,N+1),
(0 is (N+1) mod 100 -> format(user_error,"+",[]), fail).
process_parses(_,_,_) :-
flag(trees,N,0),
statprint(trees,N).
:-tell(zsyp).
:-analiza('czytam.').
%%% Local Variables:
%%% coding: utf-8
%%% mode: prolog
%%% End: