Home

Awesome

<div align="center">

Nixt

Nixt is an interpreted lisp inspired programming language written in Rust

</div>

Index

About

Nixt goal is to provide a fast and easy to learn scripting language that provides productivity due to its easy syntax and correct performances

Examples

Factorial

(const factorial (func (n) {
  (let toret 1)
  (let i 2)
  (while (<= i n) {
    (set toret (* toret i))
    (set i (+ i 1))

  })
  (ret toret)
}))

Ackermann function

(let ackermann (func (m n) {
  (let toret 0)
  (if (= m 0)
    (set toret (+ n 1))
    (if (and (> m 0) (= n 0))
      (set toret (ackermann (- m 1) 1))
      (if (and (> m 0) (> n 0))
        (set toret (ackermann (- m 1) (ackermann m (- n 1))))
      )
    )
  )
  (ret toret)
}))

Installation

With werb

Manually

Build

git clone https://github.com/wafelack/nixt
cd nixt/
cargo test --release
cargo build --release