0.5.2 • Published 6 years ago

lua2rust v0.5.2

Weekly downloads
4
License
AGPL-3.0-or-later
Repository
gitlab
Last release
6 years ago

lua2rust

npm package npm downloads

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 implemented
  • error (message [, level]): level not implemented
  • string.sub can only receive one string and two positive integers.
  • string.sub, #<a string>, ... use char, .chars(), not u8
  • <a string>[...] (Lua5.* : nil) (lua2rust : panic)
  • ...
0.5.2

6 years ago

0.5.1

6 years ago

0.5.0

6 years ago

0.4.0-1

6 years ago

0.4.0

6 years ago

0.3.0

6 years ago

0.2.1

6 years ago

0.2.0-1

6 years ago

0.2.0

6 years ago

0.1.0-1

6 years ago

0.1.0

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3-2

6 years ago

0.0.3-1

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago