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
| local bytecodes = {} | |
| local BC, run_function = {} | |
| local VARG_CONST = {} | |
| local lujlu_mt_funcs | |
| local lujlu_cache = setmetatable({}, {__mode = "k"}) | |
| local lujlu_identifier_mt = { | |
| __tostring = function(self) | |
| return tostring(lujlu_cache[self].data) | |
| end, |
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
| -- The base object `Object` | |
| local Object = {} | |
| Object.meta = {__index = Object} | |
| -- Create a new instance of this object | |
| function Object:create() | |
| local meta = rawget(self, "meta") | |
| if not meta then error("Cannot inherit from instance object") end | |
| return setmetatable({}, meta) |