Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 473 Bytes

README.md

File metadata and controls

29 lines (22 loc) · 473 Bytes

Mareal

The high-level scripting Mareal programming language.

Installation

go install github.com/mandriota/mareal

Usage

mareal file.mr

Example: Fibonacci Numbers

_

(def fib-helper (lambda (quote n x y)
   (if n (fib-helper (- n 1) (+ x y) x) x)))

(def fib (lambda (quote n)
   (fib-helper n 0 1)))

(put (_ "fibonacci: "
     (fib (num
       (get "enter number: ")))) nl)

You can find more examples in ./examples directory.