Lines of
残局文料/产常量件.lua
from check-in 14ff7a9f5f
that are changed by the sequence of edits moving toward
check-in 07246ed20a:
1: package.path = [[.\lib_lua\?.lua;]] .. package.path
2: package.cpath = [[.\lib_dll\?.dll;]] .. package.cpath
3: _G.常用库 = require("ipml_mj_ysaf")
4: local 字集码互转库 = require("u8_to_a")
5: local 删注库_月程语版_不虑字串版 = require(字集码互转库.u8_to_a("删注/月程语_不虑字串"))
6: local d_2 = {}
7: function d_2.产常量件(o1)
8: local k1
14ff7a9f5f 2024-01-24 9: k1 = 常用库.读件(o1 .. "/script/constant.lua", "rb")
10: k1 = 删注库_月程语版_不虑字串版.单行注(k1)
14ff7a9f5f 2024-01-24 11: k1 = 常用库.捕排(string.gmatch, k1, "[^\n= \t]+")
14ff7a9f5f 2024-01-24 12: --~ for o1 in k1:gmatch("[^\n= \t]+") do
14ff7a9f5f 2024-01-24 13: --~ print(o1)
14ff7a9f5f 2024-01-24 14: --~ end
15: --~ k1 = 常用库.删空行(k1)
16: --~ k1 = "local k1_11 = {}\n" .. k1 .. ""
17: --~ k1 = 常用库.筛排(k1, print)
14ff7a9f5f 2024-01-24 18: --~ print(k1)
19: --~ print(k1:gsub("\n", "猪"))
20: end
21: function d_2.筛凡常量()
22:
23: end
24: function d_2.筛字段量()
25:
26: end
27: d_2.产常量件(字集码互转库.u8_to_a([[D:\install\YGOPro]]))