forked from saetre/busstuc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sicstuc.pl
90 lines (70 loc) · 2.7 KB
/
sicstuc.pl
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
%% FILE sicstuc.pl
%% SYSTEM TUC
%% AUTHOR T.Amble
%% CREATED TA-940819
%% REVISED TA-980115
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% TUC - The Understanding Computer %
% %
% %
% A General Natural Language %
% Understanding System %
% %
% %
% COPYRIGHT (C) 2001 - %
% %
% Tore Amble %
% Group of Logic and Language Texhnology %
% Department of Computer and Information Science %
% The Norwegian University of Science and Technology %
% %
% toreamb@idi.ntnu.no
%
% %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
:-module( sicstuc, [ legal_language/1, language/1, readfile_extension/1, script_file/1 ] ). %% prompt/1, %% RS-150119
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% Documentation: TUC_manual Version Version 21.4 %
% %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%:- ensure_loaded( user:'declare' ). %% RS-111213 General (semantic) Operators
:-use_module( declare, [ language/1 ] ). %% RS-111213 General (semantic) Operators
%% Generic SICSTUS version of TUC
%% Common to UNIX Sicstus and DOS Sicstus
%% Calls tuc.pl
legal_language(english).
legal_language(norsk). %% NB not 'norwegian'
%language(L) :- value( language, L ). %% value(language,X) should have been set dynamically by now! Moved to utility...?
script_file(S):-
language(L),script_file(L,S).
script_file(english,facts_e).
script_file(norsk, facts_n).
readfile_extension(english, '.e').
readfile_extension(norsk, '.n').
readfile_extension(X) :-
language(L),
readfile_extension(L,X).
%% Compatibility Predicates
%numbervars(F):-
% numbervars(F,0,_).
%
%startbatch :-
% statistics(runtime,[T,_]),
% batchstart := T.
%
%takebatch :-
% statistics(runtime,[T2,_]),
% batchstart =: T1,
% Elapse is (T2-T1),
% out('Total: '),out(Elapse),output(ms). %% TA-980115
%
%starttime :-
% statistics(runtime,_).
%
%taketime :-
% statistics(runtime,[_,T]),
% out(T),output(ms).
%?-compile('old/tuc'). %% TA-980115
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%