Git Product home page Git Product logo

cs1511-prolog's Introduction

cs1511-prolog

This project was for my CS1511 Theory of Computation class taken in the Spring of 2020 where we were given a choice of projects to deeply explore a topic we talked about in the class. There are a lot of improvements that could be made including stuff that most prolog systems typically implement that I was not able to. You can read the report I wrote for the project to get an idea of how I went about the implementation, stuff I wasn't able to implement, and an explanation of some examples I created. For the project, I made 2 examples but one was a family tree and since I used my own family I excluded that example for privacy reasons and any names I mention in the report have been changed.

Usage:

  • You can pass in the filenames of any prolog programs you want to load into the database as command line arguments
  • You can also load in prolog programs using the load(X). command in the repl where X is the name of the file (without the pl file extension)
  • You can write to the output stream using write(X).
  • You can output a newline to the output stream using nl.
  • You can close the program using exit.

If you are running Mac / Linux:

Compile:

./compile

Run:

./jlog <pl file> ...

If you are running Windows:

Compile:

javac java/*.java

Run:

java -cp java Main <pl file> ...

cs1511-prolog's People

Contributors

jmeaster30 avatar

Watchers

 avatar

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.