Very good documentation is available for Clips, together with many
examples.
A good book on Expert Systems using Clips is
Below is information of a few basic commands.
CLIPS COMMANDS (CLIPS is case sensitive) ======================================== (run [< number-of-steps>]; Run the specified number of steps (exit) ; Terminate execution and, possibly, return a value (reset) ; The facts list is emptied, then default are taken ; The usual way of executing things in CLIPS is to ; first load the filename.clp, then doing (reset), ; and finally (run) (clear) ; It removes all constructs from the clips environment (load) ; Loads the specified file. (save ) ; Saves the current constructs to the specified file (system ) ; It executes the specified command in the shell. (dribble-on [ ]) ; send all io info to specified file (dribble-off) ; Undoes effect of last load operation (watch ) ; Receive statistics about the specified items. ; The - can be all, activations, compilations, ; facts, focus, rules, statistics (deffacts
*) (defrule * => *) (deftemplate ) (undefrule ) (undeftemplate ) (rules) ; Lists the names of currently defined rules (facts) ; Lists the currently defined facts (agenda) ; Lists the current content of the agenda (list-defrules) ; Lists the names of the current defrules (list-deffacts) ; Lists the names of the deffacts (list-deftemplates) ; Lists the names of the deftemplates (ppdefrule ) ; Pretty print the specified rule (ppdeftemplate ) ; Pretty print the specified template (ppdeffacts ) ; Pretty print the specified deffact (assert ) ; Add the specified fact (retract ) ; Removes the specified fact