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

https://github.com/bakpakin/libatscc2lua

Runtime library for code compiled from ATS to Lua
https://github.com/bakpakin/libatscc2lua

Last synced: 4 days ago
JSON representation

Runtime library for code compiled from ATS to Lua

Awesome Lists containing this project

README

          

# libatscc2lua

The Runtime Lua library needed for code compiled with [atscc2lua](https://github.com/bakpakin/ats-lua).
The code can be installed via [luarocks](https://luarocks.org), or via a single file,
libatscc2lua.lua, which can be packaged as needed.

Code generated by atscc2lua will begin with the lua code `require 'libatscc2lua'`, which
will try to find this library and load the needed code.

# Install with luarocks

See the Luarocks package [here](https://luarocks.org/modules/bakpakin/libatscc2lua)

```sh
luarocks install --server=http://luarocks.org/dev libatscc2lua
```

Much of this library was based on the runtime library for the the ATS JavaScript
target, [libatscc2js](https://github.com/githwxi/ATS-Postiats/tree/master/contrib/libatscc2js).

# Building

The libatscc2lua.lua file can be built using make. It is a concatentaion of all of
the individual Lua source files. In the future, AST .dats files may also be used
to create additional code.