Overview

C#Prolog (CSProlog on NuGet) is a Prolog interpreter for .NET, written in C#. Version 7 is a complete rewrite with a new design for modern .NET.

Packages

Package What it contains
CSProlog A package that brings in both CSProlog.Core and CSProlog.Syntax. Start with this one.
CSProlog.Core The engine, the term types, and the builtin predicates.
CSProlog.Syntax Reading and writing Prolog text, Consult, and queries written as text.
CSProlog.Cli The csprolog command line tool, a .NET tool.

If you build terms only in C# and never read Prolog text, CSProlog.Core alone is enough.

Documents

What is not supported yet

  • Strings written in double quotes.
  • Streams and reading terms with read/1.
  • Pushback in DCG rules.
An unhandled error has occurred. Reload 🗙