Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
minoki committed Dec 9, 2023
1 parent e0603ed commit 8df26e5
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# LunarML

A Standard ML compiler that produces Lua/JavaScript.
The Standard ML compiler that produces Lua/JavaScript.

## Trying pre-built binaries

Expand All @@ -13,7 +13,7 @@ $ lua example/hello.lua
Hello world!
```

## Building
## Building and Installing

You need a recent version of MLton to build the executable, and Lua 5.3+ or recent Node.js to run the compiled script.

Expand All @@ -29,6 +29,14 @@ $ lua example/hello.lua
Hello world!
```

You can install the built binary with `make install`:

```
$ make install PREFIX=/opt/lunarml
$ export PATH="/opt/lunarml/bin:$PATH"
$ lunarml compile example/hello.sml
```

Alternatively, you can use Docker to build and run LunarML.

```sh-session
Expand Down
2 changes: 2 additions & 0 deletions doc/JavaScriptInterface.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ Note on CPS mode: You cannot call certain functions including `print` at top-lev

## Internal representation

Warning: The internal representation of data types may change in the future. Do not rely on it!

Primitives

* `unit` (empty record): `undefined`
Expand Down
2 changes: 2 additions & 0 deletions doc/LuaInterface.md
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,8 @@ return {

## Internal representation

Warning: The internal representation of data types may change in the future. Do not rely on it!

Primitives

* `unit` (empty record): `nil`.
Expand Down

0 comments on commit 8df26e5

Please sign in to comment.