0.5.2 • Published 6 years ago
lua2rust v0.5.2
lua2rust
A Lua to Rust transpiler.
Usage: npx lua2rust {lua file} {output function name} > {output}
Examples: example
Different from Lua5.*
- no
loadstring, metatable, user-defined iterator ... table.insert#tfor k,v in ipairs(t)... Works correctly only on consecutive arrays starting at 1.- Behavior when modify the iterated object when iterating
tonumber (e [, base]):basenot implementederror (message [, level]):levelnot implementedstring.subcan only receive one string and two positive integers.string.sub,#<a string>, ... usechar,.chars(), notu8<a string>[...](Lua5.* :nil) (lua2rust : panic)- ...