Coder Social home page Coder Social logo

chav1961 / funnypro Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 2.84 MB

The Prolog language interpreter (based on I.Bratko book) to use as built-in script language in the Java by it's javax.script package functionality

License: MIT License

Java 95.86% HTML 0.13% CSS 4.00%
prolog java java-vm bratko script-language-for-java

funnypro's Introduction

Funny Prolog

This project is a simple Prolog language interpreter, based on I.Bratko book predicates/operators set. This interpreter is written on Java, and can be used both console-oriented application and a new Script language inside Java VM (using standard javax.script package functionality).

Getting Started

Prerequisites

To use Funny Prolog interpreter, you need installed Java 1.8 version 31 and later. Goto ORACLE Java download center and download this software

Installing

Download executable jar or whole project from GitHub repository and place it to any directory you wish. Use Maven to get access to the project:

	<dependency>
		<groupId>com.github.chav1961</groupId>
		<artifactId>funnypro</artifactId>
		<version>0.0.1</version>
	<dependency>

Also add repository GitHub repository description to your pom file:

	<repositories>
	    <repository>
	        <id>funnypro-mvn-repo</id>
	        <url>https://raw.github.com/chav1961/funnypro/mvn-repo/</url>
	        <snapshots>
	            <enabled>true</enabled>
	            <updatePolicy>always</updatePolicy>
	        </snapshots>
	    </repository>
	</repositories>

To use this project as a standalone console application (command string mode), type :

java -jar funnypro-0.0.1.jar

To use Russian letters in the Prolog syntax, type:

java -jar funnypro-0.0.1.jar cp866

After prompt appears, type any Prolog sentences. Type "quit." to exit from the console application.

To use this project inside Java VM, include this archive in your classpath. To get access to Funny Prolog interpreter from Java VM, use code template:

    . . .
    final ScriptEngineManager factory = new ScriptEngineManager();
    final ScriptEngine engine = factory.getEngineByName("FunnyProlog");
    . . .

See Java API for javax.script package and JavaDoc of this project for more details

Built With

  • Eclipse - The Eclipse IDE
  • Maven - Dependency Management
  • Pure Lib - My project with a set of useful classes

Authors

  • Alexander Charnomyrdin - Initial work

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

  • I.Bratko as indirect inspirator of the project

funnypro's People

Contributors

chav1961 avatar

Watchers

 avatar  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.