游戏王残局简化版

Check-in [f3e7596fd8]
Login

Check-in [f3e7596fd8]

Overview
Comment:(/ω\)
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: f3e7596fd844f4de599c0e748fd1ca896d664e173ce142a3b2aca9f1b5eae1aa
User & Date: 顽雨沉风 on 2024-01-26 14:14:03.676
Other Links: manifest | tags
Context
2024-01-27
02:23
(/ω\) check-in: 22b0919894 user: 顽雨沉风 tags: trunk
2024-01-26
14:14
(/ω\) check-in: f3e7596fd8 user: 顽雨沉风 tags: trunk
12:51
(/ω\) check-in: 0716c90b61 user: 顽雨沉风 tags: trunk
Changes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
local d_2 = {}
function d_2.遍历_返排态(o1_9, o1, o2, o3)
  local k1_8
  local k1_9
  k1_9 = {}
  for o4 = 1, #o1_9 do
    k1_8 = o1(o1_9[o4], o2, o3)
    if k1_8 then
      k1_9[#k1_9 + 1] = k1_8
      end
    end
  return k1_9
  end
function d_2.遍历_基态(o1_9, o1, o2, o3)
  for o4 = 1, #o1_9 do
    o1(o1_9[o4], o2, o3)
    end
  end
return d_2

|

|
|
|
|

|


|







1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
local d_2 = {}
function d_2.遍历_返排态(o1_9, o1, o2, o3, o4)
  local k1_8
  local k1_11
  k1_11 = {}
  for o5 = 1, #o1_9 do
    k1_8 = o1(o1_9[o5], o2, o3, o4)
    if k1_8 then
      k1_11[#k1_11 + 1] = k1_8
      end
    end
  return k1_11
  end
function d_2.遍历_基态(o1_9, o1, o2, o3)
  for o4 = 1, #o1_9 do
    o1(o1_9[o4], o2, o3)
    end
  end
return d_2
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
--~ k1 = d_3.删前缀(o1, o2, o3)
--~ return o2 .. o1
--~ end
function d_3.加前缀与后缀_基态(o1, o2, o3)
  return o2 .. o1 .. (o3 or "")
  end
--~ 删
function d_3.删前缀_基态(o1, o2, o3)
  if o1:find(o2, 1, o3 or true) then
    return o1:sub(#o2 + 1)
    end
  end
function d_3.删后缀_基态(o1, o2, o3)
  if o1:find(o2, -1, o3 or true) then
    return o1:sub(1, #o1 - #o2)
    end
  end
--~ 场景_令行窗_件径
function d_3.在前后加英文双引号_基态(o1)
  return [["]] .. o1 .. [["]]
  end







|
|



|
|







15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
--~ k1 = d_3.删前缀(o1, o2, o3)
--~ return o2 .. o1
--~ end
function d_3.加前缀与后缀_基态(o1, o2, o3)
  return o2 .. o1 .. (o3 or "")
  end
--~ 删
function d_3.删前缀_基态(o1, o2)
  if o1:find(o2, 1, true) then
    return o1:sub(#o2 + 1)
    end
  end
function d_3.删后缀_基态(o1, o2)
  if o1:find(o2, -1, true) then
    return o1:sub(1, #o1 - #o2)
    end
  end
--~ 场景_令行窗_件径
function d_3.在前后加英文双引号_基态(o1)
  return [["]] .. o1 .. [["]]
  end
1
2
3
4
5






6
7
local d_2 = {}
function d_2.返全文(o1, o2, o3, o4)
  if o1:find(o2, o3, o4) then
    return o1
    end






  end
return d_2





>
>
>
>
>
>


1
2
3
4
5
6
7
8
9
10
11
12
13
local d_2 = {}
function d_2.返全文(o1, o2, o3, o4)
  if o1:find(o2, o3, o4) then
    return o1
    end
  end
function d_2.返全文_普态_前缀态(o1, o2)
  return d_2.返全文(o1, o2, 1, true)
  end
function d_2.返选文(o1, o2)
  return o1:match(o2)
  end
return d_2
1
2
3
4

5





6
7
8
9
10




11

12
13
14
15
16
17
18
19



20

21

22
23
24
25
26
27
28









29
30
_G.常用库 = require("lib/ipml_mj_ysaf")
local 字集码互转库 = require("u8_to_a")
local require = 常用库.require_通用大字集态_八位态
local 读件库 = require("算机_基统_窗群_件系_小件_读")

local 删注库 = require("程语_月_删注_不虑字串")





--~ local profile = require("jit.profile")
--~ profile.start("f", cb)
--~ local 删注库_月程语版_不虑字串版 = require(字集码互转库.u8_to_a("删注/月程语_不虑字串"))
local d_2 = {}
function d_2.产常量件_基态(o1)




  local k1

  k1 = 读件库.读件(o1 .. "/script/constant.lua")
  k1 = 删注库.单行注(k1)
  --~ k1 = 常用库.删空格(k1)
  --~ k1 = 常用库.制表符(k1)
  --~ k1 = 常用库.非空行(k1)
  --~ k1 = 常用库.捕非空单行(k1)
  --~ k1 = 常用库.筛单行等式(k1)
  --~ k1 = 常用库.排转对(k1, 1)



  --~ k1 = 常用库.删空行(k1)

  --~ k1 = "local k1_11 = {}\n" .. k1 .. ""

  --~ k1 = 常用库.筛排(k1, print)
  --~ print(k1.DOUBLE_DAMAGE[1])
  print(k1)
  --~ print(k1[1])
  --~ print(k1:gsub("\n", "猪"))
  end
--~ function d_2.筛凡常量() end









  --~ function d_2.筛字段量() end
d_2.产常量件_基态(字集码互转库.u8_to_a([[D:\install\YGOPro]]))




>

>
>
>
>
>



|
|
>
>
>
>

>


<
|
|
<
<
<
>
>
>
|
>
|
>
|
<
|
<
<

|
>
>
>
>
>
>
>
>
>
|
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24

25
26



27
28
29
30
31
32
33
34

35


36
37
38
39
40
41
42
43
44
45
46
47
48
_G.常用库 = require("lib/ipml_mj_ysaf")
local 字集码互转库 = require("u8_to_a")
local require = 常用库.require_通用大字集态_八位态
local 读件库 = require("算机_基统_窗群_件系_小件_读")
local 写件库 = require("算机_基统_窗群_件系_小件_写")
local 删注库 = require("程语_月_删注_不虑字串")
local 删字库 = require("程语_月_基类_文_删字")
local 文转排库 = require("程语_月_基类_文_筛文_文转排")
local 遍历排库 = require("程语_月_基类_排_遍历")
local 前后缀库 = require("程语_月_基类_文_前后缀")
local 判文库 = require("程语_月_基类_文_筛文_判文")
--~ local profile = require("jit.profile")
--~ profile.start("f", cb)
--~ local 删注库_月程语版_不虑字串版 = require(字集码互转库.u8_to_a("删注/月程语_不虑字串"))
local d_3 = {}
function d_3.产常量件_基态(o1)
  d_3.产普常量件_基态(o1)
  d_3.产字段名件_基态(o1)
  end
function d_3.产普常量件_基态(o1)
  local k1
  local k1_11
  k1 = 读件库.读件(o1 .. "/script/constant.lua")
  k1 = 删注库.单行注(k1)

  k1 = 删字库.空格与制表符(k1)
  k1_11 = 文转排库.单行_非空态_无换符态(k1)



  d_3.入排而加表限并写件(k1_11, 字集码互转库.u8_to_a("普常量.lua"))
  end
function d_3.入排而加表限并写件(o1_11, o1)
  local k1
  o1_11 = 遍历排库.遍历_返排态(o1_11, 前后缀库.加前缀_基态, [[k1_11.]])
  table.insert(o1_11, 1, "local k1_11 = {}")
  table.insert(o1_11, "return k1_11")
  k1 = table.concat(o1_11, "\n")

  写件库.写件(k1, o1)


  end
function d_3.产字段名件_基态(o1)
  local k1
  local k1_11
  k1 = 读件库.读件(o1 .. "/strings.conf")
  k1_11 = 文转排库.单行_非空态_无换行符态(k1)
  k1_11 = 遍历排库.遍历_返排态(k1_11, 判文库.返全文_普态_前缀态, "!setname")
  k1_11 = 遍历排库.遍历_返排态(k1_11, 前后缀库.删前缀_基态, "!setname ")
  k1_11 = 遍历排库.遍历_返排态(k1_11, 判文库.返选文, "[^\t]+")
  k1_11 = 遍历排库.遍历_返排态(k1_11, string.gsub, " ", "=", 1)
  d_3.入排而加表限并写件(k1_11, 字集码互转库.u8_to_a("字段名.lua"))
  end
d_3.产常量件_基态(字集码互转库.u8_to_a([[D:\install\YGOPro]]))