viruscamp / luadec

Lua Decompiler for lua 5.1 , 5.2 and 5.3
1.14k stars 343 forks source link

settable to a expression cause errors #22

Open viruscamp opened 10 years ago

viruscamp commented 10 years ago
--  OP_SETTABLE MakeIndex( DOT )
-- DECOMPILER ERROR: Confused about usage of registers!
;(1+a).f3 = x
-- DECOMPILER ERROR: Confused about usage of registers!
;({2,3,4}+5)[6] =x
-- DECOMPILER ERROR: Overwrote pending register.
;({0,1}).a = x
local y =4 -- need to output last statement with error
-- local y = {0, 1; a = x}

see #17