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 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<HTML lang="ja">
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=SHIFT_JIS">
<META http-equiv="Content-Script-Type" content="text/javascript">
<META http-equiv="Content-Style-Type" content="text/css">
<LINK rel="stylesheet" type="text/css" href="kawari.css">
<TITLE>ؘa dvȕύX_ƈڍsKCh</TITLE>
</HEAD>
<BODY>
<H1>vO}uAIW[ "ؘa" dvȕύX_ƈڍsKCh</H1>
<DIV align="right">
<P>
2004/02/01<BR>
Phase 8.2.0
</P><P>
ؘaJ`[ :<BR>
NAKAUE.T (Meister), UMeister (T), Ɓ[, , ̂ɂ
</P>
</DIV>
<P>
ؘaPhase 8ł́AĂȂقǑK͂ȕύXsĂ邽߁A
ڍsɂ́AIɐVxɏ芷̂Ɠ̃RXgƌ܂܂B
̕Sł炷߂ɁA
ߋ݊ȂdvύX_ƁAڍs̃qg܂B
Vdl̏ڍׂ<A href="users.html">[U[Y}jA</A>QƂĂB
</P>
<H2>Index</H2>
<A href="index.html" class="toindex"> back</A>
<BR>
<BLOCKQUOTE>
<A href="#c1">1. kawari.ini</A><BR>
<A href="#c2">2. VXeGg/CxgGg</A><BR>
<A href="#c3">3. }b`Gg</A><BR>
<A href="#c4">4. piro</A><BR>
<A href="#c5">5. Qƃ[ύX</A><BR>
<A href="#c6">6. expr, test</A><BR>
<A href="#c7">7. if̕@ύX</A><BR>
<A href="#c8">8. enumerate</A><BR>
<A href="#c9">9. get/set̓ύX</A><BR>
<A href="#c10">10. ̑KISR}h̕ύX</A><BR>
<A href="#c11">11. sΉ</A><BR>
</BLOCKQUOTE>
<A name="c1"></A>
<H2>1. kawari.ini</H2>
<P>
kawari.ini͎gȂȂ܂B
ؘaǂݍޑSẴt@ĆAṔuؘa`vɂȂ܂B
ؘa`ł́Au][ւvɂāAǂݍ܂ꂽuԂɂ̏ŒڎsKIS悤ɂȂĂ܂B
܂AȑOkawari.iniłłȂƂASĂ̎t@Cʼn\ɂȂ܂B
</P><P>
<EM>ؘaPhase8ŏɓǂރt@Ćukawarirc.kisvɂȂ܂B</EM>
RAʂ̎t@CłB
</P><P>
KIS][ɐւɂ́A
̃][u<SPAN class="tt">=kis</SPAN>v݂̂̍s
u<SPAN class="tt">=end</SPAN>v݂̂̍sň͂܂B
</P>
<DIV class="sample">
=kis<BR>
<BR>
<BR>
=end
</DIV>
<P>
]̏Phase 8̏ŏƈȉ̂悤ɂȂ܂B
</P>
<DIV class="sample">
# ]<BR>
dict : dict-dms.txt<BR>
include : keeps.ini<BR>
adddict : author UMeister<BR>
set : myname tl<BR>
text : spell necronomicon.txt<BR>
debug : log<BR>
randomseed : 100<BR>
security : 0<BR>
</DIV>
<DIV class="sample">
# Phase 8o[WB<BR>
# KIS邽߂̃Z~RKvȂƂɒ<BR>
# =kis ` =end́A@Iɂ$( ` )ƑSSɓłB<BR>
=kis<BR>
# ̃[h<BR>
load dict-dms.txt;<BR>
# SĎt@CȂ̂ŁAloadR}ĥ݂łB<BR>
load keeps.ini;<BR>
# ̒lj<BR>
adddict author UMeister;<BR>
# ̃Zbg<BR>
set myname tl;<BR>
# eLXgt@C̓ǂݍ(<EM>]textloadƈ̏tɂȂĂ܂!</EM>)<BR>
textload spell necronomicon.txt;<BR>
# Ot@Cɏo܂<BR>
logfile kawari.log;<BR>
## ȉ̂悤ɂƁANt̃t@Cɏo܂<BR>
# logfile kawari-$(date %Y%m%d%H%M%S).log;<BR>
# OɎׂCxg̎ނw肵܂<BR>
loglevel error warning info baseevents;<BR>
# ̎̎w<BR>
srand 100;<BR>
# ZLeBx̎w(ʏ͕Kv܂)<BR>
securitylevel low;<BR>
=end
</DIV>
<A name="c2"></A>
<H2>2. VXeGg/CxgGg</H2>
<P>
VXeGg̍\啝ɕύX܂B
<SPAN id="type">event.Cxg</SPAN>A
<SPAN id="type">system.OnXXXXX</SPAN>`̃Gg<EM>Iɂ͌Ă܂B</EM>
Cxg[`͂ŊJĂ͒ӂĂB
</P><P>
]ؘasĂƂɂĂAKISŏ悤ɂȂĂ܂B
tɌAύXɂؘ͉ãoCiȊOȂ܂ŁA
KISŏC\łB
</P><P>
ڍׂ<A href="users.html">[U[Y}jA</A>QƂĂB
</P>
<A name="c3"></A>
<H2>3. }b`Gg</H2>
<P>
}b`Gg(R~jP[gɗp܂)@\폜܂B
]̃}b`Ggɂ́AS[XgV`G[VɈˑď蕪邱ƂłȂƂ_܂B
</P><P>
Phase 8ł́AR~jP[gCxǵAقƂSHIORIdlɒ`ɂȂĂAؘaVXe傫ȃT|[g邱Ƃ͂܂B
̑AR~jP[gx̂߂KISR}hljA
R~jP[g@\KISpbP[W쐬ł悤ɂȂĂ܂B
pbP[WTėp̂ǂł傤B
</P>
<A name="c4"></A>
<H2>4. piro</H2>
<P>
폜܂B
ؘa`ŏĂB
</P>
<A name="c5"></A>
<H2>5. Qƃ[ύX</H2>
<P>
]́uQƂɂu͗QƂɒljȂv
uGgĂяoȊO͗QƂɒljȂvłA
Phase 8ł́A
u<SPAN id="type">$</SPAN>Ŏn܂̂͑SėQƂɓv
ɕύX܂B
</P>
<A name="c6"></A>
<H2>6. expr, test</H2>
<P>
exprR}hAtestR}h͍폜A
VɁuZv悤ɂȂ܂B
Z<SPAN id="type">$[ ` ]</SPAN>ƂɂȂ܂B
{Iɂexpr̋@\p̂łB
</P>
<P>
K̕\LʼnZ܂F
</P>
<DIV class="sample">
echo-mode > $[4*(10+2)]<BR>
48<BR>
echo-mode > $[${npw.special}||${npw}]<BR>
Y<BR>
echo-mode > $["f"=~""]<BR>
false
</DIV>
<P>
Zł́AȑOexprtestĂSẲZLɌ炸A
펯IȉZL͑SĎg܂B
test̎ĂA-gt-ltƌZq͂ȂȂA
expr̂悤ɕƐl͎ʂ悤ɂȂ܂B
</P>
<DIV class="sample">
# ]<BR>
event.OnMusicPlay: $(if $([ ${freeze} -eq 0 ]) ${OnMusicPlay1})<BR>
<BR>
# Phase 8<BR>
event.OnMusicPlay: $(if <EM>$[</EM>${freeze}==0<EM>]</EM> ${OnMusicPlay1})<BR>
# Ƃł܂<BR>
event.OnMusicPlay: $(if $[<EM>!</EM>${freeze}] ${OnMusicPlay1})<BR>
</DIV>
<P>
<SPAN id="type">$[ ` ]</SPAN>̒ł͎RɋEs܂B
SĂ܂܂B
</P><P>
<SPAN id="type">( ` )</SPAN>ɂO[sOł܂B
exprł́Â݃NH[gK{ƂdlłA
Zł͕ʂɎ܂B
</P><P>
Aexpr<SPAN id="type">'|'A'&'</SPAN>́AꂼA
<SPAN id="type">'||'A'&&'</SPAN>ɂȂ܂B
rȂǂ
<STRONG>gꍇ́AKNH[gȂȂȂȂ܂B</STRONG>
expr̎Ăsubstr, lengthȂǂ̉Z@\(TuR}h)́A
ƗKISR}hƂčĒ`܂B
</P><P>
lɂĂexpr, testƓlA<STRONG>g܂B</STRONG>
܂A<STRONG>lƌȂ̂͋IɐlɂȂ܂B</STRONG>
ǂĂƂĔrsꍇ́A
KIScompareR}hgĂB
</P>
<DIV class="sample">
# ]<BR>
OnMusicPlay1: $(if $([ $(expr substr ${system.Reference0} 2 6) != "Buffer" ]) ${OnMusicPlay2}) <BR>
<BR>
# Phase 8<BR>
OnMusicPlay1: $(if $[$(<EM>substr</EM> ${system.Reference0} 2 6)!="Buffer"] ${OnMusicPlay2})<BR>
</DIV>
<A name="c7"></A>
<H2>7. if̕@ύX</H2>
<P>
ȉ̂悤ɂȂ܂B
</P>
<DIV class="sample">
# ]<BR>
if <> <Ƃ̒P>;<BR>
if <> <Ƃ̒P> <ȂƂ̒P>;<BR>
<BR>
# Phase 8<BR>
if <> <Ƃ̒P>;<BR>
if <> <Ƃ̒P> <EM>else</EM> <ȂƂ̒P>;<BR>
if <> <Ƃ̒P> <EM>else if</EM> <2> <2Ƃ̒P>;<BR>
if <> <Ƃ̒P> <EM>else if</EM> <2> <2Ƃ̒P> <EM>else</EM> <SĐȂƂ̒P>;<BR>
</DIV>
<P>
<STRONG>
else if ƁA̒O̒PƂ̊ԁA܂AƎsP̊Ԃɂ́A
KsKvłB
</STRONG>
AďĂ͂܂B
</P>
<DIV class="sample">
~ if $[${}=~"Ut"] $(echo ̖ŌĂԂȁI)else$(echo ł);<BR>
if $[${}=~"Ut"] $(echo ̖ŌĂԂȁI) else $(echo ł);<BR>
# if̏ꍇ́Â悤ɏ̂<BR>
if $[${}=~"Ut"] ̖ŌĂԂȁI else ł;
</DIV>
<P>
͂łׂ邱Ƃł܂B
KISꏊ͕Ksɕď邽߁A
ȉ̂悤Ɍ₷ׂ邱Ƃł܂B
</P>
<DIV class="sample">
if $[${date}<7] ŏ̈T<BR>
else if $[${date}<14] ̈T<BR>
else if $[${date}<21] OT<BR>
else if $[${date}<28] lT<BR>
else Ō̏T ;
</DIV>
<P>
sΉ̕pƂāA
<SPAN id="type">$( ` )</SPAN>̍ŌȊOł́A
<STRONG>
\R}hɂĂAɃZ~R(<SPAN id="type">';'</SPAN>)Kv
</STRONG>
Ƃ_߂₷ȂĂ܂܂B
CtĂB
{IɃZ~RtKɂƗǂł傤B
if́Aelseelse if߂̑SĂ܂߂Ĉ̃CCXNvgɂȂ邽߁A
Ŝ̍Ōɂ̂݃Z~RKvłA͕K{łB
</P>
<A name="c8"></A>
<H2>8. enumerate</H2>
<P>
ɂ߂ėOIȓsĂenumerateR}h͍폜܂B
getcodeloopR}hgĂB
</P>
<A name="c9"></A>
<H2>9. get/set̓ύX</H2>
<P>
ANZXR}h͊SɍV܂B
</P><P>
]̓Gg̒P͔̏ۏ(ۂƂ͌Ȃ)łA
Phase 8ł̓Gg̒P̏ۏ悤ɂȂ߁A
uGgxԖڂ̒Pov
Ƃɂł悤ɂȂ܂B
</P><P>
ɏ]Aget/setnR}hɂẮA
<SPAN id="type"> get XgGg[2] </SPAN>̂悤ɁA
GgɓYꂽ<SPAN id="type">[ ]</SPAN>ɂāA
Gg̉Ԗڂwł悤ɂȂ܂B
̏get/setV[YAinsert/clearR}hɂėLłB
</P><P>
܂A
<SPAN id="type">get</SPAN>R}h]ǂ
<SPAN id="type"> get Gg </SPAN>
ƌĂԂƁA<EM>Ggɑ݂SĂ̒Ps</EM>
悤ɂȂ܂BӂĂB
<SPAN id="type">get Gg[0]</SPAN>Ƃ邩A
<SPAN id="type">getrandom Gg</SPAN>A
<SPAN id="type">entry Gg</SPAN> ƂƗǂł傤B
</P><P>
setstr/pushstr/adddictstrR}hlj܂B
uKƂĈ悤ɁvljR}hłB
ʏ̎gpł́Aقxxxstrng`œK̂͂ł̂ŁA
ł邾𗘗p悤ɂĂB
</P>
<A name="c10"></A>
<H2>10. ̑KISR}h̕ύX</H2>
<P>
textload/readdir̈A
</P>
<DIV class="sample">
R}h Ώ i[Gg
</DIV>
<P>
̂A
</P>
<DIV class="sample">
R}h i[Gg Ώ
</DIV>
<P>
ɕύX܂B
</P>
<P>
textload/split́Ao͂uGg.1vuGg.2v...
ƂɕʃGgɊi[Ă̂A
PɁÃGg0Ԗڂ̕A1Ԗڂ̕A...
ƂɈ̃Gg̕ʂ̕ƂĊi[悤ɂȂ܂B
</P>
<A name="c11"></A>
<H2>11. sΉ</H2>
<P>
̊̏ꏊAsɓWJď悤ɂȂ܂B
́A
<EM>]sɏȂȂȂ̂Arʼnsł悤ɂ</EM>
̂Ȃ̂ŁA]ʂsɏĂ肠܂B
</P>
</BODY>
</HTML>
|