gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
path: root/expr-parse.lua
diff options
context:
space:
mode:
Diffstat (limited to 'expr-parse.lua')
-rw-r--r--expr-parse.lua 4
1 files changed, 4 insertions, 0 deletions
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()
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月17日 07:02:54 +0000

AltStyle によって変換されたページ (->オリジナル) /