Minimally design scripting language for use on systems with limited resources.
Switch branches/tags
Nothing to show
Clone or download
geky Added simple main.c
This is a simple and somewhat hacky example program. I wouldn't say
its fleshed out enough, but without a main.c to build with the current
user experience is a bit awful.
Latest commit be24b93 Aug 28, 2017
Type Name Latest commit message Commit time
Failed to load latest commit information.
dis Added the dis module for dissasembling mu objects Aug 28, 2017
mu Added the repl library Aug 28, 2017
repl Added the repl library Aug 28, 2017 Added the MIT license Aug 28, 2017
Makefile Added the repl library Aug 28, 2017 Added a simple readme Aug 28, 2017
main.c Added simple main.c Aug 28, 2017

Mu is a lightweight scripting language designed to be easily embeddable. With simplicity as its core goal, Mu boasts a minimal language backed by a small, but powerful, builtin library.

# A quicksort implementation
fn qsort(data)                                       
    let [x,] = tbl(data)                      
    if (len(data) == 0)                              
        return [x]                                   
    let small = filter(fn(y) -> y <  x, data)        
    let large = filter(fn(y) -> y >= x, data)        
    return qsort(small) ++ [x] ++ qsort(large)       

You can find out more about the language here