vscosta / yap-6.3

YAP Development release
Other
13 stars 5 forks source link

C API Defining Rules #20

Open sray256 opened 8 years ago

sray256 commented 8 years ago

The documentation explains how to create terms using the c API, but I have not found any information on whether it is possible to define a rule. For example, this is a simple script of definitions I would like to be able to replicate using the c API:

:- table busy/1.
busy(Person) :- working(Person).

working(jimmy).
working(albert).

Can someone please help me understand how I can achieve this?

Thanks in advance.