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
- Host: GitHub
- URL: https://github.com/bakpakin/libatscc2lua
- Owner: bakpakin
- License: mit
- Created: 2018-02-15T02:18:00.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-09-06T00:24:53.000Z (about 7 years ago)
- Last Synced: 2025-01-12T06:43:12.712Z (9 months ago)
- Language: Lua
- Homepage: https://luarocks.org/modules/bakpakin/libatscc2lua
- Size: 131 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.