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