gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
path: root/expr-print.lua
diff options
context:
space:
mode:
Diffstat (limited to 'expr-print.lua')
-rw-r--r--expr-print.lua 5
1 files changed, 3 insertions, 2 deletions
diff --git a/expr-print.lua b/expr-print.lua
index 5d106296..03b1e185 100644
--- a/expr-print.lua
+++ b/expr-print.lua
@@ -1,7 +1,8 @@
+local expr_lexer = require 'expr-lexer'
+
local format, concat = string.format, table.concat
--- TODO: this information is duplicated from expr-parser => remove the duplication
-local oper_table = {['+'] = 0, ['-'] = 0, ['*'] = 1, ['/'] = 1, ['^'] = 2, ['='] = 3, ['>'] = 3, ['<'] = 3, ['%'] = -1}
+local oper_table = expr_lexer.operators
local ex_print
generated by cgit v1.2.3 (git 2.25.1) at 2025年09月15日 00:26:17 +0000

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