max op
This commit is contained in:
parent
3eda5cf68a
commit
a3a6386353
@ -88,3 +88,4 @@ lists:delete([Head|List], Elem, [Head|Residue]) :-
|
|||||||
|
|
||||||
:- set_prolog_flag(source, false). % disable source.
|
:- set_prolog_flag(source, false). % disable source.
|
||||||
|
|
||||||
|
%
|
||||||
|
@ -61,9 +61,6 @@ a postfix operator.
|
|||||||
'$check_op'(P,_,_,G) :-
|
'$check_op'(P,_,_,G) :-
|
||||||
P < 0, !,
|
P < 0, !,
|
||||||
'$do_error'(domain_error(operator_priority,P),G).
|
'$do_error'(domain_error(operator_priority,P),G).
|
||||||
'$check_op'(P,_,_,G) :-
|
|
||||||
P > 1200, !,
|
|
||||||
'$do_error'(domain_error(operator_priority,P),G).
|
|
||||||
'$check_op'(_,T,_,G) :-
|
'$check_op'(_,T,_,G) :-
|
||||||
\+ atom(T), !,
|
\+ atom(T), !,
|
||||||
'$do_error'(type_error(atom,T),G).
|
'$do_error'(type_error(atom,T),G).
|
||||||
|
Reference in New Issue
Block a user