Skip to content

IrisStream/prolog-implement

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 

Repository files navigation

A Simple Implementation of Prolog in Python

This is my 2nd Lab of "Introduce to AI" course. The algorithm can run fast on YES/NO queries but it may run really slow on some complicated queries. I'll fix it later when I have some time. Or may be you can help me with that <3

How to use

First, you need to create an input file (input_file), it containes your facts and rules.

After that, create a query file (query_file), it has all of your queries.

Finally, Run this command:

python prolog.py [--input <input_file>] [--query <query_file>] [--output <output_file>]

Where:
	-i <input_file>, --input <input_file>
	Path to input file

	-q <query_file>, --query <query_file>
	Path to query file

	-o <output_file>, --output <output_file>
	Output file name.

Thank you and good luck.

About

Simple implementation of Prolog in python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •