#logic #rules #mangle #engine #semantic #fact #interpreter #codeberg

mangle-engine

Rust implementation of Mangle, a logic programming language

4 releases (2 breaking)

Uses new Rust 2024

new 0.5.0 Mar 9, 2026
0.4.0 Feb 27, 2026
0.1.1 Jul 25, 2024
0.1.0 Jun 11, 2024

#259 in Text editors

Apache-2.0

180KB
4K SLoC

Mangle Engine (Legacy)

This crate provides an AST-based interpreter for Mangle. It is considered legacy and serves as a reference implementation for the semantics of the language (specifically, the naive bottom-up evaluation).

For the new, performance-oriented IR-based execution, see mangle-interpreter (Edge) and mangle-vm (Server).


mangle-engine

This package is part of the Mangle logic programming language. It contains code related to the evaluation of programs.

"Naive evaluation" refers to the method of deriving facts from existing facts by applying rules, until no more new facts are generated.

See https://codeberg.org/TauCeti/mangle-rs for more information about Mangle.

Dependencies

~3–4.5MB
~82K SLoC