robjsliwa / pyprolog Goto Github PK
View Code? Open in Web Editor NEWProlog implemented in Python
License: MIT License
Prolog implemented in Python
License: MIT License
Prolog implements data structures by representing them as a functor with fixed number of arguments: functor(arg1, arg2, ...)
. We should support this but I propose that for simpler and more convenient integration with other languages, for example Python, we would support structure as a Python like object. For example, objects represented as functor:
object(candle, red, small).
object(apple, red, small).
object(apple, green, small).
could be represented as Python class that would be then registered with Prolog library:
class Object:
def __init__(self, name, color, size):
self.name = name
self.color = color
self.size = size
You would call Prolog library with register(Object)
to indicate that the instance of Object
class will be used as a data structure. To use this in Prolog you would type something like this:
room(kitchen, object: Object).
in_room(X, Name) :- room(X, object.name = Name)
Use chapter 8 of Adventures in Prolog by Dennis Merritt to guide what functionality should be available.
Implement support for adding and removing rules dynamically during the program execution.
Use chapter 7 of Adventures in Prolog by Dennis Merritt to guide what functionality should be available.
This implements arithmetic support in Prolog.
Use chapter 6 of Adventures in Prolog by Dennis Merritt to guide what functionality should be available.
Use chapter 13 of Adventures in Prolog by Dennis Merritt to guide what functionality should be available.
Provide support for Prolog lists.
Use chapter 11 of Adventures in Prolog by Dennis Merritt to guide what functionality should be available.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.