GithubHelp home page GithubHelp logo

andrzejolszak / csharpprolog Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jsakamoto/csharpprolog

1.0 1.0 0.0 6.22 MB

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

License: GNU Lesser General Public License v3.0

C# 25.22% Smarty 0.08% Batchfile 0.01% Prolog 74.23% Raku 0.28% XSLT 0.20%

csharpprolog's Introduction

Build Status

Tests

A C# implementation of Prolog

using System;
using Prolog;

class Program
{
    static void Main(string[] args)
    {
        var prolog = new PrologEngine();
        
        prolog.ConsultFromString("human(socrates).");
        prolog.ConsultFromString("mortal(X) :- human(X).");
        
        var solution = prolog.GetFirstSolution(query: "mortal(socrates).");
        Console.WriteLine(solution.Solved); // = "True" (Yes!)
    }
}

About this fork

This is an experimental backwards-incompatible fork of jsakamoto's repository https://github.com/jsakamoto/CSharpProlog/. The focus here is only C# library-based usage and IDE-based usage. The IDE is completely overhauled, and REPL-specific features will get gradually removed.

Further development will focus on: bringing the Prolog behavior closer to the ISO standard, code clean up and optimization, unit tests, refactoring of static mutable state, and removing non-core-prolog features (e.g. SQL, json, xml, regex, etc.). All this will happen at the cost C# API-level backwards compatibility.

Solution Layout

CSProlog

Prolog Engine

CSProlog.Core.Test

Unit Tests

IDE

Windows Forms IDE

For more documents

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

Older versions

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

License

GNU LGPL v.3

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.