function luaY.localstat(w,Y)local s=0 local M local x={}repeat w:new_localvar(Y,w:str_checkname(Y),s)s=s+1 until not w:testnext(Y,"\044")if w:testnext(Y,"\061")then M=w:explist1(Y,x)else x.k="\086\086\079\073\068"M=0 end w:adjust_assign(Y,s,M,x)w:adjustlocalvars(Y,s)end
------------------------------------------------------------------------
-- parse a local variable declaration statement
-- * used in statements()
------------------------------------------------------------------------
function luaY:localstat(ls)
	-- stat -> LOCAL NAME {',' NAME} ['=' explist1]
	local nvars = 0
	local nexps
	local e = {} -- expdesc
	repeat
		self:new_localvar(ls, self:str_checkname(ls), nvars)
		nvars = nvars + 1
	until not self:testnext(ls, ",")
	if self:testnext(ls, "=") then
		nexps = self:explist1(ls, e)
	else
		e.k = "VVOID"
		nexps = 0
	end
	self:adjust_assign(ls, nvars, nexps, e)
	self:adjustlocalvars(ls, nvars)
end
