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
- Getting started shows how to install the package and run your first query.
- C# API explains the engine, the term types, and how to run queries from C#.
- Prolog text explains how to consult Prolog text and run queries written as text.
- Builtin predicates lists the predicates that C#Prolog has.
- Command line tool explains the
csprologcommand. - Moving from version 6 explains what changed from the earlier versions.
What is not supported yet
- Strings written in double quotes.
- Streams and reading terms with
read/1. - Pushback in DCG rules.