mirror of
https://github.com/notwa/mm
synced 2024-11-05 02:29:03 -08:00
update lips
This commit is contained in:
parent
35132653f6
commit
e762bbd037
1 changed files with 2 additions and 2 deletions
|
@ -155,7 +155,7 @@ function Expression:lex1(str, tokens)
|
|||
return "bad binary number: "..considered..here
|
||||
end
|
||||
num = tonumber(considered:sub(2), 2)
|
||||
elseif consider('$[0-9A-Fa-f]+') then
|
||||
elseif consider('[$][0-9A-Fa-f]+') then
|
||||
num = tonumber(considered:sub(2), 16)
|
||||
elseif consider('0x[0-9A-Fa-f]+') then
|
||||
num = tonumber(considered:sub(3), 16)
|
||||
|
@ -226,7 +226,7 @@ end
|
|||
|
||||
function Expression:lex(str)
|
||||
local tokens = {}
|
||||
err = self:lex1(str, tokens)
|
||||
local err = self:lex1(str, tokens)
|
||||
if err then return tokens, err end
|
||||
err = self:lex2(tokens)
|
||||
return tokens, err
|
||||
|
|
Loading…
Reference in a new issue