Skip to content

mandriota/mareal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Releases

No releases published

Packages

No packages published

Languages