Skip to content

A prolog compiler written in lisp, written in forth.

Notifications You must be signed in to change notification settings

wert310/forth-lisp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 

Repository files navigation

forth-lisp

A prolog compiler written in lisp, written in forth.

Usage

  • The :lisp word (until ;) changes the current mode to lisp mode.
  • In lisp, the <- macro adds new rules to the database and the ?- macro queries the database.
    :lisp
      (<- (member ?item (?item . ?rest)))
      (<- (member ?item (?x . ?rest)) (member ?item ?rest))
    
      (?- (member ?x (2 3 ? 5)))
    ;

About

A prolog compiler written in lisp, written in forth.

Resources

Stars

Watchers

Forks

Languages