sasagawa888 / nprolog

interpreter and compiler to be compatible with ARITY/PROLOG(MS-DOS)
Other
76 stars 5 forks source link

user op error #66

Closed sasagawa888 closed 3 years ago

sasagawa888 commented 3 years ago

ex.

:- op(700,xfx,isl).

Y isl [] + Y :- !. Z isl [A|X] + Y :- member(A,Y),!,Z isl X + Y. [A|Z] isl [A|X] + Y :- Z isl X + Y.

sasagawa888 commented 3 years ago

Fixed in interpreter.

N-Prolog Ver 1.80 ?- [-'tests/iidaka.pl']. yes ?- X isl [1,2,3]+[2,3,4]. X = [1,2,3,4] . yes ?-

sasagawa888 commented 3 years ago

Fixed compiler.