/usr/share/clips/clips.hlp is in clips-common 6.24-3ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 | 0MBEGIN-ENTRY-MAIN
HELP_USAGE FUNCTION_SUMMARY
RELEASE_NOTES COMMAND_SUMMARY
CONSTRUCT_SUMMARY INTEGRATED_EDITOR
END-ENTRY
1IBEGIN-ENTRY-HELP_USAGE
HELP_USAGE
H.2 Using the Help Facility
The help facility displays menus of topics and prompts the user for a choice.
It then references the help file for that information. The help facility can
be called with or without a command-line topic.
Syntax:
(help [<path>])
where <path> is the full path leading to a topic in the help tree. For
example, for information on defrule syntax, the user would type:
(help construct_summary defrule).
The help function has no return value.
Each element or field in the path is delimited by white space, and the help
facility is not case sensitive. In addition, the entire name of a field does
not need to be specified. Only enough characters to distinguish the field
from other choices in the menu are necessary (if there is a conflict, the help
facility will pick the first one in the list). For instance, (help con def)
would be sufficient for the above example.
A few special fields can be used while in the help facility.
^ Branch up one level.
? When specified at the end of a path, this forces a display of the
current menu, even on branch-ups.
<nil> Giving no topic field will branch up one level.
A branch-up from the MAIN topic root node implies an exit from help.
By default, the help facility comes up in the MAIN topic root menu and the
user may make a choice as described above. The prompt line always displays
the name of the current menu. The help facility will branch through the help-
tree until instructed to exit by a branch-up from the top level. The level
always is reset to the MAIN topic upon exit from the help facility.
The first call to the help facility will take longer than successive calls
while the system loads help information into an internal lookup table. All
other calls to the help facility are very fast.
The help facility reads help information from a file during execution. Users
may wish to change the location of the help file to meet the configuration of
their system. The help-path function was provided to allow this.
Syntax:
(help-path [<help-file-name>])
If no argument is specified, the function displays the name of the current
help file. If an argument is specified, the help facility will use the new
file name for future help references during this CLIPS session. To change the
location of the help file permanently, a change must be made in the setup.h
file, then CLIPS must be recompiled. The help-path function has no return
value.
END-ENTRY
1MBEGIN-ENTRY-RELEASE_NOTES
RELEASE_NOTES
The release notes help section contains information about new features
and where to get technical support.
Subtopics:
NEW_FEATURES SUPPORT_INFORMATION
V6.24 V6.23
V6.22 V6.21
END-ENTRY
2IBEGIN-ENTRY-NEW_FEATURES
RELEASE_NOTES
NEW_FEATURES
Version 6.2 of CLIPS contains two major enhancements. First, CLIPS now
provides a mechanism which allows an embedded application to create
multiple environments into which programs can be loaded. Second, an
improved Windows 2000/XP CLIPS interface is now available and the
Macintosh CLIPS interface has been enhanced to support MacOS X. For a
detailed listing of differences between the 6.x releases of CLIPS,
refer to appendix B of the Basic Programming Guide and appendix C of
the Advanced Programming Guide.
END-ENTRY
2IBEGIN-ENTRY-V6.21
RELEASE_NOTES
V6.21
* Bug Fixes - The following bugs were fixed by the 6.21 release:
* The C GetDefglobalValue macro did not have the correct number
of arguments.
* The C RtnArgCount macro did not have the correct number of
arguments.
* Erroneous error generated for object pattern under some
circumstances.
* The C Save macro did not have the correct number of arguments.
* The C Eval and Build functions did not have the correct number
of arguments.
* The progn$ index variable did not always return the correct
value.
* The member$ function did not always return the correct value.
* C++ style comments in the code caused errors when using strict
ANSI C compilation.
* The C LoadFactsFromString function did not have the correct
number of arguments.
* Prior bug fix to the PutFactSlot C function prevented memory
associated with the fact to be garbage collected after the
fact had been retracted. The original bug is now fixed through
a new API which allows embedded programs to temporarily disable
garbage collection. See section 1.4 of The Advanced Programming
Guide for more details.
END-ENTRY
2IBEGIN-ENTRY-V6.22
RELEASE_NOTES
V6.22
* Bug Fixes - The following bugs were fixed by the 6.22 release:
* Numerous fixes for functions and macros that did not accept
the correct number of arguments as specified in the Advanced
Programming Guide. The following functions and macros were
corrected: Agenda, BatchStar, EnvGetActivationSalience,
EnvBatchStar, EnvFactDeftemplate, EnvFactExistp, EnvFactList,
EnvFactSlotNames, EnvGetNextInstanceInClassAndSubclasses,
EnvLoadInstancesFromString, EnvRestoreInstancesFromString,
EnvSetOutOfMemoryFunction, FactDeftemplate, FactExistp,
FactList, FactSlotNames, GetNextInstanceInClassAndSubclasses,
LoadInstancesFromString, RestoreInstancesFromString, and
SetOutOfMemoryFunction.
END-ENTRY
2IBEGIN-ENTRY-V6.23
RELEASE_NOTES
V6.23
* Fact-Set Query Functions - Six new functions similar to the instance
set query functions have been added for determining and performing
actions on sets of facts that satisfy user-defined queries (see
section 12.9.12 of the Basic Programming Guide): any-factp, find-fact,
find-all-facts, do-for-fact, do-for-all-facts, and
delayed-do-for-all-facts. The GetNextFactInTemplate function (see
section 4.4.17 of the Advanced Programming Guide) allows iteration
from C over the facts belonging to a specific deftemplate.
* Bug Fixes - The following bugs were fixed by the 6.23 release:
* Passing the wrong number of arguments to a deffunction through
the funcall function could cause unpredictable behavior
including memory corruption.
* A large file name (at least 60 characters) passed into the fetch
command causes a buffer overrun.
* A large file name (at least 60 characters) passed into the
constructs-to-c command causes a buffer overrun.
* A large defclass or defgeneric name (at least 500 characters)
causes a buffer overrun when the profile-info command is called.
* A large module or construct name (at least 500 characters)
causes a buffer overrun when the get-<construct>-list command is
called.
* The FalseSymbol and TrueSymbol constants were not defined as
described in the Advanced Programming Guide. These constants
have have now been defined as macros so that their corresponding
environment companion functions (EnvFalseSymbol and EnvTrueSymbol)
could be defined. See the Advanced Programming Guide for more
details.
* The slot-writablep function returns TRUE for slots having
initialize-only access.
* Files created by the constructs-to-c function for use in a
run-time program generate compilation errors.
* Command and Function Changes - The following commands and functions
have been enhanced:
* funcall (see section 12.7.10 of the Basic Programming Guide).
Multifield arguments are no longer expanded into multiple
arguments before being passed to the target function of the
funcall. The expand$ function can be placed around an argument
to revert to the old behavior.
* Compiler Support - The following compilers are now supported. See
the Interfaces Guide for more details.
* Metrowerks CodeWarrior 9.4 for Mac OS X and Windows.
* Xcode 1.2 for Mac OS X.
END-ENTRY
2IBEGIN-ENTRY-V6.24
RELEASE_NOTES
V6.24
* Allowed Classes Constraint Attribute - The allowed-classes constraint
attribute allows a slot containing an instance value to be restricted
to the specified list of classes (see section 11.2 of the Basic
Programming Guide).
* New Functions and Commands - Several new functions and commands
have been added. They are:
* deftemplate-slot-allowed-values (see section 12.8.2 of the BPG)
* deftemplate-slot-cardinality (see section 12.8.3 of the BPG)
* deftemplate-slot-defaultp (see section 12.8.4 of the BPG)
* deftemplate-slot-default-value (see section 12.8.5 of the BPG)
* deftemplate-slot-existp (see section 12.8.6 of the BPG)
* deftemplate-slot-multip (see section 12.8.7 of the BPG)
* deftemplate-slot-names (see section 12.8.8 of the BPG)
* deftemplate-slot-range (see section 12.8.9 of the BPG)
* deftemplate-slot-singlep (see section 12.8.10 of the BPG)
* deftemplate-slot-type (see section 12.8.11 of the BPG)
* get-char (see section 12.4.2.9 of the BPG)
* get-region (see section 13.15.2.3 of the BPG)
* ppfact (see section 13.4.6 of the BPG)
* read-number (see section 12.4.2.10 of the BPG)
* set-locale (see section 12.4.2.11 of the BPG)
* slot-allowed-classes (see section 12.16.1.27 of the BPG)
* Command and Function Changes The following commands and functions
have been enhanced:
* format (see section 12.4.2.6 of the Basic Programming Guide). The
formatting of printed numbers can be changed to use a native locale
with the set-locale function. The documentation has been updated to
include the effect of the precision argument on the d, g, o, and x
format flags.
* Behavior Changes - The following changes have been made to behavior:
* The message displayed when a construct is redefined and compilations
are being watched is now more prominent.
* Bug Fixes - The following bugs were fixed by the 6.24 release:
* The DescribeClass macros were incorrectly defined.
* The sort function leaks memory when called with a multifield value
of length zero.
* Link error occurred for the SlotExistError function when OBJECT_SYSTEM
is set to 0 in setup.h.
* An error when calling the Eval function causes a subsequent call to
DeallocateEnvironmentData to fail.
* Loading a binary instance file from a run-time program caused a bus
error.
* Incorrect activations could occur with the exists CE.
* Compilation errors occurred when compiling CLIPS source as C++ files.
* The AssignFactSlotDefaults function did not correctly handle defaults
for multifield slots.
* The slot-default-value function crashed when no default existed for a
slot (the ?NONE value was specified).
* CLIPS crashed on AMD64 processor in the function used to generate hash
values for integers.
* A syntax error was not generated for the last deffunction or defmethod
in a file if it was missing the final closing right parenthesis.
* Compiler Support - The following compilers are now supported. See
the Interfaces Guide for more details.
* Metrowerks CodeWarrior 9.6 for Mac OS X.
* Xcode 2.3 for Mac OS X.
* Microsoft Visual C++ .NET 2003 for Windows.
END-ENTRY
2IBEGIN-ENTRY-SUPPORT_INFORMATION
RELEASE_NOTES
SUPPORT_INFORMATION
CLIPS executables, documentation, and source code are available for
download from http://sourceforge.net/project/showfiles.php?group_id=215471&package_id=260062
Questions regarding CLIPS can be sent via electronic mail to
clipsYYYY@swbell.net where YYYY is the current year (for example, 2004).
Include the words 'CLIPS USER' in the subject line.
An electronic conferencing facility, sponsored by Distributed Computing
Systems (http://www.discomsys.com), is also available to CLIPS users.
Subscribers to this facility may send questions, observations, answers,
editorials, etc., in the form of electronic mail to the conference. All
subscribers will have a copy of these messages reflected back to them at
their respective electronic mail addresses. To subscribe, send a single
line message to clips-request@discomsys.com containing the word
"subscribe". The subject field is ignored but the address found in the
ÔReply:Õ, ÔReply to:Õ, or ÔFrom:Õ field will be entered in the
distribution list. Upon subscription you will receive a mail message
instructing you how to participate in the conference from that point
forward. Save this mail message. You may need the instructions later if
you wish to unsubscribe from the list server.
To send your own messages to members of the conference you need simply
address your mail to clips@discomsys.com. Your message will be reflected
to all other members of the conference.
If you wish to remove yourself from the conference and discontinue
receiving mail simply send a message to clips-request@discomsys.com with
"unsubscribe" as the message text. If you want to unsubscribe using
another email account than the one you subscribed with, then append the
original subscribing email account to the text of the message. For
example: "unsubscribe john.doe@account.net". Do not send unsubscribe
messages to clips@discomsys.com! This sends a mail message to every
member of the list. If you need to get in contact with the list
administrator (for trouble unsubscribing or other questions about the
list), send email to clips-owner@discomsys.com.
A CLIPS World Wide Web page can be accessed using the URL
http://clipsrules.sourceforge.net/
Usenet users can also find information and post questions about CLIPS to the
comp.ai.shells news group.
The CLIPS Developers' Forum, a thread-based message board, is available
at http://www.cpbinc.com/clips. This board exists to provide a site for
discussion of research, development, and implementation of the CLIPS
expert systems and related technologies. The hosting services for this
web page are provided by CPB, Inc. Questions pertaining to this forum
can be sent to clips@cpbinc.com.
END-ENTRY
1MBEGIN-ENTRY-CONSTRUCT_SUMMARY
CONSTRUCT_SUMMARY
This section gives a general overview of the available CLIPS constructs.
Subtopics:
DEFRULE DEFCLASS
DEFFACTS DEFINSTANCES
DEFTEMPLATE DEFMESSAGE-HANDLER
DEFGLOBAL DEFMODULE
DEFFUNCTION CONSTRAINT_ATTRIBUTES
DEFGENERIC/DEFMETHOD
END-ENTRY
2IBEGIN-ENTRY-DEFRULE
CONSTRUCT_SUMMARY
DEFRULE
One of the primary methods of representing knowledge in CLIPS is a rule.
A rule is a collection of conditions and the actions to be taken if the
conditions are met. The developer of an expert system defines the rules
which describe how to solve a problem. Rules execute (or fire) based on
the existence or non-existence of facts. CLIPS provides the mechanism
(the inference engine) which attempts to match the rules to the current
state of the system (as represented by the fact-list) and applies the
actions.
(defrule <rule-name> [<comment>]
[<declaration>]
<conditional-element>*
=>
<action>*)
DECLARATIONS
------------------------------------------------------------------
<declaration> ::= (declare <rule-property>+)
<rule-property> ::= (salience <integer-expression>) |
(auto-focus <boolean-symbol>)
CONDITIONAL ELEMENTS
------------------------------------------------------------------
<conditional-element> ::= <pattern-CE> | <assigned-pattern-CE> |
<not-CE> | <and-CE> | <or-CE> |
<logical-CE> | <test-CE> |
<exists-CE> | <forall-CE>
<test-CE> ::= (test <function-call>)
<not-CE> ::= (not <conditional-element>)
<and-CE> ::= (and <conditional-element>+)
<or-CE> ::= (or <conditional-element>+)
<exists-CE> ::= (exists <conditional-element>+)
<forall-CE> ::= (forall <conditional-element>
<conditional-element>+)
<logical-CE> ::= (logical <conditional-element>+)
PATTERN CONDITIONAL ELEMENT
------------------------------------------------------------------
<assigned-pattern-CE> ::= ?<variable-symbol> <- <pattern-CE>
<pattern-CE> ::= <ordered-pattern-CE> |
<template-pattern-CE> |
<object-pattern-CE>
<ordered-pattern-CE> ::= (<symbol> <constraint>*)
<template-pattern-CE> ::= (<deftemplate-name <LHS-slot>*)
<object-pattern-CE> ::= (object <attribute-constraint>*)
<attribute-constraint> ::= (is-a <constraint>) |
(name <constraint>) |
(<slot-name> <constraint>*)
<LHS-slot> ::= <single-field-LHS-slot> |
<multifield-LHS-slot>
<LHS-slot> ::= <single-field-LHS-slot> |
<multifield-LHS-slot>
<single-field-LHS-slot> ::= (<slot-name> <constraint>)
<multifield-LHS-slot> ::= (<slot-name> <constraint>*)
PATTERN CONSTRAINTS
------------------------------------------------------------------
<constraint> ::= ? | $? | <connected-constraint>
<connected-constraint>
::= <single-constraint> |
<single-constraint> & <connected-constraint> |
<single-constraint> | <connected-constraint>
<single-constraint> ::= <term> | ~<term>
<term> ::= <constant> |
<single-field-variable> |
<multifield-variable> |
:<function-call> |
=<function-call>
END-ENTRY
2IBEGIN-ENTRY-DEFFACTS
CONSTRUCT_SUMMARY
DEFFACTS
With the deffacts construct, a list of facts can be defined which are
automatically asserted whenever the reset command is performed.
Facts asserted through deffacts may be retracted or pattern matched like
any other fact. The initial fact-list, including any defined deffacts,
is always reconstructed after a reset command.
The syntax of the deffacts construct is:
(deffacts <deffacts-name> [<comment>]
<RHS-pattern>*)
END-ENTRY
2IBEGIN-ENTRY-DEFTEMPLATE
CONSTRUCT_SUMMARY
DEFTEMPLATE
Ordered facts encode information positionally. To access that information,
a user must know not only what data is stored in a fact but which field
contains the data. Non-ordered (or deftemplate) facts provide the user
with the ability to abstract the structure of a fact by assigning names
to each field found within the fact. The deftemplate construct is
used to create a template which can then be used by non-ordered facts to
access fields of the fact by name. The deftemplate construct is analogous
to a record or structure definition in programming languages such as Pascal
and C.
The syntax of the deftemplate construct is:
(deftemplate <deftemplate-name> [<comment>]
<slot-definition>*)
<slot-definition> ::= <single-slot-definition> |
<multislot-definition>
<single-slot-definition> ::= (slot <slot-name>
<template-attribute>*)
<multislot-definition> ::= (multislot <slot-name>
<template-attribute>*)
<template-attribute> ::= <default-attribute> |
<constraint-attribute>
<default-attribute>
::= (default ?DERIVE | ?NONE | <expression>*) |
(default-dynamic <expression>*)
END-ENTRY
2IBEGIN-ENTRY-DEFGLOBAL
CONSTRUCT_SUMMARY
DEFGLOBAL
With the defglobal construct, global variables can be defined, set, and
accessed within the CLIPS environment. Global variables can be accessed
as part of the pattern matching process, but changing them does not invoke
the pattern matching process. The bind function is used to set the value
of global variables.
The syntax of the defglobal construct is:
<defglobal-construct> ::= (defglobal [<defmodule-name>]
<global-assignment>*)
<global-assignment> ::= <global-variable> = <expression>
<global-variable> ::= ?*<symbol>*
END-ENTRY
2IBEGIN-ENTRY-DEFFUNCTION
CONSTRUCT_SUMMARY
DEFFUNCTION
With the deffunction construct, new functions may be defined directly in
CLIPS. Deffunctions are equivalent in use to other functions in CLIPS.
The only differences between user-defined external functions and
deffunctions are that deffunctions are written in CLIPS and executed
by CLIPS interpretively and user-defined external functions are written
in an external language, such as C, and executed by CLIPS directly.
Also, deffunctions allow the addition of new functions without having to
recompile and relink CLIPS.
The syntax of the deffunction construct is:
(deffunction <name> [<comment>]
(<regular-parameter>* [<wildcard-parameter>])
<action>*)
<regular-parameter> ::= <single-field-variable>
<wildcard-parameter> ::= <multifield-variable>
END-ENTRY
2IBEGIN-ENTRY-DEFGENERIC/DEFMETHOD
CONSTRUCT_SUMMARY
DEFGENERIC/DEFMETHOD
With the defgeneric/defmethod constructs, new generic functions may be written
directly in CLIPS. Generic functions are similar to deffunctions because
they can be used to define new procedural code directly in CLIPS, and they can
be called like any other function. However, generic functions are much more
powerful because they can do different things depending on the types
(or classes) and number of their arguments. For example, a '+' operator could
be defined which performs concatenation for strings but still performs
arithmetic addition for numbers. Generic functions are comprised of
multiple components called methods, where each method handles different
cases of arguments for the generic function. A generic function which has
more than one method is said to be overloaded.
A generic function is comprised of a header (similar to a forward declaration)
and zero or more methods. A generic function header can either be explicitly
declared by the user or implicitly declared by the definition of at least one
method. The defgeneric construct is used to specify the generic function
header,
and the defmethod construct is used for each of the generic function's
methods.
The syntax of the defgeneric/defmethod constructs is:
(defgeneric <name> [<comment>])
(defmethod <name> [<index>] [<comment>]
(<parameter-restriction>* [<wildcard-parameter>])
<action>*)
<parameter-restriction> ::= <single-field-variable> |
(<single-field-variable> <type>* [<query>])
<wildcard-parameter> ::= <multifield-variable>
<type> ::= <class-name>
<query> ::= <global-variable> | <function-call>
END-ENTRY
2IBEGIN-ENTRY-DEFCLASS
CONSTRUCT_SUMMARY
DEFCLASS
A defclass is a construct for specifying the properties (slots) of a class of
objects. A defclass consists of four elements: 1) a name, 2) a list of
superclasses from which the new class inherits slots and message-handlers,
3) a specifier saying whether or not the creation of direct instances of the
new class is allowed and 4) a list of slots specific to the new class. All
user-defined classes must inherit from at least one class, and to this end
COOL provides predefined system classes for use as a base in the derivation
of new classes.
Any slots explicitly given in the defclass override those gotten from
inheritance. COOL applies rules to the list of superclasses to generate a
class precedence list for the new class. Facets further describe slots.
Some examples of facets include: default value, cardinality, and types of
access allowed.
The syntax of the defclass construct is:
(defclass <name> [<comment>]
(is-a <superclass-name>+)
[<role>]
[<pattern-match-role>]
<slot>*
<handler-documentation>*)
<role> ::= (role concrete | abstract)
<pattern-match-role>
::= (pattern-match reactive | non-reactive)
<slot> ::= (slot <name> <facet>*) |
(single-slot <name> <facet>*) |
(multislot <name> <facet>*)
<facet> ::= <default-facet> | <storage-facet> |
<access-facet> | <propagation-facet> |
<source-facet> | <pattern-match-facet> |
<visibility-facet> | <create-accessor-facet>
<override-message-facet> | <constraint-attributes>
<default-facet> ::=
(default ?DERIVE | ?NONE | <expression>*) |
(default-dynamic <expression>*)
<storage-facet> ::= (storage local | shared)
<access-facet>
::= (access read-write | read-only | initialize-only)
<propagation-facet> ::= (propagation inherit | no-inherit)
<source-facet> ::= (source exclusive | composite)
<pattern-match-facet>
::= (pattern-match reactive | non-reactive)
<visibility-facet> ::= (visibility private | public)
<create-accessor-facet>
::= (create-accessor ?NONE | read | write | read-write)
<override-message-facet>
::= (override-message ?DEFAULT | <message-name>)
<handler-documentation>
::= (message-handler <name> [<handler-type>])
<handler-type> ::= primary | around | before | after
END-ENTRY
2IBEGIN-ENTRY-DEFINSTANCES
CONSTRUCT_SUMMARY
DEFINSTANCES
Similar to deffacts, the definstances construct allows the specification of
instances which will be created every time the reset command is executed.
On every reset all current instances receive a delete message, and the
equivalent of a make-instance function call is made for every instance
specified in definstances constructs.
The syntax of the definstances construct is:
<definstances-construct>
::= (definstances <definstances-name> [<comment>]
<instance-template>*)
<instance-template> ::= (<instance-definition>)
<instance-definition> ::= <instance-name-expression> of
<class-name-expression>
<slot-override>*
<slot-override> ::= (<slot-name-expression> <expression>*)
END-ENTRY
2IBEGIN-ENTRY-DEFMESSAGE-HANDLER
CONSTRUCT_SUMMARY
DEFMESSAGE-HANDLER
Objects are manipulated by sending them messages via the function send. The
result of a message is a useful return-value or side-effect. A
defmessage-handler is a construct for specifying the behavior of a class of
objects in response to a particular message. The implementation of a message
is made up of pieces of procedural code called message-handlers (or handlers
for short). Each class in the class precedence list of an object's class can
have handlers for a message. In this way, the object's class and all its
superclasses share the labor of handling the message. Each class's handlers
handle the part of the message which is appropriate to that class. Within a
class, the handlers for a particular message can be further subdivided into
four types or categories: primary, before, after and around.
A defmessage-handler is comprised of seven elements: 1) a class name to which
to attach the handler (the class must have been previously defined), 2) a
message name to which the handler will respond, 3) an optional type (the
default is primary), 4) an optional comment, 5) a list of parameters that will
be passed to the handler during execution, 6) an optional wildcard parameter
and 7) a series of expressions which are executed in order when the handler
is called. The return-value of a message-handler is the evaluation of the
last
expression in the body.
The syntax of the defmessage-handler construct is:
(defmessage-handler <class-name> <message-name>
[<handler-type>] [<comment>]
(<parameter>* [<wildcard-parameter>])
<action>*)
<handler-type> ::= around | before | primary | after
<parameter> ::= <single-field-variable>
<wildcard-parameter> ::= <multifield-variable>
END-ENTRY
2IBEGIN-ENTRY-DEFMODULE
CONSTRUCT_SUMMARY
DEFMODULE
CLIPS provides support for the modular development and execution of knowledge
bases with the defmodule construct. CLIPS modules allow a set of constructs to
be grouped together such that explicit control can be maintained over
restricting the access of the constructs by other modules. This type of
control is similar to global and local scoping used in languages such as C or
Ada. By restricting access to deftemplate and defclass constructs, modules can
function as blackboards, permitting only certain facts and instances to be
seen by other modules. Modules are also used by rules to provide execution
control.
The syntax of the defmodule construct is:
<defmodule-construct> ::= (defmodule <module-name> [<comment>]
<port-spec>*)
<port-specification> ::= (export <port-item>) |
(import <module-name> <port-item>)
<port-item> ::= ?ALL |
?NONE |
<port-construct> ?ALL |
<port-construct> ?NONE |
<port-construct> <construct-name>+
<port-construct> ::= deftemplate | defclass |
defglobal | deffunction | defgeneric
END-ENTRY
2IBEGIN-ENTRY-CONSTRAINT_ATTRIBUTES
CONSTRUCT_SUMMARY
CONSTRAINT_ATTRIBUTES
Constraint attributes can be associated with deftemplate and defclass slots so
that type checking can be performed on slot values when template facts and
instances are created. The constraint information is also analyzed for the
patterns on the LHS of a rule to determine if the specified constraints
prevent the rule from ever firing.
The syntax for constraint attributes is:
<constraint-attribute> ::= <type-attribute>Ê|
<allowed-constant-attribute> |
<range-attribute> |
<cardinality-attribute>
<default-attribute>
<type-attribute> ::= (type <type-specification>)
<type-specification> ::= <allowed-type>+ | ?VARIABLE
<allowed-type> ::= SYMBOL | STRING | LEXEME |
INTEGER | FLOAT | NUMBER |
INSTANCE-NAME | INSTANCE-ADDRESS |
INSTANCE |
EXTERNAL-ADDRESS | FACT-ADDRESS
<allowed-constant-attribute>
::= (allowed-symbolsÊ<symbol-list>) |
(allowed-strings <string-list>) |
(allowed-lexemes <lexeme-list> |
(allowed-integersÊ<integer-list>) |
(allowed-floatsÊ<float-list>) |
(allowed-numbersÊ<number-list>) |
(allowed-instance-names <instance-list>) |
(allowed-valuesÊ<value-list>) |
<symbol-list> ::= <symbol>+ | ?VARIABLE
<string-list> ::= <string>+ | ?VARIABLE
<lexeme-list> ::= <lexeme>+ | ?VARIABLE
<integer-list> ::= <integer>+ | ?VARIABLE
<float-list> ::= <float>+ | ?VARIABLE
<number-list> ::= <number>+ | ?VARIABLE
<instance-name-list> ::= <instance-name>+ | ?VARIABLE
<value-list> ::= <constant>+ | ?VARIABLE
<range-attribute> ::= (range <range-specification>
<range-specification>)
<range-specification> ::= <number> | ?VARIABLE
<cardinality-attribute>
::= (cardinality <cardinality-specification>
<cardinality-specification>)
<cardinality-specification> ::= <integer> | ?VARIABLE
END-ENTRY
1MBEGIN-ENTRY-FUNCTION_SUMMARY
FUNCTION_SUMMARY
This section gives a general overview of the available CLIPS functions.
Subtopics:
PREDICATE_FUNCTIONS DEFRULE_FUNCTIONS
MULTIFIELD_FUNCTIONS AGENDA_FUNCTIONS
STRING_FUNCTIONS DEFGLOBAL_FUNCTIONS
IO_FUNCTIONS DEFFUNCTION_FUNCTIONS
MATH_FUNCTIONS GENERIC_FUNCTION_FUNCTIONS
PROCEDURAL_FUNCTIONS COOL_FUNCTIONS
MISCELLANEOUS_FUNCTIONS DEFMODULE_FUNCTIONS
DEFTEMPLATE_FUNCTIONS SEQUENCE_EXPANSION_FUNCTIONS
FACT_FUNCTIONS
END-ENTRY
2IBEGIN-ENTRY-PREDICATE_FUNCTIONS
FUNCTION_SUMMARY
PREDICATE_FUNCTIONS
The following functions perform predicate tests and return
either TRUE or FALSE.
NUMBERP: Returns TRUE for integers and floats.
(numberp <expression>)
FLOATP: Returns TRUE for floats.
(floatp <expression>)
INTEGERP: Returns TRUE for integers.
(integerp <expression>)
LEXEMEP: Returns TRUE for symbols and strings.
(numberp <expression>)
STRINGP: Returns TRUE for strings.
(stringp <expression>)
SYMBOLP: Returns TRUE for symbols.
(symbolp <expression>)
EVENP: Returns TRUE for even numbers.
(evenp <expression>)
ODDP: Returns TRUE for odd numbers.
(oddp <expression>)
MULTIFIELDP: Returns TRUE for multifield values.
(multifieldp <expression>)
POINTERP: Returns TRUE for external addresses.
(pointerp <expression>)
EQ: Returns TRUE if the 1st argument is equal in type and value
to all subsequent arguments.
(eq <expression> <expression>+)
NEQ: Returns TRUE if the 1st argument is not equal in type and
value to all subsequent arguments.
(neq <expression> <expression>+)
=: Returns TRUE if the 1st argument is equal in value
to all subsequent arguments.
(= <numeric-expression> <numeric-expression>+)
<>: Returns TRUE if the 1st argument is not equal in value
to all subsequent arguments.
(<> <numeric-expression> <numeric-expression>+)
>: Returns TRUE if each argument is greater in value than the
argument following it.
(> <numeric-expression> <numeric-expression>+)
>=: Returns TRUE if each argument is greater than or equal to
in value than the argument following it.
(>= <numeric-expression> <numeric-expression>+)
<: Returns TRUE if each argument is less in value than the
argument following it.
(> <numeric-expression> <numeric-expression>+)
<=: Returns TRUE if each argument is less than or equal to
in value than the argument following it.
(<= <numeric-expression> <numeric-expression>+)
AND: Returns TRUE if all arguments evaluate to a non-FALSE value.
(and <expression>+)
OR: Returns TRUE if any argument evaluates to a non-FALSE value.
(or <expression>+)
NOT: Returns TRUE if its only argument evaluates to FALSE.
(not <expression>)
END-ENTRY
2IBEGIN-ENTRY-MULTIFIELD_FUNCTIONS
FUNCTION_SUMMARY
MULTIFIELD_FUNCTIONS
The following functions operate on multifield values.
CREATE$: Appends its arguments together to create a multifield value.
(create$ <expression>*)
NTH$: Returns the specified field of a multifield value.
(nth$ <integer-expression> <multifield-expression>)
MEMBER$: Returns the position of a single-field value within a multifield
value.
(member$ <single-field-expression> <multifield-expression>)
SUBSETP: Returns TRUE if the first argument is a subset of the second
argument.
(subsetp <multifield-expression> <multifield-expression>)
DELETE$: Deletes the specified range from a multifield value.
(delete$ <multifield-expression>
<begin-integer-expression> <end-integer-expression>)
EXPLODE$: Creates a multifield value from a string.
(explode$ <string-expression>)
IMPLODE$: Creates a string from a multifield value.
(implode$ <multifield-expression>)
SUBSEQ$: Extracts the specified range from a multifield value.
(subseq$ <multifield-expression>
<begin-integer-expression> <end-integer-expression>)
REPLACE$: Replaces the specified range of a multifield value with a
set of values.
(replace$ <multifield-expression>
<begin-integer-expression> <end-integer-expression>
<single-or-multifield-expression>+)
INSERT$: Inserts one or more values in a multifield.
(insert$ <multifield-expression> <integer-expression>
<single-or-multifield-expression>+)
FIRST$: Returns the first field of a multifield.
(first$ <multifield-expression>)
REST$: Returns all but the first field of a multifield.
(rest$ <multifield-expression>)
LENGTH$: Returns the number of fields in a multifield value.
(length$ <multifield-expression>)
DELETE-MEMBER$: Deletes specific values contained within a multifield
value and returns the modified multifield value.
(delete-member$ <multifield-expression> <expression>+)
REPLACE-MEMBER$: Replaces specific values contained within a multifield
value and returns the modified multifield value.
(replace-member$ <multifield-expression> <substitute-expression>
<search-expression>+)
END-ENTRY
2IBEGIN-ENTRY-STRING_FUNCTIONS
FUNCTION_SUMMARY
STRING_FUNCTIONS
The following functions perform operations that are related to strings.
STR-CAT: Concatenates its arguments to form a single string.
(str-cat <expression>*)
SYM-CAT: Concatenates its arguments to form a single symbol.
(sym-cat <expression>*)
SUB-STRING: Retrieves a subportion from a string.
(sub-string <integer-expression> <integer-expression> <string-expression>)
STR-INDEX: Returns the position of the first argument within the second
argument.
(str-index <lexeme-expression> <lexeme-expression>)
EVAL: Evaluates a string as though it were entered at the command prompt.
Only allows functions to be evaluated.
(eval <lexeme-expression>)
BUILD: Evaluates a string as though it were entered at the command prompt.
Only allows constructs to be evaluated.
(build <lexeme-expression>)
UPCASE: Converts lowercase characters in a string or symbol to uppercase.
(upcase <lexeme-expression>)
LOWCASE: Converts uppercase characters in a string or symbol to lowercase.
(lowcase <lexeme-expression>)
STR-COMPARE: Lexigraphically compares two strings.
(str-compare <lexeme-expression> <lexeme-expression>)
STR-LENGTH: Returns the length of a string.
(str-length <lexeme-expression>)
CHECK-SYNTAX: Allows the text representation of a construct or function
call to be checked for syntax and semantic errors.
(check-syntax <construct-or-function-string>)
STRING-TO-FIELD: Parses a string and converts its contents to a primitive
data type.
(string-to-field <string-or-symbol-expression>)
END-ENTRY
2IBEGIN-ENTRY-IO_FUNCTIONS
FUNCTION_SUMMARY
IO_FUNCTIONS
The following functions perform I/O operations.
OPEN: Opens a file.
(open <file-name> <logical-name> [<mode>])
<mode> ::= "r" | "w" | "r+" | "a" | "wb"
CLOSE: Closes a file.
(close [<logical-name>])
PRINTOUT: Sends unformated output to the specified logical name.
(printout <logical-name> <expresion>*)
READ: Reads a single-field value from the specified logical name.
(read [<logical-name>])
READLINE: Reads an entire line as a string from the specified
logical name.
(readline [<logical-name>])
FORMAT: Sends formated output to the specified logical name.
(format <logical-name> <string-expression> <expression>*)
RENAME: Changes the name of a file.
(rename <old-file-name> <new-file-name>)
REMOVE: Deletes a file.
(remove <file-name>)
GET-CHAR: Allows a single character to be retrieved from a
logical name.
(get-char [<logical-name>])
READ-NUMBER: Allows a user to input a single number using the
localized format.
(read-number [<logical-name>])
SET-LOCALE: Allows a locale to be specified for the numeric format
behavior of the format and read-number functions.
(set-locale [<locale-string>])
END-ENTRY
2MBEGIN-ENTRY-MATH_FUNCTIONS
FUNCTION_SUMMARY
MATH_FUNCTIONS
The math functions have been divided into three broad categories. The
basic math functions are always provided with CLIPS. The trigonometric
and extended math functions are included as part of the extended math
package.
Subtopics:
BASIC_MATH_FUNCTIONS EXTENDED_MATH_FUNCTIONS
TRIGONOMETRIC_FUNCTIONS
END-ENTRY
3IBEGIN-ENTRY-BASIC_MATH_FUNCTIONS
FUNCTION_SUMMARY
MATH_FUNCTIONS
BASIC_MATH_FUNCTIONS
The following functions perform basic mathematical operations.
+: Returns the sum of its arguments.
(+ <numeric-expression> <numeric-expression>+)
-: Returns the first argument minus all subsequent arguments.
(- <numeric-expression> <numeric-expression>+)
*: Returns the product of its arguments.
(* <numeric-expression> <numeric-expression>+)
/: Returns the first argument divided by all subsequent arguments.
(/ <numeric-expression> <numeric-expression>+)
DIV: Returns the first argument divided by all subsequent arguments
using integer division.
(div <numeric-expression> <numeric-expression>+)
MAX: Returns the value of its largest numeric argument.
(max <numeric-expression>+)
MIN: Returns the value of its smallest numeric argument.
(min <numeric-expression>+)
ABS: Returns the absolute value of its only argument.
(abs <numeric-expression>)
FLOAT: Converts its only argument to a float.
(float <numeric-expression>)
INTEGER: Converts its only argument to an integer.
(integer <numeric-expression>)
END-ENTRY
3IBEGIN-ENTRY-TRIGONOMETRIC_FUNCTIONS
FUNCTION_SUMMARY
MATH_FUNCTIONS
TRIGONOMETRIC_FUNCTIONS
The following trigonometric functions take one numeric argument
and return a float. The argument is expected to be in radians.
These functions are part of the extended math package.
FUNCTION RETURNS
----------------------------------------
acos arccosine
acosh hyperbolic arccosine
acot arccotangent
acoth hyperbolic arccotangent
acsc arccosecant
acsch hyperbolic arccosecant
asec arcsecant
asech hyperbolic arcsecant
asin arcsine
asinh hyperbolic arcsine
atan arctangent
atanh hyperbolic arctangent
cos cosine
cosh hyperbolic cosine
cot cotangent
coth hyperbolic tangent
csc cosecant
csch hyperbolic cosecant
sec secant
sech hyperbolic secant
sin sine
sinh hyperbolic sine
tan tangent
tanh hyperbolic tangent
END-ENTRY
3IBEGIN-ENTRY-EXTENDED_MATH_FUNCTIONS
FUNCTION_SUMMARY
MATH_FUNCTIONS
EXTENDED_MATH_FUNCTIONS
The following functions perform extended mathematical operations
and are included as part of the extended math package.
DEG-GRAD: Converts its only argument from degrees to gradients.
(deg-grad <numeric-expression>)
DEG-RAD: Converts its only argument from degrees to radians.
(deg-rad <numeric-expression>)
GRAD-DEG: Converts its only argument from gradients to degrees.
(grad-deg <numeric-expression>)
RAD-DEG: Converts its only argument from radians to degrees.
(rad-deg <numeric-expression>)
PI: Returns the value of pi.
(pi)
SQRT: Returns the square root of its only argument.
(sqrt <numeric-expression>)
**: Raises its first argument to the power of its second argument.
(** <numeric-expression> <numeric-expression>)
EXP: Raises the value e to the power of its only argument.
(exp <numeric-expression>)
LOG: Returns the logarithm base e of its only argument.
(log <numeric-expression>)
LOG10: Returns the logarithm base 10 of its only argument.
(log10 <numeric-expression>)
ROUND: Rounds its argument toward the closest integer or negative
infinity if exactly between two integers.
(round <numeric-expression>)
MOD: Returns the remainder of the result of dividing its first argument
by its second argument (assuming that the result of division must
be an integer).
(mod <numeric-expression> <numeric-expression>)
END-ENTRY
2IBEGIN-ENTRY-PROCEDURAL_FUNCTIONS
FUNCTION_SUMMARY
PROCEDURAL_FUNCTIONS
The following are functions which provide procedural programming
capabilities as found in languages such as Pascal, C, and Ada.
BIND: Binds a variable to a new value.
(bind <variable> <expression>*)
IF: Allows conditional execution of a group of actions.
(if <expression> then <action>* [else <action>*])
WHILE: Allows conditional looping.
(while <expression> [do] <action>*)
LOOP-FOR-COUNT: Allows simple iterative looping.
(loop-for-count <range-spec> [do] <action>*)
<range-spec> ::= <end-index> |
(<loop-variable> [<start-index> <end-index>])
<start-index> ::= <integer-expression>
<end-index> ::= <integer-expression>
PROGN: Evaluates all arguments and returns the value of the last
argument evaluated.
(progn <expression>*)
PROGN$: Performs a set of actions for each field of a multifield value.
(progn$ <list-spec> <expression>*)
<list-spec> ::= <multifield-expression> |
(<list-variable> <multifield-expression>)
RETURN: Immediately terminates the currently executing deffunction,
generic function method, message-handler, defrule RHS, or
certain instance set query functions and if a value is
specified, returns this value as the result of the executing
construct.
(return [<expression>])
BREAK: Immediately terminates the currently iterating while loop,
progn execution, or certain instance set query functions.
(break)
SWITCH: Allows a particular group of actions to be performed based
on a specified value.
(switch <test-expression>
<case-statement>*
[<default-statement>])
<case-statement> ::= (case <comparison-expression> then <action>*)
<default-statement> ::= (default <action>*)
END-ENTRY
2IBEGIN-ENTRY-MISCELLANEOUS_FUNCTIONS
FUNCTION_SUMMARY
MISCELLANEOUS_FUNCTIONS
The following are additional functions for use within CLIPS.
GENSYM: Returns a special sequenced symbol.
(gensym)
GENSYM*: Returns a special unique sequenced symbol.
(gensym*)
SETGEN: Sets the starting number used by gensym and gensym*.
(setgen <integer-expression>)
RANDOM: Returns a "random" integer value.
(random [<start-integer-expression> <end-integer-expression>])
SEED: Seeds the random number generator used by random.
(seed <integer-expression>)
TIME: Returns a float representing the elapsed seconds since
the system reference time.
(time)
LENGTH: Returns an integer for the number of fields in a multifield value
or the length in characters of a string or symbol.
(length <lexeme-or-multifield-expression>)
GET-FUNCTION_RESTRICTIONS: Returns the restriction string associated with
a CLIPS or user defined function.
(get-function-restrictions <function-name>)
SORT: Allows a list of values to be sorted based on a user specified
comparison function.
(sort <comparison-function-name> <expression>*)
FUNCALL: Constructs a function call from its arguments and then
evaluates the function call.
(funcall (function-name> <expression>*)
TIMER: Returns the number of seconds elapsed evaluating a series of
expressions.
(timer <expression>*)
END-ENTRY
2IBEGIN-ENTRY-DEFTEMPLATE_FUNCTIONS
The following functions provide ancillary capabilities for the deftemplate
construct.
DEFTEMPLATE-MODULE: Returns the module in which the specified deftemplate is
defined.
(deftemplate-module <deftemplate-name>)
DEFTEMPLATE-SLOT-ALLOWED-VALUES: Returns a multifield containing the allowed
values for a deftemplate slot.
(deftemplate-slot-allowed-values <deftemplate-name> <slot-name>)
DEFTEMPLATE-SLOT-CARDINALITY: Returns a multifield containing the minimum and
maximum cardinality allowed for a multifield slot.
(deftemplate-slot-cardinality <deftemplate-name> <slot-name>)
DEFTEMPLATE-SLOT-DEFAULTP: Returns either static, dynamic, or FALSE to indicate
whether the deftemplate slot has a default.
(deftemplate-slot-defaultp <deftemplate-name> <slot-name>)
DEFTEMPLATE-SLOT-DEFAULT-VALUE: Returns the default value for the deftemplate
slot.
(deftemplate-slot-default-value <deftemplate-name> <slot-name>)
DEFTEMPLATE-SLOT-EXISTP: Returns TRUE if the specified deftemplate slot exists,
otherwise FALSE.
(deftemplate-slot-existp <deftemplate-name> <slot-name>)
DEFTEMPLATE-SLOT-MULTIP: Returns TRUE if the specified deftemplate slot is a
multifield slot, otherwise FALSE.
(deftemplate-slot-multip <deftemplate-name> <slot-name>)
DEFTEMPLATE-SLOT-NAMES: Returns the slot names associated with the deftemplate
in a multifield value.
(deftemplate-slot-names <deftemplate-name>)
DEFTEMPLATE-SLOT-RANGE: Returns a multifield containing the minimum and
maximum numeric range allowed for a slot.
(deftemplate-slot-range <deftemplate-name> <slot-name>)
DEFTEMPLATE-SLOT-SINGLEP: Returns TRUE if the specified deftemplate slot is a
single-field slot, otherwise FALSE.
(deftemplate-slot-singlep <deftemplate-name> <slot-name>)
DEFTEMPLATE-SLOT-TYPES: Returns a multifield containing the primitive types
allowed for a slot.
(deftemplate-slot-types <deftemplate-name> <slot-name>)
GET-DEFTEMPLATE-LIST: Returns the list of all deftemplates in the specified
module (or the current module if unspecified).
(get-deftemplate-list [<module-name>])
END-ENTRY
2IBEGIN-ENTRY-FACT_FUNCTIONS
The following actions are used for assert, retracting, and modifying facts.
ASSERT: Adds a fact to the fact-list.
(assert <RHS-pattern>+)
RETRACT: Removes a fact from the fact-list.
(retract <retract-specifier>+ | *)
<retract-specifier> ::= <fact-specifier> | <integer-expression>
MODIFY: Modifies a deftemplate fact in the fact-list.
(modify <fact-specifier> <RHS-slot>*)
DUPLICATE: Duplicates a deftemplate fact in the fact-list.
(duplicate <fact-specifier> <RHS-slot>*)
ASSERT-STRING: Converts a string into a fact and asserts it.
(assert-string <string-expression>)
FACT-INDEX: Returns the fact index of a fact address.
(fact-index <fact-address>)
FACT-EXISTP: Returns TRUE if the fact specified by its fact-index or
fact-address arguments exists, otherwise FALSE.
(fact-existp <fact-address-or-index>)
FACT-RELATION: Returns the deftemplate (relation) name associated with
the fact.
(fact-relation <fact-address-or-index>)
FACT-SLOT-NAMES: Returns the slot names associated with the fact.
(fact-slot-names <fact-address-or-index>)
FACT-SLOT-VALUE: Returns the value of the specified slot from the
specified fact.
(fact-slot-value <fact-address-or-index> <slot-name>)
GET-FACT-LIST: Returns a multifield containing the list of visible facts.
(get-fact-list [<module-name>])
END-ENTRY
2IBEGIN-ENTRY-DEFFACTS_FUNCTIONS
The following functions provide ancillary capabilities for the deffacts
construct.
GET-DEFFACTS-LIST: Returns the list of all deffacts in the specified
module (or the current module if unspecified).
(get-deffacts-list [<module-name>])
DEFFACTS-MODULE: Returns the module in which the specified deffacts is
defined.
(deffacts-module <deffacts-name>)
END-ENTRY
2IBEGIN-ENTRY-DEFRULE_FUNCTIONS
The following functions provide ancillary capabilities for the defrule
construct.
GET-DEFRULE-LIST: Returns the list of all defrules in the specified
module (or the current module if unspecified).
(get-defrule-list [<module-name>])
DEFRULE-MODULE: Returns the module in which the specified defrule is
defined.
(defrule-module <defrule-name>)
END-ENTRY
2IBEGIN-ENTRY-AGENDA_FUNCTIONS
The following functions provide ancillary capabilities for manipulating the
agenda.
GET-FOCUS: Returns the module name of the current focus.
(get-focus)
GET-FOCUS-STACK: Returns all of the module names in the focus stack as a
multifield value.
(get-focus-stack)
POP-FOCUS: Removes the current focus from the focus stack and returns the
module name of the current focus.
(pop-focus)
END-ENTRY
2IBEGIN-ENTRY-DEFGLOBAL_FUNCTIONS
The following functions provide ancillary capabilities for the defglobal
construct.
GET-DEFGLOBAL-LIST: Returns the list of all defglobals in the specified
module (or the current module if unspecified).
(get-defglobal-list [<module-name>])
DEFGLOBAL-MODULE: Returns the module in which the specified defglobal is
defined.
(defglobal-module <defglobal-name>)
END-ENTRY
2IBEGIN-ENTRY-DEFFUNCTION_FUNCTIONS
The following functions provide ancillary capabilities for the deffunction
construct.
GET-DEFFUNCTION-LIST: Returns the list of all deffunctions in the specified
module (or the current module if unspecified).
(get-deffunction-list [<module-name>])
DEFFUNCTION-MODULE: Returns the module in which the specified deffunction
is defined.
(deffunction-module <deffunction-name>)
END-ENTRY
2IBEGIN-ENTRY-GENERIC_FUNCTION_FUNCTIONS
FUNCTION_SUMMARY
GENERIC_FUNCTION_FUNCTIONS
The following functions provide ancillary capabilities for generic
function methods.
GET-DEFGENERIC-LIST: Returns the list of all defgenerics in the specified
module (or the current module if unspecified).
(get-defgeneric-list [<module-name>])
DEFGENERIC-MODULE: Returns the module in which the specified defgeneric
is defined.
(defgeneric-module <defgeneric-name>)
GET-DEFMETHOD-LIST: Returns the list of all defmethods in the current
module (or just the methods associated with the
specified defgeneric).
(get-defmethod-list [<defgeneric-name>])
TYPE: Returns a symbol which is the name of the type (or class)
of its of argument.
(type <expression>)
NEXT-METHODP: If called from a method for a generic function, the function
next-methodp will return the symbol TRUE if there is another
method shadowed by the current one. Otherwise, the function
will return the symbol FALSE.
(next-methodp)
CALL-NEXT-METHOD: Calls the next shadowed method.
(call-next-method)
OVERRIDE-NEXT-METHOD: Calls the next shadowed method allowing new
arguments to be provided.
(override-next-method <expression>*)
CALL-SPECIFIC-METHOD: Calls a particular method of a generic function without
regards to method precedence.
(call-specific-method <generic-function> <method-index> <expression>*)
GET-METHOD-RESTRICTIONS: Returns a multifield value containing information
about the restrictions for the specified method.
(get-method-restrictions <generic-function-name> <method-index>)
END-ENTRY
2MBEGIN-ENTRY-COOL_FUNCTIONS
FUNCTION_SUMMARY
COOL_FUNCTIONS
The functions manipulating the CLIPS Object-Oriented Language (COOL)
are divided into five categories.
Subtopics:
CLASS_FUNCTIONS INSTANCE_SLOT_FUNCTIONS
INSTANCE_MANIPULATION_FUNCTIONS MESSAGE-HANDLER_FUNCTIONS
DEFINSTANCES_FUNCTIONS INSTANCE_PREDICATE_FUNCTIONS
END-ENTRY
3IBEGIN-ENTRY-CLASS_FUNCTIONS
FUNCTION_SUMMARY
COOL_FUNCTIONS
CLASS_FUNCTIONS
The following functions are used with classes.
GET-DEFCLASS-LIST: Returns the list of all defclasses in the specified
module (or the current module if unspecified).
(get-defclass-list [<module-name>])
DEFCLASS-MODULE: Returns the module in which the specified defclass
is defined.
(defclass-module <defclass-name>)
CLASS-EXISTP: Returns TRUE if the specified class is defined, FALSE otherwise.
(class-existp <class-name>)
SUPERCLASSP: Returns TRUE if the first class is a superclass of
the second class, FALSE otherwise.
(superclassp <class1-name> <class2-name>)
SUBCLASSP: Returns TRUE if the first class is a subclass of
the second class, FALSE otherwise.
(subclassp <class1-name> <class2-name>)
SLOT-EXISTP: Returns TRUE if the specified slot is present in the class,
FALSE otherwise. If the inherit keyword is specified, then
the slot may be inherited.
(slot-existp <class-name> <slot-name> [inherit])
SLOT-WRITABLEP: Returns TRUE if the specified slot is writable,
otherwise FALSE.
(slot-writablep <class-name> <slot-name>)
SLOT-INITABLEP: Returns TRUE if the specified slot is initializable,
otherwise FALSE.
(slot-initablep <class-name> <slot-name>)
SLOT-PUBLICP: Returns TRUE if the specified slot is public,
otherwise FALSE.
(slot-initablep <class-name> <slot-name>)
SLOT-DIRECT-ACCESSP: Returns TRUE if the specified slot can be accessed
directly, otherwise FALSE.
(slot-direct-accessp <class-name> <slot-name>)
MESSAGE-HANDLER-EXISTP: Returns TRUE if the specified message-handler is
defined (directly, not by inheritance) for the
class, FALSE otherwise.
(message-handler-existp <class-name> <handler-name> [<handler-type>])
<handler-type> ::= around | before | primary | after
CLASS-ABSTRACTP: Returns TRUE if the specified class is abstract,
FALSE otherwise.
(class-abstractp <class-name>)
CLASS-REACTIVEP: Returns TRUE if the specified class is reactive,
FALSE otherwise.
(class-reactivep <class-name>)
CLASS-SUPERCLASSES: Returns the names of the direct superclasses of a class in
a multifield variable. If the optional "inherit" argument
is given, indirect superclasses are also included.
(class-superclasses <class-name> [inherit])
CLASS-SUBCLASSES: Returns the names of the direct subclasses of a class in a
multifield variable. If the optional "inherit" argument is
given, indirect subclasses are also included.
(class-subclasses <class-name> [inherit])
CLASS-SLOTS: Returns the names of the explicitly defined slots of a class in
a multifield variable. If the optional inherit keyword is
given, inherited slots are also included.
(class-slots <class-name> [inherit])
GET-DEFMESSAGE-HANDLER-LIST: Returns the class names, message names, and
message types of the message-handlers directly
attached to a class in a multifield variable. If
the optional inherit keyword is given, inherited
message-handlers are also included.
(get-defmessage-handler-list <class-name> [inherit])
SLOT-FACETS: Returns the facet values for the specified slot of a class in a
multifield value.
(slot-facets <class-name> <slot-name>)
SLOT-SOURCES: Returns the names of the classes which provide facets for a
slot of a class in a multifield variable.
(slot-sources <class-name> <slot-name>)
SLOT-TYPES: Returns the names of the primitive types allowed for a slot
in a multifield variable.
(slot-types <class-name> <slot-name>)
SLOT-CARDINALITY: Returns the minimum and maximum number of fields allowed
for a multislot in a multifield variable.
(slot-cardinality <class-name> <slot-name>)
SLOT-ALLOWED-VALUES: Returns the allowed values for a slot in a
multifield value.
(slot-allowed-values <class-name> <slot-name>)
SLOT-RANGE: Returns the minimum and maximum numeric values allowed
for a slot.
(slot-range <class-name> <slot-name>)
SLOT-DEFAULT-VALUE: Returns the default value associated with a slot.
(slot-default-value <class-name> <slot-name>)
SET-CLASS-DEFAULTS-MODE: Sets the defaults mode used when classes are
defined.
(set-class-defaults-mode <mode>)
<mode> ::= convenience | conservation
GET-CLASS-DEFAULTS-MODE: Returns the current defaults mode used when
classes are defined.
(get-class-defaults-mode)
SLOT-ALLOWED-CLASSES: Returns the allowed classes for a slot in a
multifield value.
(slot-allowed-classes <class-name> <slot-name>)
END-ENTRY
3IBEGIN-ENTRY-MESSAGE-HANDLER_FUNCTIONS
FUNCTION_SUMMARY
COOL_FUNCTIONS
MESSAGE-HANDLER_FUNCTIONS
The following functions are used with message-handlers.
NEXT-HANDLERP: Returns TRUE if there is another message-handler available
for execution, FALSE otherwise.
(next-handlerp)
CALL-NEXT-HANDLER: Calls the next shadowed handler.
(call-next-handler)
OVERRIDE-NEXT-HANDLER: Calls the next shadowed handler and allows the
arguments to be changed.
(override-next-handler <expression>*)
END-ENTRY
3IBEGIN-ENTRY-DEFINSTANCES_FUNCTIONS
FUNCTION_SUMMARY
COOL_FUNCTIONS
DEFINSTANCES_FUNCTIONS
The following functions are used with definstances.
GET-DEFINSTANCES-LIST: Returns the list of all definstances in the specified
module (or the current module if unspecified).
(get-definstances-list [<module-name>])
DEFINSTANCES-MODULE: Returns the module in which the specified definstance
is defined.
(definstances-module <definstances-name>)
END-ENTRY
3IBEGIN-ENTRY-INSTANCE_MANIPULATION_FUNCTIONS
FUNCTION_SUMMARY
COOL_FUNCTIONS
INSTANCE_MANIPULATION_FUNCTIONS
The following manipulation functions are used with instances.
INIT-SLOTS: Implements the init message-handler attached to the class
USER. This function should never be called directly unless
an init message-handler is being defined such that the one
attached to USER will never be called.
(init-slots)
UNMAKE-INSTANCE: Deletes the specified instance by sending it
the delete message.
(unmake-instance <instance-expression> | *)
DELETE-INSTANCE: Deletes the active instance when called from within
the body of a message-handler.
(delete-instance)
CLASS: Returns a symbol which is the name of the class of its argument.
(class <object-expression>)
INSTANCE-NAME: Returns a symbol which is the name of its instance argument.
(instance-name <instance-expression>)
INSTANCE-ADDRESS: Returns the address of its instance argument.
(instance-address <instance-expression>)
SYMBOL-TO-INSTANCE-NAME: Converts a symbol to an instance name.
(symbol-to-instance-name <symbol-expression>)
INSTANCE-NAME-TO-SYMBOL: Converts an instance name to a symbol.
(instance-name-to-symbol <instance-name-expression>)
END-ENTRY
3IBEGIN-ENTRY-INSTANCE_PREDICATE_FUNCTIONS
FUNCTION_SUMMARY
COOL_FUNCTIONS
INSTANCE_PREDICATE_FUNCTIONS
The following predicate functions are used with instances.
INSTANCEP: Returns TRUE if its argument is an instance name or instance
address, FALSE otherwise.
(instancep <expression>)
INSTANCE-ADDRESSP: Returns TRUE if its argument is an instance address,
FALSE otherwise.
(instance-addressp <expression>)
INSTANCE-NAMEP: Returns TRUE if its argument is an instance name,
FALSE otherwise.
(instance-namep <expression>)
INSTANCE-EXISTP: Returns TRUE if the specified instance exists,
FALSE otherwise.
(instance-existp <instance-expression>)
END-ENTRY
3IBEGIN-ENTRY-INSTANCE_SLOT_FUNCTIONS
FUNCTION_SUMMARY
COOL_FUNCTIONS
INSTANCE_SLOT_FUNCTIONS
The following functions are used to manipulate instance slots.
DYNAMIC-GET: Returns the value of the specified slot of the active instance.
(dynamic-get <slot-name-expression>)
DYNAMIC-PUT: Sets the value of the specified slot of the active instance.
(put <slot-name-expression> <expression>*)
SLOT-REPLACE$: Allows the replacement of a range of fields in a multifield
slot value.
(slot-replace$ <instance-expression> <mv-slot-name>
<range-begin> <range-end> <expression>+)
DIRECT-SLOT-REPLACE$: Allows the replacement of a range of fields in a
multifield slot value of the active instance from
within a message-handler.
(direct-slot-replace$ <mv-slot-name> <range-begin> <range-end> <expression>+)
SLOT-INSERT$: Allows the insertion of one or more values in a multifield
slot value.
(slot-insert$ <instance-expression> <mv-slot-name> <index> <expression>+)
DIRECT-SLOT-INSERT$: Allows the insertion of one or more values in a
multifield slot value of the active instance from
within a message-handler.
(direct-slot-insert$ <mv-slot-name> <index> <expression>+)
SLOT-DELETE$: Allows the deletion of a range of fields in a multifield
slot value.
(slot-delete$ <instance-expression> <mv-slot-name> <range-begin> <range-end>)
DIRECT-SLOT-DELETE$: Allows the deletion of a range of fields in a multifield
slot value of the active instance from within a
message-handler.
(direct-slot-delete$ <mv-slot-name> <range-begin> <range-end>)
END-ENTRY
2IBEGIN-ENTRY-DEFMODULE_FUNCTIONS
The following functions provide ancillary capabilities for the defmodule
construct.
GET-DEFMODULE-LIST: Returns the list of all defmodules.
(get-defmodule-list)
END-ENTRY
2IBEGIN-ENTRY-SEQUENCE_EXPANSION_FUNCTIONS
The following functions provide ancillary capabilities for the sequence
expansion operator.
EXPAND$: When used inside of a function call, expands its arguments
as separate arguments to the function. The $ operator is
merely a shorthand notation for the expand$ function call.
(expand$ <multifield-expression>)
SET-SEQUENCE-OPERATOR-RECOGNITION: Sets the sequence operator recognition
behavior.
(set-sequence-operator-recognition <boolean-expression>)
GET-SEQUENCE-OPERATOR-RECOGNITION: Returns the current value of the sequence
operator recognition behavior.
(get-sequence-operator-recognition)
END-ENTRY
1MBEGIN-ENTRY-COMMAND_SUMMARY
COMMAND_SUMMARY
This section gives a general overview of the available CLIPS commands.
Subtopics:
ENVIRONMENT_COMMANDS DEFFUNCTION_COMMANDS
DEBUGGING_COMMANDS GENERIC_FUNCTION_COMMANDS
DEFTEMPLATE_COMMANDS COOL_COMMANDS
FACT_COMMANDS DEFMODULE_COMMANDS
DEFFACTS_COMMANDS MEMORY_COMMANDS
DEFRULE_COMMANDS TEXT_PROCESSING_COMMANDS
AGENDA_COMMANDS PROFILING_COMMANDS
DEFGLOBAL_COMMANDS
END-ENTRY
2IBEGIN-ENTRY-ENVIRONMENT_COMMANDS
COMMAND_SUMMARY
ENVIRONMENT_COMMANDS
The following commands control the CLIPS environment.
LOAD: Loads constructs from a file.
(load <file-name>)
LOAD*: Loads constructs from a file without displaying informational
messages.
(load* <file-name>)
SAVE: Saves constructs to a file.
(save <file-name>)
BLOAD: Loads a binary image from a file.
(bload <file-name>)
BSAVE: Saves a binary image to a file.
(bsave <file-name>)
CLEAR: Clears the CLIPS environment.
(clear)
EXIT: Exits the CLIPS environment.
(exit)
RESET: Resets the CLIPS environment.
(reset)
BATCH: Executes commands from a file.
(batch <file-name>)
BATCH*: Executes commands from a file. Unlike the batch command,
evaluates all of the commands in the specified file before
returning rather than replacing standard input.
(batch* <file-name>)
OPTIONS: Lists the settings of CLIPS compiler flags.
(options)
SYSTEM: Appends its arguments together to form a command which is
then sent to the operating system.
(system <lexeme-expression>*)
SET-AUTO-FLOAT-DIVIDEND: Sets the auto-float dividend behaviour.
(set-auto-float-dividend <boolean-expression>)
GET-AUTO-FLOAT-DIVIDEND: Returns the current value of the auto-float
dividend behaviour.
(get-auto-float-dividend)
SET-DYNAMIC-CONSTRAINT-CHECKING: Sets the dynamic constraint checking
behaviour.
(set-dynamic-constraint-checking <boolean-expression>)
GET-DYNAMIC-CONSTRAINT-CHECKING: Returns the current value of the dynamic
constraint checking behaviour.
(get-dynamic-constraint-checking)
SET-STATIC-CONSTRAINT-CHECKING: Sets the static constraint checking
behaviour.
(set-static-constraint-checking <boolean-expression>)
GET-STATIC-CONSTRAINT-CHECKING: Returns the current value of the static
constraint checking behaviour.
(get-static-constraint-checking)
APROPOS: Displays all symbols currently defined in CLIPS which contain
a specified substring
(apropos <lexeme>)
END-ENTRY
2IBEGIN-ENTRY-DEBUGGING_COMMANDS
COMMAND_SUMMARY
DEBUGGING_COMMANDS
The following commands control the CLIPS debugging features.
DRIBBLE-ON: Sends trace information to the specified file.
(dribble-on <file-name>)
DRIBBLE-OFF: Closes the trace file.
(dribble-off)
WATCH: Enables trace information for the specified item.
(watch <watch-item>)
<watch-item> ::= all |
compilations |
statistics |
focus |
messages |
deffunctions <deffunction-name>* |
globals <global-name>* |
rules <rule-name>* |
activations <rule-name>* |
facts <deftemplate-name>* |
instances <class-name>* |
slots <class-name>* |
message-handlers <handler-spec-1>* [<handler-spec-2>]) |
generic-functions <generic-name>* |
methods <method-spec-1>* [<method-spec-2>]
<handler-spec-1> ::= <class-name> <handler-name> <handler-type>
<handler-spec-2> ::= <class-name> [<handler-name> [<handler-type>]]
<method-spec-1> ::= <generic-name> <method-index>
<method-spec-2> ::= <generic-name> [<method-index>]
UNWATCH: Disables trace information for the specified item.
(unwatch <watch-item>)
LIST-WATCH-ITEMS: Displays the current state of watch items.
(list-watch-items [<watch-item>])
END-ENTRY
2IBEGIN-ENTRY-DEFTEMPLATE_COMMANDS
COMMAND_SUMMARY
DEFTEMPLATE_COMMANDS
The following commands manipulate deftemplates.
PPDEFTEMPLATE: Displays the text of a given deftemplate.
(ppdeftemplate <deftemplate-name>)
LIST-DEFTEMPLATES: Displays the list of all deftemplates in the specified
module (or the current module if none specified).
(list-deftemplates [<module-name>])
UNDEFTEMPLATE: Deletes a deftemplate.
(undeftemplate <deftemplate-name>)
END-ENTRY
2IBEGIN-ENTRY-FACT_COMMANDS
COMMAND_SUMMARY
FACT_COMMANDS
The following commands display information about facts.
FACTS: Display the facts in the fact-list.
(facts [<module-name>]
[<start-integer-expression>
[<end-integer-expression>
[<max-integer-expression>]]])
LOAD-FACTS: Asserts facts loaded from a file.
(load-facts <file-name>)
SAVE-FACTS: Saves facts to a file.
(save-facts <file-name> [<save-scope> <deftemplate-names>*])
<save-scope> ::= visible | local
DEPENDENCIES: Lists the partial matches from which a fact or
instance receives logical support.
(dependencies <fact-or-instance-specifier>)
DEPENDENTS: Lists all facts or instances which receive logical support
from a fact or instance.
(dependents <fact-or-instance-specifier>)
SET-FACT-DUPLICATION: Sets the fact duplication behavior.
(set-fact-duplication <boolean-expression>)
GET-FACT-DUPLICATION: Returns the fact duplication behavior.
(get-fact-duplication)
PPFACT: Displays the text of a given fact.
(ppfact <fact-specifier> [<logical-name> [<ignore-defaults-flag>]])
END-ENTRY
2IBEGIN-ENTRY-DEFFACTS_COMMANDS
COMMAND_SUMMARY
DEFFACTS_COMMANDS
The following commands manipulate deffacts.
PPDEFFACTS: Displays the text of a given deffacts.
(ppdeffacts <deffacts-name>)
LIST-DEFFACTS: Displays the list of all deffacts in the specified
module (or the current module if none specified).
(list-deffacts [<module-name>])
UNDEFFACTS: Deletes a deffacts.
(undeffacts <deffacts-name>)
END-ENTRY
2IBEGIN-ENTRY-DEFRULE_COMMANDS
COMMAND_SUMMARY
DEFRULE_COMMANDS
The following commands manipulate defrules.
PPDEFRULE: Displays the text of a given rule.
(ppdefrule <rule-name>)
LIST-DEFRULES: Displays the list of all defrules in the specified
module (or the current module if none specified).
(list-defrules [<module-name>])
UNDEFRULE: Deletes a defrule.
(undefrule <rule-name>)
MATCHES: Displays the facts which match the patterns of a rule.
(matches <rule-name>)
SET-BREAK: Sets a breakpoint on a rule.
(set-break <rule-name>)
REMOVE-BREAK: Removes a breakpoint on a rule.
(remove-break [<rule-name>])
SHOW-BREAKS: Displays all rules having breakpoints.
(show-breaks [<module-name>])
REFRESH: Places all current activations of a rule on the agenda.
(refresh <rule-name>)
SET-INCREMENTAL-RESET: Sets the incremental reset behavior.
(set-incremental-reset <boolean-expression>)
GET-INCREMENTAL-RESET: Returns the incremental reset behavior.
(get-incremental-reset)
END-ENTRY
2IBEGIN-ENTRY-AGENDA_COMMANDS
COMMAND_SUMMARY
AGENDA_COMMANDS
The following commands manipulate the agenda.
AGENDA: Displays all activations on the agenda of the specified module.
(agenda [<module-name>])
RUN: Starts execution of rules. Rules fire until agenda is empty or
the number of rule firings limit specified by the first argument
is reached (infinity if unspecified).
(run [<integer-expression>])
FOCUS: Pushes one or more modules onto the focus stack.
(focus <module-name>+)
HALT: Stops rule execution.
(halt)
SET-STRATEGY: Sets the current conflict resolution strategy.
(set-strategy <strategy>)
<strategy> ::= depth | breadth | simplicity | complexity | lex | mea | random
GET-STRATEGY: Returns the current conflict resolution strategy.
(get-strategy)
LIST-FOCUS-STACK: Lists all module names on the focus stack.
(list-focus-stack)
CLEAR-FOCUS-STACK: Removes all modules from the focus stack.
(clear-focus-stack)
SET-SALIENCE-EVALUATION: Sets the salience evaluation behavior.
(set-salience-evaluation <behavior>)
<behavior> ::= when-defined | when-activated | every-cycle
GET-SALIENCE-EVALUATION: Returns the salience evaluation behavior.
(get-salience-evaluation)
REFRESH-AGENDA: Forces reevaluation of salience of rules on the agenda
of the specified module.
(refresh-agenda [<module-name>])
END-ENTRY
2IBEGIN-ENTRY-DEFGLOBAL_COMMANDS
COMMAND_SUMMARY
DEFGLOBAL_COMMANDS
The following commands manipulate defglobals.
PPDEFGLOBAL: Displays the text required to define a given global variable.
(ppdefglobal <global-variable-name>)
LIST-DEFGLOBALS: Displays the list of all defglobals in the specified
module (or the current module if none specified).
(list-defglobals [<module-name>])
UNDEFGLOBAL: Deletes a global variable.
(undefglobal <global-variable-name>)
SHOWS-DEFGLOBALS: Displays the name and current value of all defglobals
in the specified module (or the current module if none
specified).
(show-defglobals [<module-name>])
SET-RESET-GLOBALS: Sets the reset global variables behavior.
(set-reset-globals <boolean-expression>)
GET-RESET-GLOBALS: Returns the reset global variables behavior.
(get-reset-globals)
END-ENTRY
2IBEGIN-ENTRY-DEFFUNCTION_COMMANDS
COMMAND_SUMMARY
DEFFUNCTION_COMMANDS
The following commands manipulate deffunctions.
PPDEFFUNCTION: Displays the text of a given deffunction.
(ppdeffunction <deffunction-name>)
LIST-DEFFUNCTIONS: Displays the list of all deffunctions in the specified
module (or the current module if none specified).
(list-deffunctions [<deffunction-name>])
UNDEFFUNCTION: Deletes a deffunction.
(undeffunction <deffunction-name>)
END-ENTRY
2IBEGIN-ENTRY-GENERIC_FUNCTION_COMMANDS
COMMAND_SUMMARY
GENERIC_FUNCTION_COMMANDS
The following commands manipulate generic functions.
PPDEFGENERIC: Displays the text of a given generic function header.
(ppdefgeneric <generic-function-name>)
PPDEFMETHOD: Displays the text of a given method.
(ppdefmethod <generic-function-name> <index>)
LIST-DEFGENERICS: Displays the names of all generic functions in the specified
module (or the current module if none specified).
(list-defgenerics [<module-name>])
LIST-DEFMETHODS: Displays a list of generic function methods.
(list-defmethods [<generic-function-name>])
UNDEFGENERIC: Deletes a generic function.
(undefgeneric <generic-function-name>)
UNDEFMETHOD: Deletes a generic function method.
(undefmethod <generic-function-name> <index>)
PREVIEW-GENERIC: Lists all applicable methods for a particular generic
function call in order of decreasing precedence.
(preview-generic <generic-function-name> <expression>*)
END-ENTRY
2MBEGIN-ENTRY-COOL_COMMANDS
COMMAND_SUMMARY
COOL_COMMANDS
The commands manipulating the CLIPS Object-Oriented Language (COOL)
are divided into four categories.
Subtopics:
CLASS_COMMANDS MESSAGE-HANDLER_COMMANDS
DEFINSTANCES_COMMANDS INSTANCES_COMMANDS
END-ENTRY
3IBEGIN-ENTRY-CLASS_COMMANDS
COMMAND_SUMMARY
COOL_COMMANDS
CLASS_COMMANDS
The following commands manipulate defclasses.
PPDEFCLASS: Displays the text of a given defclass.
(ppdefclass <class-name>)
LIST-DEFCLASSES: Displays the list of all defclasses in the specified
module (or the current module if none specified).
(list-defclasses [<module-name>])
UNDEFCLASS: Deletes a defclass, all its subclasses, and all
associated instances.
(undefclass <class-name>)
DESCRIBE-CLASS: Provides a verbose description of a class.
(describe-class <class-name>)
BROWSE-CLASSES: Provides a rudimentary display of the inheritance
relationships between a class and all its subclasses.
(browse-classes [<class-name>])
END-ENTRY
3IBEGIN-ENTRY-MESSAGE-HANDLER_COMMANDS
COMMAND_SUMMARY
COOL_COMMANDS
MESSAGE-HANDLER_COMMANDS
The following commands manipulate defmessage-handlers. Note that
<handler-type> is defined as follows:
<handler-type> ::= around | before | primary | after
PPDEFMESSAGE-HANDLER: Displays the text of a given defmessage-handler.
(ppdefmessage-handler <class-name> <handler-name> [<handler-type>])
LIST-DEFMESSAGE-HANDLERS: Displays a list of all (or some) defmessage-
handlers.
(list-defmessage-handlers [<class-name> [<handler-name> [<handler-type>]]])
UNDEFMESSAGE-HANDLER: Deletes a defmessage-handler.
(undefmessage-handler <class-name> <handler-name> [<handler-type>])
PREVIEW-SEND: Displays a list of all the applicable message-handlers for
a message sent to an instance of a particular class.
(preview-send <class-name> <message-name>)
END-ENTRY
3IBEGIN-ENTRY-DEFINSTANCES_COMMANDS
COMMAND_SUMMARY
COOL_COMMANDS
DEFINSTANCES_COMMANDS
The following commands manipulate definstances.
PPDEFINSTANCES: Displays the text of a given definstances.
(ppdefinstances <definstances-name>)
LIST-DEFINSTANCES: Displays the list of all definstances in the specified
module (or the current module if none specified).
(list-definstances [<module-name>])
UNDEFINSTANCES: Deletes a definstances.
(undefinstances <definstances-name>)
END-ENTRY
3IBEGIN-ENTRY-INSTANCES_COMMANDS
COMMAND_SUMMARY
COOL_COMMANDS
INSTANCES_COMMANDS
The following commands manipulate instances of user-defined classes.
INSTANCES: Displays a list of instances.
(instances [<module-name> [<class-name> [inherit]]])
PPINSTANCE: Prints the slots of the active instance when called from
within the body of a message-handler.
(ppinstance)
SAVE-INSTANCES: Saves all instances to the specified file.
(save-instances <file-name>)
LOAD-INSTANCES: Loads instances from the specified file.
(load-instances <file-name>)
RESTORE-INSTANCES: Loads instances from the specified file.
(restore-instances <file-name>)
END-ENTRY
2IBEGIN-ENTRY-DEFMODULE_COMMANDS
COMMAND_SUMMARY
DEFMODULE_COMMANDS
The following commands manipulate defmodules.
PPDEFMODULE: Displays the text of a given defmodule.
(ppdefmodule <defmodule-name>)
LIST-DEFMODULES: Displays the list of all defmodules.
(list-defmodules)
SET-CURRENT-MODULE: Sets the current module.
(set-current-module <module-name>)
GET-CURRENT-MODULE: Returns the current module.
(get-current-module)
END-ENTRY
2IBEGIN-ENTRY-MEMORY_COMMANDS
COMMAND_SUMMARY
MEMORY_COMMANDS
The following commands display CLIPS memory status information.
MEM-USED: Returns the number of bytes of memory CLIPS is using.
(mem-used)
MEM-REQUESTS: Returns the number of times CLIPS has requested memory
from the operating system.
(mem-requests)
RELEASE-MEM: Releases all free memory held internally by CLIPS to
the operating system. Returns the amount of memory freed.
(release-mem)
CONSERVE-MEM: Turns on or off the storage of information used for the
save and pretty-print commands.
(conserve-mem <status>)
<status> ::= on | off
END-ENTRY
2IBEGIN-ENTRY-TEXT_PROCESSING_COMMANDS
COMMAND_SUMMARY
TEXT_PROCESSING_COMMANDS
The following commands can be used by users to maintain their own
information system similar to the help facility.
FETCH: Loads the named file into the internal lookup table.
(fetch <file-name>)
PRINT-REGION: Looks up the specified entry in a particular file which has
been previously loaded into the lookup table and prints the
contents of that entry to the specified logical name.
(print-region <logical-name> <lookup-file> <topic-field>*)
GET-REGION: Looks up a specified entry in a particular file which has been
loaded previously into the lookup table and returns the contents
of that entry as a string.
(get region <file-name> <topic-field>*)
TOSS: Unloads the named file from the internal lookup table.
(toss <file-name>)
END-ENTRY
2IBEGIN-ENTRY-PROFILING_COMMANDS
COMMAND_SUMMARY
PROFILING_COMMANDS
The following commands provide the ability to profile CLIPS programs
for performance.
SET-PROFILE-PERCENT-THRESHOLD: Sets the minimum percentage of time that
must be spent executing a construct or user
function for it to be displayed by the
profile-info command.
(set-profile-percent-threshold <number in the range 0 to 100>)
GET-PROFILE-PERCENT-THRESHOLD: Returns the current value of the
profile percent threshold.
(get-profile-percent-threshold)
PROFILE-RESET: Resets all profiling information currently collected
for constructs and user functions.
(profile-reset)
PROFILE-INFO: Displays profiling information currently collected for
constructs or user functions.
(profile-info)
PROFILE: Enables/disables profiling of constructs and user
functions.
(profile constructs | user-functions | off)
END-ENTRY
1MBEGIN-ENTRY-INTEGRATED_EDITOR
INTEGRATED_EDITOR
CLIPS includes a fully integrated version of the full screen MicroEMACS
editor. You may call the editor from CLIPS, compile full buffers or just
sections of the editor (incremental compile), temporarily exit the editor back
to CLIPS, or permanently exit the editor. Since the editor is full screen,
portions of it are highly machine dependent. As it is currently set up, the
editor will run on VAX VMS machines using VT100- or VT240-compatible
terminals, UNIX systems which support TERMCAP, the IBM PC, and most IBM
compatibles.
Subtopics:
USING_THE_EDITOR EXTENDED_COMMANDS
CONTROL_COMMANDS META_COMMANDS
END-ENTRY
2IBEGIN-ENTRY-USING_THE_EDITOR
INTEGRATED_EDITOR
USING_THE_EDITOR
The editor may be called from CLIPS with the following command:
(edit ["<file-name>"])
The file name is optional. If one is given, that file would be loaded. If no
file name is given, the editor is entered without loading a file. Once in the
file, all of the EMACS commands listed below are applicable. To exit the
editor and clear all buffers, use <Ctrl-Z> or <Ctrl-X><Ctrl-C>. To
temporarily exit the editor and retain the information in the buffers, use
<Ctrl-X> Q. To compile a rules section, mark a region and type
<Ctrl-X><Ctrl-T>. To compile the entire buffer, use <Meta-T>. The editor can
use extensive amounts of memory and a flag is available in clips.h to remove
all of the editor code.
When using the editor on multiuser machines like the VAX or many UNIX
environments, be careful with the control S and control Q commands; they could
conflict with terminal XON/XOFF communications. All of the control S commands
have a work around built into the editor. The save file command, normally
<Ctrl-X><Ctrl-S>, is also <Meta> Z. The forward search command, normally
<Ctrl-S>, is also <Meta> J. The control Q command is rarely needed in a CLIPS
file and, therefore, has no substitute.
The following two special characters should be noted when using the editor.
<del> Delete previous character.
(also <ctrl-H> on some terminals)
<esc> Meta command prefix.
(also <ctrl-[> on some terminals)
END-ENTRY
2IBEGIN-ENTRY-CONTROL_COMMANDS
INTEGRATED_EDITOR
CONTROL_COMMANDS
These commands are entered by pressing the control key along with the
designated character.
<ctrl-@> Set mark at current position.
<ctrl-A> Move cursor to beginning of line.
<ctrl-B> Move cursor BACK one character.
<ctrl-C> Start a new interactive command shell. Be careful!
<ctrl-D> DELETE character under cursor.
<ctrl-E> Move cursor to END of line.
<ctrl-F> Move cursor FORWARD one character.
<ctrl-G> Abort any command.
<ctrl-H> (backspace) delete previous character.
<ctrl-I> Insert a TAB.
<ctrl-J> Insert a CR-LF and indent next line.
<ctrl-K> KILL (delete) to end of line.
<ctrl-L> Redisplay screen.
<ctrl-M> Insert a CR-LF.
<ctrl-N> Move cursor to NEXT line.
<ctrl-O> OPEN a new line.
<ctrl-P> Move to PREVIOUS line.
<ctrl-Q> QUOTE the next character (insert the next character typed).
<ctrl-R> Reverse SEARCH.
<ctrl-S> Forward SEARCH (also <Meta-J>).
<ctrl-T> TRANSPOSE characters.
<ctrl-U> Enter repeat count for next command.
<ctrl-V> VIEW the next screen (scroll up one screen).
<ctrl-W> KILL region (all text between cursor and last mark set).
<ctrl-X> Extended command prefix - see below.
<ctrl-Y> YANK (undelete) last text killed.
<ctrl-Z> Quick save of file in current buffer (only) and exit.
END-ENTRY
2IBEGIN-ENTRY-EXTENDED_COMMANDS
INTEGRATED_EDITOR
EXTENDED_COMMANDS
These commands are entered by first pressing the control key along with the
'x' character and then pressing the designated character.
<ctrl-X>( Begin keyboard Macro.
<ctrl-X>) End keyboard Macro.
<ctrl-X>! Execute a single external command.
<ctrl-X>= Show current cursor column and line number.
<ctrl-X>: Go to a specific line number.
<ctrl-X>1 Display current window only.
<ctrl-X>2 Split the current window.
<ctrl-X>B Switch to a different BUFFER.
<ctrl-X>E EXECUTE keyboard Macro.
<ctrl-X>F Set FILL column.
<ctrl-X>K KILL a buffer (other than current buffer).
<ctrl-X>M MATCH parenthesis (or {} or []).
<ctrl-X>N Move to NEXT window.
<ctrl-X>P Move to PREVIOUS window.
<ctrl-X>R Global search and REPLACE (backwards).
<ctrl-X>S Global SEARCH and replace (forwards).
<ctrl-X>Z Enlarge current window by repeat count <ctrl-U> lines.
<ctrl-X><ctrl-B> Show active BUFFERS.
<ctrl-X><ctrl-C> Exit without saving buffers.
<ctrl-X><ctrl-F> FIND file. Load if not already in buffer.
<ctrl-X><ctrl-N> Scroll current window up by repeat count lines.
<ctrl-X><ctrl-P> Scroll current window down by repeat count lines.
<ctrl-X><ctrl-R> RENAME file. Change file name for buffer.
<ctrl-X><ctrl-S> SAVE (write) current buffer into its file.
<ctrl-X><ctrl-V> VISIT a file. Read file and display in current window.
<ctrl-X><ctrl-W> WRITE buffer to file. Option to change name of file.
<ctrl-X><ctrl-Z> Reduce current window by repeat count lines.
END-ENTRY
2IBEGIN-ENTRY-META_COMMANDS
INTEGRATED_EDITOR
META_COMMANDS
These commands are entered by first pressing the meta key (Activated by <esc>
or <ctrl-[>) and then pressing the designated character.
<meta>! Move current line to repeat count lines from top of
window.
<meta>> Move cursor to end of buffer.
<meta>< Move cursor to beginning of buffer.
<meta>. Set mark.
<meta>B Move cursor BACK one word.
<meta>C CAPITALIZE first letter of word.
<meta>D DELETE next word.
<meta>F Move cursor FORWARD one word.
<meta>J SEARCH forward (same as <ctrl-S>).
<meta>L LOWERCASE (lowercase) next word.
<meta>R Query search and REPLACE (backwards).
<meta>S Query SEARCH and replace (forwards).
<meta>U UPPERCASE (uppercase) next word.
<meta>V VIEW the previous screen (scroll down one screen).
<meta>W COPY region into kill buffer.
<meta>Z SAVE current buffer into file (same as
<ctrl-X><ctrl-S>).
<meta><del> DELETE previous word.
END-ENTRY
|