Advertisement
MoonlightOwl

Step 1

Jan 27th, 2017
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.47 KB | None | 0 0
  1.   require "coxpcall"
  2.   local _lib
  3.   if package.loaded.core then
  4.     _lib = true
  5.   else
  6.     _lib = false
  7.     require "core"
  8.   end
  9.  
  10.   _exports = {}
  11.   local _main = function()
  12.    
  13.   local object = object
  14.   local array = array
  15.   local number = number
  16.   local string = base_string
  17.   local exception = exception
  18.   local hash = hash
  19.   local regex = regex
  20.   local _self = object
  21.   local _type = type
  22.   local _error = error
  23.   local _tostring = tostring
  24.   local brat_function = brat_function
  25.   local _lifted_call = _lifted_call
  26.   local _rawget = rawget
  27.   local _table = table
  28.   local _lifted = {}
  29.  
  30.  
  31.     setfenv(1, {})
  32.  
  33.    
  34. local _temp1
  35.  
  36. local _temp2 = string:new("Hello, World!")
  37.  
  38.  
  39.   if p then
  40.     _temp1 =  p(_self, _temp2)
  41.  
  42.   else
  43.     if _type(_self) == 'number' then
  44.       _self = number:new(_self)
  45.     elseif object._is_callable(_self) then
  46.       _self = brat_function:new(_self)
  47.     end
  48.    
  49.       local _m = _self.p
  50.       if object._is_callable(_m) then
  51.         _temp1 =  _m(_self, _temp2)
  52.       elseif _m ~= nil then
  53.           _error(exception:argument_error('function', 0, 0))
  54.       elseif _self.no_undermethod then
  55.         _temp1 =  _self:no_undermethod(string:new('p'), _temp2)
  56.       else
  57.         _error(exception:method_error(_self, 'p'))
  58.       end
  59.    
  60.   end
  61.  
  62.   end
  63.  
  64.   local _result = coxpcall(_main, exception._handler)
  65.   if not _lib then
  66.     if not _result then
  67.       os.exit(-1)
  68.     else
  69.       os.exit(0)
  70.     end
  71.   end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement