This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- JSON parser originally from qjson.lua | |
local function decode(json --[[@param json string]]) ---@return table | |
local ptr = 0 | |
local function consume(pattern --[[@param pattern string]]) ---@return string? | |
local start = json:find("^%S", ptr) | |
if start then ptr = start end | |
local start, finish, match = json:find(pattern, ptr) | |
if start then | |
ptr = finish + 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
---@class Class | |
---@overload fun(t: table): Class | |
---@field constructor function | |
---@field name string | |
---@field prototype table<string, any> | |
---@class StaticField | |
---@field name string | |
---@type table<string, Class> |
OlderNewer