mirror of
https://github.com/notwa/mm
synced 2025-02-05 13:23:23 -08:00
update lips
This commit is contained in:
parent
2e1d8b324d
commit
530c9e9126
1 changed files with 1 additions and 6 deletions
|
@ -899,13 +899,8 @@ end
|
||||||
function Parser:register(t)
|
function Parser:register(t)
|
||||||
t = t or registers
|
t = t or registers
|
||||||
if self.tt ~= 'REG' then
|
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')
|
self:error('expected register')
|
||||||
end
|
end
|
||||||
end
|
|
||||||
local reg = self.tok
|
local reg = self.tok
|
||||||
if not t[reg] then
|
if not t[reg] then
|
||||||
self:error('wrong type of register')
|
self:error('wrong type of register')
|
||||||
|
|
Loading…
Add table
Reference in a new issue