Skip to content
/ rex Public

Lisp-like, Clojure-inspired scripting language.

License

Notifications You must be signed in to change notification settings

Efnilite/rex

Repository files navigation

Rex

by Efnilite

Welcome to the Rex repo.

Collaborating

To use this project, you can use Jitpack to get the source and include it in your preferred build method.

Features

Rex contains all the features you love from Clojure. Except for multithreading. However, there are some differences.

Use var or val to specify (mutable) variables and (immutable) values. Use set to change the value of a variable.

(val x nil)
(var map+ (fn [coll] (map inc coll)))

(if (nil? x)
    (set map+ (fn [coll] (map dec coll))))
    
(map+ [1 2 3])

use clears all prior variable or value definitions, except ones you specify.

(val x 1)
(use [] (+ x 2)) # unknown variable error
(use [x] (+ x 2)) # returns 3

About

Lisp-like, Clojure-inspired scripting language.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages