An embedded scripting language for C#.

A scripting language for C# which can be embedded in Lua-like manner.

Relies on some functional features.

A C++ implementation called MondX was started: https://github.com/dajoh/MondX

seq range(start, end) {
    for (var i = start; i <= end; i++)
        yield i;
}

fun where(list, filter) -> [x : x in list, filter(x)];
fun select(list, transform) -> [transform(x) : x in list];

fun toArray(list) {
    var array = [];

    foreach (var value in list) {
        array.add(value);
    }

    return array;
}

return range(0, 1000)
       |> where(x -> x % 2 == 0)
       |> select(x -> x / 2)
       |> toArray();
Information updated 08/28/15
View Comments