GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - poolofthought/CSharpProlog: A C# implementation of Prolog (port from https://sourceforge.net/p/cs-prolog )

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

93 Commits
93 Commits

Folders and files

NameName
Last commit message
Last commit date
CSProlog.Core.Test
CSProlog.Core.Test
 
 
CSProlog
CSProlog
 
 
Docu
Docu
 
 
PL.NETcore
PL.NETcore
 
 
PLd
PLd
 
 
PLw
PLw
 
 
PLx
PLx
 
 
.editorconfig
.editorconfig
 
 
.gitignore
.gitignore
 
 
CSProlog.sln
CSProlog.sln
 
 
LICENSE
LICENSE
 
 
README (2007-2014).doc
README (2007-2014).doc
 
 
README (2007-2014).pdf
README (2007-2014).pdf
 
 
README.md
README.md
 
 
README.txt
README.txt
 
 
appveyor.yml
appveyor.yml
 
 

Repository files navigation

CSharpProlog NuGet Package Build status

A C# implementation of Prolog

// PM> Install-Package CSProlog -pre
using System;
using Prolog;

class Program
{
    static void Main(string[] args)
    {
        var prolog = new PrologEngine(persistentCommandHistory: false);

        // 'socrates' is human.
        prolog.ConsultFromString("human(socrates).");
        // human is bound to die.
        prolog.ConsultFromString("mortal(X) :- human(X).");

        // Question: Shall 'socrates' die?
        var solution = prolog.GetFirstSolution(query: "mortal(socrates).");
        Console.WriteLine(solution.Solved); // = "True" (Yes!)
    }
}

Installation

Run the following command from the Visual Studio Package Manager Console to install the latest version:

Install-Package CSProlog

The NuGet page can be found here:
https://www.nuget.org/packages/CSProlog/#

Solution Layout

CSProlog

Prolog Engine

CSProlog.Core.Test

Unit Tests

PL.NETCore

Dotnet Core Console Interactive Interpreter (tested in linux and windows)

PLd

DOS Console Interactive Interpreter

PLw

Windows Forms Example

PLx

An example of how to use the engine within another Program

For more documents

Earlier release documents can be found in README (2007-2014).pdf.

Release Notes

v.6.0.0

  • BREAKING CHANGE: Remove "SAMPLES, TESTING & EXPERIMENTAL" predefined predicates. (including CHAT-80 support)
  • Fix: "help" predefined predicate dose not work.
  • Enhance: GetAllSolutions can work with null file name.

v.5.0.0.1

  • Support: .NET Standard 1.4 (.NET Core) and UWP

v.5.0.0

  • BREAKING CHANGE: Remove dependency of "System.Windows.Forms".
  • NuGet package release

Older versions

Earlier release notes can be found in README (2007-2014).pdf.

License

GNU LGPL v.3

About

A C# implementation of Prolog (port from https://sourceforge.net/p/cs-prolog )

Resources

Readme
LGPL-3.0 license
Activity

Stars

1 star

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.