ALK is a group of snippets and articles to serve as reference on Lua and Lua C API development. It can be read or forked, so you can play with code and make your own discoveries.
Fork it, learn Lua, play with it and feel free to help this project.
-
Clone repo and enter the directory
git clone https://github.com/waxlab/alk.git alk cd alk
-
To list the lessons/tests run:
./run test
-
Pick one of the list and run:
./run test capi.stack.args
All the relevant tests and lessons are under the src
folder.
For a test capi.stack.borders
there are two files:
src/capi/stack/borders.lua
containing the testssrc/capi/stack/borders.c
containing the Lua C Api examples and that is recompiled every time you issue./run test capi.stack.borders
-
Stack
-
Table
-
Userdata
Enjoy the Lua coding :)