CLIPS loads and runs a program from a file
I am using CLIPS ( http://clipsrules.sourceforge.net/ ) for a university project, but I cannot run the program directly from files, in which case I donβt want to use the hint to insert FACTS and RULES.
I'm doing it right now.
- I open CLIPS ... CLIPS> appears on the command line
- Download the file (download the "FILE_PATH")
- All FACTS, Rules and defFacts have been inserted
- Enter (run) to run the program and apply the rules.
Place the commands you want to execute in the file. For example, the content of run.bat looks like this:
(load file1.clp)
(load file2.clp)
(reset)
(run)
If you are using the command line version, you can execute the contents of the batch file using one of the following two commands:
clips -f run.bat
clips -f2 run.bat
Using the -f option will echo the command on the command line. Using the -f2 option will execute commands without repeating commands on the command line.
Alternatively, you can also embed CLIPS in your C program as described in the Advanced Programming Guide, http://clipsrules.sourceforge.net/OnlineDocs.html .