function luaY.localfunc(N,P)local X,d={},{}local C=P.fs N:new_localvar(P,N:str_checkname(P),0)N:init_exp(X,"\086\076\079\067\065\076",C.freereg)luaK:reserveregs(C,1)N:adjustlocalvars(P,1)N:body(P,d,false,P.linenumber)luaK:storevar(C,X,d);(N:getlocvar(C,C.nactvar-1)).startpc=C.pc end
------------------------------------------------------------------------
-- parse a local function statement
-- * used in statements()
------------------------------------------------------------------------
function luaY:localfunc(ls)
	local v, b = {}, {} -- expdesc
	local fs = ls.fs
	self:new_localvar(ls, self:str_checkname(ls), 0)
	self:init_exp(v, "VLOCAL", fs.freereg)
	luaK:reserveregs(fs, 1)
	self:adjustlocalvars(ls, 1)
	self:body(ls, b, false, ls.linenumber)
	luaK:storevar(fs, v, b)
	-- debug information will only see the variable after this point!
	self:getlocvar(fs, fs.nactvar - 1).startpc = fs.pc
end
