correct bug, dead code in toplevel.pl
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
:- module('$toplevel', ['$repl'/1, consult/1, use_module/1, use_module/2]).
|
|
||||||
|
|
||||||
:- use_module(library(lists)).
|
:- use_module(library(lists)).
|
||||||
:- use_module(library(si)).
|
:- use_module(library(si)).
|
||||||
|
|
||||||
|
:- module('$toplevel', ['$repl'/1, consult/1, use_module/1, use_module/2]).
|
||||||
|
|
||||||
'$repl'(ListOfModules) :-
|
'$repl'(ListOfModules) :-
|
||||||
maplist('$use_list_of_modules', ListOfModules),
|
maplist('$use_list_of_modules', ListOfModules),
|
||||||
false.
|
false.
|
||||||
@@ -29,9 +29,10 @@
|
|||||||
catch('$$compile_batch', E, '$print_exception_with_check'(E))
|
catch('$$compile_batch', E, '$print_exception_with_check'(E))
|
||||||
; consult(Item)
|
; consult(Item)
|
||||||
)
|
)
|
||||||
; catch(throw(error(type_error(atom, Item), repl/0)),
|
; !,
|
||||||
|
catch(throw(error(type_error(atom, Item), repl/0)),
|
||||||
E,
|
E,
|
||||||
'$print_exception_with_check'(E))
|
'$print_exception_with_check'(E))
|
||||||
).
|
).
|
||||||
'$instruction_match'(Term, VarList) :-
|
'$instruction_match'(Term, VarList) :-
|
||||||
'$submit_query_and_print_results'(Term, VarList),
|
'$submit_query_and_print_results'(Term, VarList),
|
||||||
@@ -91,8 +92,7 @@
|
|||||||
write(' .'),
|
write(' .'),
|
||||||
nl
|
nl
|
||||||
)
|
)
|
||||||
; repeat,
|
; thread_goals(Goals, ThreadedGoals, (',')),
|
||||||
thread_goals(Goals, ThreadedGoals, (',')),
|
|
||||||
'$write_eq'(ThreadedGoals, VarList),
|
'$write_eq'(ThreadedGoals, VarList),
|
||||||
'$raw_input_read_char'(C),
|
'$raw_input_read_char'(C),
|
||||||
( C == (';'), !,
|
( C == (';'), !,
|
||||||
|
|||||||
Reference in New Issue
Block a user