🚀 Production-Ready Beta

Build Expert Systems in Swift

SLIPS is a modern, type-safe implementation of CLIPS expert system shell. Create rule-based AI systems with Swift's power and safety.

43 Swift Files
12K+ Lines of Code
160+ Built-in Functions
import SLIPS // Create environment CLIPS.createEnvironment() // Define rule CLIPS.eval(expr: """ (defrule greet-adult (person (name ?n) (age ?a&:(>= ?a 18))) => (printout t "Hello " ?n crlf)) """) // Run engine CLIPS.run()

Why Choose SLIPS?

Modern expert system development with Swift's elegance and power

🛡️

Type Safe

Leverage Swift's robust type system for compile-time safety and modern error handling.

RETE Algorithm

Efficient pattern matching with alpha/beta networks and incremental updates.

🎯

Pattern Matching

Complete support for multifield, NOT, EXISTS, and complex predicates.

📦

Zero Dependencies

Pure Swift implementation using only Foundation. No external dependencies.

🔧

160+ Functions

Rich built-in library: math, strings, multifield operations, templates, and more.

🎓

Module System

Organize rules with defmodule, focus stack, and import/export capabilities.

Get Started in Seconds

Add SLIPS to your Swift project with Swift Package Manager

$ swift package init --type executable
$ Add to Package.swift:
.package(url: "https://github.com/gpicchiarelli/SLIPS")
$ swift build
✓ Build complete!