This repo contains Ada bindings for the CLIPS rule-based programming language and is a fork of Ted Dennison's AdaCLIPS work. It is unrelated to the Open Channel Foundation's CLIPS/Ada, an Ada implementation of CLIPS that costs $400.
-
In order to build the example, you will need
gprbuild
. You can also download the entire GNAT Programming Studio, which includesgprbuild
. -
Copy
clips.ads
andclips.adb
into theexample
directory. -
Download the latest stable CLIPS core sources (
clips_core_source_631.tar.gz
orclips_core_source_631.zip
) and extract them to a directory inside theexample
directory namedclips
. -
Find the patch named
setup.h.patch
in theallow_globals
directory and apply it tosetup.h
(part of the CLIPS core):<../../allow_globals/setup.h.patch patch setup.h;
-
In the
example
directory, rungprbuild
. If it compiles successfully, you will have an executable namedhello_world
. Running it should generate the following output (fromhello_world.clp
):Hello world!