Skip to content

Commit 9a370d6

Browse files
committed
fixed syntax error 2
1 parent 1506a5d commit 9a370d6

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

prolog/echo_source_files.pl

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
*/
1414
% File: $PACKDIR/subclause_expansion/prolog/echo_files.pl
1515
:- module(echo_files,
16-
[]).
16+
[get_file_from_stream/2]).
1717

1818
:- define_into_module(
1919
[
@@ -23,7 +23,7 @@
2323
echo_source_file/1]).
2424

2525
/** <module> Utility LOGICMOO_PREDICATE_STREAMS
26-
This module allows running prolog files as echos.
26+
This module allows running prolog files as echos.
2727
@author Douglas R. Miles
2828
@license LGPL
2929
@@ -46,24 +46,24 @@
4646

4747
%! echo_source_file(+File) is det.
4848
%
49-
echo_source_file(F):-
49+
echo_source_file(F):-
5050
(\+ t_l:echoing_file(F) -> asserta(t_l:echoing_file(F)) ; true),
5151
check_current_echo(F).
5252

5353
echo_source_file:- prolog_load_context(file,File), echo_source_file(File).
5454

5555
echo_source_file_no_catchup(F):-
56-
ignore((
56+
ignore((
5757
\+ t_l:echoing_file(F),
5858
asserta(t_l:echoing_file(F)),!,
5959
get_file_from_stream(S,F), character_count(S,Pos),
6060
assume_caughtup_to(F,S,Pos))),!.
6161

62-
check_current_echo:-
62+
check_current_echo:-
6363
source_location(F,_), prolog_load_context(source,S), S\==F,!,
6464
check_current_echo(S),check_current_echo(F).
65-
check_current_echo:-
66-
ignore((prolog_load_context(source,S),check_current_echo(S))),
65+
check_current_echo:-
66+
ignore((prolog_load_context(source,S),check_current_echo(S))),
6767
ignore((source_location(F,_),S\==F,check_current_echo(F))),
6868
ignore((prolog_load_context(file,SL),SL\==S,SL\==F,check_current_echo(SL))),!.
6969

@@ -98,7 +98,7 @@
9898
feedback_close(F):- retract(t_l:feedback_started(F,mf_s(MF,S,I,O,E))),!,set_prolog_IO(I,O,E),
9999
close(S),memory_file_to_string(MF,String),free_memory_file(MF),
100100
atom_length(String,L), (L>0 -> into_echo_cmt(write(String));true).
101-
feedback_close(_):- told.
101+
feedback_close(_):- told.
102102

103103
mco_info(F,S,_I,Start,End):-
104104
get_file_range(F,Start,End,STerm),
@@ -115,7 +115,7 @@
115115
:- module_transparent(echo_catchup/4).
116116

117117
echo_catchup(I,P,O,PO):- \+ echo_catchup_f(I,P,O,PO), fail.
118-
echo_catchup_f(I,P,O,PO):-
118+
echo_catchup_f(I,P,O,PO):-
119119
notrace((compound(P),
120120
source_location(F,_L),t_l:echoing_file(F),
121121
b_getval('$term', Term),I==Term)),
@@ -157,15 +157,15 @@
157157

158158

159159
mco_p(F,_S,_I,Start,End):- %garbage_collect_atoms,
160-
get_file_range(F,Start,End,STerm),
160+
get_file_range(F,Start,End,STerm),
161161
read_mco(STerm,Term,Cmnts,QQ,_Vs,_Sv),
162162
% (Cmnts\==[];QQ\==[]),!,
163163
% mco_info(F,S,I,Start,End),
164164
write(STerm),!,
165165
assume_caughtup_to(F,S,End).
166166

167167
mco_p(F,S,I,Start,End):- print_tree(I),!,assume_caughtup_to(F,S,End).
168-
168+
169169
% mco_i(F,S,I,O):- format('~N/*~~'),
170170
mco_i2(F,S,I,O):- fail.
171171
mco_i(F,S,I,O):- fail.
@@ -185,15 +185,15 @@
185185
catch_up_to_stream(S):- character_count(S,Pos),catch_up_to_stream(S,Pos).
186186

187187
get_file_range(F,Start,End,SubStr):-
188-
Len is End-Start,
188+
Len is End-Start,
189189
read_file_to_string(F,Str,[]),
190190
sub_string(Str,Start,Len,_,SubStr).
191191
get_file_from(F,Start,SubStr):-
192192
read_file_to_string(F,Str,[]),
193193
sub_string(Str,Start,_,0,SubStr).
194194

195195

196-
print_file_range(F,S,Start,End):-
196+
print_file_range(F,S,Start,End):-
197197
get_file_range(F,Start,End,SubStr),
198198
assume_caughtup_to(F,S,End),
199199
write_ommit_feedback(on,SubStr),!.
@@ -223,10 +223,10 @@
223223
se:echo_expander(system:term_expansion(I,P,O,PO), echo_catchup(I,P,O,PO)).
224224

225225
%user:term_expansion(I,P,O,PO):- echo_catchup(I,P,O,PO).
226-
system:term_expansion(_,_,_,_):-
226+
system:term_expansion(_,_,_,_):-
227227
notrace((
228228
se:echo_expander(H,B),
229-
nth_clause(H,1,Ref),
229+
nth_clause(H,1,Ref),
230230
\+ (clause(H,_:B,Ref)))),
231231
ignore(retract(H:- B)),
232232
asserta(H:-B),

0 commit comments

Comments
 (0)