Lemma Engine
Logic for man and machine
A declarative logic language engine for expressing rules, facts, and business logic in a way that is both human-readable and machine-executable.
Features
- Declarative syntax - Express rules naturally
- Type-safe units - Built-in support for money, mass, length, time, etc.
- Rule composition - Reference other rules and documents
- Conditional logic - Unless clauses for business rules
- Date arithmetic - Native datetime operations
- WebAssembly - Run in the browser
Quick Start
use ;
Documentation
- API docs: Run
cargo doc --openor visit docs.rs - Language guide: Lemma language documentation
- Examples: Complete examples
WebAssembly
Build for use in browsers and Node.js:
Or install from NPM:
See wasm/README.md for detailed JavaScript API documentation.
License
Apache 2.0