ALK is a group of snippets and articles to serve as reference on Lua and Lua C API development.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Thadeu de Paula 722d36988c
Add foldl example
1 week ago
capi Recommendations using C memory allocation 4 months ago
lua Add foldl example 1 week ago
more Recommendations using C memory allocation 4 months ago
.gitignore Add foldl example 1 week ago
LICENSE Initial 5 months ago
contributing.md Recommendations using C memory allocation 4 months ago
readme.md Recommendations using C memory allocation 4 months ago
run Simplified more the structure 5 months ago

readme.md

ALK

ALK - A Lua Knowledge

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.

Quickstart

  1. Clone repo and enter the directory

    git clone https://github.com/waxlab/alk.git alk cd alk

  2. To list the lessons/tests run:

    ./run test

  3. 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 tests
  • src/capi/stack/borders.c containing the Lua C Api examples and that is recompiled every time you issue ./run test capi.stack.borders

Index

Lua

C Api

Enjoy the Lua coding :)