Skip to content

Java 8 implementation of a mini prolog-style solver, based on the Javascript version of https://curiosity-driven.org/prolog-interpreter

Notifications You must be signed in to change notification settings

arranstewart/mini-prologj

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java 8 mini-prolog

The inference engine portion of a mini Prolog-style interpreter, based on the Javascript version of curiosity-driven.

That version uses EcmaScript 6 generators and "yield" to do backtracking. In Java 8, streams can be used to achieve similar functionality. The result is fairly concise, for Java code.

Building and running

Build with

> ant

You'll need to edit the build.xml file to insert the correct path to Junit 4 libraries.

There's no parser, so terms are built using Java code. The test classes give a few examples.

About

Java 8 implementation of a mini prolog-style solver, based on the Javascript version of https://curiosity-driven.org/prolog-interpreter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages