Skip to content
Patrick Hammer edited this page Oct 15, 2020 · 4 revisions

How to use ONA:

Per C API:

Initializes the system:

void NAR_INIT();

Run the system for a certain amount of cycles:

void NAR_Cycles(int cycles);

Add a Narsese sentence: (for the format of the string, see https://github.com/opennars/OpenNARS-for-Applications/wiki/Narsese )

void NAR_AddInputNarsese(char *narsese_sentence);

Add an operation, linking an operator name like ^say, to a procedure with the operator arguments as input.

void NAR_AddOperation(char *operator_name, Action procedure);

Note: the operator arguments are given as a product (arg1 * tailProduct)

Clone this wiki locally