A lightweight Prolog interpreter written in pure Swift.
This project includes a library for combinatory parsing.
The following example showcases list concatenation in Prolog:
?- :l Examples/list.pl
Successfully loaded 4 rules
?- concat(cons(a, cons(b, empty)), cons(c, empty), L).
{L -> cons(a, cons(b, cons(c, empty)))}
- Swift 5.0
Run swift build
.
Run swift test
.