1
0
Fork 0
mirror of https://github.com/notwa/mm synced 2024-05-18 05:23:22 -07:00

update lips

This commit is contained in:
Connor Olding 2016-01-05 16:48:13 -08:00
parent 2e1d8b324d
commit 530c9e9126

View File

@ -899,12 +899,7 @@ end
function Parser:register(t)
t = t or registers
if self.tt ~= 'REG' then
if self.tt == 'NUM' and self.tok == '0' then
self.tt = 'REG'
self.tok = 'R0'
else
self:error('expected register')
end
self:error('expected register')
end
local reg = self.tok
if not t[reg] then