A Lua to PHP transpiler.
Usage CLIExamples$ yarn add lua2php
$ npx lua2php a.lua
Visit examples.
Implementation(object)["array"=>[......]]
#a
=> count(a->array)
loadstring
, metatable, user-defined iterator ...table
, unpack
, tostring
, print
, error
, string
, pairs
, ipairs
cannot be used as normal identifiers.error
can only receive one string argument. Translated to throw new Exception()
print
can only receive one string argument.string.sub
can only receive one string and two positive integers.... and ...
, ... or ...
is boolean.for a,b,c in pairs(...)
(c
is nil
) or ... is not supported (except ...=unpack(...)
)for k, v in pairs(...)
. There is no +1
when k
is a number.AGPL-3.0-or-later
CollaboratorsRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4