c7dcd2b445 2024-01-29 1: package.path = [[.\dfns_jvwg_ysaf\?.lua;]] .. package.path
c7dcd2b445 2024-01-29 2: package.cpath = [[.\dfns_jvwg_ysaf\?.dll;]] .. package.cpath
294a88546f 2024-01-29 3: local 字集码互转库 = require("u8_to_a")
418d469b43 2024-01-29 4: local k1 = 字集码互转库.u8_to_a("计算机_系统_窗口群_命令行_无窗口")
418d469b43 2024-01-29 5: local 令行库 = require(k1)
34c6aca027 2024-01-29 6: local 简单文件系统库 = require("lfs")
34c6aca027 2024-01-29 7: local k1 = 字集码互转库.u8_to_a("程序语言_月_基础类型_字串_逐一")
34c6aca027 2024-01-29 8: local 历文库 = require(k1)
dd19348d04 2024-01-29 9: local k1 = 字集码互转库.u8_to_a("程序语言_月_基础类型_序排_逐一")
dd19348d04 2024-01-29 10: local 历排库 = require(k1)
d22700130e 2024-01-29 11: local k1 = 字集码互转库.u8_to_a("程序语言_月_基础类型_字串_前缀与后缀")
d22700130e 2024-01-29 12: local 前后缀库 = require(k1)
438692b613 2024-01-29 13: local k1 = 字集码互转库.u8_to_a("程序语言_月_基础类型_字串_全筛")
438692b613 2024-01-29 14: local 全筛文库 = require(k1)
0c74d90575 2024-01-29 15: local k1 = 字集码互转库.u8_to_a("计算机_系统_窗口群_命令行_无窗口")
0c74d90575 2024-01-29 16: local 令行库 = require(k1)
294a88546f 2024-01-29 17: local d_2 = {}
b84f877140 2024-01-29 18: function d_2.排版月程序语言文件(o1, o2)
cc15bcda89 2024-01-29 19: local k1
bdf6d8ff6a 2024-01-29 20: local k1_9
bdf6d8ff6a 2024-01-29 21: k1_9 = 历文库.处理后返回新排(o1, 简单文件系统库.dir)
d72e20ca43 2024-01-29 22: k1_9 = 历排库.处理后返回新排(k1_9, 前后缀库.加前缀, o1 .. "/")
74198e08a0 2024-01-29 23: k1 = ".lua"
cc15bcda89 2024-01-29 24: k1_9 = 历排库.处理后返回新排(k1_9, 全筛文库.找字, k1, -#k1, true)
0c74d90575 2024-01-29 25: k1_9 = 历排库.处理后返回新排(k1_9, 前后缀库.加前缀, [["]])
0c74d90575 2024-01-29 26: k1_9 = 历排库.处理后返回新排(k1_9, 前后缀库.加后缀, [["]])
0c74d90575 2024-01-29 27: k1_9 = 历排库.处理后返回新排(k1_9, 前后缀库.加前缀, o2)
0c74d90575 2024-01-29 28: 历排库.处理后返回新排(k1_9, 令行库.执行命令)
9f85788bdd 2024-01-29 29: end
206434396f 2024-01-29 30: local k1 = 字集码互转库.u8_to_a([[../single]])
a798fd0002 2024-01-29 31: local k2 = 字集码互转库.u8_to_a([[stylua --indent-type Spaces --sort-requires --indent-width 2 --collapse-simple-statement Never ]])
9f85788bdd 2024-01-29 32: --~ 若不传命令行参数,则后果未必如愿。例如,我想用空格做缩进符,它却用制表符。
9f85788bdd 2024-01-29 33: --~ 我想,理解“排版月程序语言文件”比“齐月程语件”要快。
a798fd0002 2024-01-29 34: d_2.排版月程序语言文件(k1, k2)