-rw-r--r-- | expr-parse.lua | 4 |
diff --git a/expr-parse.lua b/expr-parse.lua index 85e770e9..a8e72481 100644 --- a/expr-parse.lua +++ b/expr-parse.lua @@ -28,6 +28,10 @@ local function factor(lexer, actions) else return actions.ident(id) end + elseif token.type == 'literal' then + local x = token.value + lexer:next() + return actions.literal(x) elseif token.type == 'number' then local x = token.value lexer:next() |