Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/luno-lang/luno

A small toy language with syntax heavily inspired by Lua that transpiles to JS.
https://github.com/luno-lang/luno

programming-language

Last synced: 3 months ago
JSON representation

A small toy language with syntax heavily inspired by Lua that transpiles to JS.

Awesome Lists containing this project

README

        

# Luno 🌙
A small toy language with syntax heavily inspired by Lua.

## Example
```
fn square(n int) int
ret n * n
end

square(5) # 5*5 = 25
square(6) # 6*6 = 36
# ...
```

## Building
The bootstrap compiler is written in Ocaml and requires a UNIX environment to build. If you are on Windows use [WSL](https://learn.microsoft.com/en-us/windows/wsl/install) instead.

### Requirements:
Provided you have the above you can run the compiler using the following:
```
dune exec luno
```