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
#t
for 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])
:base
not implementederror (message [, level])
:level
not implementedstring.sub
can only receive one string and two positive integers.string.sub
,#<a string>
, ... usechar
,.chars()
, notu8
<a string>[...]
(Lua5.* :nil
) (lua2rust : panic)- ...