lua.cr icon indicating copy to clipboard operation
lua.cr copied to clipboard

Crystal to Lua bridge

Results 7 lua.cr issues
Sort by recently updated
recently updated
newest added

In lib/lua/src/lua/liblua.cr:62:65 62 | fun pushlstring = lua_pushlstring(l : State, s : LibC::Char*, l : LibC::SizeT) : LibC::Char* Error: duplicated fun parameter name: l I got this error when trying...

Would be nice to be able to write function callback in Crystal.

Fixes #15 This is currently just WIP because I don't really understand the Lua internals. I know the implementation will need some work as it currently only works with `Float64`....

Let's say I have a lua file like: ```lua function one() print("one") end function two() print("two") end return one, two ``` Then I add these to the stack: ```crystal lua...

Compare: "Pure Lua" vs "Pure Crystal" vs "Lua running in Crystal" vs "Crystal running in Lua"

Classic example. Would be nice to have in `examples` directory.

I tried installing and using this shard in a testing environment running the following code: ```crystal require "lua" lua = Lua.load sum = lua.run %q{ function sum(x, y) return x...