外部変形は データのやり取りをテキストファイルで行うので プログラム言語は 自由に選ぶことができます。図形は機能的かつシンプルなため、数多くのユーザーに受け入れられています。
luaで文字を逆書きする
:luaで文字を逆書きする
@echo off
for /f "delims=:" %%n in ('findstr /n "^#!" %0') do (
copy jwc_temp.txt myfiles > nul
more +%%n %0 | lua > jwc_temp.txt
)
goto:eof
REM #jww
REM #h3 範囲内の「文字」データのみを選択
REM #g1
REM #e
#!この次の行からプログラムを書いてください
FS = " "
for line in io.lines("myfiles") do
F = {}
string.gsub(line, "%S+", function (x) table.insert(F, x) end)
if string.match(line, "^hq") then
print("hd")
end
if string.match(line, "^lg|^ly|^cn") then
print(line)
end
if string.match(line, "^c[hvsroptkz2]") then
i = line:find("\"") or 0
str = line:sub(i+1):reverse()
print(table.concat(F, FS, 1, 5) .. " \"" .. str)
end
end