avoid backtracking
This commit is contained in:
parent
1783528ea8
commit
7f952c8b74
@ -74,8 +74,8 @@ a postfix operator.
|
|||||||
'$check_module_for_op'(V, G, NV),
|
'$check_module_for_op'(V, G, NV),
|
||||||
'$check_top_op'(P, T, NV, G).
|
'$check_top_op'(P, T, NV, G).
|
||||||
|
|
||||||
'$check_top_op'(_, _, [], _).
|
'$check_top_op'(_, _, [], _) :- !.
|
||||||
'$check_top_op'(P, T, Op.NV, G) :- !,
|
'$check_top_op'(P, T, [Op|NV], G) :- !,
|
||||||
'$check_ops'(P, T, Op.NV, G).
|
'$check_ops'(P, T, Op.NV, G).
|
||||||
'$check_top_op'(P, T, V, G) :-
|
'$check_top_op'(P, T, V, G) :-
|
||||||
atom(V), !,
|
atom(V), !,
|
||||||
|
Reference in New Issue
Block a user