Help with a simple prolog programme?
I have written a simple programme in prolog.
just_ate(stork,frog).
just_ate(frog,mosquito).
just_ate(mosquito,blood(john)).
is_digesting(X,Y):-just_ate(X,Y).
is_digesting(X,Y):-just_ate(X,Z),is__d…
When I compile the program, the compiler says it has some errors.
Can anybody show me what they are.
I really cannot find the errors.
Erro shown is
ERROR: Syntax error: Operator expected
ERROR: compile
ERROR: ** here **
ERROR: eating .
Thanks in advance !
I have written a simple programme in prolog.
just_ate(stork,frog).
just_ate(frog,mosquito).
just_ate(mosquito,blood(john)).
is_digesting(X,Y):-just_ate(X,Y).
is_digesting(X,Y):-just_ate(X,Z),is__d…
When I compile the program, the compiler says it has some errors.
Can anybody show me what they are.
I really cannot find the errors.
Erro shown is
ERROR: Syntax error: Operator expected
ERROR: compile
ERROR: ** here **
ERROR: eating .
Thanks in advance !