4 Firing rules
The compiler utilises type information supplied by clause definitions in order to optimise common situations. For example, database retrieval can often be compiled into simple operations to fetch specified clauses or to check whether particular clauses exist, avoiding the relatively time consuming unification process. Some primitives, such as sum, can be compiled into particularly efficient code.
Checks must be made to ensure that a clause adheres to the syntax specified in the clause definition group before asserting it to a database. Such checks can usually be fully performed at compile time, but code is generated to perform such checks during rule firing when necessary.
Generated with CERN WebMaker