Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

rprolog

A prolog interpreter's rough implementation in Ruby

Try it

% gem install readline msgpack
% ruby prolog1.rb <prolog program filename>

You'll see prompt start with > ?-, this is a prompt and then you can execute your query.

Example

% ruby prolog1.rb family.pl
> ?- grandmother(alice, paul).
NO.
> ?- grandmother(alice, Who).
{"Who"=>"sam"}
{"Who"=>"peter"}
YES.

About

a prolog interpreter rough implementation

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages