Skip to content

Commit

Permalink
Added an ExLua/Luerl/Lua type cross-reference table.
Browse files Browse the repository at this point in the history
  • Loading branch information
artob committed Aug 5, 2016
1 parent 9f7160f commit eaea185
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,23 @@ Reference

https://hexdocs.pm/exlua/

### Types

| ExLua (Elixir) | Luerl (Erlang) | Lua |
| :-------------------- | :-------------------- | :-------------------- |
| atom | atom | - |
| `nil | `'nil'` | `nil` |
| `true`, `false` | `'true'`, `'false'` | `true`, `false` |
| integer | integer | number |
| float | float | number |
| string (binary) | binary | string |
| {:function, ...} | #function{...} | function |
| {:userdata, ...} | #userdata{...} | userdata |
| {:thread, ...} | #thread{...} | thread |
| {:table, ...} | #table{...} | table |

### Functions

| ExLua (Elixir) | Luerl (Erlang) | Lua (C) |
| :-------------------- | :-------------------- | :-------------------- |
| `Lua.Error` | `{:error, ...}` | `luaL_error` |
Expand All @@ -39,6 +56,7 @@ https://hexdocs.pm/exlua/
| `Lua.load_file!` | `luerl:loadfile` | `luaL_loadfile` |
| `Lua.set_table` | `luerl:set_table` | `lua_settable` |


Installation
------------

Expand Down

0 comments on commit eaea185

Please sign in to comment.