opencog / atomspace

The OpenCog (hyper-)graph database and graph rewriting system
https://wiki.opencog.org/w/AtomSpace
Other
817 stars 229 forks source link

Demo of a Lisp-like, MeTTa-like language. #2992

Closed linas closed 2 years ago

linas commented 2 years ago

This implements a tiny fragment of a metta-resembling language on top of the atomspace. It is able to parse and run this expression: (= (fact $x) (if (< $x 2) 1 (* $x (fact (- $x 1))))) and anything similar to that. It does NOT implement deduce and match or anything else fancy. Demo only. See examples/foreign/metta-lisp.scm for details.