Complete Lua standard library
PhilipRoman opened this issue · 0 comments
PhilipRoman commented
Add missing functions from standard library.
- assert
- collectgarbage
- dofile
- error (level not implemented)
- getmetatable
- ipairs
- pairs
- load
- loadfile
- next
- pcall
- rawequal
- rawget
- rawlen
- rawset
- select
- setmetatable
- tonumber (base not implemented)
- tostring
- type
- _VERSION
- xpcall
- coroutine.create
- coroutine.isyieldable
- coroutine.resume
- coroutine.running
- coroutine.status
- coroutine.wrap
- coroutine.yield
- require
- package.config
- package.cpath
- package.loaded
- package.loadlib
- package.path
- package.preload
- package.searchers
- package.searchpath
- string.byte
- string.char
- string.dump
- string.find
- string.format
- string.gmatch
- string.gsub
- string.len
- string.lower
- string.match
- string.pack
- string.packsize
- string.rep
- string.reverse
- string.sub
- string.unpack
- string.upper
- utf8.char
- utf8.charpattern
- utf8.codes
- utf8.codepoint
- utf8.len
- utf8.offset
- table.concat (sub-range not implemented)
- table.insert
- table.move
- table.pack
- table.remove
- table.sort
- table.unpack
- math.abs
- math.acos
- math.asin
- math.atan2
- math.atan (uses a 1-argument atan)
- math.ceil
- math.cos
- math.deg
- math.exp
- math.floor
- math.fmod
- math.huge
- math.log (custom base is not implemented)
- math.max
- math.maxinteger
- math.min
- math.mininteger
- math.modf
- math.pi
- math.rad
- math.random
- math.randomseed
- math.sin
- math.sqrt
- math.tan
- math.tointeger
- math.type
- math.ult
- io.close
- io.flush
- io.input
- io.lines
- io.open
- io.output
- io.popen
- io.read
- io.tmpfile
- io.type
- io.write
- file:close
- file:flush
- file:lines
- file:read
- file:seek
- file:setvbuf
- file:write
- os.clock
- os.date
- os.difftime
- os.execute
- os.exit
- os.getenv
- os.remove
- os.rename
- os.setlocale
- os.time
- os.tmpname
- debug.* (can it be implemented?)