Skip to content
/ logice Public

A naive implementation of logic programming language

License

Notifications You must be signed in to change notification settings

jichang/logice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

logice

This is a experimental project that aim to reasoning social activities with logic programming. It contains a logic programming language, which will have Lisp-like syntax and Prolog semantics.

The implementation of langauge is based on this paper.

(Relation (entity0 entity1) (goal0 goal1 goal2))

For example

// assertion
(true)

// fact that a is male
(male (a))
// fact that b is female
(female (b))

// fact that a is c's father
(father (a c))
// fact that b is c's mother
(mother (b c))

// rule that A and B are couple if A is C's father and B is C's mother
(couple (A B)
  (
    (father (A C))
    (mother (B C))
  )
)

About

A naive implementation of logic programming language

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages