who will you check?
This commit is contained in:
parent
bd83674168
commit
20398352e3
@ -419,7 +419,7 @@ true :- true.
|
|||||||
(
|
(
|
||||||
get_value('$syntaxcheckflag',on)
|
get_value('$syntaxcheckflag',on)
|
||||||
->
|
->
|
||||||
'$check_term'(Source, V, Pos, BodyMod)
|
'$check_term'(Source, G, V, Pos, BodyMod)
|
||||||
;
|
;
|
||||||
true
|
true
|
||||||
),
|
),
|
||||||
@ -488,8 +488,8 @@ true :- true.
|
|||||||
'$yes_no'(G,(?-)).
|
'$yes_no'(G,(?-)).
|
||||||
'$query'(G,V) :-
|
'$query'(G,V) :-
|
||||||
(
|
(
|
||||||
'$exit_system_mode',
|
|
||||||
yap_hacks:current_choice_point(CP),
|
yap_hacks:current_choice_point(CP),
|
||||||
|
'$exit_system_mode',
|
||||||
'$execute'(G),
|
'$execute'(G),
|
||||||
yap_hacks:current_choice_point(NCP),
|
yap_hacks:current_choice_point(NCP),
|
||||||
( '$enter_system_mode' ; '$exit_system_mode', fail),
|
( '$enter_system_mode' ; '$exit_system_mode', fail),
|
||||||
|
@ -126,24 +126,24 @@ no_style_check([H|T]) :- no_style_check(H), no_style_check(T).
|
|||||||
'$init_style_check'(_).
|
'$init_style_check'(_).
|
||||||
|
|
||||||
% style checker proper..
|
% style checker proper..
|
||||||
'$check_term'(T,VL,P,_) :-
|
'$check_term'(T, _, VL,P,_) :-
|
||||||
get_value('$syntaxchecksinglevar',on),
|
get_value('$syntaxchecksinglevar',on),
|
||||||
'$singletons_in_clause'(T, VL, Sv),
|
'$singletons_in_clause'(T, VL, Sv),
|
||||||
Sv = [_|_],
|
Sv = [_|_],
|
||||||
'$sv_warning'(Sv,T),
|
'$sv_warning'(Sv,T),
|
||||||
fail.
|
fail.
|
||||||
'$check_term'(T,_,P,M) :-
|
'$check_term'(_, T, _,P,M) :-
|
||||||
get_value('$syntaxcheckdiscontiguous',on),
|
get_value('$syntaxcheckdiscontiguous',on),
|
||||||
'$xtract_head'(T,M,NM,_,F,A),
|
'$xtract_head'(T,M,NM,_,F,A),
|
||||||
% should always fail
|
% should always fail
|
||||||
'$handle_discontiguous'(F,A,NM),
|
'$handle_discontiguous'(F,A,NM),
|
||||||
fail.
|
fail.
|
||||||
'$check_term'(T,_,P,M) :-
|
'$check_term'(_, T,_,P,M) :-
|
||||||
get_value('$syntaxcheckmultiple',on),
|
get_value('$syntaxcheckmultiple',on),
|
||||||
'$xtract_head'(T,M,NM,_,F,A),
|
'$xtract_head'(T,M,NM,_,F,A),
|
||||||
'$handle_multiple'(F,A,NM),
|
'$handle_multiple'(F,A,NM),
|
||||||
fail.
|
fail.
|
||||||
'$check_term'(T,_,_,M) :-
|
'$check_term'(_, T,_,_,M) :-
|
||||||
once((
|
once((
|
||||||
get_value('$syntaxcheckdiscontiguous',on)
|
get_value('$syntaxcheckdiscontiguous',on)
|
||||||
;
|
;
|
||||||
@ -159,7 +159,7 @@ no_style_check([H|T]) :- no_style_check(H), no_style_check(T).
|
|||||||
),
|
),
|
||||||
recorda('$predicate_defs','$predicate_defs'(F,A,NM,File),_),
|
recorda('$predicate_defs','$predicate_defs'(F,A,NM,File),_),
|
||||||
fail.
|
fail.
|
||||||
'$check_term'(_,_,_,_).
|
'$check_term'(_,_,_,_,_).
|
||||||
|
|
||||||
%
|
%
|
||||||
% output a list of singleton variables...
|
% output a list of singleton variables...
|
||||||
|
Reference in New Issue
Block a user