Skip to content

33arsenic75/ProCaml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ProCaml: Prolog Interpreter in OCaml

ProCaml is a Prolog interpreter implemented in OCaml. It allows you to define Prolog-like programs and query them to find solutions.

Features

  • Supports defining clauses, heads, bodies, atoms, symbols, terms, variables, substitutions, goals, and more.
  • Implements unification, backtracking, and goal-solving algorithms.
  • Handles arithmetic operations within terms.
  • Provides a simple command-line interface for running queries.

Usage

To load a prolog file by the name "file.pl" run the following command

make
./main file.pl

If the program is syntactically correct, it will show the following screen :-

welcomescreen

After this you can enter your queries. To exit enter "exit" or "quit".

Copyright

can I copy this?

This is my intellectual property, original creation, and is copylefted. Use it for anything, but be warned that I am not liable, in any way, for any misuse, real or perceived, of this code.

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.

About

Prolog Interpreter in OCaml

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published