Lines of
残局文料/产常量件.lua
from check-in f3e7596fd8
that are changed by the sequence of edits moving toward
check-in 22b0919894:
1: _G.常用库 = require("lib/ipml_mj_ysaf")
2: local 字集码互转库 = require("u8_to_a")
f3e7596fd8 2024-01-26 3: local require = 常用库.require_通用大字集态_八位态
f3e7596fd8 2024-01-26 4: local 读件库 = require("算机_基统_窗群_件系_小件_读")
f3e7596fd8 2024-01-26 5: local 写件库 = require("算机_基统_窗群_件系_小件_写")
f3e7596fd8 2024-01-26 6: local 删注库 = require("程语_月_删注_不虑字串")
f3e7596fd8 2024-01-26 7: local 删字库 = require("程语_月_基类_文_删字")
f3e7596fd8 2024-01-26 8: local 文转排库 = require("程语_月_基类_文_筛文_文转排")
f3e7596fd8 2024-01-26 9: local 遍历排库 = require("程语_月_基类_排_遍历")
f3e7596fd8 2024-01-26 10: local 前后缀库 = require("程语_月_基类_文_前后缀")
f3e7596fd8 2024-01-26 11: local 判文库 = require("程语_月_基类_文_筛文_判文")
f3e7596fd8 2024-01-26 12: --~ local profile = require("jit.profile")
f3e7596fd8 2024-01-26 13: --~ profile.start("f", cb)
f3e7596fd8 2024-01-26 14: --~ local 删注库_月程语版_不虑字串版 = require(字集码互转库.u8_to_a("删注/月程语_不虑字串"))
15: local d_3 = {}
16: function d_3.产常量件_基态(o1)
17: d_3.产普常量件_基态(o1)
18: d_3.产字段名件_基态(o1)
19: end
20: function d_3.产普常量件_基态(o1)
21: local k1
22: local k1_11
23: k1 = 读件库.读件(o1 .. "/script/constant.lua")
24: k1 = 删注库.单行注(k1)
25: k1 = 删字库.空格与制表符(k1)
26: k1_11 = 文转排库.单行_非空态_无换行符态(k1)
27: d_3.入排而加表限并写件(k1_11, 字集码互转库.u8_to_a("普常量.lua"))
28: end
29: function d_3.入排而加表限并写件(o1_11, o1)
30: local k1
31: o1_11 = 遍历排库.遍历_返排态(o1_11, 前后缀库.加前缀_基态, [[k1_11.]])
32: table.insert(o1_11, 1, "local k1_11 = {}")
33: table.insert(o1_11, "return k1_11")
34: k1 = table.concat(o1_11, "\n")
35: 写件库.写件(k1, o1)
36: end
37: function d_3.产字段名件_基态(o1)
38: local k1
39: local k1_11
40: k1 = 读件库.读件(o1 .. "/strings.conf")
41: k1_11 = 文转排库.单行_非空态_无换行符态(k1)
f3e7596fd8 2024-01-26 42: k1_11 = 遍历排库.遍历_返排态(k1_11, 判文库.返全文_普态_前缀态, "!setname")
43: k1_11 = 遍历排库.遍历_返排态(k1_11, 前后缀库.删前缀_基态, "!setname ")
44: k1_11 = 遍历排库.遍历_返排态(k1_11, 判文库.返选文, "[^\t]+")
45: k1_11 = 遍历排库.遍历_返排态(k1_11, string.gsub, " ", "=", 1)
46: d_3.入排而加表限并写件(k1_11, 字集码互转库.u8_to_a("字段名.lua"))
47: end
48: d_3.产常量件_基态(字集码互转库.u8_to_a([[D:\install\YGOPro]]))