19 style_check/1], [
'$check_term'/5,
21 '$syntax_check_discontiguous'/2,
22 '$syntax_check_multiple'/2,
23 '$syntax_check_single_var'/2]).
75style_check(
V)
:- var(
V),
var,
var.
84style_check(
-single_var)
:-
86style_check(single_var)
:-
88style_check(singleton)
:-
90style_check(
-singleton)
:-
92style_check(
discontiguous)
:-
94style_check(
-discontiguous)
:-
96style_check(multiple)
:-
98style_check(
-multiple)
:-
101 style_check([single_var, multiple,
discontiguous]).
102style_check(no_effect).
103style_check(
+no_effect) .
104style_check(
-no_effect).
105style_check(var_branches).
106style_check(
+var_branches)
:-
107 '$style_checker'( [ var_branches ] ).
108style_check(
-var_branches)
:-
109 '$style_checker'( [
-var_branches ] ).
112 '$style_checker'( [ atom ] ).
114 '$style_checker'( [
-atom ] ).
115style_check(charset)
:-
116 '$style_checker'( [ charset ] ).
117style_check(
+charset)
:-
118 '$style_checker'( [ charset ] ).
119style_check(
-charset)
:-
120 '$style_checker'( [
-charset ] ).
121style_check(
'?'(
Info) )
:-
122 L = [ singleton,
discontiguous, multiple ],
123 ( lists
:member(
Style,
L )
-> Info = +Style ; Info = -Style ).
125style_check([
H|T])
:- style_check(
H),
style_check(
T).
138 '$style_checker'( [
-singleton,
-discontiguous,
-multiple ] ).
140 '$style_checker'( [
-singleton ] ).
142 '$style_checker'( [
-singleton ] ).
144 '$style_checker'( [
-discontiguous ] ).
146 '$style_checker'( [
-multiple ] ).
159discontiguous(
P)
:- '$discontiguous'(
P).
161:-
op(
1150, fx, [
multifile,
discontiguous]).
167
set_prolog_flag(+ Flag,+ Value)
member(?Element, ?Set) is true when Set is a list, and Element occurs in it