fix operator problem (|). (Ulrich #193)
This commit is contained in:
parent
f4218bdaac
commit
65a66a3360
@ -96,13 +96,13 @@
|
|||||||
'$do_error'(permispsion_error(create,operator,'[]'),G).
|
'$do_error'(permispsion_error(create,operator,'[]'),G).
|
||||||
'$check_op_name'(_,_,'{}',G) :- !,
|
'$check_op_name'(_,_,'{}',G) :- !,
|
||||||
'$do_error'(permission_error(create,operator,'{}'),G).
|
'$do_error'(permission_error(create,operator,'{}'),G).
|
||||||
'$check_op_name'(P,T,'|',G) :- !,
|
'$check_op_name'(P,T,'|',G) :-
|
||||||
(
|
(
|
||||||
integer(P),
|
integer(P),
|
||||||
P < 1001
|
P < 1001
|
||||||
;
|
;
|
||||||
Fix \== xfx, Fix \== xfy, Fix \== yfx, Fix \== yfy
|
atom_codes(T,[_,_])
|
||||||
),
|
), !,
|
||||||
'$do_error'(permission_error(create,operator,'|'),G).
|
'$do_error'(permission_error(create,operator,'|'),G).
|
||||||
'$check_op_name'(_,_,V,_) :-
|
'$check_op_name'(_,_,V,_) :-
|
||||||
atom(V), !.
|
atom(V), !.
|
||||||
|
Reference in New Issue
Block a user