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 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449
|
<!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 [U[Y}jA</TITLE>
</HEAD>
<BODY>
<H1>vO}uAIW[ "ؘa" [U[Y}jA</H1>
<DIV align="right">
<P>
2004/02/01<BR>
Phase 8.2.0
</P><P>
ؘaJ`[ :<BR>
NAKAUE.T (Meister), UMeister (T), Ɓ[, , ̂ɂ
</P>
</DIV>
<H2>Index</H2>
<A href="index.html" class="toindex"> back</A>
<BR>
<BLOCKQUOTE>
<A href="#preface">1. ͂߂</A><BR>
<A href="#dictionary">2. t@C</A><BR>
@@<A href="#comment">2.1. Rg</A><BR>
@@<A href="#security">2.2. ZLeBxݒ</A><BR>
@@<A href="#crypt">2.3. Í</A><BR>
<A href="#entrydef">3. Gg`</A><BR>
@@<A href="#string">3.1. ƕ</A><BR>
@@<A href="#quote">3.2. NH[g</A><BR>
@@<A href="#block">3.3. ubN</A><BR>
@@<A href="#multiline">3.4. sΉ</A><BR>
<A href="#subst">4. uƃGgĂяoƎs</A><BR>
@@<A href="#entrycall">4.1. GgĂяo</A><BR>
@@<A href="#execute">4.2. s</A><BR>
@@<A href="#recursivesubst">4.3. u̓q</A><BR>
<A href="#entrycallvar">5. GgĂяõoG[V</A><BR>
@@<A href="#setexpr">5.1. WZ</A><BR>
@@<A href="#entryarray">5.2. GgzĂяo</A><BR>
@@<A href="#histryref">5.3. Q()</A><BR>
@@<A href="#tmpentry">5.4. ꎞGg(㋉)</A><BR>
<A href="#expression">6. Z</A><BR>
@@<A href="#expr_comp">6.1. rZ</A><BR>
@@<A href="#expr_logic">6.2. _Z</A><BR>
@@<A href="#expr_bits">6.3. rbgZ</A><BR>
@@<A href="#expr_nums">6.4. lƕ̈</A><BR>
<A href="#kis">7. CCXNvg()</A><BR>
@@<A href="#statement">7.1. \R}hƊR}h</A><BR>
@@<A href="#if">7.2. if</A><BR>
@@<A href="#function">7.3. gݍ݃R}hƃ[U`R}h</A><BR>
<A href="#shiorisaori">8. SHIORI/SAORIC^[tF[X</A><BR>
@@<A href="#callback">8.1. R[obN</A><BR>
@@<A href="#systementry">8.2. ̑̃VXeGg</A><BR>
@@<A href="#beshiori">8.3. xƂẲؘa</A><BR>
@@<A href="#besaori">8.4. SAORIW[ƂẲؘa</A><BR>
@@<A href="#declaresaori">8.5. SAORIW[̎gp錾</A><BR>
@@<A href="#callsaori">8.6 SAORIW[Ăяo</A><BR>
<A href="#extension">9. p</A><BR>
@@<A href="#event">9.1. Cxg</A><BR>
@@<A href="#communicate">9.2. R~jP[g</A><BR>
@@<A href="#randomtalk">9.3. g[N</A><BR>
</BLOCKQUOTE>
<A name="preface"></A>
<H2>1. ͂߂</H2>
<P>
[U[Y}jAł́AؘâقڑSĂ̕@Ƌ@\Љ܂B
<A href="kis_reference.html">KISt@X</A>ŁA
ʂ̋@\g悤ɂȂ܂B
</P><P>
߂ĉؘaǵA
[U[Y}jA<A href="start.html">Getting Started</A>
ǂ݁AC[W͂łB
</P><P>
ȂƂ납S[Xĝ͑ώԂ܂B
ȒPɉؘa̓mFĂ߂ɂ́A
R\[UIŃAvP[Vw<A href="kosui.html">K</A>x
gĂBKȂؘ̉aĆA܂l܂B
</P>
<A name="dictionary"></A>
<H2>2. t@C</H2>
<BLOCKQUOTE>
<P>
t@CƂ́A
ؘaɑāA͂b⓮p^[w邽߂̃t@CłB
t@CAȂ̃S[XgLqSĂłB
</P>
</BLOCKQUOTE>
<P>
<STRONG>ؘaŏɓǂގt@C"kawarirc.kis"łB</STRONG>
</P><P>
t@ĆA<SPAN id="type">'='</SPAN>Ŏn܂sɂāA
`][ƁAXNvgLq][̓̃][ɕ܂B
</P><P>
`][͎`̈łA
XNvgLq][KISڏȀŎs̈łB
</P><P>
(t@Cǂݎn߂)ł͎`][ŁA
<SPAN id="type">=kis</SPAN>Ŏn܂s
<SPAN id="type">=end</SPAN>Ŏn܂s܂łXNvgLq][łB
</P>
<DIV class="sample">
# ͎Lq][<BR>
sentence : \0\s[7]${n}A͋AĂI\1\s[10]ccB\e<BR>
sentence : \0\s[7]${V}͎I@̂IH\e<BR>
<SPAN id="red">=kis</SPAN><BR>
# ̓XNvgLq][<BR>
load dict-gundam.txt;<BR>
logprint K_̂[ǁB;<BR>
<SPAN id="red">=end</SPAN><BR>
# ĂюLq][<BR>
n : TVC60,C,,L<BR>
</DIV>
<P>
XNvgLq][ɂ镶@́A
<SPAN id="type">'$(' ` ')'</SPAN>
̊Ԃ̕@ƊSɓł̂ŁAł͏ȗ܂B
<EM>
XNvgLq][ŏXNvǵA
̃XNvgǂݍ܂ꂽuԂɎs
</EM>
ƂƂӂĂB
</P><P>
`][ɂ镶@3͈ȉŏڂqׂ܂B
</P>
<A name="comment"></A>
<H3>2.1. Rg</H3>
<P>
sA<EM>LȊO̍ŏ̕</EM>V[v<SPAN id="type">'#'</SPAN>
ꍇA̍sŜ̓RgƌȂA܂B
</P><P>
܂A<SPAN id="type">':rem'</SPAN>݂̂̍s
<SPAN id="type">':endrem'</SPAN>݂̂̍s܂ł̗̈ŜRgƌȂA
܂B
</P><P>
҂ƂAq̑SĂ̕@ɗD悵ď܂B
sɕLq̏ꍇAs̐擪̕<SPAN id="type">'#'</SPAN>
Ȃ悤ɒӂĂB
̏ꍇ̓NH[gɂȂǂē邱Ƃł܂B
</P>
<DIV class="sample">
<SPAN id="red">:rem<BR>
=======================================================<BR>
sRgƂ<BR>
ȕɂ邱Ƃł܂<BR>
ނAGAꊇăRgAEgƂ̕<BR>
֗ł傤<BR>
=======================================================<BR>
:endrem</SPAN><BR>
function checker $(<BR>
if $[$@arg[0]=~"OK"] $(<BR>
<SPAN id="red"> # OK̏ꍇ</SPAN><BR>
echo IbP[;<BR>
) else $(<BR>
<SPAN id="red"> # s(?)̏ꍇ</SPAN><BR>
echo VeIN;<BR>
)<BR>
)
</DIV>
<A name="security"></A>
<H3>2.2. ZLeBx̎w</H3>
<P>
uBv瑗ĂCxg̒ɂ́A
[J}V(S[Xg̓삵ĂRs[^)ȊȌꏊ
SSTPȂǂʂđĂ̂܂B
̂悤ȃCxgr邽߂
ȉ̋LqɂăZLeBxݒ肷邱Ƃo܂B
</P><P>
<STRONG>ȂꍇAIɈSȐݒ(high)ɂȂ</STRONG>̂ŁA
ʂ͋LqKv͂܂B
</P><P>
Lqۂɂ͕Kɓǂݍ܂t@CɏĉB
kawarirc.kisɏ̂młB
S[Xg삵n߂Ă̓ZLeBxύX邱Ƃ͂ł܂B
</P>
<DL>
<DT class="tt">securitylevel level ;</DT>
<DD>
ZLeBxlevelɐݒ肷B
levelɏ͈̂ȉB
<TABLE border="0" cellpadding="2" cellspacing="0">
<TR><TD>0 / low</TD><TD> SẴCxgB</TD></TR>
<TR><TD>1 / middle</TD><TD> OĂCxg֎~B</TD></TR>
<TR><TD>2 / high</TD><TD> ʂ1(middle)ƓB</TD></TR>
<TR><TD>3 / ultrahigh</TD><TD>
mɃ[J}VsƋLꂽCxĝB
</TD></TR>
</TABLE>
</DD>
</DL>
<DIV class="sample">
# w肷ꍇ́Akawarirc.kiŝł邾<BR>
# 擪ɋ߂܂B<BR>
=kis<BR>
securitylevel ultrahigh;<BR>
<BR>
=end
</DIV>
<P>
ȂAؘa̓쒆A
ZLeBx͐l\(0`3)
<SPAN id="type">"System.SecurityLevel"</SPAN>Ɋi[Ă܂B
邱Ƃ͏o܂B
</P>
<A name="crypt"></A>
<H3>2.3. Í</H3>
<P>
l^ɂ邽߂ɁAt@CɊȒPȈÍ{Ƃł܂B
Íɂ͕tkawari_encode2.exep܂B
gp@́ADOSvvgňȉ̂悤ɓ͂܂B
</P>
<DIV class="syntax">
kawari_encode2 t@C1 t@C2 ...
</DIV>
<P>
ƁAL[[ĥŁAKȃL[[hĂB
Íꂽt@C쐬܂B
</P>
<DIV class="sample">
C:\home\suikyo\project\kawari\kiu\current> kawari_encode2 dict-sample.txt<BR>
Input Keyword : this is test
</DIV>
<P>
t@C̃t@C̊gqu.kawvɕςt@CA
Íꂽt@CłB
t@CA
<SPAN id="type">":crypt"</SPAN>ƏꂽsA
<SPAN id="type">":endcrypt"</SPAN>Əꂽs܂łÍ̑ΏۂƂȂ܂B
ȊO̍s͌̂܂c܂B
</P>
<DIV class="sample">
dict-sample.txt<BR>
#############################<BR>
# 쌠\Ȃ<BR>
#############################<BR>
<BR>
# Í<BR>
<SPAN id="red">:crypt</SPAN><BR>
# bf[^<BR>
sentence : \h${npw}${npp}ŋRB\e<BR>
sentence : \h${npp}ǂƂx͂ŁA͂[傢Ȃ傢ȁB\e<BR>
# -ŗL-l ( npw )<BR>
npw : ؈Y , R{Y<BR>
# -ŗL-n ( npp )<BR>
npp : @ , zCgnEX<BR>
npp : ${npw}̉<BR>
<SPAN id="red">:endcrypt</SPAN><BR>
# ܂ňÍ<BR>
</DIV>
<P>
̃t@CÍƁÂ悤ȃt@C܂B
(₷̂߂Ɉꕔs܂ԂĂ܂)
</P>
<DIV class="sample">
dict-sample.kaw<BR>
#############################<BR>
# 쌠\Ȃ<BR>
#############################<BR>
<BR>
# Í<BR>
!KAWA0001uJuYMVcg2jveOeM75g==<BR>
!KAWA0001uMvd1szd1tvdmIKY5NA1SCtCnMPWyM/FOkicw9bIyMU6f<BR>
TNMKeo0EToROhc6BTpeOfrk3Q==<BR>
!KAWA0001uMvd1szd1tvdmIKY5NCcw9bIyMUvfzoaOn46CTBSK8A6d<BR>
ToQOho6fTn5OnU6JznjOg46XToaOnA6DjpdOho6cDn65N0=<BR>
!KAWA0001uJuYLgQ2NJU0fS/0LgQ2NJUo1C4EmJCY1sjPmJE=<BR>
!KAWA0001uNbIz5iCmC9RLmAwUiDhmJSYNuouwykGIOE=<BR>
!KAWA0001uJuYLgQ2NJU0fS/0LgQ2NJUq1i4EmJCY1sjIm JE=<BR>
!KAWA0001uNbIyJiCmDZJKTIyFyv4mJSYO8I7Nzv7O9871 jv9O+A=<BR>
!KAWA0001uNbIyJiCmJzD1sjPxTp0MX4=<BR>
# ܂ňÍ
</DIV>
<P>
ꂽÍt@Cudict-*.kawvAkawarirc.kisŎw肵ĉB
Ít@C̊gq́A.kawȊOɕύXĂvłB
</P>
<P>
Ít@Cɖ߂ꍇ́A
kawari_decode2.exeg܂B
</P>
<DIV class="syntax">
kawari_encode2 t@C1 t@C2 ...
</DIV>
<P>
͂L[[ĥŁA
Í̎ɓ͂L[[hĂB
</P>
<DIV class="sample">
C:\home\suikyo\project\kawari\kiu\current> kawari_decode2 dict-sample.kaw<BR>
Input Keyword : this is test
</DIV>
<P>
ƁAgqu.txtv́Aꂽt@C쐬܂B
</P><P>
<STRONG>
ӁFłɓ̃t@CĂ㏑Ă܂܂I
</STRONG>
</P>
<A name="entrydef"></A>
<H2>3. Gg`</H2>
<P>
ؘáASẴf[^uGgvɕނĕێĂ܂B
`Ƃ́AGg`sRׂ̂łB
Gg`͈ȉ̏('['`']'́AĂǂ)ŏĂB
</P>
<DIV class="syntax">
Gg [ <SPAN id="type">,</SPAN> Gg<SPAN id="type">,</SPAN> Gg ... ] <SPAN id="type">:</SPAN> <SPAN id="type">,</SPAN> <SPAN id="type">,</SPAN> ... <s><BR>
Gg [ <SPAN id="type">,</SPAN> Gg<SPAN id="type">,</SPAN> Gg ... ] <SPAN id="type">(</SPAN> <SPAN id="type">,</SPAN> <SPAN id="type">,</SPAN> ... <SPAN id="type">,</SPAN><s><BR>
</SPAN> <SPAN id="type">,</SPAN> <SPAN id="type">,</SPAN> ... <s><BR>
...
<SPAN id="type">)</SPAN>
<BR>
</DIV>
<BLOCKQUOTE><I>
Phase 8ł́AȑOuPvƌĂł̂A
uvƁuPvɋʂĂ܂A
ɍׂ@`̖ł̂ŋCɂȂČ\łB
</I></BLOCKQUOTE>
<P>
R<SPAN id="type">":"</SPAN>J}<SPAN id="type">","</SPAN>
Oɂ͎Rɋ܂B
</P><P>
Ggׂ`́ÃGgɓo^ꍇɎgĉB
<SPAN id="type">'('`')'</SPAN>ň͂҂̌`́A
sɂĕׂꍇɎgĂB
<SPAN id="type">'('`')'</SPAN>̊Ԃ͎Rɉsł܂B
͂̒Ɋׂ̕_ŁA
q́uubNvƂ͈قȂ̂ŒӂĂB
Â炯ΎgȂĂ\܂B
</P>
<DIV class="sample">
# P̓o^<BR>
̈A : ́B, [B, ɂ[XB,, S@<BR>
G, RXv : Ch, ዾ, `Ci<BR>
<BR>
# ͂̓o^ł<BR>
_b.X : \0\s[0]ςΒłB\1\s[10]c\w8c\w8́H\w8\0\s[3]R[q[Β̕JtFC͑ˁB\1\s[10]ȁB\w8\0d͑Ȃ̂ŁAΒƁ\\\\\1\s[11]XRb`\0\s[2]cc\w8\w8H\1\s[11]XRb`\e<BR>
<BR>
# ǂI̗͂<BR>
_b.dgn : ́AԂA${n}${n}ɂЂ${lԊW}́Aŏ̐ゾB<BR>
<BR>
# CxgXNvgȂ(q)<BR>
Cxg.OnCommunicate : $(if $[$(Reference 0)=="܂"] cc͖H@Ƃ܂ڂ낵H)
</DIV>
<P>
GgɎg镶͈ȉłB
Ă̂́AVɎg悤ɂȂ̂łB
</P>
<DIV class="syntax">
p(<SPAN id="type">A`Za`z0`9</SPAN>) /
<EM>Abg}[N</EM>(<SPAN id="type">'@'</SPAN>) /
<EM>NGX`}[N</EM>(<SPAN id="type">'?'</SPAN>) /
sIh(<SPAN id="type">'.'</SPAN>) /
A_[o[(<SPAN id="type">'_'</SPAN>) /
Sp
</DIV>
<P>
AAbg}[N<SPAN id="type">u@v</SPAN>
<A href="#tmpentry">ꎞGg</A>ɗp̂ŁAi͎gȂłB
ɁAGg̐擪<SPAN id="type">u.v</SPAN>͎g܂B
܂AGg<SPAN id="type">u.v</SPAN>AꍇA
ɂ܂Ƃ߂܂(<SPAN id="type">npw.....special</SPAN> <SPAN id="type">npw.special</SPAN>)B
<SPAN id="type">'System.'</SPAN>Ŏn܂GǵA
ؘaʂɎgGgł̂ŏɎgĂ܂Ȃ悤ɒӂĂB
</P><P>
ȏ̌܂莖AGg͎RɌ߂܂B
ɂƂĕ₷OɂĂB
uSpvRɎĝŁAϋɓIɎgƗǂł傤
(^Cv͏ʓ|܂cc)B
</P>
<A name="string"></A>
<H3>3.1. ƕ</H3>
<P>
́AuvuuvuubNvDȂׂ̂łB
<A href="#subst">u</A><A href="#block">ubN</A>͌q܂B
</P><P>
́AႦΈȉ̂悤Ȃ̂łB
</P>
<DIV class="sample">
\0\s[3]S[XgɂĂ邱ƂȂĖB\1\s[10]ccSɂȂƂ\e
</DIV>
<P>
قƂǂ͂́̕Â悤ɒn̕ƂĂ̂܂Ƃł܂B
A(ȑOĂ܂)ȂAgȂ܂B
</P><P>
܂Aȉ̋ĹA<STRONG>K</STRONG>g܂B
q<A href="#block">ubN</A>̒ł́AȊO̐͂܂B
</P>
<DIV class="syntax">
NH[g2 <SPAN id="type">'"' , '''</SPAN> /
h}[N <SPAN id="type">'$'</SPAN> /
ۊ <SPAN id="type">'(' , ')'</SPAN></LI>
</DIV>
<P>
Gg`Ƀx^ɏĂꍇA
ɃJ}<SPAN id="type">','</SPAN>g܂B
܂ACCXNvgɃx^ɏꍇA
Z~R<SPAN id="type">';'</SPAN>g܂B
ꂼȀꏊŕ邽߂Ɏg邽߁AgȂƂ͊oIɕ܂B
IɋCtȂȂȂ͍̂ŏɋ̂łB
</P><P>
܂ȂOAyэs̐擪ɂx^̋
(pXy[XA^uAs\ȏꏊł͉s)͖܂B
ꏊɋɂ́ÃNH[ggĂB
</P>
<DIV class="sample">
eXg : We are the champions ","my friends<BR>
<BR>
=kis<BR>
echo ${eXg}<BR>
# uWe are the champions ,my friendsvԂ<BR>
=end<BR>
</DIV>
<A name="quote"></A>
<H3>3.2. NH[g</H3>
<P>
Oq̎gȂ╶̋Ƃĉؘa̕Ɋ܂߂ɂ́A
NH[gg܂B
</P>
<DIV class="sample">
" NH[g̒ł͋
${Gg}Ăяo`AJ}(,)⊇ʂAZ~R(;)܂"
</DIV>
<P>
̂悤ɁA
_uNH[g<SPAN id="type">(")</SPAN>́A
(VO)NH[g<SPAN id="type">(')</SPAN>
ň͂܂ꂽuNH[gvƌĂт܂B
NH[gł́AقڑSĂ̕Au܂܁v̌`ŏo͂ł܂B
</P><P>
NH[gł͏o͂łȂ͂܂B
ALqAƕςȂƂȂƂ2܂B
</P>
<DL>
<DT>u\"v́u\'v (NH[gɎgĂ镶̕)</DT>
<DD>
u"v́u'vo͂܂B
NH[gŁANH[gɎgĂ镶o͂邽߂Ɏg܂B
</DD>
<DT>u\\v</DT>
<DD>
u\vo͂܂B
<STRONG>
u\v}[No͂邽߂ɕKu\\vȂȂȂ킯ł͂Ȃ
</STRONG>
ƂɒӂĂBʏ́Â܂"\c""\s"ȂǂƏĂB
</DD>
</DL>
<P>
āAł́u_uNH[go͂vɂ͂ǂł傤B
</P>
<DIV class="sample">
<SPAN style="color:red">"\""</SPAN>${U}<SPAN style="color:red">"\""</SPAN>ČĂԂȁ[I
</DIV>
<P>
̂悤ɂ̂̓łB́F
</P>
<DIV class="sample">
<SPAN style="color:red">'"'</SPAN>${U}<SPAN style="color:red">'"'</SPAN>ČĂԂȁ[I
</DIV>
<P>
AFςĂ镔NH[głB
</P><P>
BNH[gO\}[No͂ɂ́F
</P>
<DIV class="sample">
echo-mode > ؘał́A"ȕɁu\\\"v"ƁANH[gO\܂B<BR>
ؘał́AȕɁu\"vƁANH[gO\܂B<BR>
<BR>
echo-mode > ؘał́A'ȕɁu\"v'ƁANH[gO\܂B<BR>
ؘał́AȕɁu\"vƁANH[gO\܂B<BR>
</DIV>
<A name="block"></A>
<H3>3.3. ubN</H3>
<P>
A<SPAN id="type">'(' ` ')'</SPAN>ň͂܂ꂽ
uubNvƌĂт܂B
<SPAN id="type">'<EM>$(</EM> ' ` ')'</SPAN>́A
q̃CCXNvgł̂ŁAԈႦȂłB
</P><P>
ubŇʂ2łB
</P>
<UL>
<LI>ubN̒IɈ̒PvfƂ݂Ȃ
(̂߁A<SPAN id="type">','</SPAN><SPAN id="type">';'</SPAN>Ȃǂ́A
邽߂̕P̈ꕔƂĂ݂Ȃ܂)</LI>
<LI>ubN̒ł͉s</LI>
</UL>
<P>
͒ʏʂ薳܂B
ũ[ȂǂSđ̏ꏊƓłB
܂AubNp̊<SPAN id="type">'(', ')'</SPAN>́A
o͂ɂ͌܂B
</P><P>
ubŃAɕsɕĕƂɎg܂B
</P>
<DIV class="sample">
# ]<BR>
sentence.Cj[ : \t\0\s[0]j[\n\n\q0[RandomTalk][g[N]\q1[TestCommand][eXg]\q2[Communicate][R~jP[g]\q3[PrefTalk][g[Nݒ]\q4[Cancel][LZ]<BR>
<BR>
# Phase 8<BR>
sentence.Cj[ : <SPAN id="red">(</SPAN><BR>
\t\0\s[0]j[\n<BR>
\n<BR>
\q0[RandomTalk][g[N]<BR>
\q1[TestCommand][eXg]<BR>
\q2[Communicate][R~jP[g]<BR>
\q3[PrefTalk][g[Nݒ]<BR>
\q4[Cancel][LZ]<BR>
<SPAN id="red">)</SPAN>
</DIV>
<P>
ubNgĕsLqĂĂA
Gg`̍Ōɂ͕KsKvȂƂɒӂĂB
</P>
<DIV class="sample">
: (Cs邼Cs邼<BR>
Cs邼Cs邼<BR>
Cs邼Cs邼)
</DIV>
<P>
ĹA܂B
</P>
<DIV class="sample">
: (<BR>
Cs邼Cs邼<BR>
Cs邼Cs邼<BR>
Cs邼Cs邼<BR>
)
</DIV>
<P>
A<EM>͊ԈႢłB</EM>
</P>
<DIV class="sample">
: <BR>
(<BR>
Cs邼Cs邼<BR>
Cs邼Cs邼<BR>
Cs邼Cs邼<BR>
)
</DIV>
<P>
ȂȂA<SPAN id="type">u : v</SPAN>̂ƂŁA
Gg`IĂ܂Ă邩łB
</P>
<A name="multiline"></A>
<H3>3.4. sΉ</H3>
<P>
<STRONG>
uJʂɑΉʂȂԂ͉s炠Ă悢v
</STRONG>
Ƃ̂APhase 8̕sΉ̍lłB
ubNAGgĂяoAGgzĂяo̓YA
ZACCXNvgȂǁA
ʂɈ͂܂ꂽꏊׂĂɂāA
@IɋꏊȂǂɂłs悤ɂȂ܂B
ꏊł͉s͋(Xy[X^uƓ)ƌȂ܂B
</P><P>
܂Aʏ̃Gg`(<SPAN id="type">uGg '(' ')'v</SPAN>`)ɂA
Gg`ɑSRɕsLqł悤ɂȂ܂B
</P>
<A name="subst"></A>
<H2>4. uƃGgĂяoƎs</H2>
<BLOCKQUOTE>
<EM>
łdvȏ͂łB
^₪Nтɂɗ߂AJԂǂŗĂB
</EM>
</BLOCKQUOTE>
<P>
L܂łŁAGgĂяoꂽƂA
ǂȕło͂ł悤ɂȂ܂B
Aؘa^ɉؘamIs߂ɂ́A
ɏqׂu@\Ƃł܂B
</P>
<P>
<EM>ؘa4̒u@\Ă܂B</EM>
̂A<SPAN id="type">'$'</SPAN>Ŏn܂A
ʋLȂǂŌ߂͈̔͂Ă܂B
</P>
<DIV class="sample">
# [1] GgĂяo<BR>
<SPAN id="green">${Gg}</SPAN><BR>
<BR>
# [2] GgzĂяo<BR>
<SPAN id="green">$Gg[]</SPAN><BR>
<BR>
# [3] Z<BR>
<SPAN id="green">$[ (1+2*3Ƃ)]</SPAN><BR>
<BR>
# [4] CCXNvg<BR>
<SPAN id="green">$(XNvg; XNvg; XNvg ... )</SPAN>
</DIV>
<P>
̏ڍׂɂĂ͏Ԃɏڂ܂B
A̋@\ɂĂA
<STRONG>
u(<SPAN id="type">'$'</SPAN>Ŏn܂Lq)A̎sʂŒu
</STRONG>
Ƃ_͋ʂłB
ɂ͎sʂ̂܂B
̂́APɒuLqȂȂ邾(Œu)ƂȂ܂B
</P><P>
܂Au͂̕s邽тɋN܂B
łAɃ_ȓGgĂяoȂǂ́A
s邽тɈʂԂ܂B
</P>
<A name="entrycall"></A>
<H3>4.1. GgĂяo</H3>
<P>
Ggɓo^ĂяoƂuGgĂяovƌ܂B
ႦAulvƂÕGgĂяoɂ́Aȉ̂悤ɏ܂B
</P>
<DIV class="sample">
# lGgɊ̐lo^<BR>
l : TUG, JcI, J, ^, tO^<BR>
<BR>
# lGgĂяoƂ́Â悤ɏ<BR>
${l}
</DIV>
<P>
GgĂяô邱Ƃ2łB
</P>
<OL>
<LI>Ggɓo^Ă镶̒_őI</LI>
<LI><STRONG>Is</STRONG></LI>
</OL>
<P>
2Ԗڂ́usvƂdvȂ̂ŁAoĂB
ꍇɂāu]vu]vȂǂƂĂ܂B
</P><P>
߂ɑ܂B
</P>
<A name="execute"></A>
<H3>4.2. s</H3>
<P>
ؘaŃGgɓo^Ƃ́̕A
Ă̂܂܁uBvȂǂɑ`ł͂܂B
</P>
<DIV class="sample">
\0\s[0]<SPAN id="red">${Ȃ܂}</SPAN>B<SPAN id="red">${傭傤}</SPAN>Ă܂B<SPAN id="red">${Ƃ}</SPAN>B\e
</DIV>
<P>
̗́A${Ȃ܂}A${傭傤}A${Ƃ}
̂ꂼꂪɒu邱ƂӐ}Ă܂B
</P>
<DIV class="sample">
# Gg`<BR>
Ȃ܂ : <BR>
傭傤 : S[Xg<BR>
Ƃ : ɂイ
</DIV>
<P>
̂悤ȎꍇAقǂ̗<STRONG>s</STRONG>ƐɂȂł傤B
</P>
<DIV class="sample">
\0\s[0]<SPAN id="red"></SPAN>B<SPAN id="red">S[Xg</SPAN>Ă܂B<SPAN id="red">ɂイ</SPAN>B\e
</DIV>
<P>
܂A
</P>
<P>
<STRONG>usvuuۂɍsƁv</STRONG>
</P>
<P>
ƊoĂB
ؘagłƁA
us^C~Om邱ƂǂĂKvƂȂ܂B
ݓčĂ܂ƂA
us(邢͕])vŝȂ̂A
ɒӂ悤ɂĂB
</P><P>
̃[mANH[g̈ƒuقȂ邱ƂłƎv܂B
NH[gɂuGXP[vv(<SPAN id="type">\"</SPAN>Ȃ)́A
s邽тɌʂςKv͂܂B
ŁAǂݍ܂ꂽiKŊɃGXP[v͍̏sĂ܂B
</P>
<!--
<P>
ہAǂݍ݃vZXIĉؘaɕێĂf[^ƂẮA
NH[gƒn̋̕ʂ͂܂B
Au@\́A̕Ƃ͕ʂ̂̂ƂĊɔFĂ܂B
łANH[gOʁA
<SPAN id="type">'${'`'}'</SPAN>
Ȃǂ̕ꂽƂĂAꂪuƂċ@\邱Ƃ͂܂B
xuǂݒv߂ɂ́A
<SPAN id="type">eval</SPAN>ƂKISR}hgKv܂B
</P>
-->
<BR>
<P>
āAꎩ̂u@\łGgĂяoA
IяoɑĂɎss߁A
KRIɃGgĂяo͉xs邱ƂɂȂ܂B
</P>
<DIV class="sample">
Ȃ܂ : , ӂ<BR>
傭傤 : S[Xg , fXNgbv}XRbg<BR>
Ƃ : ɂイ , <BR>
] : 猾킹${Ȃ܂}āA${傭傤}ĂꍇȂƎv́B<BR>
] : A${Ȃ܂}͌${Ƃ}čDȁB<BR>
<BR>
# BsentenceƂGg͗jIRɂB<BR>
sentence : ${]}
</DIV>
<P>
ŁA<SPAN id="type">${sentence}</SPAN><STRONG>s</STRONG>܂B
</P>
<OL>
<LI>o^ꂽB̕łu<SPAN id="type">${]}</SPAN>vIB</LI>
<LI>
sBu]vw肵GgĂяoNB
<OL>
<LI>
(Ⴆ)u<SPAN id="type">猾킹${Ȃ܂}āA${傭傤}ĂꍇȂƎv́B</SPAN>vIB
</LI>
<LI>
sB܂AuȂ܂ṽGgĂяoB
<OL>
<LI>uvIB</LI>
<LI>sBuq̂ŁAω</LI>
</OL>
u${Ȃ܂}vuvƒuB<BR>
u傭傤ṽGgĂяoB
<OL>
<LI>ufXNgbv}XRbgvIB</LI>
<LI>sBuq̂ŁAω</LI>
</OL>
u${傭傤}vufXNgbv}XRbgvƒuB
</LI>
</OL>
u${]}vu猾킹āAfXNgbv}XRbgĂꍇȂƎv́BvƒuB
</LI>
</OL>
<P>
̂悤ɁAGgĂяóAuqȂ܂őSĂ̒us܂B
</P>
<A name="recursivesubst"></A>
<H3>4.3. u̓q</H3>
<P>
úA݂ɓqɂ邱Ƃł܂B
u̎ނ͖₢܂Bq̐[ɂ͂܂B
</P>
<DIV class="sample">
$(set ̘b ${̘b})<BR>
$[ ${} * ${} ]<BR>
${ ʕ̃Xg.${JE^} }<BR>
$ʕ̃Gg[ ${JE^} ]<BR>
10NČƁA$[ $(date %Y) + 10 ]NˁB<BR>
<BR>
# ɂłAłƓ܂<BR>
$${ԐڎQ}[$[${x[X}+${|C^}]]<BR>
</DIV>
<P>
qɂȂu<EM>Ku܂</EM>B
ႦF
</P>
<OL>
<LI><SPAN id="type">10NČƁA$[ $(date %Y) + 10 ]NˁB</SPAN></LI>
<LI><SPAN id="type">10NČƁA$[ 2002 + 10 ]NˁB</SPAN></LI>
<LI><SPAN id="type">10NČƁA2012NˁB</SPAN></LI>
</OL>
<P>邢</P>
<OL>
<LI><SPAN id="type">$[ ${} * ${} ]</SPAN></LI>
<LI><SPAN id="type">$[ 1600 * 1200 ]</SPAN></LI>
<LI><SPAN id="type">1920000</SPAN></LI>
</OL>
<P>
ƂłB
</P><P>
Phase 7[ÚA
ȑO͂łȂ(entry/evalR}hŎĂ)
<SPAN id="type">${ ${ } }</SPAN>
Ƃqł悤ɂȂĂ邱ƂɒӂĂB
</P>
<DIV class="sample">
# uBvGETNGXgɑAuevent.<Cxg>vĂ<BR>
System.Callback.OnGET : ${event.${System.Request.ID}}
</DIV>
<P>
ȂAȉ͗̕OIɒuɂł܂BӂĂB
</P>
<UL>
<LI>Z̉Zq</LI>
<LI>\R}h̃R}h (R}h͉)</LI>
<LI>WZ̉Zq</LI>
</UL>
<P>
ႦΈȉ<EM>G[</EM>łB
</P>
<DIV class="sample">
# 肵<BR>
$[ 100 ${plus_or_minus} 10 ]<BR>
<BR>
# ꍇɂuntilwhileg<BR>
$(${until_or_while} ${} $(s ) )<BR>
<BR>
# ʒPĂт<BR>
${x${and}y}}
</DIV>
<A name="entrycallvar"></A>
<H2>5. GgĂяõoG[V</H2>
<A name="setexpr"></A>
<H3>5.1. WZ</H3>
<P>
GgĂяo̒g(<SPAN id="type">'${'`'}'</SPAN>̊)ɂ́A
ȉ̂悤ȂƂ܂B
</P>
<DIV class="sample">
${ & }<BR>
${ S[Xg & A }<BR>
${ j + }<BR>
${ S[Xg - FB }
</DIV>
<P>
sڂ́uuƁvGgƁuvGg̗ɓĂ镶̒Iԁv
(IɎs܂)A
sڂ́uuS[XgvGgƁuAvGg̗ɓĂ镶̒IԁvA
lɁA
Osڂ́uujvGgƁuvGg<EM>ǂ炩</EM>vA
lsڂ́uuS[XgvGgɓĂāuFBvGg<EM>ĂȂ</EM>v
Iт܂B
</P><P>
͊łׂ܂B
</P>
<P>
DxɂāF
</P>
<P>
ł<SPAN id="type">'*'</SPAN><SPAN id="type">'/'</SPAN>A
<SPAN id="type">'+'</SPAN><SPAN id="type">'-'</SPAN>
uDv܂B
Ⴆ
</P>
<DIV class="sample">
100 - 10 * 2 = 80
</DIV>
<P>
ȂǁB
</P><P>
lɉؘȁWZł<SPAN id="type">'&'</SPAN>A
2̉ZquDv܂B
</P>
<DIV class="sample">
${ j + & }
</DIV>
<P>
ƏƁAuwjxÁwƁxvI܂B
ujAƁvɕςɂ́AƓlA܂B
</P>
<DIV class="sample">
${ (j + ) & }
</DIV>
<P>
ȂAW₷邽߂ɁA
<SPAN id="type">${Gg}</SPAN>݂̂́̕A
̐̃Gg̎܂Ōɓ܂B
</P>
<DIV class="sample">
: ${SF}, ${t@^W[}, ${~Xe}, ${ǂ킩Ȃ}<BR>
SF : eBvgJr.<BR>
t@^W[ : g[L<BR>
~Xe : NXeB<BR>
ǂ킩Ȃ : LO<BR>
j : AVt, g[L, |I, LO<BR>
<BR>
=kis<BR>
echo ${j & }<BR>
# ug[Lv́uLOv<BR>
=end
</DIV>
<A name="entryarray"></A>
<H3>5.2. GgzĂяo</H3>
<P>
Ggɓo^ꂽ̓Äʒu̕IԎɎg܂B
</P>
<DIV class="sample">
# Tv<BR>
$sentence[0]<BR>
$l[2]<BR>
$[${Ōɒ}+1]
</DIV>
<P>
L̂悤Ɂu<SPAN id="type">'$' + Gg + '[' + Z + ']'</SPAN>v
Ƃ`ɂȂ܂B
ZɂĂ<A href="#expression">q</A>܂B
</P><P>
GgzĂяosƁA
wGǵAwԖ(CfbNXƌ܂)̕IAs܂B
CfbNX0琔n߂܂B
ʁuԖځvƌĂԂ̂́Au0vԖڂł̂ŋCtĂB
܂ACfbNXɕ̒lꂽꍇ́A납琔n߂܂B
</P><P>
wԖڂ݂̕Ȃꍇ̌ʂ͋(<SPAN id="type">""</SPAN>)łB
</P><P>
ȉA<A href="kosui.html">K</A>̕\Lœ܂B
</P>
<DIV class="sample">
# e<BR>
a : , , , Q<BR>
<BR>
echo-mode > $a[0]<BR>
<BR>
echo-mode > $a[2]<BR>
<BR>
echo-mode > $a[-1]<BR>
Q
</DIV>
<A name="histref"></A>
<H3>5.3. Q()</H3>
<P>
u<SPAN id="type">${l}</SPAN>v
ƂȃGgĂяo𗚗QƂƌĂт܂B
QƂ́AōsꂽuʂēxQƂƂɎg܂B
</P>
<DIV class="sample">
n : <BR>
food : <BR>
sentence : ${n}̂悤${food}A${1}̂悤${0}B
</DIV>
<P>
L̗łƁAsentence̎sʂ́û悤ȗÂ悤ȐBvɂȂ܂B
</P><P>
̐l͂0琔n߂܂B
܂A̐lƌ납琔n߂܂B
</P><P>
QƂ͏ʈȂ̂ŁA
WZɎg(<SPAN id="type">${0 & entry}</SPAN>Ȃ)Ƃ͂ł܂B
<SPAN id="type">${ ${Gg } }</SPAN>̂悤ȏŁA
̃GgĂяoʂlłAQƂɂ͂Ȃ܂B
</P>
<BR>
<P>
Phase 7.3.1ȑOƂ̈ႢłB
</P><P>
܂ASĂ̒uLqQƂɂĎQƉ\ɂȂ܂B
܂AGgĂяoAGgzĂяoAZACCXNvĝƂłB
₷AuS<SPAN id="type">'$'</SPAN>QƉ\vłB
</P><P>
ł́Ȁꍇ͂ǂł傤B
</P>
<DIV class="sample">
n : <BR>
food : <BR>
sentence : $(echo u${n}v)̂悤$(echo u${food}v)A${1}̂悤${0}B
</DIV>
<P>
<SPAN id="type">${1}</SPAN>́A
<SPAN id="type">$(echo u${n}v)</SPAN>̒<SPAN id="type">${n}</SPAN>
QƂĂ܂Ȃ̂ł傤H
́AsƂĂ<SPAN id="type">${n}</SPAN>
̂̕悤Ɏv܂A
<SPAN id="type">${n}</SPAN>0ԖڂŁA
<SPAN id="type">$(echo u${n}v)</SPAN>1Ԗڂł傤B
</P><P>
͂ǂł܂B
<STRONG>QƂɂẮA<SPAN id="type">'$'</SPAN>̒͊֒m܂B</STRONG>
āA
<SPAN id="type">$(echo u${n}v)</SPAN>0ԖڂŁA
<SPAN id="type">$(echo u${food}v)</SPAN>1ԖڂłB
</P><P>
ƌāA
<SPAN id="type">'$(' ` ')'</SPAN>̒(邢̓GgWZȂǂ̒)ł́A
QƂ͎gȂƂӖł͂܂B
g܂Bď]ʂAʂ̊ÖȑO̒uQƉ\łB
</P>
<DIV class="sample">
sentence : ${n}̂悤${food}A$(echo u${1}v)̂悤$(echo u${0}v)B
</DIV>
<P>
AXNvg̊OQƂƂ́AXNvgŜ܂B
</P>
<A name="tmpentry"></A>
<H3>5.4. ꎞGg(㋉)</H3>
<P>
͑SقȂ܂A͗QƂƂقړ@\łB
</P>
<P>
ꎞGgƂ́AؘaiĂ鎫Ƃ͕ʂɁA
<STRONG>Gg̈̕sĂԂ̂ݑ݂ꎞIȎ</STRONG>
ɓo^GgłB
Gg̐擪ɃAbg}[N<SPAN id="type">'@'</SPAN>t̂łB
</P><P>
̎́A̎s(uƂł)n܂ƓɁA̕pɈ쐬A
IƓɍ폜܂B
</P><P>
ꎞGg͎`ɂ݂͑Ȃ(sĂȂ̂ł瓖Rł)߁A
ʏ̃Gg`ŕo^邱Ƃł܂B
]āAꎞGg͏ɃXNvgɂč邱ƂɂȂ܂B
</P>
<DIV class="sample">
sentence : $(setstr @O ${O})\0\s[0]OGg${@O}Iт܂B\1\s[10]\w8${@O}\0\s[0]\w2łČĂcc
</DIV>
<P>
Lł́A̎sn܂uԂɈꎞ(g)ݒ肳A
ŏ̃XNvg<SPAN clsss="tt">@O</SPAN>Gg
(ʏ펫)OGgĂяoʂ̕܂B
ȍ~A<SPAN id="type">@O</SPAN>GǵA
̎̕sI܂Ŏc܂
(AȑOɃXNvgɂď邱Ƃ͉\ł)B
</P><P>
QƂAIɐݒ肳ߋ̒uQƂƂP@\ł̂ɔׁA
ꎞGg͎RɐݒEύXEĂяołA
WZɂg܂B
</P>
<DIV class="sample">
: ${@O}ĉH
</DIV>
<P>
̃GgɑėQƂłȂ̂ƓlA
̃Gg̈ꎞQƂ邱Ƃ͂ł܂B
</P>
<DIV class="sample">
sentence : $(pushstr @O Ȃ)${}
</DIV>
<P>
܂u@OvꎞGgɁA
uȂvƂZbgĂA
قǂ́uvGgĂяoĂ܂A
<STRONG>ӖłB</STRONG>
ĂяoɑėQƂłȂ̂ƓlA
ĂяöꎞQƂ邱Ƃ͂ł܂B
</P>
<BR>
<P>
QƂƈႤ_́A
̒ł肳AXNvg≉Z̒낤ƊO낤ƁA
ꏊɊWȂꎞɃANZXłƂłB
XNvgősʂXNvgOŎ邱Ƃܘ_ł܂B
ہAɋłɍsĂ܂B
</P><P>
ꎞGgƂp̂́A
KIS̃[U`ɂĂł傤B
ȑÓuI@\GgvĂяoꍇA
̃Ggɓnׂl()ʂɗpӂ(ʏ펫̈ꕔł)GgɃZbgĂĂяôʗłB
Ǎ`ł͖肪܂F
</P>
<DL>
<LI>ē(̊̎sɍĂѓĂяo邱)s\</LI>
<LI>^GgsIɈGgNAȂAȑO̒lcĂ\</LI>
<LI>ĂяoۈȊOɁARGg̒lς\</LI>
</DL>
<P>
Phase 8̃[U`ł́A
ؘaVXeɂāA͎IɌĂяoꂽ̈ꎞGg<SPAN id="type">@arg</SPAN>ɃZbg܂̂ŁA
SĈgƂł܂B
̃[U`݂xĂэĂA
̈̃Gg㏑ꂽAߋ̈cĂ肷댯͂܂B
</P><P>
ȂA̋@\͖ɎgȂĂ\܂B
SẴGg݂ɂԂȂ悤ɎŊǗłĂāA
Ȃfunctionɂ`gȂꍇ́AꎞGggKv͂܂B
GgĂяoɎg]̎@PꍇȂǂłB
</P>
<A name="expression"></A>
<H2>6. Z</H2>
<P>
<SPAN id="type">$[ ` ]</SPAN>ň͂܂ꂽ̈uZvƌĂт܂B
Zł́AZArbgPʉZA_ZArArs܂B
</P>
<DIV class="syntax">
<SPAN id="type">$[</SPAN> Z <SPAN id="type">]</SPAN>
</DIV>
<DIV class="sample">
# N͉H<BR>
$[ 365 * 24 * 60 ]<BR>
<BR>
# N2002NłH<BR>
$[ $(date %y)==2002 ]<BR>
<BR>
# Ȃ̖ÓuقvłH<BR>
$[ ${name}=="ق" ]<BR>
<BR>
# widthxāA10Ŋ<BR>
$[(${width}-${x})/10]
</DIV>
<P>
gpł鉉Zq͈ȉɂȂ܂B
Dx̏łB
Dx̒`<A href="#setexpr">WZ̏</A>̂̂ƓłB
</P>
<TABLE border="0" cellpadding="2" cellspacing="2" style="margin: 2ex 5% 3ex 5%;">
<TR>
<TD style="width: 2em;">L</TD>
<TD style="width: 2em;">l</TD>
<TD style="width: 2em;"></TD>
<TD style="width: 8em;"></TD>
<TD></TD>
</TR>
<TR><TD>**</TD><TD></TD><TD></TD><TD>ݏ</TD><TD class="tt">$[10**2] => 100</TD></TR>
<TR class="gb"><TD>-</TD><TD></TD><TD></TD><TD>P}CiX</TD><TD class="tt">$[-10] => -10</TD></TR>
<TR class="gb"><TD>+</TD><TD></TD><TD></TD><TD>PvX</TD><TD class="tt">$[+10] => 10</TD></TR>
<TR class="gb"><TD>!</TD><TD></TD><TD></TD><TD>(P)NOT</TD><TD class="tt">$[!1] => false, $[!"hoge"] => false, $[!""] => true</TD></TR>
<TR class="gb"><TD>~</TD><TD></TD><TD></TD><TD>(P)␔</TD><TD class="tt">$[~-10] => 9</TD></TR>
<TR><TD>*</TD><TD></TD><TD></TD><TD>Z</TD><TD class="tt">$[10*"2"] => 20, $["string"*10] => 0</TD></TR>
<TR><TD>/</TD><TD></TD><TD></TD><TD>Z</TD><TD class="tt">$[10/2] => 5, $[10/0] => "" (G[O:"devided by 0")</TD></TR>
<TR><TD>%</TD><TD></TD><TD></TD><TD>]Z</TD><TD class="tt">$[10%3] => 1</TD></TR>
<TR class="gb"><TD>+</TD><TD></TD><TD></TD><TD>Z</TD><TD class="tt">$[-10+2] => -8, $[""+1] => 1</TD></TR>
<TR class="gb"><TD>-</TD><TD></TD><TD></TD><TD>Z</TD><TD class="tt">$[10-3] => 7</TD></TR>
<TR><TD>&</TD><TD></TD><TD></TD><TD>rbgAND</TD><TD class="tt">$[1&2] => 0</TD></TR>
<TR class="gb"><TD>|</TD><TD></TD><TD></TD><TD>rbgOR</TD><TD class="tt">$[1|2] => 3</TD></TR>
<TR class="gb"><TD>^</TD><TD></TD><TD></TD><TD>rbgXOR</TD><TD class="tt">$[1^2] => 3</TD></TR>
<TR><TD>></TD><TD></TD><TD></TD><TD>傫</TD><TD class="tt">$[10>10] => false</TD></TR>
<TR><TD>>=</TD><TD></TD><TD></TD><TD>ȏ</TD><TD class="tt">$[10>=10] => true</TD></TR>
<TR><TD><</TD><TD></TD><TD></TD><TD></TD><TD class="tt">$[10<10] => false</TD></TR>
<TR><TD><=</TD><TD></TD><TD></TD><TD>ȉ</TD><TD class="tt">$[10<=10] => true</TD></TR>
<TR class="gb"><TD>==</TD><TD></TD><TD></TD><TD></TD><TD class="tt">$["string"=="string"] => true, $[10==8] => false</TD></TR>
<TR class="gb"><TD>!=</TD><TD></TD><TD></TD><TD>Ȃ</TD><TD class="tt">$["mac"!="mcdonalds"] => true</TD></TR>
<TR class="gb"><TD>=~</TD><TD></TD><TD></TD><TD>}b`</TD><TD class="tt">$["substring"=~"string"] => true</TD></TR>
<TR class="gb"><TD>!~</TD><TD></TD><TD></TD><TD>}b`</TD><TD class="tt">$["substring"!~"string"] => false</TD></TR>
<TR><TD>&&</TD><TD></TD><TD></TD><TD>_AND</TD><TD class="tt">$["str"&&10] => "str", $["false"&&10] => false, $[0&&10] => false</TD></TR>
<TR><TD>||</TD><TD></TD><TD></TD><TD>_OR</TD><TD class="tt">$["str"||0] => "str", $["false"||10] => 10</TD></TR>
</TABLE>
<P>
́AlZȊỎZɂāAɂȐ܂B
ɂ鉉Z`͑SĊ(vO~OƂĂ)ʓIȊTOł̂ŁA
͂̎̋ȏB
</P>
<A name="expr_comp"></A>
<H3>6.1. rZ</H3>
<P>
rZ(<SPAN id="type">'>', '>=', '<', '<=', '==', '!=', '=~', '!~'</SPAN>)́A
űLqۂvmF̂Ǝv悢ł傤B
ʂƂāAK^UlԂ܂B
ႦF
</P>
<DIV class="sample">
$[ 1 == 10 ]
</DIV>
<P>
͖炩ɊԈĂ܂B
ԈĂ邱ƂpŁuUvƌ܂B
ɐԂł邱Ƃ́u^vƌ܂B
Ȕꍇ͕"false"Ԃ܂B
^̏ꍇ͕"true"Ԃ܂B
</P>
<DIV class="sample">
$[ "悦`" == "[" ]<BR>
# "false"<BR>
<BR>
$[ (100 / 2) < 100 ]<BR>
# "true"<BR>
</DIV>
<P>
摖܂A
́uԈĂ邩v𗘗pāA
XNvgŏ邱Ƃł܂B
ؘa̐^Uf̊́A_ZqAсA
if, while, untilȂǂ̍\R}hSĂɂēꂳĂ܂B
</P>
<DIV class="syntax">
"", "0", "false"́uUvAȊO͑Sāu^vƂĈ
</DIV>
<P>
ł́AfBXvC̕(screen.widthGgɊi[ĂƂ܂)
1200zĂuLfBXvCv
GgĂԂ悤ɂĂ݂܂B
</P>
<DIV class="sample">
$(if <SPAN id="green">$[ ${screen.width} > 1200 ]</SPAN> ${LfBXvC})
</DIV>
<A name="expr_logic"></A>
<H3>6.2. _Z</H3>
<P>
_Z(<SPAN id="type">'!', '&&', '||'</SPAN>)́A
^UlgZłB
</P>
<P>
<SPAN id="type">'!'</SPAN>́Auł͂ȂvƂł̂ŁA
E̒l̋t̒lԂ܂B
E̒l^łUAUłΐ^Ԃ܂B
</P>
<DIV class="sample">
$[ ! "ق" ]<BR>
# "ق"́Aq̋ȔɓĂ͂܂Ȃ^B<BR>
# ]āA̋tłuUvԂ܂B<BR>
# UԂꍇ"false"łA"false"Ԃ܂B<BR>
$[ ! 0 ]<BR>
# u0v͋UłA^Ԃ܂B<BR>
# "true"ɂȂ܂B
</DIV>
<P>
<SPAN id="type">'&&'</SPAN>́Auv܂A
u``` ```vłB
E̒lƍ̒l^̎̂݁A^A
łȂUԂ܂B
KAׂĂ̗vf]܂B
^Ԃꍇ́A"true"ł͂ȂA
<EM>ɕׂꂽ'&&'́Aԍ̒l̂܂ܕԂ܂B</EM>
</P>
<DIV class="sample">
$[ 10 < 100 && "قق" == "قق" ]<BR>
# AȆo"true"Ȃ̂ŁA^A܂"true"Ԃ܂B<BR>
$[ 10 <= ${l} && ${l} <= 100 ]<BR>
# ${l}A10ȏ100ȉ̏ꍇA"true"AłȂ"false"Ԃ܂B<BR>
$[ ${̃S[Xg} && $(?) ]<BR>
# ${̃S[Xg}GgɖOȏ゠A"?"R}htrueԂꍇɌA${̃S[Xg}GgIꂽ_ȖOԂ܂B
</DIV>
<P>
<SPAN id="type">'||'</SPAN>́Au܂́v܂A
u``` ܂ ```vłB
̒l̂ǂ炩^̎A^AłȂUԂ܂B
ŏɐ^̒lo_ŕ]I܂B
^Ԃꍇ́A"true"ł͂ȂA
<EM>ɕׂꂽ'||'̍珇ɃeXgāA
ŏɐ^ƂȂl̂܂ܕԂ܂B</EM>
</P>
<DIV class="sample">
$[ 100 < 10 || "قق" == "قق" ]<BR>
# ҂̂ŁA"true"<BR>
$[ ${䎌}=~"" || ${䎌}=~"K" ]<BR>
# ${䎌}AuvuKv܂ł"true"<BR>
$[ ${counter1} || ${counter2} || ${counter3} ]<BR>
# counter1, counter2, counter3̓Aŏ0ȊOԂƂł̒lԂB
</DIV>
<A name="expr_bits"></A>
<H3>6.3. rbgZ</H3>
<P>
rbgZ(<SPAN id="type">'&', '|', '^'</SPAN>)́A
l32bitlƂĈZłB
ʏ͂܂gȂł傤B
</P>
<DIV class="sample">
$[ 100 & 10 ]<BR>
# 01100100 & 00001010 -> 00000000 = "0"<BR>
$[ 64 & 96 ]<BR>
# 01000000 & 01100000 -> 01000000 = "64"<BR>
$[ 100 | 10 ]<BR>
# 01100100 | 00001010 -> 01101110 = "110"<BR>
$[ 64 | 96 ] <BR>
# 01000000 | 01100000 -> 01100000 = "96"
</DIV>
<A name="expr_nums"></A>
<H3>6.4. lƕ̈</H3>
<P>
Zł<EM>lƂĈ͕̂KlƂĈ</EM>
ƂK܂B
̌ʁÂ悤ȎԂN܂B
</P>
<DIV class="sample">
$[ "001" == "1" ]<BR>
# "true"ɂȂ
</DIV>
<P>
̂悤Ȍۂ(KƂĔr)ꍇ́A
KIScompareR}hpĂB
</P>
<DIV class="sample">
$[$(compare "001" "1")==0]<BR>
# "false"ɂȂ
</DIV>
<A name="kis"></A>
<H2>7. CCXNvg</H2>
<P>
GgĂяoƂ͕ʂɁA
<SPAN class="tt">'$(' ` ')'</SPAN>ł͂̕A
uCCXNvgvƌ܂B
܂A<SPAN class="tt">=kis</SPAN>݂̂̍sƁA
<SPAN class="tt">=end</SPAN>݂̂̍sň͂A
lɁuCCXNvgvƌ܂B
ႦAtԂdateR}hgɂ́Â悤ɏ܂B
</P>
<DIV class="sample">
$(date %H)<BR>
</DIV>
<P>
CCXNvǵA
GgĂяóusv@\A
苭̂ƍlĉB
GgĂяoƓlACCXNvgĂԂƁA
CCXNvg͎sʂɒu܂B
</P>
<DIV class="sample">
\0\s[0]$(date %n)$(date %e)łB\e<BR>
</DIV>
<P>
GgĂяoƈႤ̂́A
̗ŌƁu<SPAN class="tt">date</SPAN>ṽR}ȟɁA
Łu<SPAN class="tt">%n</SPAN>vȂǂ̕_łB
R}h̓GgĂяõGgɑA
ǂ̋@\ĂԂ߂܂B̋@\uR}hvƌĂт܂B
</P><P>
Aȍ~́̕A
R}hĂԍۂɁA⏕IƂăR}hɓn܂B
̕⏕Iuvƌ܂B
̓R}h̋AŋĊłׂ邱Ƃo܂B
</P>
<DIV class="sample">
$(echo ׂ邱Ƃo ł)<BR>
$(matchall ${System.Request.Reference1} )<BR>
</DIV>
<A name="statement"></A>
<H3>7.1. \R}hƊR}h</H3>
<P>
̒ɁAGgĂяoCCXNvgꍇl܂B
</P>
<DIV class="sample">
$(set Today $(date %m%d))<BR>
</DIV>
<P>
R}hs鎞AGgĂяoCCXNvǵA
ꂼ̎sʂɒûƂȂAR}hɓn܂B
̗ł́A<SPAN class="tt">$(date %m%d)</SPAN>͂̓̓tA
Ⴆu0522vɒuA<SPAN class="tt">set</SPAN>R}h́A
<P>
<DIV class="sample">
$(set Today 0522)<BR>
</DIV>
<P>
Ə̂ƓԂŎs܂B
̒̃CCXNvg̈A
ɃGgĂяoACCXNvg܂ޏꍇL蓾܂B
̏ꍇAl̓GgĂяoƓłB
ԓ̊ʂ珇ԂɁAuqȂȂ܂Œus܂B
āǍʂƂăR}hɓn܂B
</P>
<DIV class="sample">
Gg : entry<BR>
e1 : e2<BR>
e2 : , , , , <BR>
<BR>
# ͎IȈ̒u̗lq<BR>
$(set ${Gg} $(get ${e1}))<BR>
$(set entry $(get e2))<BR>
$(set entry )<BR>
entryGgɁuvZbg<BR>
</DIV>
<P>
ÃR}hł́Ä̒u^C~OႢ܂B
̓Iɂ́A<SPAN class="tt">ifAwhileAforeach</SPAN>ȂǁA
vO̗iR}hƁA
<SPAN class="tt">functionAreturn</SPAN>R}hłB
</P><P>
̃R}h́u\R}hv͒PɁu\vƌĂт܂B
\R}h́A<EM>̈gƂɃGgĂяouA
gȂ͒uȂ</EM>Ƃ܂B
̓Iȗ܂B
</P>
<DIV class="sample">
$(if $[ ${a} == "Y" ] $(set answer Yes) else $(set answer No))<BR>
</DIV>
<P>
̗̏ꍇA<SPAN class="tt">$[ ${a} == "Y" ]</SPAN>̌ʂɉāA
<SPAN class="tt">$(set answer Yes)</SPAN>A
<SPAN class="tt">$(set answer No)</SPAN>̂ǂ炩A
s(=u)܂B
</P><P>
\R}hȊÕR}h́A
uR}hv͒PɁuR}hvƌĂт܂B
</P>
<A name="if"></A>
<H3>7.2. if</H3>
<P>
\R}ĥA<SPAN class="tt">if</SPAN>Phase 7.3.1ƔׁA
ɕ@ς܂B
<SPAN class="tt">else</SPAN><SPAN class="tt">else if</SPAN>́A
2̃L[[hVɓ܂B
<P>
<P>
]<SPAN class="tt">if</SPAN>́A
Aœq<SPAN class="tt">if</SPAN>gKv܂B
͊ʂ̑ΉԈႢ₷ł͂ȂA
ԈႢɂ̂łB
̏ꍇA
q<SPAN class="tt">if</SPAN>A
ʂ̃GgɋLq铙̑KvłB
AqGgɕ@́A
ljE폜ۂɖłB
</P>
<DIV class="sample">
# ]if<BR>
$(if <> <^̎̕> <U̎̕>)<BR>
$(if <1> <1^̎̕><BR>
@@$(if <2> <1UA2^̎̕><BR>
@@$(if <3> <1A2UA3^̎̕><BR>
@@$(c<BR>
@@@<ׂĂ̏U̎̕> <EM>)c<if̐ɑΉʂ̘A>c)</EM><BR>
<BR>
# 邢́Â悤ɃGgɕ<BR>
if1 : $(if <1> <1^̎̕> ${if2})<BR>
if2 : $(if <2> <1UA2^̎̕> ${if3})<BR>
if3 : $(if <3> <1A2UA3^̎̕> ${if4})<BR>
@c<BR>
ifn : $(if <n> <1cn-1UAn^̎̕> <ׂĂ̏U̎̕>)
</DIV>
<P>
V<SPAN class="tt">if</SPAN>ł́A肪NɂȂĂ܂B
sLqƕȀ͈̃Gg̒Ŋ܂B
eiXeՂɂȂł傤B
</P>
<DIV class="sample">
# Vif<BR>
$(if <> <^̎̕> <EM>else</EM> <U̎̕>)<BR>
$(if <1> <1^̎̕><BR>
@@<EM>else if</EM> <2> <1UA2^̎̕><BR>
@@<EM>else if</EM> <3> <1A2UA3^̎̕><BR>
@@c<BR>
@@<EM>else</EM> <ׂĂ̏U̎̕>)<BR>
</DIV>
<A name="function"></A>
<H3>7.3. gݍ݃R}hƃ[U`R}h</H3>
<P>
GgƈႢÃR}h́A[U`ȂĂsł܂B
̂悤ȃR}hAugݍ݃R}hvƌ܂B
AfunctionR}hg[U`R}hA
u[U`R}hvƌ܂B
[U`R}h́Ax`AؘaNĂԗLłB
ȂA[U`R}h͕KR}hɂȂ܂B
</P><P>
R}h`ł́A
<SPAN class="tt">@arg</SPAN>ꎞGgƂĎg܂B
1<SPAN class="tt">$@arg[1]</SPAN>A
2<SPAN class="tt">$@arg[2]</SPAN>A
ȍ~N<SPAN class="tt">$@arg[N]</SPAN>ŎQƂł܂B
<SPAN class="tt">$@arg[0]</SPAN>͒`̃R}hƂȂ܂B
ȉɃR}h`̗܂B
</P>
<DIV class="sample">
# @argGgɈĂ̂ƂċLq<BR>
$(function s} $(clear @arg[0] ; foreach i @arg $(echo ${i}\n)))<BR>
<BR>
# gp<BR>
# uJXe1\ndb2\n3͕̂\nvԂ<BR>
$(s} JXe1 db2 3͕̂)<BR>
</DIV>
<P>
ɁȂgݍ݃R}hƓOŁA
[U`R}h`ꍇl܂B
</P>
<DIV class="sample">
$(function size $(length $(get $@arg[1])))<BR>
</DIV>
<P>
̗̏ꍇA<SPAN class="tt">size</SPAN>R}h́A
[U`R}h<SPAN class="tt">size</SPAN>ɏ㏑܂B
Kgݍ݃R}hĂтꍇA
<SPAN class="tt">$(.size entry)</SPAN>̂悤ɁA
R}h̐擪Ɂu<SPAN class="tt">.</SPAN>vtČĂʼnB
</P><P>
܂A[U`R}hx`ƁA
ɒ`Ă܂B
</P>
<DIV class="sample">
$(function default $(echo ) ; default)<BR>
# uvԂ<BR>
<BR>
$(function default $(echo ܂) ; default)<BR>
# u܂vԂ<BR>
<BR>
$(function default $(echo ) ; default)<BR>
# uvԂ<BR>
</DIV>
<P>
̗ł́A<SPAN class="tt">defalut</SPAN>R}h3Ăł܂B
AOŒ`ȂĂ邽߁A3ƂႤʂɂȂ܂B
</P>
<A name="shiorisaori"></A>
<H2>8. SHIORI/SAORIC^[tF[X</H2>
<P>
܂łɁAS[Xg̓Lq@ɂẮAقڑSĉ܂B
A̐S
u_uNbNCxgɑΉɂ́Hv
uURL\ɂ́Hv
Ȃǂ̐܂łB
</P><P>
xƂĂ̋@\ɂẮȀ͂ł܂Ƃ߂Đ܂B
܂AؘaSAORIƂĂ@\܂̂ŁAɂĂĐ܂B
</P>
<A name="callback"></A>
<H3>8.1. R[obN</H3>
<P>
ؘâ̂߁A
ʈGguVXeGgvƌĂт܂B
̂ÃGg͌Ăяoۂ̎dg݂A
̃GgƂ܂Ⴂ܂B
̐߂ł́ÃVXeGg̒łقȁA
uR[obNGgv܂B
</P><P>
R[obNGgƂ́A{̂CxgANOTIFYʒmĂہA
ŏɕ]GgłB
ʏ̃Gg]ꍇAGg̕_ɑIсA
̕̕]ʂGg̕]ʂƂ܂B
AR[obNGg{̂ĂꂽꍇA
R[obNGg<EM>ׂĂ̕Y</EM>]A
<EM>ׂĂ̕]ʂ</EM>{̂ɕԂ܂B
ɁA<SPAN class="tt">System.Callback.OnGET</SPAN>GgA
̂悤ȓeƂ܂B
</P>
<DIV class="sample">
System.Callback.OnGET : \0<BR>
System.Callback.OnGET : \s[0]<BR>
System.Callback.OnGET : B<BR>
System.Callback.OnGET : \1<BR>
System.Callback.OnGET : \s[10]<BR>
System.Callback.OnGET : ݁B<BR>
System.Callback.OnGET : \e<BR>
</DIV>
<P>
̃R[obNGg{̂ĂꂽƂƁA
{̂ɕԂXNvĝ͎悤ɂȂ܂B
</P>
<DIV class="sample">
\0\s[0]B\1\s[10]݁B\e<BR>
</DIV>
<P>
̌ʂ́A
KISR}h<A href="kis_reference.html#get">get</A>gA
̂悤ɏʂƓłB
R[obNGǵA
<EM>R[obNGggetŕ]ʂ{̂ɕԂ</EM>ƍlĉB
</P>
<DIV class="sample">
get System.Callback.OnGET
</DIV>
<P>
̃R[obNGg̓́A
Ƀ~hEFA̋LqȑfۂɗLł傤B
~hEFA<SPAN class="tt">OnSecondChange</SPAN>CxgŁA
̓Ɨ@\삳邱Ƃ܂B
]A̓Ɨ삷@\ljꍇA
KRIɃ~hEFAKv܂B
A<SPAN class="tt">System.Callback.*</SPAN>GgɁA
lj@\Ăԕlj邾ővłB
</P>
<P>
ɁAؘa̎gSR[obNGg܂B
</P>
<DIV align="center">
<TABLE width="80%">
<TR><TD colspan="2" style="background: #ffe0e0">SHIORI/3.0</TD></TR>
<TR><TD class="tt">System.Callback.OnGET</TD><TD>GET</TD></TR>
<TR><TD class="tt">System.Callback.OnNOTIFY</TD><TD>NOTIFY</TD></TR>
<TR><TD colspan="2" style="background: #ffe0e0">SHIORI/2.x</TD></TR>
<TR><TD class="tt">System.Callback.OnEvent</TD><TD>SHIORI/2.2 CxgAGET Sentencê</TD></TR>
<TR><TD class="tt">System.Callback.OnGetSentence</TD><TD>SHIORI/2.3b R~jP[g</TD></TR>
<TR><TD class="tt">System.Callback.OnGetStatus</TD><TD>Xe[^X擾</TD></TR>
<TR><TD class="tt">System.Callback.OnResource</TD><TD>SHIORI/2.5\[X擾</TD></TR>
<TR><TD colspan="2" style="background: #ffe0e0">SAORI/1.0</TD></TR>
<TR><TD class="tt">System.Callback.OnSaoriExecute</TD><TD>SAORIW[ƂČĂꂽ</TD></TR>
<TR><TD colspan="2" style="background: #ffe0e0"></TD></TR>
<TR><TD class="tt">System.Callback.OnUnload</TD><TD>藣Cxg(ؘas)</TD></TR>
<TR><TD class="tt">System.Callback.OnRequest</TD><TD>̑SẴNGXg(NOTIFY SHIORI/2.xATRANSLATE SHIORI/2.x)</TD></TR>
</TABLE>
</DIV>
<H4>System.Callback.OnRequest</H4>
<P>
̂<SPAN class="tt">System.Callback.OnRequest</SPAN>́A
ςĂ̂ʼn܂B
̃R[obNGǵÃR[obNGgɊYȂA
SĂ̖{̂̃R[ŌĂ܂B
̓IɂNOTIFY SHIORI/2.xATRANSLATE SHIORI/2.6A
TEACH SHIORI/2.4Y܂B
܂gpȂĂяoA̖{̎dlύXɔGgłB
</P><P>
ǂ̂悤ȌĂяom邽߂ɂ́A
<SPAN class="tt">System.Request</SPAN>GgQƂ܂B
̃GgɁA{̂̃R[ނłA
uTEACHvuNOTIFY OtherGhostNamevi[܂B
܂Aڂ͎̐߂ʼn܂A
{̂nwb_́A
<SPAN class="tt">System.Request.*</SPAN>GgQɊi[܂B
܂A{̂ւ̉wb_́A
<SPAN class="tt">System.Response.*</SPAN>GgQɏ݂܂B
ԂXe[^XR[h́A
<SPAN class="tt">System.Response</SPAN>Ggɏ݂܂B
ǂ̂悤ȃwb_邩Aǂ̂悤ȃwb_ԂA
ǂ̂悤ȃXe[^XR[hԂɂẮA
{̎dlQƂĉB
</P><P>
ƂāATEACH SHIORI/2.4ȈՓIɏXNvg܂B
TEACH SHIORI/2.4́AWordwb_ɋPꂪ܂B
̍ۂ́ASentencewb_ɏ܂B
AXe[^XR[hƂ200s܂B
XNvgɂƁÂ悤ɂȂ܂B
</P>
<DIV class="sample">
System.Callback.OnRequest : $(<BR>
if $[ ${System.Request} == "TEACH" ] $(<BR>
setstr @Word ${System.Request.Word};<BR>
pushstr TeachWord ${@Word};<BR>
setstr System.Response.Sentence \0\s[0]${@Word}ˁB\e;<BR>
setstr System.Response 200;<BR>
);<BR>
)<BR>
</DIV>
<A name="systementry"></A>
<H3>8.2. ̑̃VXeGg</H3>
<P>
R[obNGgȊOɂAVXeGg݂܂B
Ɉꗗ܂B
</P>
<DIV align="center">
<TABLE width="80%">
<TR><TD colspan="2" style="background: #ffe0e0">{̂̒ʒm</TD></TR>
<TR><TD class="tt">System.Request.*</TD><TD>NGXgwb_</TD></TR>
<TR><TD colspan="2" style="background: #ffe0e0">{̂ւ̉</TD></TR>
<TR><TD class="tt">System.Response.*</TD><TD>X|Xwb_</TD></TR>
<TR><TD class="tt">System.Response.To</TD><TD>SHIORI/2.3b bS[XgB"stop"őłB</TD></TR>
<TR><TD class="tt">System.Response</TD><TD>SHIORI/2.0 Xe[^XR[h</TD></TR>
<TR><TD colspan="2" style="background: #ffe0e0">̑([hI[)</TD></TR>
<TR><TD class="tt">System.DataPath</TD><TD>shiori.dll݂̑fBNg</TD></TR>
<TR><TD class="tt">System.SecurityLevel</TD><TD>ZLeBx</TD></TR>
</TABLE>
</DIV>
<P>
ɏdvȂ̂́A
<SPAN class="tt">System.Request.*</SPAN>̃NGXgwb_GgQłB
̃GgQ́ASHIORI/2.xASHIORI/3.0ASAORI/1.0ɂāA
{̂Ăwb_ɑΉ܂B
̗ŐƁA
Ⴆu<SPAN class="tt">Reference0: ܂</SPAN>vƂwb_ꍇA
<SPAN class="tt">System.Request.Reference0</SPAN>GgɁA
u܂vƂPZbg邱ƂɂȂ܂B
</P><P>
Ƃ͔ɁA
<SPAN class="tt">System.Response.*</SPAN>GgQ́A
{̂ɕԂX|Xwb_ɑΉ܂B
̓Iɂ́A
Ⴆ<SPAN class="tt">System.Response.Reference0</SPAN>GgɁA
uvƂPZbgƍl܂B
Ɩ{̂ɕԂwb_ɁA
u<SPAN class="tt">Reference0: </SPAN>vƂwb_lj܂B
܂A<SPAN class="tt">System.Response</SPAN>GgɃZbgꂽṔA
{̂ɕԂXe[^XR[hɂȂ܂B
</P>
<P>
NGXgwb_GgAX|Xwb_GgQ́A
{̂ĂăR[obNGg]钼OɁA
xSɓe܂B
</P>
<A name="beshiori"></A>
<H3>8.3. xƂẲؘa</H3>
<P>
xTuVXe̎d͈ꌩGłAvA
u{̂̒ʒmĂIDAoĖ{̂ɕԂvƂłB
ؘaPhase 8Phase 7܂łƔׂƁA
x̎dAgp҂ɂû܂܁vĂ܂B
</P><P>
\Iȗ̓CxgłB
ؘaPhase 8̓CxgA\[X̗vA
NOTIFY̌ĂѕAKISgďKv܂B
{̂ʒmĂID(=CxgA\[X)́A
<SPAN class="tt">System.Request.ID</SPAN>GgɓĂ܂B
gČĂѕ܂B
</P>
<P>
ؘaPhase 7.3.1ƓOŃCxgGgA
\[XGggꍇA
<SPAN class="tt">System.Callback.OnGET</SPAN>GgɎ̂悤ɏ܂B
</P>
<DIV class="sample">
# GET SHIORI/3.0ւ̉<BR>
# CxgA\[XAR~jP[gAetcc<BR>
# Cxǵuevent.<Cxg>vA<BR>
# \[X́uResourece.<\[X>vƂGgĂ<BR>
System.Callback.OnGET: $(<BR>
if $[ $(match_at ${System.Request.ID} On) ] <BR>
${event.${System.Request.ID}}<BR>
else $(<BR>
${resource.${System.Request.ID}}<BR>
)<BR>
</DIV>
<P>
̗ł́AႦ}EX̃_uNbNCxgA
<SPAN class="tt">event.OnMouseDoubleClick</SPAN>GgĂт܂B
܂AႦ瑤́uURLv̗vꍇA
<SPAN class="tt">${resource.sakura.recommendsites}</SPAN>̕]ʂԂ܂B
</P>
<P>
ASHIORI/3.0ł̓Cxgƃ\[Xv́A
{̂̒ʒm`ɍ܂B
ŁAGg]ύXɁA
Lqȑf邱Ƃo܂B
̏ꍇÂ悤ɏ܂B
</P>
<DIV class="sample">
# GET SHIORI/3.0ւ̉<BR>
# CxgA\[XAR~jP[gAetcc<BR>
# ureply.<vĂ鏈>vƂGgĂ<BR>
System.Callback.OnGET : ${reply.${System.Request.ID}}<BR>
</DIV>
<P>
̗ł́AႦ}EX̃_uNbNCxgA
<SPAN class="tt">reply.OnMouseDoubleClick</SPAN>GgĂт܂B
܂AႦ瑤́uURLv̗vꍇA
<SPAN class="tt">${reply.sakura.recommendsites}</SPAN>̕]ʂԂ܂B
</P>
<P>
ŌɁANOTIFY̏̌ĂѕG܂B
NOTIFY̌`̓CxgE\[XvGET̏ꍇƁA
قƂǍ܂B
</P>
<DIV class="sample">
# NOTIFY SHIORI/3.0̏<BR>
# HWndʒmÃS[XgʒmACXg[ς݃S[XgʒmAetcc<BR>
# unotify.<ʒmꂽ>vƂGgĂ<BR>
System.Callback.OnNOTIFY : ${notify.${System.Request.ID}}<BR>
</DIV>
<P>
ႦΑɋÑS[Xg̖ONOTIFYꂽꍇA
<SPAN class="tt">notify.otherghostname<SPAN>GgĂт܂B
</P>
<P>
~hEFAg킸ɉؘagꍇALqKKvłB
Ã~hEFAł́A
x(vOɖ)̋LqA
ɃpbP[WĂ܂B
炩̎A~hEFA̎gp߂܂B
</P>
<A name="besaori">
<H3>8.4. SAORIW[ƂẲؘa</H3>
<P>
ؘaSHIORIKȉAIW[łA
SAORIKiW[ł܂B
SAORIW[ƂĎgƁA
</P>
<UL>
<LI>ؘaPhase 7ڍsہAVXNvgɎg</LI>
<LI>̞xgpĂꍇłAؘa̗~@\g</LI>
</UL>
<P>
Ƃbg܂B
</P>
<P>
ؘaSAORIƂĎgƂA3̂Ƃɒӂ܂B
</P>
<H4>̎</H4>
<P>
ؘaSAORIƂČĂꂽA
<SPAN class="tt">System.Callback.OnSaoriExecute</SPAN>Gg]܂B
̃R[obNGgƓlASĂ̒P]܂B
̎ASAORIW[ɗ^ꂽ́A
<SPAN class="tt">System.Request.*</SPAN>ȉA
<SPAN class="tt">System.Request.Argument0</SPAN>A
<SPAN class="tt">System.Request.Argument1</SPAN>
̃Ggɑ݂܂B
</P><P>
邩m肽ꍇAlisttreeR}hgA
</P>
<DIV class="sample">
listtree arguments System.Request
</DIV>
<P>
ƂāAargumentsGgׂƒm邱Ƃo܂B
</P>
<H4>߂l̈n</H4>
<P>
߂lԂ̓R~jP[gƓlA
<SPAN class="tt">System.Response.*</SPAN>GgQg܂B
SAORIKiɏ]āA߂ĺA
<SPAN class="tt">System.Response.Result</SPAN>ɏ݂܂B
ȉA
<SPAN class="tt">System.Response.Value0</SPAN>A
<SPAN class="tt">System.Response.Value1</SPAN>A
<SPAN class="tt">System.Response.Value2</SPAN>
̃Ggɕ⏕݂܂B
</P>
<H4>Xe[^X</H4>
<P>
߂lԂɂ́A͂ꂾł͕s\łB
<SPAN class="tt">System.Resopose</SPAN>GgɁA
Xe[^XޕKv܂B
̃Xe[^XR[hāA
SAORIW[Ăяo͏̐/sfׁA
K{łB
ȃXe[^XR[h͎̒ʂłB
<P>
<TABLE border="0" cellpadding="2" cellspacing="2" style="margin: 2ex 5% 3ex 5%;">
<TR><TD>200</TD><TD>𐳂A߂l</TD></TR>
<TR><TD>204</TD><TD>͐A߂lȂ</TD></TR>
<TR><TD>400(ȗftHg)</TD><TD>łȂ</TD><TR>
</TABLE>
<P>
ȂA
<SPAN class="tt">System.Callback.OnSaoriExecute</SPAN>̕]ʂ́A
Xe[^XƖWłB
̓_̃R[obNGgƈႢ܂̂ŁAӂKvł
</P>
<DIV class="sample">
System.Callback.OnSaoriExecute : $(<BR>
if $[ ${System.Request.Argument0} == "1" ] $(<BR>
SAORI1;<BR>
) else if $[ ${System.Request.Argument0} == "2" ] $(<BR>
SAORI2;<BR>
);<BR>
<BR>
# SAORI킴킴ɂKR͂Ȃ̂c<BR>
# V@ɌĖႤ߂ɁAĊŋLqB<BR>
# ʂɃGgƂďĂ̖ȂB<BR>
# System.Request.*ɑ݂ÄƂė^KvȂB<BR>
<BR>
=kis<BR>
function SAORI1 $(<BR>
if $[ ${System.Request.Argument1} == "v" ] $(<BR>
# Result̂ݕԂ<BR>
setstr System.Response.Result "ށA낵I";<BR>
setstr System.Response 200;<BR>
) else $(<BR>
# ResultValue*p<BR>
setstr System.Response.Result "v͂ǂI";<BR>
setstr System.Response.Value0 "";<BR>
setstr System.Response.Value1 "s";<BR>
setstr System.Response.Value2 $(date %y%m%d);<BR>
setstr System.Response 200;<BR>
);<BR>
);<BR>
<BR>
function SAORI2 $(<BR>
if $[ ${System.Request.Argument1} == "1" ] $(<BR>
# ResultȂI̗<BR>
setstr System.Response 204;<BR>
) else $(<BR>
# ُI̗<BR>
setstr System.Response 400;<BR>
);<BR>
);<BR>
=end<BR>
</DIV>
<A name="declaresaori"></A>
<H3>8.5. SAORIW[̎gp錾</H3>
<P>
SAORIW[gpۂ́A
uꂩ炱SAORIgvƂgp錾̋LqKvłB
̋LqāA
ؘaSAORIW[ǂݍAǂݍޏ܂B
</P><P>
ؘaPhase 8ȑOł́A
SAORIgp錾<SPAN class="tt">kawari.ini</SPAN>ɋLq܂B
APhase 8<SPAN class="tt">kawari.ini</SPAN>͔p~ɂȂA
gp錾KISŋLq邱ƂɂȂ܂B
</P>
<P>
SAORIW[gp錾́A
<SPAN class="tt">saoriregist</SPAN>R}hg܂B
</P>
<DIV class="sample">
saoriregist SAORIW[ GCAX [IvV]<BR>
</DIV>
<DL>
<DT>SAORIW[(K{)</DT>
<DD>SAORIW[̃t@CLq܂Bgq(u.dllv)܂߂܂B
ؘȃ݂tH_̑pXŋLq܂B</DD>
<DT>GCAX(K{)</DT>
<DD>ۂSAORIW[gpہA
gp郂W[ʂ邽߂̃xłB
SAORIW[gꍇAW[Ƃɕʂ̖OtĂB
܂AW[gꍇAKGCAXKvłB</DD>
<DT>IvV(ȗ\)</DT>
<DD>SAORIW[ǂݍރ^C~Ow肵܂B
u<SPAN class="tt">preload</SPAN>vŒɂɓǂݍ݁A
u<SPAN class="tt">loadoncall</SPAN>vŃW[gp钼Oɓǂݍ݁A
u<SPAN class="tt">noresident</SPAN>vŃW[gp钼Oɓǂݍ݁A
gpɐ藣łB<BR>
ȗꍇAu<SPAN class="tt">loadoncall</SPAN>vƓłB
gpSAORIW[̃}jAɒӏȂꍇA
ʏ̓IvVȗč\܂B</DD>
</DL>
<P>
Ďgp錾ƁAؘaSAORIW[ĂяoƂo܂B
</P>
<A name="callsaori"></A>
<H3>8.6. SAORIW[Ăяo</H3>
<P>
SAORIW[ĂяóA
<SPAN class="tt">callsaori</SPAN>R}hA
<SPAN class="tt">callsaorix</SPAN>R}hg܂B
<SPAN class="tt">callsaori</SPAN>R}hA
<SPAN class="tt">callsaorix</SPAN>R}h́A
ɒ`uGCAXvSAORIW[Ăт܂B
ɁA<SPAN class="tt">music.dll</SPAN>ƂSAORIW[A
uyvƂGCAXŎgp錾Ƃ܂B
</P>
<DIV class="sample">
saoriregist music.dll y<BR>
</DIV>
<P>
SAORIW[̋@\w肵yt@C̍ĐƂA
Đ鉹yt@Cw肷̂ʂł傤B
̏ꍇASAORIW[ɍĐt@C`Kv܂B
b̓sA<SPAN class="tt">music.dll</SPAN>
</P>
<UL>
<LI>1uplayvōĐJnAustopvōĐ~</LI>
<LI>2ĐJn͍Đt@CA~͖</LI>
</UL>
<P>
ƂdlƂ܂B
</P><P>
<SPAN class="tt">music.dll</SPAN>ŁA
u<SPAN class="tt">technopolis.mid</SPAN>vƂyt@CĐꍇA
</P>
<DIV class="sample">
callsaori y play technopolis.mid<BR>
</DIV>
<P>
Ə܂B
<SPAN class="tt">callsaori</SPAN>R}h̃GCAẌ́A
SAORIW[ɈƂēn܂B
</P>
<P>
<SPAN class="tt">callsaorix</SPAN>R}h́A
SAORIW[߂lȊOɁA
lXȏ𑗂Ă^Cv̏ꍇɎgp܂B
ɁAقǂ<SPAN class="tt">music.dll</SPAN>uplayvwꍇA
̂悤ȏ𑗂ĂƂ܂B
</P>
<UL>
<LI>Result: ĐɐuOKv</LI>
<LI>Value0: yt@C̃^Cg</LI>
<LI>Value1: yt@C̃A[eBXg</LI>
<LI>Value2: yt@C̉t(mm:ss`)</LI>
</UL>
<P>
ł́A<SPAN class="tt">callsaorix</SPAN>gāA
yt@Cu<SPAN class="tt">Truth21c.mid</SPAN>vĐ܂B
GCAX<SPAN class="tt">callsaori</SPAN>R}hA
<SPAN class="tt">callsaorix</SPAN>R}hɋʂŎg܂B
</P>
<DIV class="sample">
callsaorix y music.info play Truth21c.mid<BR>
</DIV>
<P>
ŁAGCAX̂́u<SPAN class="tt">music.info</SPAN>v́A
SAORIW[ĂL^ۂ́A
ƂȂGg̖OłB̃Gg̖O͎RɌ߂܂B
̗̏ꍇÂ悤ȃGgɏ݂܂B
</P>
<UL>
<LI>music.info.Value0: "TRUTH(21C Remix)"</LI>
<LI>music.info.Value1: "T-SQUARE plus"</LI>
<LI>music.info.Value2: "05:30"</LI>
<LI>music.info.size: "3"</LI>
<LI>music.info: "SAORI/1.0 200 OK"</LI>
</UL>
<P>
sizeValue邩܂B
</P>
<P>
<SPAN class="tt">callsaori</SPAN>A
<SPAN class="tt">callsaorix</SPAN>͂Ƃɖ߂lԂR}hłB
߂lSAORIW[̕Ԃ<SPAN class="tt">Result</SPAN>wb_łB
</P>
<A name="extension"></A>
<H2>9. p</H2>
<P>
L܂AS[Xg̊{ہA
ؘaPhase 8ł͂ǂ̂悤ɋLq̂A
ďЉ܂B
</P>
<A name="event"></A>
<H3>9.1. Cxg</H3>
<P>
Cxgʒm̍ہA{̂Referencewb_ؘaQƂɂ́A
<SPAN class="tt">${System.Request.Reference0}</SPAN>ȂǁA
ɒGgLqKv܂B
gĂ݂ƁA͕sւłB
ŁAR}hċLqȒPɂꍇl܂B
</P><P>
R}h`ۂ̒ӂłA
XNvgLq][Œ`ĉB
Lq][̃Gg`ŃR}h`ꍇA
R}h̒`́ũGgĂяoāv߂ċ@\܂B
ꍇAR}h͖`RƂȂ܂B
</P><P>
ł́Aۂɒ`Ă݂܂B
</P>
<DIV class="sample">
=kis<BR>
# ReferenceԂR}h "Reference"<BR>
function Reference $(<BR>
# ȂꍇAԂȂ<BR>
if $[ $(size @arg) <= 1 ] $(return);<BR>
<BR>
# System.Request.Reference?Gg̈ڂ̒P<BR>
get System.Request.Reference$@arg[1][0];<BR>
);<BR>
=end<BR>
</DIV>
<P>
̗ł́AReferenceԍReferencewb_ꍇz肵A
get0ԖڂRefernce?QƂĂ܂B
</P>
<A name="communicate"></A>
<H3>9.2. R~jP[g</H3>
<P>
̃S[Xgɘb|鎞́A
<SPAN class="tt">Reference0</SPAN>ɘb|S[XgZbgāA
g[NԂ܂B
<SPAN class="tt">ReferenceN</SPAN>(N0ȏ̐)Ԃɂ́A
<SPAN class="tt">System.Response.ReferenceN</SPAN>GgɒPZbg܂B
ȂA<SPAN class="tt">System.Response</SPAN>Ŏn܂GǵA
R[obNƂɖe܂B
</P>
<DIV class="sample">
sentence : (<BR>
$(setstr System.Response.Reference0 Ŏq)<BR>
\0\s[0][AŎqA邩[B<BR>
\1\s[11]߂ƂAA͋UŎqBςȒ˂邼B\e<BR>
)<BR>
</DIV>
<P>
Ęb|ꂽS[Xgɂ́A
<SPAN class="tt">OnCommunicate</SPAN>Ă܂B
SHIORI/3.0AR~jP[g̓Cxg̈ɂȂ܂B
</P>
<DIV class="sample">
# ubvGg̑Se]A߂l̈GgƂ<BR>
# GgĂяo<BR>
# ߂lȂAcommunicate.unknownGgĂ<BR>
reply.OnCommunicate : $(communicate b ${communicate.unknown})<BR>
</DIV>
<P>
b|ƂƓlA
b|S[Xg<SPAN class="tt">Reference0</SPAN>ɐݒ肵ĉB
</P><P>
ȂAR~jP[gpR}h́A
[U`R}hŎg₷悤bsÔłA
ł͈ԑfɏꍇᎦ܂B
</P><P>
R~jP[g̊{ÍÂ悤ɂȂ܂B
</P>
<OL>
<LI>L[[hGgB
L[[hQ1ɂGgƂBkeyƂB</LI>
<LI>L[[hQɑΉAԎGgB
L[[hQ1ɂGg1ƂBanswerƂB</LI>
<LI><SPAN class="tt">communicate</SPAN>R}hő˂GgA
<SPAN class="tt">com</SPAN>ƂB</LI>
<LI>L[[hAԎ<SPAN class="tt">com</SPAN>Ggɓo^鎞́A
<DIV class="sample">
com : $(<BR>
if $(xargs key matchall ${System.Request.Reference1}) <BR>
answer<BR>
)<BR>
</DIV>
ƏB</LI>
<LI><SPAN class="tt">OnCommunicate</SPAN>CxgŁA
<DIV class="sample">
$(communicate com)<BR>
</DIV>
ƏB</LI>
</OL>
<P>
ȏ܂Ƃ߂܂B
</P>
<DIV class="sample">
# ႦuȂ̖O͉Hvɔ<BR>
com.key.1 : Ȃ , O , H<BR>
com.answer.1 : (<BR>
\0\s[0]̖O${myname}łB\s[5]Ȃ́H\e<BR>
$(setstr System.Response.Reference0 $(Reference 0))<BR>
)<BR>
com.answer.1 : \0\s[4][B\1\s[10]܂A@Ă\e<BR>
com.answer.1 : \0\s[8]cB\1\s[10]B\e<BR>
com : $(<BR>
if $(xargs com.key.1 matchall $(Reference 1))<BR>
com.answer.1<BR>
)<BR>
<BR>
# uvƌƃL<BR>
com.key.2 : , <BR>
com.answer.2 : \0\s[25]cB\1\s[11]Ԃ҂AI\e<BR>
com : $(<BR>
if $(xargs com.key.2 matchall $(Reference 1))<BR>
com.answer.2<BR>
)<BR>
<BR>
# ̃S[XǧĂтɉ<BR>
# uɂڂňꏏɗVڂvɔ<BR>
com.key.3 : ɂڂ , ꏏ , Vڂ<BR>
com.answer.3 : (<BR>
\0\s[5]IÁu${installedghost}vgB\e<BR>
$(setstr System.Response.Reference0 $(Reference 0))<BR>
)<BR>
# S[Xgꗗ<BR>
com.ghost.3 : o , ܂ , , 肱<BR>
com.ghost.3 : Ŏq , , ޗ , q<BR>
# findgAׂS[Xgǂ<BR>
com : $(<BR>
if $[ $(find com.ghost.3 $(Reference 0)) >= 0 &&<BR>
$(xargs com.key.3 matchall $(Reference 1)) ]<BR>
com.answer.3<BR>
)<BR>
<BR>
# S[XgɎ̖OĂꂽƂɔ<BR>
com.key.4 : ${myname}<BR>
com.answer.4 : \0\s[5]cc$(Reference 0)lI\e$(setstr FlagMode happy)<BR>
com.ghost.4 : ܂<BR>
com : $(<BR>
if $[ $(Reference 0) == ${com.ghost.4} &&<BR>
$(xargs com.key.4 matchall $(Reference 1)) ]<BR>
com.answer.4<BR>
)<BR>
<BR>
# L[[hO̔<BR>
com.unknown : \0\s[4]߂A悭ȂB\e<BR>
com.unknown : \0\s[8]ȃv[B\1\s[10]cB\e<BR>
com.unknown : (<BR>
\0\s[0]cꂩH\e<BR>
$(setstr System.Response.Reference0 $(Reference 0))<BR>
)<BR>
<BR>
# R~jP[gCxgcomGgo^<BR>
reply.OnCommunicate : $(communicate com ${com.unknown})<BR>
</DIV>
<A name="randomtalk"></A>
<H3>9.3. g[N</H3>
<P>
IɃg[Nɂ́A
<SPAN class="tt">OnSecondChange</SPAN>CxgĝʓIłB
قږb邱̃Cxg邽тɓŃJE^1₵A
JE^w̒lɂȂA
<SPAN class="tt">OnSecondChange</SPAN>Ńg[NԂAƂ@łB
</P><P>
̂ƂӂKvȂ̂́A
<SPAN class="tt">OnSecondChange</SPAN>ŏĂƂA
Ƃ_łB
<SPAN class="tt">OnSecondChange</SPAN>Ńg[N̂Ă邩ۂ́A
Reference31/0Ŕł܂B
</P><P>
ȏ܂āAȒPȎg[NXNvggł݂܂B
`IRA
g[N<SPAN class="tt">sentence</SPAN>Ggɂ̂Ƃ܂B
</P>
<DIV class="sample">
System.Callback.OnGET : ${reply.${System.Request.ID}}<BR>
<BR>
# g[N(b)<BR>
# ̃GgɎw肵ԊԊuŔb<BR>
interval : 90<BR>
<BR>
# g[NJE^<BR>
# ̃JE^g[NƓȂ甭b<BR>
talkcounter : 0<BR>
<BR>
# OnSecondChangeCxg<BR>
# Reference31ȂAg[NԂĂv<BR>
reply.OnSecondChange : $(<BR>
if ${System.Request.Reference3} $(<BR>
inc talkcounter;<BR>
# JE^g[NȏɂȂĂ甭bA<BR>
# JE^Zbg<BR>
if $[ ${talkcounter} >= ${interval} ] $(<BR>
entry sentence;<BR>
setstr talkcounter 0;<BR>
);<BR>
);<BR>
)<BR>
</DIV>
</BODY>
</HTML>
|