/usr/share/doc/malaga-doc/malaga.html is in malaga-doc 7.12-5.2.
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 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<!-- Created by GNU Texinfo 5.2, http://www.gnu.org/software/texinfo/ -->
<head>
<title>Malaga 7.12</title>
<meta name="description" content="Malaga 7.12">
<meta name="keywords" content="Malaga 7.12">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta name="Generator" content="makeinfo">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="#Top" rel="start" title="Top">
<link href="#Index" rel="index" title="Index">
<link href="#SEC_Contents" rel="contents" title="Table of Contents">
<link href="dir.html#Top" rel="up" title="(dir)">
<style type="text/css">
<!--
a.summary-letter {text-decoration: none}
blockquote.smallquotation {font-size: smaller}
div.display {margin-left: 3.2em}
div.example {margin-left: 3.2em}
div.indentedblock {margin-left: 3.2em}
div.lisp {margin-left: 3.2em}
div.smalldisplay {margin-left: 3.2em}
div.smallexample {margin-left: 3.2em}
div.smallindentedblock {margin-left: 3.2em; font-size: smaller}
div.smalllisp {margin-left: 3.2em}
kbd {font-style:oblique}
pre.display {font-family: inherit}
pre.format {font-family: inherit}
pre.menu-comment {font-family: serif}
pre.menu-preformatted {font-family: serif}
pre.smalldisplay {font-family: inherit; font-size: smaller}
pre.smallexample {font-size: smaller}
pre.smallformat {font-family: inherit; font-size: smaller}
pre.smalllisp {font-size: smaller}
span.nocodebreak {white-space:nowrap}
span.nolinebreak {white-space:nowrap}
span.roman {font-family:serif; font-weight:normal}
span.sansserif {font-family:sans-serif; font-weight:normal}
ul.no-bullet {list-style: none}
-->
</style>
</head>
<body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">
<h1 class="settitle" align="center">Malaga 7.12</h1>
<a name="Top"></a>
<h1 class="node-heading">Top</h1>
<p>This is the documentation for Malaga, a software package for the
development and application of grammars that are used for the analysis
of words and sentences of natural languages.
</p>
<p>Copyright © 1995 Björn Beutel.
</p>
<p>Permission is granted to make and distribute verbatim copies of this
manual provided the copyright notice and this permission notice are
preserved on all copies.
</p>
<p>Permission is granted to copy and distribute modified versions of
this manual under the conditions for verbatim copying, provided that the
entire resulting derived work is distributed under the terms of a
permission notice identical to this one.
</p>
<p>Permission is granted to copy and distribute translations of this manual
into another language, under the above conditions for modified versions,
except that this permission notice may be stated in a translation
approved by the Free Software Foundation.
</p>
<hr>
<a name="Contents"></a>
<h4 class="node-heading">Contents</h4>
<a name="SEC_Contents"></a>
<h2 class="contents-heading">Table of Contents</h2>
<div class="contents">
<ul class="no-bullet">
<li><a name="toc-Introduction-1" href="#Introduction">1 Introduction</a></li>
<li><a name="toc-Malaga_0027s-Grammar-Formalism" href="#Formalism">2 Malaga’s Grammar Formalism</a></li>
<li><a name="toc-The-Malaga-Programs" href="#The-Programs">3 The Malaga Programs</a>
<ul class="no-bullet">
<li><a name="toc-Projects-1" href="#Projects">3.1 Projects</a></li>
<li><a name="toc-The-Malaga-Profiles-_002emalagarc-or-malaga_002eini" href="#Profiles">3.2 The Malaga Profiles <samp>.malagarc</samp> or <samp>malaga.ini</samp></a></li>
<li><a name="toc-The-Program-malaga" href="#malaga">3.3 The Program <code>malaga</code></a></li>
<li><a name="toc-The-Program-mallex" href="#mallex">3.4 The Program <code>mallex</code></a></li>
<li><a name="toc-The-Program-malmake" href="#malmake">3.5 The Program <code>malmake</code></a></li>
<li><a name="toc-The-Program-malrul" href="#malrul">3.6 The Program <code>malrul</code></a></li>
<li><a name="toc-The-Program-malsym" href="#malsym">3.7 The Program <code>malsym</code></a></li>
</ul></li>
<li><a name="toc-The-Commands-of-malaga-and-mallex" href="#Commands">4 The Commands of <code>malaga</code> and <code>mallex</code></a>
<ul class="no-bullet">
<li><a name="toc-The-Command-backtrace" href="#backtrace">4.1 The Command <code>backtrace</code></a></li>
<li><a name="toc-The-Command-break" href="#break">4.2 The Command <code>break</code></a></li>
<li><a name="toc-The-Command-clear_002dcache-_0028malaga_0029" href="#clear_002dcache">4.3 The Command <code>clear-cache</code> (<code>malaga</code>)</a></li>
<li><a name="toc-The-Command-continue" href="#continue">4.4 The Command <code>continue</code></a></li>
<li><a name="toc-The-Command-debug_002dga-_0028mallex_0029" href="#debug_002dga">4.5 The Command <code>debug-ga</code> (<code>mallex</code>)</a></li>
<li><a name="toc-The-Command-debug_002dga_002dfile-_0028mallex_0029" href="#debug_002dga_002dfile">4.6 The Command <code>debug-ga-file</code> (<code>mallex</code>)</a></li>
<li><a name="toc-The-Command-debug_002dga_002dline-_0028mallex_0029" href="#debug_002dga_002dline">4.7 The Command <code>debug-ga-line</code> (<code>mallex</code>)</a></li>
<li><a name="toc-The-Command-debug_002dma-_0028malaga_0029" href="#debug_002dma">4.8 The Command <code>debug-ma</code> (<code>malaga</code>)</a></li>
<li><a name="toc-The-Command-debug_002dma_002dline-_0028malaga_0029" href="#debug_002dma_002dline">4.9 The Command <code>debug-ma-line</code> (<code>malaga</code>)</a></li>
<li><a name="toc-The-Command-debug_002dsa-_0028malaga_0029" href="#debug_002dsa">4.10 The Command <code>debug-sa</code> (<code>malaga</code>)</a></li>
<li><a name="toc-The-Command-debug_002dsa_002dline-_0028malaga_0029" href="#debug_002dsa_002dline">4.11 The Command <code>debug-sa-line</code> (<code>malaga</code>)</a></li>
<li><a name="toc-The-Command-debug_002dstate-_0028malaga_0029" href="#debug_002dstate">4.12 The Command <code>debug-state</code> (<code>malaga</code>)</a></li>
<li><a name="toc-The-Command-delete" href="#delete">4.13 The Command <code>delete</code></a></li>
<li><a name="toc-The-Command-down" href="#down">4.14 The Command <code>down</code></a></li>
<li><a name="toc-The-Command-finish" href="#finish">4.15 The Command <code>finish</code></a></li>
<li><a name="toc-The-Command-frame" href="#frame">4.16 The Command <code>frame</code></a></li>
<li><a name="toc-The-Command-ga-_0028mallex_0029" href="#ga">4.17 The Command <code>ga</code> (<code>mallex</code>)</a></li>
<li><a name="toc-The-Command-ga_002dfile-_0028mallex_0029" href="#ga_002dfile">4.18 The Command <code>ga-file</code> (<code>mallex</code>)</a></li>
<li><a name="toc-The-Command-ga_002dline-_0028mallex_0029" href="#ga_002dline">4.19 The Command <code>ga-line</code> (<code>mallex</code>)</a></li>
<li><a name="toc-The-Command-get" href="#get">4.20 The Command <code>get</code></a></li>
<li><a name="toc-The-Command-help" href="#help">4.21 The Command <code>help</code></a></li>
<li><a name="toc-The-Command-info-_0028malaga_0029" href="#info">4.22 The Command <code>info</code> (<code>malaga</code>)</a></li>
<li><a name="toc-The-Command-list" href="#list">4.23 The Command <code>list</code></a></li>
<li><a name="toc-The-Command-ma-_0028malaga_0029" href="#ma">4.24 The Command <code>ma</code> (<code>malaga</code>)</a></li>
<li><a name="toc-The-Command-ma_002dfile-_0028malaga_0029" href="#ma_002dfile">4.25 The Command <code>ma-file</code> (<code>malaga</code>)</a></li>
<li><a name="toc-The-Command-ma_002dline-_0028malaga_0029" href="#ma_002dline">4.26 The Command <code>ma-line</code> (<code>malaga</code>)</a></li>
<li><a name="toc-The-Command-mg-_0028malaga_0029" href="#mg">4.27 The Command <code>mg</code> (<code>malaga</code>)</a></li>
<li><a name="toc-The-Command-next" href="#next">4.28 The Command <code>next</code></a></li>
<li><a name="toc-The-Command-print" href="#print">4.29 The Command <code>print</code></a></li>
<li><a name="toc-The-Command-quit" href="#quit">4.30 The Command <code>quit</code></a></li>
<li><a name="toc-The-Command-read_002dconstants-_0028mallex_0029" href="#read_002dconstants">4.31 The Command <code>read-constants</code> (<code>mallex</code>)</a></li>
<li><a name="toc-The-Command-result" href="#result">4.32 The Command <code>result</code></a></li>
<li><a name="toc-The-Command-run" href="#run">4.33 The Command <code>run</code></a></li>
<li><a name="toc-The-Command-sa-_0028malaga_0029" href="#sa">4.34 The Command <code>sa</code> (<code>malaga</code>)</a></li>
<li><a name="toc-The-Command-sa_002dfile-_0028malaga_0029" href="#sa_002dfile">4.35 The Command <code>sa-file</code> (<code>malaga</code>)</a></li>
<li><a name="toc-The-Command-sa_002dline-_0028malaga_0029" href="#sa_002dline">4.36 The Command <code>sa-line</code> (<code>malaga</code>)</a></li>
<li><a name="toc-The-Command-set" href="#set">4.37 The Command <code>set</code></a></li>
<li><a name="toc-The-Command-sg-_0028malaga_0029" href="#sg">4.38 The Command <code>sg</code> (<code>malaga</code>)</a></li>
<li><a name="toc-The-Command-step" href="#step">4.39 The Command <code>step</code></a></li>
<li><a name="toc-The-Command-transmit" href="#transmit">4.40 The Command <code>transmit</code></a></li>
<li><a name="toc-The-Command-tree-_0028malaga_0029" href="#tree">4.41 The Command <code>tree</code> (<code>malaga</code>)</a></li>
<li><a name="toc-The-Command-up" href="#up">4.42 The Command <code>up</code></a></li>
<li><a name="toc-The-Command-variables" href="#variables">4.43 The Command <code>variables</code></a></li>
<li><a name="toc-The-Command-walk" href="#walk">4.44 The Command <code>walk</code></a></li>
<li><a name="toc-The-Command-where" href="#where">4.45 The Command <code>where</code></a></li>
</ul></li>
<li><a name="toc-The-Options-of-malaga-and-mallex" href="#Options">5 The Options of <code>malaga</code> and <code>mallex</code></a>
<ul class="no-bullet">
<li><a name="toc-The-Option-alias" href="#alias">5.1 The Option <code>alias</code></a></li>
<li><a name="toc-The-Option-allo_002dformat-_0028mallex_0029" href="#allo_002dformat">5.2 The Option <code>allo-format</code> (<code>mallex</code>)</a></li>
<li><a name="toc-The-Option-auto_002dtree-_0028malaga_0029" href="#auto_002dtree">5.3 The Option <code>auto-tree</code> (<code>malaga</code>)</a></li>
<li><a name="toc-The-Option-auto_002dvariables" href="#auto_002dvariables">5.4 The Option <code>auto-variables</code></a></li>
<li><a name="toc-The-Option-cache_002dsize-_0028malaga_0029" href="#cache_002dsize">5.5 The Option <code>cache-size</code> (<code>malaga</code>)</a></li>
<li><a name="toc-The-Option-display_002dcmd" href="#display_002dcmd">5.6 The Option <code>display-cmd</code></a></li>
<li><a name="toc-The-Option-error_002dformat-_0028malaga_0029" href="#error_002dformat">5.7 The Option <code>error-format</code> (<code>malaga</code>)</a></li>
<li><a name="toc-The-Option-hidden" href="#hidden">5.8 The Option <code>hidden</code></a></li>
<li><a name="toc-The-Option-mor_002dincomplete-_0028malaga_0029" href="#mor_002dincomplete">5.9 The Option <code>mor-incomplete</code> (<code>malaga</code>)</a></li>
<li><a name="toc-The-Option-mor_002dout_002dfilter-_0028malaga_0029" href="#mor_002dout_002dfilter">5.10 The Option <code>mor-out-filter</code> (<code>malaga</code>)</a></li>
<li><a name="toc-The-Option-mor_002dpruning-_0028malaga_0029" href="#mor_002dpruning">5.11 The Option <code>mor-pruning</code> (<code>malaga</code>)</a></li>
<li><a name="toc-The-Option-result_002dformat-_0028malaga_0029" href="#result_002dformat">5.12 The Option <code>result-format</code> (<code>malaga</code>)</a></li>
<li><a name="toc-The-Option-result_002dlist-_0028malaga_0029" href="#result_002dlist">5.13 The Option <code>result-list</code> (<code>malaga</code>)</a></li>
<li><a name="toc-The-Option-robust_002drule-_0028malaga_0029" href="#robust_002drule">5.14 The Option <code>robust-rule</code> (<code>malaga</code>)</a></li>
<li><a name="toc-The-Option-roman_002dhangul" href="#roman_002dhangul">5.15 The Option <code>roman-hangul</code></a></li>
<li><a name="toc-The-Option-sort_002drecords" href="#sort_002drecords">5.16 The Option <code>sort-records</code></a></li>
<li><a name="toc-The-Option-switch" href="#switch">5.17 The Option <code>switch</code></a></li>
<li><a name="toc-The-Option-syn_002dincomplete-_0028malaga_0029" href="#syn_002dincomplete">5.18 The Option <code>syn-incomplete</code> (<code>malaga</code>)</a></li>
<li><a name="toc-The-Option-syn_002din_002dfilter-_0028malaga_0029" href="#syn_002din_002dfilter">5.19 The Option <code>syn-in-filter</code> (<code>malaga</code>)</a></li>
<li><a name="toc-The-Option-syn_002dout_002dfilter-_0028malaga_0029" href="#syn_002dout_002dfilter">5.20 The Option <code>syn-out-filter</code> (<code>malaga</code>)</a></li>
<li><a name="toc-The-Option-syn_002dpruning-_0028malaga_0029" href="#syn_002dpruning">5.21 The Option <code>syn-pruning</code> (<code>malaga</code>)</a></li>
<li><a name="toc-The-Option-transmit_002dcmd" href="#transmit_002dcmd">5.22 The Option <code>transmit-cmd</code></a></li>
<li><a name="toc-The-Option-unknown_002dformat-_0028malaga_0029" href="#unknown_002dformat">5.23 The Option <code>unknown-format</code> (<code>malaga</code>)</a></li>
<li><a name="toc-The-Option-use_002ddisplay" href="#use_002ddisplay">5.24 The Option <code>use-display</code></a></li>
</ul></li>
<li><a name="toc-The-Programming-Language-Malaga" href="#The-Language">6 The Programming Language Malaga</a>
<ul class="no-bullet">
<li><a name="toc-Characterisation-of-Malaga" href="#Characterisation">6.1 Characterisation of Malaga</a></li>
<li><a name="toc-Malaga-Source-Texts" href="#Source-Texts">6.2 Malaga Source Texts</a>
<ul class="no-bullet">
<li><a name="toc-Comments-1" href="#Comments">6.2.1 Comments</a></li>
<li><a name="toc-The-include-Statement" href="#Include">6.2.2 The <code>include</code> Statement</a></li>
<li><a name="toc-Identifiers-1" href="#Identifiers">6.2.3 Identifiers</a></li>
</ul></li>
<li><a name="toc-Values-1" href="#Values">6.3 Values</a>
<ul class="no-bullet">
<li><a name="toc-Symbols-1" href="#Symbols">6.3.1 Symbols</a></li>
<li><a name="toc-Numbers-1" href="#Numbers">6.3.2 Numbers</a></li>
<li><a name="toc-Strings-1" href="#Strings">6.3.3 Strings</a></li>
<li><a name="toc-Lists-1" href="#Lists">6.3.4 Lists</a></li>
<li><a name="toc-Records-1" href="#Records">6.3.5 Records</a></li>
</ul></li>
<li><a name="toc-Expressions-1" href="#Expressions">6.4 Expressions</a>
<ul class="no-bullet">
<li><a name="toc-Variables" href="#Malaga-Variables">6.4.1 Variables</a></li>
<li><a name="toc-Constants-1" href="#Constants">6.4.2 Constants</a></li>
<li><a name="toc-Subrule-Invokations" href="#Subrule-Calls">6.4.3 Subrule Invokations</a></li>
<li><a name="toc-The-Function-atoms" href="#Atoms">6.4.4 The Function <code>atoms</code></a></li>
<li><a name="toc-The-Function-capital" href="#Capital">6.4.5 The Function <code>capital</code></a></li>
<li><a name="toc-The-Function-floor" href="#Floor">6.4.6 The Function <code>floor</code></a></li>
<li><a name="toc-The-Function-length" href="#Length">6.4.7 The Function <code>length</code></a></li>
<li><a name="toc-The-Function-multi" href="#Multi">6.4.8 The Function <code>multi</code></a></li>
<li><a name="toc-The-Function-set" href="#Set">6.4.9 The Function <code>set</code></a></li>
<li><a name="toc-The-Function-substring" href="#Substring">6.4.10 The Function <code>substring</code></a></li>
<li><a name="toc-The-Function-switch" href="#Switch">6.4.11 The Function <code>switch</code></a></li>
<li><a name="toc-The-Function-transmit" href="#Transmit">6.4.12 The Function <code>transmit</code></a></li>
<li><a name="toc-The-Function-value_005fstring" href="#Value_005fString">6.4.13 The Function <code>value_string</code></a></li>
<li><a name="toc-The-Function-value_005ftype" href="#Value_005fType">6.4.14 The Function <code>value_type</code></a></li>
<li><a name="toc-The-if-Expression" href="#If-Expression">6.4.15 The <code>if</code> Expression</a></li>
<li><a name="toc-Unary-_002d" href="#Unary-Minus">6.4.16 Unary ‘<samp>-</samp>’</a></li>
<li><a name="toc-The-Operator-_002e" href="#Operator-Dot">6.4.17 The Operator ‘<samp>.</samp>’</a></li>
<li><a name="toc-The-Operator-_002b" href="#Operator-Plus">6.4.18 The Operator ‘<samp>+</samp>’</a></li>
<li><a name="toc-The-Operator-_002d" href="#Operator-Minus">6.4.19 The Operator ‘<samp>-</samp>’</a></li>
<li><a name="toc-The-Operator-_002a" href="#Operator-Times">6.4.20 The Operator ‘<samp>*</samp>’</a></li>
<li><a name="toc-The-Operator-_002f" href="#Operator-Divide">6.4.21 The Operator ‘<samp>/</samp>’</a></li>
</ul></li>
<li><a name="toc-Conditions-1" href="#Conditions">6.5 Conditions</a>
<ul class="no-bullet">
<li><a name="toc-The-Operators-_003d-and-_002f_003d" href="#Equality-Tests">6.5.1 The Operators ‘<samp>=</samp>’ and ‘<samp>/=</samp>’</a></li>
<li><a name="toc-The-Operators-less_002c-less_005fequal_002c-greater_002c-greater_005fequal" href="#Number-Comparisons">6.5.2 The Operators <code>less</code>, <code>less_equal</code>, <code>greater</code>, <code>greater_equal</code></a></li>
<li><a name="toc-The-Operators-_007e-and-_002f_007e" href="#Congruency-Tests">6.5.3 The Operators ‘<samp>~</samp>’ and ‘<samp>/~</samp>’</a></li>
<li><a name="toc-The-Operator-in" href="#Operator-In">6.5.4 The Operator <code>in</code></a></li>
<li><a name="toc-The-matches-Condition-_0028Regular-Expressions_0029" href="#Regular-Expressions">6.5.5 The <code>matches</code> Condition (Regular Expressions)</a></li>
</ul></li>
<li><a name="toc-The-Operators-not_002c-and_002c-and-or" href="#Boolean-Operators">6.6 The Operators <code>not</code>, <code>and</code>, and <code>or</code></a></li>
<li><a name="toc-The-Symbol-Table" href="#Symbol-Table">6.7 The Symbol Table</a></li>
<li><a name="toc-The-Initial-State" href="#Initial-State">6.8 The Initial State</a></li>
<li><a name="toc-The-Constant-Definition" href="#Constant-Definition">6.9 The Constant Definition</a></li>
<li><a name="toc-Rules-1" href="#Rules">6.10 Rules</a></li>
<li><a name="toc-Statements-1" href="#Statements">6.11 Statements</a>
<ul class="no-bullet">
<li><a name="toc-The-assert-Statement" href="#Assert">6.11.1 The <code>assert</code> Statement</a></li>
<li><a name="toc-The-Assignment-1" href="#The-Assignment">6.11.2 The Assignment</a></li>
<li><a name="toc-The-break-Statement" href="#Break">6.11.3 The <code>break</code> Statement</a></li>
<li><a name="toc-The-choose-Statement" href="#Choose">6.11.4 The <code>choose</code> Statement</a></li>
<li><a name="toc-The-continue-Statement" href="#Continue">6.11.5 The <code>continue</code> Statement</a></li>
<li><a name="toc-The-define-Statement" href="#Define">6.11.6 The <code>define</code> Statement</a></li>
<li><a name="toc-The-error-Statement" href="#Error">6.11.7 The <code>error</code> Statement</a></li>
<li><a name="toc-The-foreach-Statement" href="#Foreach">6.11.8 The <code>foreach</code> Statement</a></li>
<li><a name="toc-The-if-Statement" href="#If">6.11.9 The <code>if</code> Statement</a></li>
<li><a name="toc-The-repeat-Statement" href="#Repeat">6.11.10 The <code>repeat</code> Statement</a></li>
<li><a name="toc-The-require-Statement" href="#Require">6.11.11 The <code>require</code> Statement</a></li>
<li><a name="toc-The-result-Statement" href="#Result">6.11.12 The <code>result</code> Statement</a></li>
<li><a name="toc-The-return-Statement" href="#Return">6.11.13 The <code>return</code> Statement</a></li>
<li><a name="toc-The-select-Statement" href="#Select">6.11.14 The <code>select</code> Statement</a></li>
<li><a name="toc-The-stop-Statement" href="#Stop">6.11.15 The <code>stop</code> Statement</a></li>
</ul></li>
<li><a name="toc-Files-1" href="#Files">6.12 Files</a>
<ul class="no-bullet">
<li><a name="toc-The-Symbol-File" href="#Symbol-File">6.12.1 The Symbol File</a></li>
<li><a name="toc-The-Extended-Symbol-File" href="#Extended-Symbol-File">6.12.2 The Extended Symbol File</a></li>
<li><a name="toc-The-Lexicon-File" href="#Lexicon-File">6.12.3 The Lexicon File</a></li>
<li><a name="toc-The-Allomorph-Rule-File" href="#Allomorph-Rule-File">6.12.4 The Allomorph Rule File</a></li>
<li><a name="toc-The-Combi_002dRule-Files" href="#Combi_002dRule-Files">6.12.5 The Combi-Rule Files</a></li>
</ul></li>
<li><a name="toc-Summary-of-the-Malaga-Syntax" href="#Syntax-Summary">6.13 Summary of the Malaga Syntax</a></li>
</ul></li>
<li><a name="toc-Index-1" href="#Index">Index</a></li>
</ul>
</div>
<hr>
<a name="Introduction"></a>
<a name="Introduction-1"></a>
<h2 class="chapter">1 Introduction</h2>
<p>The Name “Malaga” is used with two different meanings: on the one
hand, it is the name of a special purpose programming language, namely a
language to implement grammars for natural languages. On the other hand,
it is the name of a program package for development of Malaga Grammars
and testing them by analysing words and sentences. “Malaga” is an
acronym for “<b>M</b>erely <b>a</b> <b>L</b>eft-<b>A</b>ssociative <b>G</b>rammar
<b>A</b>pplication”.
</p>
<p>The program package “Malaga” has been developed by Björn Beutel.
<a name="index-Beutel_002c-Bjorn"></a>
Gerald Schüller
<a name="index-Schuller_002c-Gerald"></a>
has implemented parts of the debugger, parts of the
Emacs Malaga mode, and the original Tree and Variable output via TCL/Tk.
</p>
<p>So far, morphology grammars for several natural languages have been
developed with Malaga, including the Albanian, Bulgarian, English,
Finnish, German, Italian, Korean and Spanish language.
</p>
<hr>
<a name="Formalism"></a>
<a name="Malaga_0027s-Grammar-Formalism"></a>
<h2 class="chapter">2 Malaga’s Grammar Formalism</h2>
<a name="index-Formalism"></a>
<a name="index-LAG"></a>
<p>A formal grammar for a natural language can be used to check whether a
sentence or a word form is grammatically well-formed (a word form is a
special inflectional form of a word, so “book” and “books” are two
different word forms of the word “book”). Furthermore, a grammar can
describe the structure and meaning of a sentence or a word form by a
data structure that has been constructed during the analysis process.
</p>
<p>Malaga is using a formalism that is derived of the Left-Associative
Grammar (LAG), which has been developed by Roland Hausser. An LAG
analyses a sentence (or a word form) step by step:
its parts are concatenated from the left to the right, hence the name
“Left-Associative Grammar”. A single LAG rule can only join two
parts to a bigger one: it concatenates the state part (which is the
beginning of the sentence or word form that has already been analysed)
and the link part (which is the next word form or the next
allomorph). In contrast to LAG, Malaga’s formalism already reads in
the first part of a word form or of a sentence by applying a rule.
Take a look at the following sentence:
</p>
<blockquote>
<p>Shakespeare liked writing comedies.
</p></blockquote>
<p>The sentence is being analysed by five rule applications:
</p>
<blockquote>
<p>“” + “Shakespeare” <br>
“Shakespeare” + “liked” <br>
“Shakespeare liked” + “writing” <br>
“Shakespeare liked writing” + “comedies” <br>
“Shakespeare liked writing comedies” + “.” <br>
</p></blockquote>
<p>To apply a rule it’s not sufficient to know the spelling of a word or an
allomorph. A rule also requires morphological and syntactic information, such
as word class, gender, meaning of a suffix etc. This information, which is
associated with an element of an utterance, like a sentence, a word form or an
allomorph, is called its <em>feature structure</em>. The analysis of a sentence or
a word form returns such a feature structure as result.
</p>
<p>Now let us take a closer look at how a sentence is analysed.
</p>
<ol>
<li> Before we can start to analyse a sentence, the analysis automaton must be
in an <em>initial state</em>. The initial state includes:
<ul>
<li> a feature structure for that state, and
</li><li> the <em>combination rule</em> checking whether it is allowed to start with a
specific word form. This rule also builds the feature structure of the
successor state (whose surface consists of the first word form).
</li></ul>
</li><li> The next word form that is going to be added is read and analysed
morphologically. If there is no valid word form, the analysis process
aborts.
</li><li> The feature structure that morphology assigns to this word form is called the
link’s feature structure. The feature structure of the input that has been
analysed syntactically so far is called the state’s feature structure.
</li><li> The active combination rule checks whether it is allowed to combine the state’s
surface (which may be empty if the rule is operating on the initial state) with
the link, i.e., the next word form. The combination rule takes the feature
structures of the state and of the link as parameters. They can be compared by
logical tests, and finally the feature structure of the successor state (whose
surface includes the word form that has been read), is constructed by the rule.
The rule also specifies which <em>successor rule</em> is active in the successor
state. Execution then continues at step 2.
<p>Instead of specifying a successor rule, a rule can also <em>accept</em> the
analysed sentence. In that case, the feature structure of the successor state
will be used as the feature structure of the complete analysed sentence.
</p></li></ol>
<p>Morphological analysis operates analogously, except that a word form,
composed from allomorphs, is being analysed. The link (step
2) is found in the allomorph lexicon.
</p>
<p>This sketch is of course simplified. There can be ambiguities in an
analysis, induced by several causes:
</p>
<ul>
<li> The initial state may contain several rules to analyse the first word
form or allomorph.
</li><li> A rule may have multiple successor rules.
</li><li> In morphology, the continuation of the input may match several trie entries.
</li><li> In syntax analysis, the link may be assigned several feature structures
by morphology.
</li></ul>
<p>These ambiguities are coped with by dividing the analysis into several
subanalyses: if there are two lexicon entries for a word form, for example, the
analysis continues using the first entry (and its feature structure) as well as
the second one. You can compare this with a branching path. The analyses will
be continued independently of each other. So, one analysis path can accept the
input while the other fails. Each analysis path can divide repeatedly when
other ambiguities are met. If several analysis paths are continued until they
accept, the analysis process returns more than one result.
</p>
<hr>
<a name="The-Programs"></a>
<a name="The-Malaga-Programs"></a>
<h2 class="chapter">3 The Malaga Programs</h2>
<p>The Malaga programs are all started in a similar manner: either you give
the name of a <em>project file</em> as argument (this is not possible if
you start <code>malrul</code> or <code>malsym</code>), or you give the name of the
files that are needed by the program (for <code>malmake</code> and
<code>malaga</code>, you have to give the project file as argument). The file
type is recognised by the file name ending.
</p>
<p>Assume you’ve written a grammar that consists of a symbol file
<samp>english.sym</samp>, an allomorph rule file <samp>english.all</samp>, a lexicon
file <samp>english.lex</samp> and a morphology rule file <samp>english.mor</samp>,
and you have also written a project file <samp>english.pro</samp>. You first
have to create binary files from these files:
</p>
<div class="example">
<pre class="example">malmake english.pro
</pre></div>
<p>The source files must be in the Unicode UTF-8 format, which is also used for
input and output by the Malaga programs.
</p>
<p>The binary files have the same name as their source counterparts, but have a
<samp>_l</samp> (for little endian processors like x86), a <samp>_b</samp>
(for big endian processors like HPPA) or a <samp>_c</samp> (for other architectures)
appended. Now you can start the program <code>malaga</code> by entering
the following command line: <code>malaga english.pro</code>.
</p>
<p>The names of the grammar files will be read from the project file.
</p>
<p>If you want to know about the command line arguments of a Malaga
program, you can get help by using the option ‘<samp>-help</samp>’ or
‘<samp>-h</samp>’, like <code>mallex -help</code>
<a name="index-help-_0028command-line-option_0029"></a>
</p>
<p>If you just want to know which version of a Malaga program you are using, you
can get the version number by using the option ‘<samp>-version</samp>’ or
‘<samp>-v</samp>’, like <code>malrul -version</code>
<a name="index-version-_0028command-line-option_0029"></a>
</p>
<p>The program just emits a few lines with information about its version number
and about using and copying it.
</p>
<hr>
<a name="Projects"></a>
<a name="Projects-1"></a>
<h3 class="section">3.1 Projects</h3>
<a name="index-projects"></a>
<p>A couple of files, taken together, form a Malaga grammar:
</p>
<dl compact="compact">
<dt>The <em>lexicon file</em> (<samp>.lex</samp>)</dt>
<dd><p>A lexicon of base forms.
</p>
</dd>
<dt>The <em>prelex file</em> (<samp>.prelex</samp>, optional)</dt>
<dd><p>A precompiled lexicon in binary format.
</p>
</dd>
<dt>The <em>allomorph rule file</em> (<samp>.all</samp>)</dt>
<dd><p>A file with rules which generate the allomorphs of the base forms.
</p>
</dd>
<dt>The <em>morphology rule file</em> (<samp>.mor</samp>)</dt>
<dd><p>A file with rules which combine allomorphs to word forms.
</p>
</dd>
<dt>The <em>symbol file</em> (<samp>.sym</samp>)</dt>
<dd><p>A file with the symbols that may be used in rules and feature structures.
</p>
</dd>
<dt>The <em>syntax rule file</em> (<samp>.syn</samp>, optional)</dt>
<dd><p>A file with rules that combine word forms to sentences.
</p>
</dd>
<dt>The <em>extended symbol file</em> (<samp>.esym</samp>, optional)</dt>
<dd><p>A file with additional symbols that may only be used in a syntax rule file.
</p>
</dd>
</dl>
<p>You can group these files together to a <em>project</em>. To do this, you
have to write a project file, with a name ending in <samp>.pro</samp>, in
which you list the names of the several files, each one behind a keyword
(each file type in a line on its own). Imagine you have written a
grammar that consists of the files <samp>standard.sym</samp>,
<samp>webster.lex</samp>, <samp>english.all</samp>, <samp>english.mor</samp>, and
<samp>english.syn</samp>. The project file for this grammar will look like
this:
</p>
<div class="example">
<pre class="example">sym: standard.sym
lex: webster.lex
all: english.all
mor: english.mor
syn: english.syn
</pre></div>
<p>In your source files, you can include further source files by using the
<code>include</code> statement; so a binary file of your grammar may be dependent on
several source files. The program <code>malmake</code> uses the information in the
project file to check for dependencies between source files and binaries, so
the project file must contain the name of all source files for a specific
binary. Relative path names are always relative to the directory of
the project file.
</p>
<p>Assume, you’ve got a lexicon file <samp>webster.lex</samp> that
looks like this:
</p>
<div class="example">
<pre class="example">include "suffixes.lex";
include "verbs.lex";
include "adjectives.lex";
include "nouns.lex";
include "particles.lex";
include "abbreviations.lex";
include "names.lex";
include "numbers.lex";
</pre></div>
<p>In this case, you must write the names of all these files in the ‘<samp>lex:</samp>’
line of your project file behind the name of the real lexicon file:
</p>
<div class="example">
<pre class="example">lex: webster.lex suffixes.lex verbs.lex adjectives.lex
lex: nouns.lex particles.lex abbreviations.lex names.lex numbers.lex
</pre></div>
<p>Since there is a number of files in this example, the ‘<samp>lex:</samp>’ line has
been divided into two lines, each line starting with ‘<samp>lex:</samp>’.
</p>
<p>If you want to extend an existing project (for example, you might want to add a
syntax rule file to a morphology grammar), you can include the project file of
the morphology grammar in the project file of your syntax grammar by using a
line starting with ‘<samp>include:</samp>’:
</p>
<div class="example">
<pre class="example">include: /projects/grammars/english/english.pro
syn: english-syntax.syn
</pre></div>
<p>The file entries in the project file of the morphology are treated as
if they would replace the ‘<samp>include:</samp>’ line. Relative paths in the
included file are relative to the <em>included</em> directory, not the
<em>including</em> directory.
</p>
<p>The programs <code>malaga</code> and <code>mallex</code> can set options like
<code>hidden</code> or <code>robust</code> from the project file, so you do not need
to set these options each time you start <code>malaga</code>. Each line in the
project file that starts with ‘<samp>malaga:</samp>’ and ‘<samp>mallex:</samp>’,
respectively, will be executed when <code>malaga</code> and <code>mallex</code>,
respectively, has been started, but you may only use the <code>set</code>
command, so you can only set options in the project file. Here is an
example:
</p>
<div class="example">
<pre class="example"> ...
malaga: set hidden +semantics
malaga: set robust-rule on
mallex: set hidden +semantics +syntax
...
</pre></div>
<p>When you start <code>malaga</code>, the commands <code>set hidden +semantics</code> and
<code>set robust-rule on</code> will be executed; when you start <code>mallex</code>, the
command <code>set hidden +semantics +syntax</code> will be executed.
</p>
<p>Options in project files that are read in by ‘<samp>include:</samp>’ lines in other
project files will be executed as if they were in place of the
‘<samp>include:</samp>’ line.
</p>
<p>Lines in project files that start with ‘<samp>info:</samp>’ contain information
about the grammar. In <code>malaga</code>, you get this information if you use the
command <code>info</code>. Example:
</p>
<div class="example">
<pre class="example">info: =====================================
info: Deutsche Malaga Morphologie 3.0
info: written by Oliver Lorenz, 11.04.1997
info: =====================================
</pre></div>
<a name="index-Hangul"></a>
<p>The Korean writing system, Hangul, needs special treatment, because the
characters it uses are syllables that must be split up into individual letters
for morphological analysis. Such a conversion is built-in into malaga.
To activate this Hangul support, insert the following line into your
project file:
</p>
<div class="example">
<pre class="example">split-hangul-syllables: yes
</pre></div>
<a name="index-split_002dhangul_002dsyllables"></a>
<p>If Hangul support has been switch on, you may also enter Hangul text
in a Latin transcription that is based on the Yale transcription.
Transcribed text must be contained in curly brackets, and each
syllable must start with a dot, for example ‘<samp>{.cwess.ta}</samp>’.
Malaga can also display Hangul text in Latin transcription if Hangul
support has been activated. This can be controlled by the option
<code>roman-hangul</code>.
</p>
<p>When Malaga splits Hangul syllables, you must be aware that string
operations work with Hangul letters, even if you have entered
syllables in you grammar source code:
</p><ul>
<li> In a pattern, a character class that contains a syllable will match
each single Hangul letter that is part of that syllable. Only use
single letters in character classes. If you want to select between
different syllables, use alternatives, separated by vertical bars.
</li><li> In a pattern, when a postfix operator (‘<samp>*</samp>’, ‘<samp>?</samp>’, or
‘<samp>+</samp>’) follows a Hangul syllable, it will only operate on the last
letter of that syllable. If you want the operator to work on the whole
syllable, put the syllable in parentheses.
</li><li> The functions <code>substring</code> and <code>length</code> will count single
characters, not syllables.
</li></ul>
<hr>
<a name="Profiles"></a>
<a name="The-Malaga-Profiles-_002emalagarc-or-malaga_002eini"></a>
<h3 class="section">3.2 The Malaga Profiles <samp>.malagarc</samp> or <samp>malaga.ini</samp></h3>
<a name="index-_002emalagarc-_0028file_0029"></a>
<a name="index-malaga_002eini-_0028file_0029"></a>
<a name="index-profile"></a>
<p>If you prefer some options that you want to use with every Malaga
project, you may create a personal profile. On POSIX systems, it is
located in your home directory and is called <samp>.malagarc</samp>. In
Microsoft Windows (NT based) systems, it is located in your user
profile directory and is called <samp>malaga.ini</samp>. In Microsoft
Windows (DOS based) systems, it is located in the root directory of
your system drive and is also called <samp>malaga.ini</samp>. You can enter
<code>malaga</code> and <code>mallex</code> options in the same manner as you do
in the project file:
</p>
<div class="example">
<pre class="example">malaga: set display-cmd "malshow"
malaga: set use-display yes
mallex: set display-cmd "malshow"
mallex: set use-display yes
</pre></div>
<p>The settings in your personal profile override the settings in the
project file.
</p>
<p>You can set some attributes of the graphical user interface
<code>malshow</code>, like the position, the size, and the font size of each
window that is opened by <code>malshow</code>. The following attributes are
available:
</p><dl compact="compact">
<dt><code>*_geometry:</code></dt>
<dd><a name="index-geometry"></a>
<a name="index-window-geometry"></a>
<p>Defines the size and/or position of a window. The “*” must be
replaced by the name of the window, which may be <code>allomorphs</code>,
<code>path</code>, <code>result</code>, <code>tree</code>, <code>variables</code>, or
<code>expressions</code>. The attribute must be followed by an expression
like ‘<samp>628x480+640+512</samp>’. The first two numbers (‘<samp>628x480</samp>’)
define the width and the height of the window in pixels, the last two
numbers (‘<samp>+640+512</samp>’) define the position of its upper left
corner.
</p>
</dd>
<dt><code>font:</code></dt>
<dd><a name="index-font-family"></a>
<p>The attribute must be followed by the name of the font family to use.
</p>
</dd>
<dt><code>font_size:</code></dt>
<dd><a name="index-font-size"></a>
<p>The attribute must be followed by an integer font size, given in
points. The available font sizes are 8, 10, 12, 14, 18, and 24
points.
</p>
</dd>
<dt><code>show_indexes:</code></dt>
<dd><a name="index-indexes_002c-state"></a>
<a name="index-state-indexes"></a>
<p>The attribute must be followed by <code>yes</code> or <code>no</code>, which
determines whether state indexes are shown in the Tree and Path
windows.
</p>
</dd>
<dt><code>hanging_style:</code></dt>
<dd><p>The attribute must be followed by <code>yes</code> or <code>no</code>, which
determines whether horizontally adjacent complex values are aligned at
their top lines (<em>hanging style</em>) or at their bottom lines
(<em>non-hanging style</em>).
</p>
</dd>
<dt><code>inline_path:</code></dt>
<dd><p>The attribute must be followed by <code>yes</code> or <code>no</code>, which
determines whether the components of a state or a link in a path will
be arranged horizontally or vertically. For small feature-structures,
e.g. in formal grammars, horizontal arrangement is better readable,
while full-blown natural language grammar paths look better in
vertical arrangement.
</p>
</dd>
<dt><code>show_tree:</code></dt>
<dd><p>A three-valued attribute that determines which states of a tree are
shown. Possible values are: <code>full</code>, <code>no_dead_ends</code> and
<code>result_paths</code>.
</p>
</dd>
</dl>
<p>Here is an example which sets every option available:
</p><div class="example">
<pre class="example">allomorphs_geometry: 628x480+640+0
path_geometry: 628x480+640+0
result_geometry: 628x480+640+0
tree_geometry: 628x480+640+512
variables_geometry: 628x480+640+512
expressions_geometry: 628x480+640+0
font: helvetica
font_size: 12
show_indexes: yes
hanging_style: yes
inline_path: yes
show_tree: no_dead_ends
</pre></div>
<hr>
<a name="malaga"></a>
<a name="The-Program-malaga"></a>
<h3 class="section">3.3 The Program <code>malaga</code></h3>
<a name="index-malaga-_0028program_0029"></a>
<p>The program <code>malaga</code> is the user interface for analysing word forms and
sentences, displaying the results and finding bugs in a grammar. Start
<code>malaga</code> with the name of a project file as argument:
</p>
<div class="example">
<pre class="example">malaga english.pro
</pre></div>
<p>When <code>malaga</code> has been started, it loads the symbol file, the lexicon file
and the morphology rule file, and the syntax rule file, if there is one. After
loading, the <em>prompt</em> appears. Then <code>malaga</code> is ready to execute your
commands:
</p>
<table class="cartouche" border="1"><tr><td>
<div class="example">
<pre class="example">$ malaga english.pro
This is malaga, version 7.12.
Copyright (C) 1995 Bjoern Beutel.
This program is part of Malaga, a system for Natural Language Analysis.
You can distribute it under the terms of the GNU General Public License.
malaga>
</pre></div>
</td></tr></table>
<p>You can now enter any <code>malaga</code> command. If you are not sure about
the name of a command, use the command <code>help</code> to get an overview of
all <code>malaga</code> commands.
</p>
<p>If you want to quit <code>malaga</code>, enter the command <code>quit</code>.
</p>
<p>You can use the following command line options when you start <code>malaga</code>:
</p>
<dl compact="compact">
<dt>‘<samp>-morphology</samp>’ or ‘<samp>-m</samp>’</dt>
<dd><a name="index-morphology-_0028command-line-option_0029"></a>
<p>Starts <code>malaga</code> in <em>morphology mode</em>. That is, word forms are
being read in from the standard input stream and analysed (one word form
per line). The analysis result is being written to the standard output
stream.
</p>
</dd>
<dt>‘<samp>-syntax</samp>’ or ‘<samp>-s</samp>’</dt>
<dd><a name="index-syntax-_0028command-line-option_0029"></a>
<p>Starts <code>malaga</code> in <em>syntax mode</em>. That is, sentences are being
read in from the standard input stream and analysed (one sentence per
line). The analysis result is being written to the standard output
stream.
</p>
</dd>
<dt>‘<samp>-quoted</samp>’ or ‘<samp>-q</samp>’</dt>
<dd><a name="index-quoted-_0028command-line-option_0029"></a>
<p>When <code>malaga</code> has been started in syntax or morphology mode, and the
option ‘<samp>-quoted</samp>’ has been used, then each input line must be enclosed in
double quotes which are removed prior to analysis. Within the double quotes
there may be any combination of printable characters except the backslash
‘<samp>\</samp>’ and the double quotes. These characters must be preceded by a ‘<samp>\</samp>’
(escape character).
</p>
</dd>
<dt>‘<samp>-input</samp>’ or ‘<samp>-i</samp>’</dt>
<dd><a name="index-input-_0028command-line-option_0029"></a>
<p>Starts <code>malaga</code> in <em>argument analysis mode</em>. That is, the
argument following the ‘<samp>-input</samp>’ is being analysed. Either the
‘<samp>-morphology</samp>’ or the ‘<samp>-syntax</samp>’ option must also be
given. The analysis result is being sent to the standard output stream
in a structured format.
</p></dd>
</dl>
<hr>
<a name="mallex"></a>
<a name="The-Program-mallex"></a>
<h3 class="section">3.4 The Program <code>mallex</code></h3>
<a name="index-mallex-_0028program_0029"></a>
<p>By using <code>mallex</code>, you can make the allomorph rules process the entries of
a base form lexicon.
</p>
<p>You can start <code>mallex</code> either with the name of a project file or with the
names of the needed grammar files:
</p>
<div class="example">
<pre class="example">mallex english.pro
</pre></div>
<p>or
</p>
<div class="example">
<pre class="example">mallex english.sym english.all english.lex
</pre></div>
<p>If you are not using a project file, you must give
</p>
<ul>
<li> the name of the symbol file (<samp>.sym</samp>),
</li><li> the name of the allomorph rule file (<samp>.all</samp>),
</li><li> the name of the lexicon file (<samp>.lex</samp>, in batch mode), and
</li><li> the name of the prelex file (<samp>.prelex</samp>, in batch mode, optional).
</li></ul>
<p>Normally, <code>mallex</code> runs interactively: it loads the symbol file and the
allomorph rule file. Then the <em>prompt</em> appears:
</p>
<table class="cartouche" border="1"><tr><td>
<div class="example">
<pre class="example">$ mallex english.pro
This is mallex, version 7.12.
Copyright (C) 1995 Bjoern Beutel.
This program is part of Malaga, a system for Natural Language Analysis.
You can distribute it under the terms of the GNU General Public License.
mallex>
</pre></div>
</td></tr></table>
<p>You can now enter any <code>mallex</code> command. If you do not remember the command
names, you can use the command <code>help</code> to see an overview of the
<code>mallex</code> commands.
</p>
<p>If you want to quit <code>mallex</code>, enter the command <code>quit</code>.
</p>
<p>If you have started <code>mallex</code> by using the option ‘<samp>-binary</samp>’
or ‘<samp>-b</samp>’, it creates the run time lexicon file from the base form
lexicon file and the optional prelex file. If the lexicons are very
big or the allomorph rules are very complex, this can take some
time. After creation, <code>mallex</code> exits.
</p>
<p>If you have started <code>mallex</code> by using the option ‘<samp>-prelex</samp>’
or ‘<samp>-p</samp>’, it creates a precompiled lexicon file from the source
lexicon file and the optional prelex file and exits.
</p>
<p>You can use the following command line options when you start
<code>mallex</code>:
</p>
<dl compact="compact">
<dt>‘<samp>-binary</samp>’ or ‘<samp>-b</samp>’</dt>
<dd><a name="index-binary-_0028command-line-option_0029"></a>
<p>Runs <code>mallex</code> in batch mode and creates the run-time lexicon.
</p>
</dd>
<dt>‘<samp>-readable</samp>’ or ‘<samp>-r</samp>’</dt>
<dd><a name="index-readable-_0028command-line-option_0029"></a>
<p>Runs <code>mallex</code> in batch mode and outputs the allomorph lexicon in
readable form on the standard output stream.
</p>
</dd>
<dt>‘<samp>-prelex</samp>’ or ‘<samp>-p</samp>’</dt>
<dd><a name="index-prelex-_0028command-line-option_0029"></a>
<p>Runs <code>mallex</code> in batch mode, but doesn’t apply the allomorph filter yet.
Outputs the allomorph lexicon as a <samp>.prelex</samp> binary file.
</p>
</dd>
</dl>
<hr>
<a name="malmake"></a>
<a name="The-Program-malmake"></a>
<h3 class="section">3.5 The Program <code>malmake</code></h3>
<a name="index-malmake-_0028program_0029"></a>
<p>The program <code>malmake</code> reads a project file, checks if all grammar
files needed do exist, and translates all grammar files that have not
yet been translated or whose source files have changed since they have
been translated. <code>malmake</code> itself calls the programs
<code>malsym</code>, <code>mallex</code> and <code>malrul</code> if needed. An example:
assume you have written a morphology grammar whose grammar files are
bundled in a project file <samp>english.pro</samp>:
</p>
<div class="example">
<pre class="example">sym: rules/english.sym
all: rules/english.all
lex: rules/english.lex lex/adjectives.lex
lex: lex/particles.lex lex/suffixes.lex lex/verbs.lex
lex: lex/nouns.lex lex/abbreviations.lex lex/numbers.lex
mor: rules/english.mor
mallex: set hidden +semantics +syntax
malaga: set hidden +semantics
</pre></div>
<p>When executing <code>malmake dmm.pro</code> for the first time, the symbol file,
the rule files and the lexicon file will be translated:
</p>
<table class="cartouche" border="1"><tr><td>
<div class="example">
<pre class="example">$ malmake dmm.pro
compiling "dmm.sym"
compiling "dmm.all"
compiling "dmm.mor"
compiling "dmm.lex"
project is up to date
$
</pre></div>
</td></tr></table>
<p>If you want all files to be recompiled on all accounts, use the option
<samp>-new</samp> or <samp>-n</samp>.
</p>
<p>The translation of a big lexicon can take some minutes, since the allomorph
rules have to be executed for each lexicon entry.
</p>
<hr>
<a name="malrul"></a>
<a name="The-Program-malrul"></a>
<h3 class="section">3.6 The Program <code>malrul</code></h3>
<p>The program <code>malrul</code> translates Malaga rule files, i.e. files that
have the endings <samp>.all</samp>, <samp>.mor</samp> or <samp>.syn</samp>. The compiled
file gets the suffix <samp>_l</samp>, <samp>_b</samp>, or <samp>_c</samp>, depending on the
endianness of your processor. Give the following arguments if you are starting
<code>malrul</code>:
</p>
<ul>
<li> the name of the rule file that is to be translated, and
</li><li> the name of the associated symbol file
(<samp>.sym</samp> or <samp>.esym</samp>).
</li></ul>
<p>The order of the arguments is arbitrary. Here is an example:
</p>
<div class="example">
<pre class="example">malrul english.mor english.sym
</pre></div>
<hr>
<a name="malsym"></a>
<a name="The-Program-malsym"></a>
<h3 class="section">3.7 The Program <code>malsym</code></h3>
<p><code>malsym</code> can translate Malaga symbol files, i.e. files having the
ending <samp>.sym</samp> or <samp>.esym</samp>. The translated file gets the suffix
<samp>_l</samp>, <samp>_b</samp>, or <samp>_c</samp>, depending on the endianness of your
processor.
</p>
<p>For example:
</p>
<div class="example">
<pre class="example">malsym english.sym
</pre></div>
<p>If you are translating an extended symbol file with the ending
<samp>.esym</samp>, enter the name of the compiled symbol file after the command
line option <samp>-use</samp> or <samp>-u</samp>:
</p>
<div class="example">
<pre class="example">malsym english.esym -use english.sym
</pre></div>
<p>This argument is needed since extended symbol files are extensions of ordinary
symbol files.
</p>
<p>If you use the command line option ‘<samp>-split-hangul-syllables</samp>’ when
starting <code>malsym</code>, the symbol file and all the Malaga files that
use it will split up Hangul syllables in individual letters
internally. This option is invoked by <code>malmake</code> if the project
file contains the line ‘<samp>split-hangul-syllables: yes</samp>’.
</p>
<hr>
<a name="Commands"></a>
<a name="The-Commands-of-malaga-and-mallex"></a>
<h2 class="chapter">4 The Commands of <code>malaga</code> and <code>mallex</code></h2>
<a name="index-commands"></a>
<p>Since the user interfaces of <code>malaga</code> and <code>mallex</code> are very
similar and since they have a bunch of commands in common, I will
describe them in a common chapter. Commands that can be used in
<code>malaga</code> or in <code>mallex</code> only, are marked by the name of the
program in which they can be used.
</p>
<hr>
<a name="backtrace"></a>
<a name="The-Command-backtrace"></a>
<h3 class="section">4.1 The Command <code>backtrace</code></h3>
<a name="index-backtrace-_0028command_0029"></a>
<p>If you are executing your rules in debug mode or the rules were interrupted
by an error, this command shows where rule execution currently stopped. If it
stopped in a subrule, all calling rules are also shown. The currently examined
rule is marked with a ‘<samp>*</samp>’:
</p>
<table class="cartouche" border="1"><tr><td>
<div class="example">
<pre class="example">debug> backtrace
*2: "dmm.mor", line 1218, rule "deletePOS"
1: "dmm.mor", line 31, rule "Start"
debug>
</pre></div>
</td></tr></table>
<p>This means, rule execution stopped in frame 2, line 1218 of <samp>dmm.mor</samp>,
in rule <code>deletePOS</code>. This subrule was called from frame 1, line 31 in
<samp>dmm.mor</samp>, in rule <code>Start</code>.
</p>
<hr>
<a name="break"></a>
<a name="The-Command-break"></a>
<h3 class="section">4.2 The Command <code>break</code></h3>
<a name="index-break-_0028command_0029"></a>
<a name="index-breakpoints"></a>
<p>If you want to stop the rules at a specific point, for example to take a look
at the variables, you can use the command <code>break</code> to set
<em>breakpoints</em>. A breakpoint is a point in the rule source text where rule
execution is interrupted, so you can enter commands in debug mode. Breakpoints
are only active in debug mode, this means you have started rule execution by a
debug command or you have continued rule execution by one of the
commands <code>step</code>, <code>next</code>, <code>walk</code>, or <code>continue</code>.
</p>
<p>Behind the command name, <code>break</code>, you can give one of the following
arguments:
</p>
<dl compact="compact">
<dt>A line number.</dt>
<dd><p>A breakpoint is set at this line in the current source file. If there is
no statement starting at this line, the breakpoint will be set at the
nearest line where a statement starts. You can, for example, set a
breakpoint at line 245 in the current source file by entering the
command
</p>
<div class="example">
<pre class="example">break 245
</pre></div>
</dd>
<dt>A file name and a line number.</dt>
<dd><p>A breakpoint is set at this line in this file. If there is no statement
starting at this line, the breakpoint will be set at the nearest line
where a statement starts. An example:
</p>
<div class="example">
<pre class="example">break english.syn 59
</pre></div>
</dd>
<dt>A rule name.</dt>
<dd><p>A breakpoint is set at the first statement in this rule. An example:
</p>
<div class="example">
<pre class="example">break final_rule
</pre></div>
</dd>
</dl>
<p>If the rule name or the file name is ambiguous, you can insert an abbreviation
for the rule system you refer to. Put it in front of the rule name or the file
name. The following abbreviations are used:
</p>
<ul>
<li> ‘<samp>all</samp>’ for allomorph rules,
</li><li> ‘<samp>mor</samp>’ for morphology rules,
</li><li> ‘<samp>syn</samp>’ for syntax rules,
</li></ul>
<p>If you omit any argument, the breakpoint is set on the current line in the
current file (this is helpful in debug mode).
</p>
<p>Every breakpoint gets a unique number once it has been set, so you can delete
it later, when you do not need it any longer.
</p>
<p>You can list the breakpoints using the command <code>list</code> and delete
them using <code>delete</code>.
</p>
<hr>
<a name="clear_002dcache"></a>
<a name="The-Command-clear_002dcache-_0028malaga_0029"></a>
<h3 class="section">4.3 The Command <code>clear-cache</code> (<code>malaga</code>)</h3>
<a name="index-clear_002dcache-_0028malaga-command_0029"></a>
<p>If you have changed your settings so that the wordform cache is no longer
valid, you can clear the cache using <code>clear-cache</code>. This can be necessary
if you have turned on/off input or output filters or modified switches.
</p>
<hr>
<a name="continue"></a>
<a name="The-Command-continue"></a>
<h3 class="section">4.4 The Command <code>continue</code></h3>
<a name="index-continue-_0028command_0029"></a>
<p>This command can only be executed in debug mode. It resumes rule execution and
may be followed by:
</p>
<dl compact="compact">
<dt><em>Nothing.</em></dt>
<dd><p>Rule execution is continued until a breakpoint is met or the rules have
been executed completely.
</p>
</dd>
<dt><em>A line number.</em></dt>
<dd><p>Rule execution is continued until a breakpoint is met, the rules have
been executed completely or the given line in the current source file is
met. If there is no statement starting at this line, execution will be
stopped at the nearest line where a statement starts. You can, for
example, continue execution until line 245 in the current source file is
met by entering the command
</p>
<div class="example">
<pre class="example">continue 245
</pre></div>
</dd>
<dt><em>A file name and a line number.</em></dt>
<dd><p>Rule execution is continued until a breakpoint is met, the rules have
been executed completely or the given line in the given file is met. If
there is no statement starting at this line, execution will be stopped
at the nearest line where a statement starts. An example:
</p>
<div class="example">
<pre class="example">continue english.syn 59
</pre></div>
</dd>
<dt><em>A rule name.</em></dt>
<dd><p>Rule execution is continued until a breakpoint is met, the rules have
been executed completely or the first statement of the given rule is
met. An example:
</p>
<div class="example">
<pre class="example">continue final_rule
</pre></div>
</dd>
<dt><em>A comparison.</em></dt>
<dd><p>The comparison must be of the form <code><var>variable</var> = <var>value</var></code>,
where <var>variable</var> may be any variable name, maybe followed by a path,
and <var>value</var> may be any Malaga value. Rule execution is continued
until a breakpoint is met, the rules have been executed completely or
until <var>variable</var> is defined and its value is <var>value</var>.
</p></dd>
</dl>
<hr>
<a name="debug_002dga"></a>
<a name="The-Command-debug_002dga-_0028mallex_0029"></a>
<h3 class="section">4.5 The Command <code>debug-ga</code> (<code>mallex</code>)</h3>
<a name="index-debug_002dga-_0028mallex-command_0029"></a>
<p>Use <code>debug-ga</code> to find errors in your allomorph rules. This command
works like <code>ga</code>, but the allomorph generation will be stopped before the
first statement of the first rule is executed:
</p>
<table class="cartouche" border="1"><tr><td>
<div class="example">
<pre class="example">mallex> debug-ga [surface: "john", class: name]
at rule "irregular_verb"
debug>
</pre></div>
</td></tr></table>
<p>The prompt ‘<samp>debug></samp>’ that appears instead of ‘<samp>mallex></samp>’ indicates
that <code>mallex</code> is currently executing the allomorph rules but has been
interrupted. Since this ability has been developed to support the
<em>debugging</em> of Malaga rules, this mode is called <em>debug mode</em>.
</p>
<p>When <code>mallex</code> arrives at the start of a new rule in debug mode (as in the
example above), the name of this rule is displayed. When in debug mode, you can
always get the name of the current rule using the command <code>rule</code>.
</p>
<p>If you’re running <code>mallex</code> from Emacs, another Emacs window will display
the source file. An arrow is used to show to the statement that will be
executed next.
</p>
<table class="cartouche" border="1"><tr><td>
<div class="example">
<pre class="example"> ...
allo_rule irregular_verb ($entry):
=>? $entry.class = verb;
...
</pre></div>
</td></tr></table>
<p>In debug mode, you can, for example, get the variables that are
currently defined (using <code>variable</code> or <code>print</code>), and you can
execute statements (using <code>step</code>, <code>next</code>, <code>walk</code>,
<code>continue</code>, or <code>run</code>). If you want to quit the debug mode,
just enter <code>run</code>. The remaining statements for generation will then
be executed without interruption.
</p>
<hr>
<a name="debug_002dga_002dfile"></a>
<a name="The-Command-debug_002dga_002dfile-_0028mallex_0029"></a>
<h3 class="section">4.6 The Command <code>debug-ga-file</code> (<code>mallex</code>)</h3>
<a name="index-debug_002dga_002dfile-_0028mallex-command_0029"></a>
<p>Use the command <code>debug-ga-file</code> to make the allomorph rules work on
a lexicon file in debug mode. Assume you have written a lexicon file
<samp>mini.lex</samp>:
</p>
<div class="example">
<pre class="example">[surface: "m{a}n", class: noun];
[surface: "table", class: noun];
[surface: "wise", class: adjective];
</pre></div>
<p>To let the rules process this lexicon in debug mode, enter:
</p>
<div class="example">
<pre class="example">debug-ga-file mini.lex
</pre></div>
<hr>
<a name="debug_002dga_002dline"></a>
<a name="The-Command-debug_002dga_002dline-_0028mallex_0029"></a>
<h3 class="section">4.7 The Command <code>debug-ga-line</code> (<code>mallex</code>)</h3>
<a name="index-debug_002dga_002dline-_0028mallex-command_0029"></a>
<p>Use the command <code>debug-ga-line</code> to make the allomorph rules generate
allomorphs for a single lexicon entry in debug mode. Assume you want to test
the second line in the lexicon file <samp>mini.lex</samp>:
</p>
<div class="example">
<pre class="example">[surface: "m{a}n", class: noun];
[surface: "table", class: noun];
[surface: "wise", class: adjective];
</pre></div>
<p>Enter the following line:
</p>
<div class="example">
<pre class="example">debug-ga-line mini.lex 2
</pre></div>
<p>Then <code>mallex</code> stops in debug mode at the entry of the first allomorph rule
that is being executed for the lexicon entry
</p>
<div class="example">
<pre class="example">[surface: "table", class:noun];
</pre></div>
<p>If there is no lexicon entry at this line, the subsequent lexicon entry will be
taken.
</p>
<hr>
<a name="debug_002dma"></a>
<a name="The-Command-debug_002dma-_0028malaga_0029"></a>
<h3 class="section">4.8 The Command <code>debug-ma</code> (<code>malaga</code>)</h3>
<a name="index-debug_002dma-_0028malaga-command_0029"></a>
<p>Use the command <code>debug-ma</code> to find errors in your morphology combination
rules. This command analyses the rest of the command line morphologically and
executes the morphology combination rules in debug mode. Debug mode is
explained for the command <code>debug-ga</code>.
</p>
<hr>
<a name="debug_002dma_002dline"></a>
<a name="The-Command-debug_002dma_002dline-_0028malaga_0029"></a>
<h3 class="section">4.9 The Command <code>debug-ma-line</code> (<code>malaga</code>)</h3>
<a name="index-debug_002dma_002dline-_0028malaga-command_0029"></a>
<p>Use the command <code>debug-ma-line</code> to find errors in your morphology
combination rules. This command analyses the rest of the command line
morphologically and executes the morphology combination rules in debug mode.
Debug mode is explained for the command <code>debug-ga</code>.
</p>
<hr>
<a name="debug_002dsa"></a>
<a name="The-Command-debug_002dsa-_0028malaga_0029"></a>
<h3 class="section">4.10 The Command <code>debug-sa</code> (<code>malaga</code>)</h3>
<a name="index-debug_002dsa-_0028malaga-command_0029"></a>
<p>Use the command <code>debug-sa</code> to find errors in your syntax combination
rules. This command analyses the rest of the command line syntactically and
executes the syntax combination rules in debug mode. Debug mode is explained
for the command <code>debug-ga</code>.
</p>
<hr>
<a name="debug_002dsa_002dline"></a>
<a name="The-Command-debug_002dsa_002dline-_0028malaga_0029"></a>
<h3 class="section">4.11 The Command <code>debug-sa-line</code> (<code>malaga</code>)</h3>
<a name="index-debug_002dsa_002dline-_0028malaga-command_0029"></a>
<p>Use the command <code>debug-sa-line</code> to find errors in your syntax
combination rules. This command analyses the rest of the command line
morphologically and executes the morphology combination rules in debug mode.
Debug mode is explained for the command <code>debug-ga</code>.
</p>
<hr>
<a name="debug_002dstate"></a>
<a name="The-Command-debug_002dstate-_0028malaga_0029"></a>
<h3 class="section">4.12 The Command <code>debug-state</code> (<code>malaga</code>)</h3>
<a name="index-debug_002dstate-_0028malaga-command_0029"></a>
<p>Use the command <code>debug-state</code> to execute the successor rules of a
specific LAG state in debug mode. Previously, you must have already
analysed a word or a sentence, respectively. Let malaga display the
analysis tree by entering <code>tree</code>, move the mouse pointer over the
state you want to debug, and press the left mouse button. A window
opens in which this state’s feature structure is shown. The window’s title
line contains the index of the state. Use this number as argument for
<code>debug-state</code>. The last analysis input will be analysed again,
and analysis stops when reaching the first successor rule of the
specified state and malaga switches to debug mode. Debug mode is
explained for the command <code>debug-ga</code>.
</p>
<hr>
<a name="delete"></a>
<a name="The-Command-delete"></a>
<h3 class="section">4.13 The Command <code>delete</code></h3>
<a name="index-delete-_0028command_0029"></a>
<p>If you want to delete a breakpoint, use the command <code>delete</code> with the
number of the breakpoints as argument.
</p>
<p>Enter ‘<samp>delete all</samp>’ to delete all breakpoints.
</p>
<hr>
<a name="down"></a>
<a name="The-Command-down"></a>
<h3 class="section">4.14 The Command <code>down</code></h3>
<a name="index-down-_0028command_0029"></a>
<p>If you want to look at the source and the variables of the (sub)rule that is
currently being called by the current subrule, you can do this by entering
<code>down</code>. You can list the frames via <code>backtrace</code>.
</p>
<hr>
<a name="finish"></a>
<a name="The-Command-finish"></a>
<h3 class="section">4.15 The Command <code>finish</code></h3>
<a name="index-finish-_0028command_0029"></a>
<p>This command can only be executed in debug mode. The rule execution will be
resumed and continues until a <code>return</code> statement is met or until
the current rule path will be terminated.
</p>
<hr>
<a name="frame"></a>
<a name="The-Command-frame"></a>
<h3 class="section">4.16 The Command <code>frame</code></h3>
<a name="index-frame-_0028command_0029"></a>
<p>If you want to look at the source and the variables of a (sub)rule that has
called the current subrule, directly or indirectly, you can do this by typing
<code>frame</code> and the number of the frame you want to examine. You can list the
frames via <code>backtrace</code>.
</p>
<hr>
<a name="ga"></a>
<a name="The-Command-ga-_0028mallex_0029"></a>
<h3 class="section">4.17 The Command <code>ga</code> (<code>mallex</code>)</h3>
<a name="index-ga-_0028mallex-command_0029"></a>
<p>Use the command <code>ga</code> (short for <em>generate allomorphs</em>) to
generate allomorphs. This is useful for testing allomorph generation
from within <code>mallex</code>. When you enter the command, give a lexicon
entry as argument. All allomorphs that are generated from this entry by
the allomorph rules, are displayed on screen. For example:
</p>
<table class="cartouche" border="1"><tr><td>
<div class="example">
<pre class="example">mallex> ga [Lemma: "!", POS: Punctuation, Type: ExclamationMark]
"!": [POS: <Punctuation>,
Punctuation: <[Allomorph: "!",
BaseForm: "!",
concatStem: no,
concatSx: no,
POS: Punctuation,
Type: ExclamationMark,
terminal: yes]>,
Surface: "!"]
mallex>
</pre></div>
</td></tr></table>
<p>If the rules create multiple allomorphs from an entry, they are displayed one
after another.
</p>
<hr>
<a name="ga_002dfile"></a>
<a name="The-Command-ga_002dfile-_0028mallex_0029"></a>
<h3 class="section">4.18 The Command <code>ga-file</code> (<code>mallex</code>)</h3>
<a name="index-ga_002dfile-_0028mallex-command_0029"></a>
<p>Use the command <code>ga-file</code> to make the allomorph rules generate allomorphs
for a lexicon file. Assume you have written a lexicon file <samp>mini.lex</samp>:
</p>
<div class="example">
<pre class="example">[surface: "m{a}n", class: noun];
[surface: "table", class: noun];
[surface: "wise", class: adjective];
</pre></div>
<p>To generate the allomorphs for this lexicon, enter ‘<samp>ga-file mini.lex</samp>’.
</p>
<p>This will produce a readable allomorph file whose name ends in
<samp>.out</samp>; for <samp>mini.lex</samp> its name will be <samp>mini.lex.out</samp>:
</p>
<div class="example">
<pre class="example">"man": [class: noun, syn: singular]
"men": [class: noun, syn: plural]
"table": [class: noun]
"wise": [class: adjective, restr: complete]
"wis": [class: adjective, restr: inflect]
</pre></div>
<hr>
<a name="ga_002dline"></a>
<a name="The-Command-ga_002dline-_0028mallex_0029"></a>
<h3 class="section">4.19 The Command <code>ga-line</code> (<code>mallex</code>)</h3>
<a name="index-ga_002dline-_0028mallex-command_0029"></a>
<p>Use the command <code>ga-line</code> to make the allomorph rules generate
allomorphs for a single lexicon entry. Assume you want to test
the second line in the lexicon file <samp>mini.lex</samp>:
</p>
<div class="example">
<pre class="example">[surface: "m{a}n", class: noun];
[surface: "table", class: noun];
[surface: "wise", class: adjective];
</pre></div>
<p>Enter the following line:
</p>
<div class="example">
<pre class="example">ga-line mini.lex 2
</pre></div>
<p>Then <code>mallex</code> generates allomorphs for
<code>[surface: "table", class:noun];</code>.
</p>
<p>If there is no lexicon entry at this line, the subsequent lexicon entry will be
taken.
</p>
<hr>
<a name="get"></a>
<a name="The-Command-get"></a>
<h3 class="section">4.20 The Command <code>get</code></h3>
<a name="index-get-_0028command_0029"></a>
<p>This command is used to query settings of <code>malaga</code> or
<code>mallex</code>. Enter it together with the name of the option whose
setting you want to know. The possible options are described in the next
chapter. If you just enter ‘<samp>get</samp>’, all settings will be shown.
</p>
<hr>
<a name="help"></a>
<a name="The-Command-help"></a>
<h3 class="section">4.21 The Command <code>help</code></h3>
<a name="index-help-_0028command_0029"></a>
<p>Use this command to get a list of the commands you can use. If you give the
name of a command or an option as argument, a short explanation of this item
will be displayed. If a name represents a command as well as an option, prepend
‘<samp>command</samp>’ or ‘<samp>option</samp>’ to it.
</p>
<hr>
<a name="info"></a>
<a name="The-Command-info-_0028malaga_0029"></a>
<h3 class="section">4.22 The Command <code>info</code> (<code>malaga</code>)</h3>
<a name="index-info-_0028malaga-command_0029"></a>
<p>This command gives you information about the grammar you are using. It
takes no argument.
</p>
<hr>
<a name="list"></a>
<a name="The-Command-list"></a>
<h3 class="section">4.23 The Command <code>list</code></h3>
<a name="index-list-_0028command_0029"></a>
<p>If you enter the command <code>list</code>, all breakpoints are listed. For each
breakpoint, its number, the name of the source file and the source line is
shown.
</p>
<hr>
<a name="ma"></a>
<a name="The-Command-ma-_0028malaga_0029"></a>
<h3 class="section">4.24 The Command <code>ma</code> (<code>malaga</code>)</h3>
<a name="index-ma-_0028malaga-command_0029"></a>
<p>The command <code>ma</code> (for <em>morphological analysis</em>) starts a word form
analysis. Give the word form that you want to be analysed as argument:
</p>
<div class="example">
<pre class="example">ma house
</pre></div>
<p>Malaga will show the results automatically, and it will also show the
analysis tree automatically if you specified it using the
<code>auto-tree</code> option. You can look at the results using
<code>result</code> or at the entire analysis tree using <code>tree</code>.
</p>
<p>If you do not enter a word form behind the command <code>ma</code>, <code>malaga</code>
re-analyses the last input.
</p>
<hr>
<a name="ma_002dfile"></a>
<a name="The-Command-ma_002dfile-_0028malaga_0029"></a>
<h3 class="section">4.25 The Command <code>ma-file</code> (<code>malaga</code>)</h3>
<a name="index-ma_002dfile-_0028malaga-command_0029"></a>
<p>The command <code>ma-file</code> can be used to analyse files that contain
word lists. A word list consists of a number of word forms, each word
form on a line on its own. There may be empty lines in a word list. The
following example is a word list called <samp>word-list</samp>:
</p>
<div class="example">
<pre class="example">table
men's
blue
handicap
</pre></div>
<p>To analyse this word list, enter:
</p>
<div class="example">
<pre class="example">ma-file word-list result
</pre></div>
<p>This will produce a file <samp>result</samp> that contains the analysis
results. If the second argument is missing, the result will be written
to a file whose name ends in <samp>.out</samp>; for <samp>word-list</samp>, its name
will be <samp>word-list.out</samp>:
</p>
<div class="example">
<pre class="example">1: "table": [class: noun, ...]
2: "men's": [class: noun, ...]
3: "blue": [class: noun, ...]
3: "blue": [class: adjective, ...]
3: "blue": [class: name, ...]
4: "handicap: unknown
</pre></div>
<p>The number at the line start represents the line number of the analysed
original word form. The output format can be changed by using the options
<code>result-format</code> and <code>unknown-format</code>.
</p>
<p>If a runtime error occurs during the analysis of a word, the line will be
output in the format given by the option <code>error-format</code>.
</p>
<p>After the analysis, some statistics will be displayed:
</p>
<ul>
<li> The number of analysed word forms.
</li><li> The number of recognised word forms.
</li><li> The number of word forms recognised by combi-rules and end-rules.
</li><li> The number of word forms recognised by robust-rules.
</li><li> The number of word forms whose analyses produced errors.
</li><li> The average number of results per word form.
</li><li> The analysis run time.
</li><li> The average number of word forms that have been analysed per second.
</li><li> The number of cache accesses.
</li><li> The number of cache hits.
</li></ul>
<hr>
<a name="ma_002dline"></a>
<a name="The-Command-ma_002dline-_0028malaga_0029"></a>
<h3 class="section">4.26 The Command <code>ma-line</code> (<code>malaga</code>)</h3>
<a name="index-ma_002dline-_0028malaga-command_0029"></a>
<p>You can use this command to analyse a single line in a text file
morphologically. Assume you want to analyse the word in the third line in the
file <samp>words</samp>. Then enter the following command:
</p>
<div class="example">
<pre class="example">ma-line words 3
</pre></div>
<p>Malaga will show the results automatically, and it will also show the
analysis tree automatically if you specified it using the
<code>auto-tree</code> option. You can look at the results using <code>result</code>
or at the entire analysis tree using <code>tree</code>.
</p>
<hr>
<a name="mg"></a>
<a name="The-Command-mg-_0028malaga_0029"></a>
<h3 class="section">4.27 The Command <code>mg</code> (<code>malaga</code>)</h3>
<a name="index-mg-_0028malaga-command_0029"></a>
<p>Use the command <code>mg</code> to generate all word forms that consist of a
specified set of allomorphs. For example, the command
</p>
<div class="example">
<pre class="example">mg 3 un able believe
</pre></div>
<p>This generates all word forms that consist of up to three allomorphs,
where only the specified allomorphs (‘<samp>un</samp>’, ‘<samp>able</samp>’, and
‘<samp>believe</samp>’) are used. The word forms are numbered from 1 onward, but
different analyses of the same word form get the same index. The output
will look like this:
</p>
<table class="cartouche" border="1"><tr><td>
<div class="example">
<pre class="example">malaga> mg 3 un able believe
1: "able"
2: "believe"
3: "unable"
4: "unbelieveable"
malaga>
</pre></div>
</td></tr></table>
<p>Please note that generation does not know of filters, pruning rules and
default rules.
</p>
<hr>
<a name="next"></a>
<a name="The-Command-next"></a>
<h3 class="section">4.28 The Command <code>next</code></h3>
<a name="index-next-_0028command_0029"></a>
<p>This command can only be executed in debug mode. The rule execution
will be resumed and continues until a different source line is met, a
different path is going to be executed since the old one has
terminated, or until the rules have been executed completely. It is
like <code>step</code>, but subrules will be executed without
interruption. If you specify a number as argument, the command will be
repeated as often as specified.
</p>
<hr>
<a name="print"></a>
<a name="The-Command-print"></a>
<h3 class="section">4.29 The Command <code>print</code></h3>
<a name="index-print-_0028command_0029"></a>
<p>The command <code>print</code> is used to display the current values of Malaga
variables or named constants, or parts of them. You can specify any
variable or constant names (including the ‘<samp>$</samp>’ or ‘<samp>@</samp>’) as
arguments to this command; you can also specify a path of attributes
and/or indexes (with suffix ‘<samp>L</samp>’ or ‘<samp>R</samp>’) behind each of the
variable or constant names. In that case, only the values of the
specified paths are displayed:
</p>
<table class="cartouche" border="1"><tr><td>
<div class="example">
<pre class="example">debug> print $word
$word = [class: pronoun,
result: S2]
debug> print $word.class
$word.class = pronoun
debug> print @plan.1L.name
$plan.1L = declarative
debug>
</pre></div>
</td></tr></table>
<p>If the option <code>use-display</code> is on and <code>malshow</code> is used as
<code>display-cmd</code>, the expressions will be displayed in window on
their own. If the <code>Expressions</code> window is not open yet, it will
open now. If there is an open <code>Expressions</code> window, the new
expressions and their values will be displayed in this window.
</p>
<p>You can left-click on an expression to make its value disappear or appear
again. You can middle-click or right-click on an expression to erase
it.
</p>
<p>The <code>Expressions</code> window has a menu with some commands:
</p>
<dl compact="compact">
<dt><code>Window</code></dt>
<dd><dl compact="compact">
<dt><code>Export Postscript...</code></dt>
<dd><p>Export the displayed expressions as an Embedded Postscript
file. Currently, only ASCII, Latin-1 Supplement, Hangul Compatibility
Jamo and Hangul Syllables can be converted to Postscript.
</p></dd>
<dt><code>Close</code></dt>
<dd><p>Close the <code>Expressions</code> window.
</p></dd>
</dl>
</dd>
<dt><code>Style</code></dt>
<dd><dl compact="compact">
<dt><code>Font Size ...</code></dt>
<dd><p>Select an item to adjust the font size.
</p></dd>
<dt><code>Hanging</code></dt>
<dd><p>Normally, all values and subvalues are aligned at their bottom. If
this option is active, records are “hanging down”: they are
aligned at their top.
</p></dd>
</dl>
</dd>
<dt><code>Expressions</code></dt>
<dd><dl compact="compact">
<dt><code>Clear All</code></dt>
<dd><p>Clear all expressions.
</p></dd>
<dt><code>Show All</code></dt>
<dd><p>Display the values of all expressions currently displayed.
</p></dd>
<dt><code>Hide All</code></dt>
<dd><p>Suppress the values of all expressions currently displayed.
</p></dd>
</dl>
</dd>
</dl>
<hr>
<a name="quit"></a>
<a name="The-Command-quit"></a>
<h3 class="section">4.30 The Command <code>quit</code></h3>
<a name="index-quit-_0028command_0029"></a>
<p>Use this command to leave <code>malaga</code> or <code>mallex</code>.
</p>
<hr>
<a name="read_002dconstants"></a>
<a name="The-Command-read_002dconstants-_0028mallex_0029"></a>
<h3 class="section">4.31 The Command <code>read-constants</code> (<code>mallex</code>)</h3>
<a name="index-read_002dconstants-_0028mallex-command_0029"></a>
<p>If you want to parse lexicon entries that use Malaga constants (prefixed by
‘<samp>@</samp>’), these constants can be read in using the command
‘<samp>read-constants <var>lexicon-file</var></samp>’. It parses <var>lexicon-file</var> and
memorizes all constant definitions in it.
</p>
<hr>
<a name="result"></a>
<a name="The-Command-result"></a>
<h3 class="section">4.32 The Command <code>result</code></h3>
<a name="index-result-_0028command_0029"></a>
<p>If you have previously analysed a word form or a sentence using
<code>ma</code>, <code>ma-line</code>, <code>sa</code>, or <code>sa-line</code> (in
<code>malaga</code>), or you have generated allomorphs using <code>ga</code> or
<code>ga-line</code> (in <code>mallex</code>), you can display the results with
<code>result</code>.
</p>
<ul>
<li> <code>use-display</code> is off:
The results will be sent to standard output.
</li><li> <code>use-display</code> is on and <code>malshow</code> is used as <code>display-cmd</code>:
The results will show in a window on their own which is called
<code>Results</code> for <code>malaga</code> and <code>Allomorphs</code> for
<code>mallex</code>. They are numbered from 1 onward.
<p>If you are executing the command <code>result</code> for the first time, or if
you have closed a <code>Results/Allomorphs</code> window that you’d opened
before, a window will open, displaying the values of all
results/allomorphs of the last analysis/generation.
</p>
<p>If there is a <code>Results/Allomorphs</code> window currently opened, the new
results/allomorphs will be displayed in this window.
</p></li></ul>
<p>The <code>Result/Allomorphs</code> window has a menu with some commands:
</p>
<dl compact="compact">
<dt><code>Window</code></dt>
<dd><dl compact="compact">
<dt><code>Export Postscript...</code></dt>
<dd><p>Export the displayed results as an Embedded Postscript file.
Currently, only ASCII, Latin-1 Supplement, Hangul Compatibility Jamo
and Hangul Syllables can be converted to Postscript.
</p></dd>
<dt><code>Close</code></dt>
<dd><p>Close the <code>Result/Allomorphs</code> window.
</p></dd>
</dl>
</dd>
<dt><code>Style</code></dt>
<dd><dl compact="compact">
<dt><code>Font Size ...</code></dt>
<dd><p>Select an item to adjust the font size.
</p></dd>
<dt><code>Hanging</code></dt>
<dd><p>Normally, all values and subvalues are aligned at their bottom. If this
option is active, records are “hanging down”: they are aligned at
their top.
</p></dd>
</dl>
</dd>
</dl>
<hr>
<a name="run"></a>
<a name="The-Command-run"></a>
<h3 class="section">4.33 The Command <code>run</code></h3>
<a name="index-run-_0028command_0029"></a>
<p>This command can only be used in debug mode. The rule execution will be
resumed, and the rules will be executed completely without any interruption.
</p>
<p>If you have invoked debug mode by the command <code>debug-node</code>, rule
execution will be stopped again when another link is going to be analysed.
</p>
<hr>
<a name="sa"></a>
<a name="The-Command-sa-_0028malaga_0029"></a>
<h3 class="section">4.34 The Command <code>sa</code> (<code>malaga</code>)</h3>
<a name="index-sa-_0028malaga-command_0029"></a>
<p>If you have started <code>malaga</code> with a syntax file in your command line or in
the project file, you can start syntactic analyses using the command <code>sa</code>
(short for <em>syntactic analysis</em>). Put the sentence you want to be
analysed as argument behind the command name:
</p>
<div class="example">
<pre class="example">sa The man is in town.
</pre></div>
<p>Malaga will show the results automatically, and it will also show the analysis
tree automatically if you specified it using the <code>tree</code> option. You can
look at the results using <code>result</code> or at the entire analysis tree using
<code>tree</code>.
</p>
<p>If you do not enter a sentence behind the command <code>sa</code>, <code>malaga</code>
re-analyses the last input.
</p>
<hr>
<a name="sa_002dfile"></a>
<a name="The-Command-sa_002dfile-_0028malaga_0029"></a>
<h3 class="section">4.35 The Command <code>sa-file</code> (<code>malaga</code>)</h3>
<a name="index-sa_002dfile-_0028malaga-command_0029"></a>
<p>Using the command <code>sa-file</code>, you can analyse files that contain
sentence lists. In a sentence list, each sentence stands in a line on
its own; empty lines are permitted. Here is an example, a sentence list
named <samp>sentence-list</samp>:
</p>
<div class="example">
<pre class="example">He sleeps.
He slept.
He has slept.
He had slept.
</pre></div>
<p>To analyse this sentence list, enter:
</p>
<div class="example">
<pre class="example">sa-file sentence-list result
</pre></div>
<p>This will produce a file <samp>result</samp> that contains the analysis
results. If the second argument is missing, the result will be written
to a file whose name ends in <samp>.out</samp>; for <samp>sentence-list</samp>, its
name will be <samp>sentence-list.out</samp>.
</p>
<div class="example">
<pre class="example">1: "He sleeps.": [functor: [syn: <S3>, sem: <"sleep">]]
2: "He slept.": [functor: [syn: <S3>, sem: <"sleep">]]
3: "He has slept.": [functor: [syn: <S3>, sem: <"have", "sleep">]]
4: "He had slept.": [functor: [syn: <S3>, sem: <"have", "sleep">]]
</pre></div>
<p>The number at the line start represents the line number of the analysed
original sentence. The output format can be changed by using the options
<code>result-format</code> and <code>unknown-format</code>.
</p>
<p>If a runtime error occurs during the analysis of a sentence, the
line’s output will be in the format given by the option
<code>error-format</code>.
</p>
<p>After the analysis, some statistics will be displayed:
</p>
<ul>
<li> The number of analysed sentences.
</li><li> The number of recognised sentences.
</li><li> The number of sentences recognised by combi-rules and end-rules.
</li><li> The number of sentences recognised by robust-rules.
</li><li> The number of sentences whose analyses produced errors.
</li><li> The average number of results per sentence.
</li><li> The analysis run time.
</li><li> The average number of sentences that have been analysed per second.
</li><li> The number of cache accesses.
</li><li> The number of cache hits.
</li></ul>
<hr>
<a name="sa_002dline"></a>
<a name="The-Command-sa_002dline-_0028malaga_0029"></a>
<h3 class="section">4.36 The Command <code>sa-line</code> (<code>malaga</code>)</h3>
<a name="index-sa_002dline-_0028malaga-command_0029"></a>
<p>If you have started <code>malaga</code> with a syntax file in your command
line or in the project file, you can start syntactic analyses using the
command <code>sa-line</code> (short for <em>syntactic analysis</em>). Assume you
want to analyse the sentence in the third line in the file
<samp>sentences</samp>. Then enter the following command:
</p>
<div class="example">
<pre class="example">sa-line sentences 3
</pre></div>
<p>Malaga will show the results automatically, and it will also show the
analysis tree automatically if you specified it using the
<code>auto-tree</code> option. You can look at the results using
<code>result</code> or at the entire analysis tree using <code>tree</code>.
</p>
<hr>
<a name="set"></a>
<a name="The-Command-set"></a>
<h3 class="section">4.37 The Command <code>set</code></h3>
<a name="index-set-_0028command_0029"></a>
<p>This command is used to change the settings of <code>malaga</code> or
<code>mallex</code>. The command line ‘<samp>set <var>option argument</var></samp>’ changes
<var>option</var> to <var>argument</var>. If you want to get the current state of
an option, use the command <code>get</code>. Options can also be set in the
project file. The possible options are described in the next chapter.
</p>
<hr>
<a name="sg"></a>
<a name="The-Command-sg-_0028malaga_0029"></a>
<h3 class="section">4.38 The Command <code>sg</code> (<code>malaga</code>)</h3>
<a name="index-sg-_0028malaga-command_0029"></a>
<p>Use <code>sg</code> to generate sentences that are composed of a specified set
of word forms. For example, enter:
</p>
<div class="example">
<pre class="example">sg 3 . ? he she sleeps
</pre></div>
<p>All sentences that consist of up to three word forms, where only the specified
word forms (“.”, “?”, “he”, “she”, and “sleeps”) are used. The
sentences are numbered from 1 onward, but different analyses of the same
sentence get the same index. The output looks like this:
</p>
<table class="cartouche" border="1"><tr><td>
<div class="example">
<pre class="example">malaga> sg 3 . ? he she sleeps
1: "he sleeps ."
2: "he sleeps ?"
3: "she sleeps ."
4: "she sleeps ?"
malaga>
</pre></div>
</td></tr></table>
<p>Please note that generation does not know of filters, pruning rules and
default rules.
</p>
<hr>
<a name="step"></a>
<a name="The-Command-step"></a>
<h3 class="section">4.39 The Command <code>step</code></h3>
<a name="index-step-_0028command_0029"></a>
<p>This command can only be executed in debug mode. The rule execution
will be resumed and continues until a different source line is met, a
different path is going to be executed since the old one has
terminated, or until the rules have been executed completely.
</p>
<hr>
<a name="transmit"></a>
<a name="The-Command-transmit"></a>
<h3 class="section">4.40 The Command <code>transmit</code></h3>
<a name="index-transmit-_0028command_0029"></a>
<p>If you have specified a transmit command line (to do this, use the option
<code>transmit-cmd</code>), you can send a command to it:
</p>
<table class="cartouche" border="1"><tr><td>
<div class="example">
<pre class="example">malaga> set transmit-cmd cat
malaga> transmit [surf: "go", POS: verb];
[POS: verb,
surf: "go"]
malaga>
</pre></div>
</td></tr></table>
<hr>
<a name="tree"></a>
<a name="The-Command-tree-_0028malaga_0029"></a>
<h3 class="section">4.41 The Command <code>tree</code> (<code>malaga</code>)</h3>
<a name="index-tree-_0028malaga-command_0029"></a>
<p>If you’ve started a grammatical analysis using one of the commands <code>ma</code> or
<code>sa</code> (or their debug variants), you can make <code>malaga</code> display the
result by entering
</p>
<div class="example">
<pre class="example">tree
</pre></div>
<p>If the analysis has not yet finished (in debug mode or in case of an error), a
partial tree will be shown.
</p>
<p>If you’re executing the command <code>tree</code> for the first time, or if you’ve
closed the <code>Tree</code> window before, a new tree window will open in which the
current analysis tree will be displayed.
</p>
<p>If there is already a <code>Tree</code> window open, the new analysis tree will be
displayed in this window.
</p>
<p>In the upper left corner of the <code>Tree</code> window, you will see the
sentence or the word form that has been analysed. Below, the analysis
tree is displayed. An analysis path always follows the edges from the
left to the right.
</p>
<p>A circle node stands for a LAG state, a two-circle node stands for an end
state. A crossed circle stands for a LAG state that has been removed by a
pruning-rule, and a crossed two-circle node stands for an end state that is
invalid because it has some remaining input still remaining. A box node
is not a state, but a <em>dead end</em>, which means that no rule has created a
state at this position.
</p>
<p>Above each edge, the link’s surface of the corresponding rule application is
displayed. Below the edge, you’ll see the name of the applied rule.
</p>
<p>You can click on a node using the left mouse button. Then another window will
open, namely the <code>Path</code> window. The <code>Path</code> window displays the
surface, the feature structure and the successor rules of the state you’ve
clicked on. The node will be highlighted by a red border.
</p>
<p>If you press the right mouse button while the mouse is on a node, a
pop-up menu will appear. You can then either select that this node is
the first node of the path to be displayed, or you can select it to be
the last one. All rule applications, from the first node up to the
last node in the path, will be displayed in the <code>Path</code>
window. The corresponding path will be highlighted in the <code>Tree</code>
window.
</p>
<p>If you’re clicking on a link surface using any mouse button, the surface
and its feature structure will be displayed in the <code>Path</code> window.
</p>
<p>You can also click on rule names using any mouse button. Then the corresponding
rule application will be displayed in the <code>Path</code> window, i.e. the
surfaces and feature structures of the original state, the link, and the
successor state, and the successor rules.
</p>
<p>There are some commands that can be initiated from the <code>Tree</code> menu bar:
</p>
<dl compact="compact">
<dt><code>Window</code></dt>
<dd><dl compact="compact">
<dt><code>Export Postscript...</code></dt>
<dd><p>Export the displayed analysis tree as an Embedded Postscript file.
Currently, only ASCII, Latin-1 Supplement, Hangul Compatibility Jamo
and Hangul Syllables can be converted to Postscript.
</p></dd>
<dt><code>Close</code></dt>
<dd><p>Close the <code>Tree</code> window.
</p></dd>
</dl>
</dd>
<dt><code>Style</code></dt>
<dd><p>Select an item in this menu to adjust the font size.
</p>
</dd>
<dt><code>Tree</code></dt>
<dd><p>Specify which nodes of the analysis tree are actually displayed and
whether state indexes are shown.
</p><dl compact="compact">
<dt><code>Full Tree</code></dt>
<dd><p>All analysis states are displayed, and also boxes for rule
applications that did not succeed (dead ends).
</p></dd>
<dt><code>No Dead Ends</code></dt>
<dd><p>All analysis states are displayed.
</p></dd>
<dt><code>Complete paths</code></dt>
<dd><p>Only the nodes that are part of a complete analysis are displayed.
</p></dd>
<dt><code>Show State Indexes</code></dt>
<dd><p>Toggles the display of the state’s indexes.
</p></dd>
</dl>
</dd>
<dt><code>End States</code></dt>
<dd><p>Select an end state to display in the <code>Path</code> window.
</p><dl compact="compact">
<dt><code>Show First</code></dt>
<dd><p>Display the first end state.
</p></dd>
<dt><code>Show Previous</code></dt>
<dd><p>If there is an end state displayed in the <code>Path</code> window, jump
to the previous one.
</p></dd>
<dt><code>Show Next</code></dt>
<dd><p>If there is an end state displayed in the <code>Path</code> window, jump
to the next one.
</p></dd>
<dt><code>Show Last</code></dt>
<dd><p>Display the last end state.
</p></dd>
</dl>
</dd>
</dl>
<p>The <code>Path</code> window has got its own menu bar which contains the
menus <code>Window</code>, <code>Style</code>, and <code>End States</code> with the same
menu items as the corresponding menus in the <code>Tree</code> window, and
two additional options in <code>Style</code>:
</p>
<dl compact="compact">
<dt><code>Hanging</code></dt>
<dd><p>Normally, all values and subvalues are aligned at their bottom. If
this option is active, records are “hanging down”: they are aligned
at their top.
</p></dd>
<dt><code>Inline</code></dt>
<dd><p>Normally, a state is displayed with surface, feature structure and
rule set stacked. If this option is active, they are displayed aligned
on on line.
</p></dd>
</dl>
<p>The <code>Path</code> window also has a menu <code>Path</code>, in which you can
specify whether state indexes are shown:
</p><dl compact="compact">
<dt><code>Show State Indexes</code></dt>
<dd><p>Toggles the display of the state’s indexes.
</p></dd>
</dl>
<hr>
<a name="up"></a>
<a name="The-Command-up"></a>
<h3 class="section">4.42 The Command <code>up</code></h3>
<a name="index-up-_0028command_0029"></a>
<p>If you want to look at the source and the variables of the (sub)rule that has
called the current subrule, you can do this by entering <code>up</code>. You can list
the frames via <code>backtrace</code>.
</p>
<hr>
<a name="variables"></a>
<a name="The-Command-variables"></a>
<h3 class="section">4.43 The Command <code>variables</code></h3>
<a name="index-variables-_0028command_0029"></a>
<p>If you invoke <code>variables</code>, you get the values of all Malaga
variables that are currently defined. The variables will be shown in the
order of their definitions. You can only use the command
<code>variables</code> in debug mode or if the previous analysis has stopped
with an error in the combination rules.
</p>
<p>If the option <code>use-display</code> is off, the variables will be sent to
standard output:
</p>
<table class="cartouche" border="1"><tr><td>
<div class="example">
<pre class="example">malaga> sa-debug You are so beautiful.
entering rule "Noun", surf: "", link: "You", state: 1
debug> variables
$sentence = [class: main_clause,
parts: <>]
$word = [class: pronoun,
result: S2]
debug>
</pre></div>
</td></tr></table>
<p>If the option <code>use-display</code> is on and <code>malshow</code> is used as
<code>display-cmd</code>, the variables will be displayed in window on their
own. If the <code>Variables</code> window is not open yet, it will open
now. If there is an open <code>Variables</code> window, the new variable
contents will be displayed in this window.
</p>
<p>You can left-click on a variable name to make its value disappear or appear
again.
</p>
<p>The <code>Variables</code> window has a menu with some commands:
</p>
<dl compact="compact">
<dt><code>Window</code></dt>
<dd><dl compact="compact">
<dt><code>Export Postscript...</code></dt>
<dd><p>Export the displayed variables as an Embedded Postscript
file. Currently, only ASCII, Latin-1 Supplement, Hangul Compatibility
Jamo and Hangul Syllables can be converted to Postscript.
</p></dd>
<dt><code>Close</code></dt>
<dd><p>Close the <code>Variables</code> window.
</p></dd>
</dl>
</dd>
<dt><code>Style</code></dt>
<dd><dl compact="compact">
<dt><code>Font Size ...</code></dt>
<dd><p>Select an item to adjust the font size.
</p></dd>
<dt><code>Hanging</code></dt>
<dd><p>Normally, all values and subvalues are aligned at their bottom. If
this option is active, records are “hanging down”: they are
aligned at their top.
</p></dd>
</dl>
</dd>
<dt><code>Variables</code></dt>
<dd><dl compact="compact">
<dt><code>Show All</code></dt>
<dd><p>Display the values of all variables currently defined.
</p></dd>
<dt><code>Hide All</code></dt>
<dd><p>Suppress the values of all variables currently defined.
</p></dd>
</dl>
</dd>
</dl>
<hr>
<a name="walk"></a>
<a name="The-Command-walk"></a>
<h3 class="section">4.44 The Command <code>walk</code></h3>
<a name="index-walk-_0028command_0029"></a>
<p>This command works in debug mode only. The rule execution will be continued and
stopped again as soon as a new rule is executed, a breakpoint is met or there
are no more rules to execute.
</p>
<hr>
<a name="where"></a>
<a name="The-Command-where"></a>
<h3 class="section">4.45 The Command <code>where</code></h3>
<a name="index-where-_0028command_0029"></a>
<p>This command can only be used in debugger mode or after rule execution
has been stopped by an error. It displays the name of the rule that
has been executed; additionally, the surfaces of state and link are
displayed in <code>malaga</code>. For example:
</p>
<table class="cartouche" border="1"><tr><td>
<div class="example">
<pre class="example">debug> where
at rule "flexion", surf: "hous", link: "es", state: 2
debug>
</pre></div>
</td></tr></table>
<hr>
<a name="Options"></a>
<a name="The-Options-of-malaga-and-mallex"></a>
<h2 class="chapter">5 The Options of <code>malaga</code> and <code>mallex</code></h2>
<a name="index-options"></a>
<p>The programs <code>malaga</code> and <code>mallex</code> share some of their
options, so I will describe them in a common chapter. Options can be set
using the command <code>set</code>, and you can get the current value of an
option using <code>get</code>. Options that can be used in <code>malaga</code> or
in <code>mallex</code> only, are marked by the name of the program in which
they can be used.
</p>
<hr>
<a name="alias"></a>
<a name="The-Option-alias"></a>
<h3 class="section">5.1 The Option <code>alias</code></h3>
<a name="index-alias-_0028option_0029"></a>
<p>With <code>alias</code>, you can define abbreviations for longer command
lines. As arguments, give an alias name and an expansion (a command line
which the name will stand for). If the expansion contains spaces,
enclose it in double quotes. Use <code>set alias <var>name</var></code> to delete
alias <var>name</var>.
</p>
<p>If you type the name of an alias at your command line, its expansion
will be executed. The character sequence ‘<samp>%a</samp>’ in your alias
definition will be replaced by what follows the alias name in the
command line.
</p>
<p>Aliases cannot be nested.
</p>
<hr>
<a name="allo_002dformat"></a>
<a name="The-Option-allo_002dformat-_0028mallex_0029"></a>
<h3 class="section">5.2 The Option <code>allo-format</code> (<code>mallex</code>)</h3>
<a name="index-allo_002dformat-_0028mallex-option_0029"></a>
<p>With <code>allo-format</code>, you can change the output format for the
generated allomorphs. Enter a format string as argument. If the format
string contains spaces, enclose it in double quotes. If the argument is
an empty string (<code>""</code>), no allomorphs will be shown.
</p>
<p>In the format string, the following sequences have a special meaning:
</p>
<dl compact="compact">
<dt>‘<samp>%c</samp>’</dt>
<dd><p>Will be replaced by the allomorph’s feature structure.
</p></dd>
<dt>‘<samp>%n</samp>’</dt>
<dd><p>Will be replaced by the allomorph’s number.
</p></dd>
<dt>‘<samp>%s</samp>’</dt>
<dd><p>Will be replaced by the allomorph’s surface.
</p></dd>
</dl>
<hr>
<a name="auto_002dtree"></a>
<a name="The-Option-auto_002dtree-_0028malaga_0029"></a>
<h3 class="section">5.3 The Option <code>auto-tree</code> (<code>malaga</code>)</h3>
<a name="index-auto_002dtree-_0028malaga-option_0029"></a>
<p>You can use <code>auto-tree</code> to make <code>malaga</code> execute the
<code>tree</code> command each time when you invoked an analysis by <code>ma</code>
or <code>sa</code>. Set it in one of the following ways:
</p>
<dl compact="compact">
<dt><code>set auto-tree yes</code></dt>
<dd><p>The <code>tree</code> command will be executed after each analysis.
</p></dd>
<dt><code>set auto-tree no</code></dt>
<dd><p>The <code>tree</code> command will not be executed automatically.
</p></dd>
</dl>
<hr>
<a name="auto_002dvariables"></a>
<a name="The-Option-auto_002dvariables"></a>
<h3 class="section">5.4 The Option <code>auto-variables</code></h3>
<a name="index-auto_002dvariables-_0028option_0029"></a>
<p>When <code>malaga</code> or <code>mallex</code> stops in debug mode while executing
a malaga rule, they can automatically show the defined variables at this
point. Use the option <code>auto-variables</code> to set this behaviour.
</p>
<dl compact="compact">
<dt><code>set auto-variables yes</code></dt>
<dd><p>The <code>variables</code> command will be executed each time when
<code>malaga</code> or <code>mallex</code> stops in debug mode.
</p></dd>
<dt><code>set auto-variables no</code></dt>
<dd><p>The <code>variables</code> command will not be executed automatically.
</p></dd>
</dl>
<hr>
<a name="cache_002dsize"></a>
<a name="The-Option-cache_002dsize-_0028malaga_0029"></a>
<h3 class="section">5.5 The Option <code>cache-size</code> (<code>malaga</code>)</h3>
<a name="index-cache_002dsize-_0028malaga-option_0029"></a>
<p>Malaga has a cache for word forms. You can set the cache size, i.e. the maximum
number of words in the cache, to <var>n</var> with <code>set cache-size <var>n</var></code>.
If you set the cache size to 0, the cache will be deactivated.
</p>
<p>When malaga analyses a word form or sentence, it tries to get a word form from
the cache before it uses the morphology combination rules. Therefore, malaga
separates the first word form from the remaining input. It uses spacing
characters as separators; so if a word-form contains a space or does not end
with a space, caching will not work.
</p>
<hr>
<a name="display_002dcmd"></a>
<a name="The-Option-display_002dcmd"></a>
<h3 class="section">5.6 The Option <code>display-cmd</code></h3>
<a name="index-display_002dcmd-_0028option_0029"></a>
<p>The programs <code>malaga</code> and <code>mallex</code> normally use the program
<code>malshow</code> for GUI-based display of Malaga trees, results or
variables. If you want to use a different display program, set the
command line that starts this program with the <code>display</code> option,
like this:
</p>
<div class="example">
<pre class="example">set display-cmd "java -classpath /opt/malaga/amalgam Amalgam"
</pre></div>
<hr>
<a name="error_002dformat"></a>
<a name="The-Option-error_002dformat-_0028malaga_0029"></a>
<h3 class="section">5.7 The Option <code>error-format</code> (<code>malaga</code>)</h3>
<a name="index-error_002dformat-_0028malaga-option_0029"></a>
<p>With <code>error-format</code>, you can change the output format for items
that produced an analysis error. Enter a format string as argument. If the
format string contains spaces, enclose it in double quotes. If the argument is
an empty string (<code>""</code>), no forms that produced an error will be shown.
</p>
<p>In the format string, the following sequences have a special meaning:
</p>
<dl compact="compact">
<dt>‘<samp>%e</samp>’</dt>
<dd><p>Will be replaced by the error message for the analysed form.
</p></dd>
<dt>‘<samp>%l</samp>’</dt>
<dd><p>Will be replaced by the line number of the analysed form.
</p></dd>
<dt>‘<samp>%n</samp>’</dt>
<dd><p>Will be replaced by the number of analysis states for this form.
</p></dd>
<dt>‘<samp>%s</samp>’</dt>
<dd><p>Will be replaced by the surface.
</p></dd>
</dl>
<hr>
<a name="hidden"></a>
<a name="The-Option-hidden"></a>
<h3 class="section">5.8 The Option <code>hidden</code></h3>
<a name="index-hidden-_0028option_0029"></a>
<p>Some grammars can produce very large feature structures, so it can be useful
not to show the values of some specified attributes. To achieve this, use the
option <code>hidden</code>. You can give any number of arguments to this option. The
following arguments are available:
</p>
<dl compact="compact">
<dt>‘<samp>+<var>attribute-name</var></samp>’</dt>
<dd><p>The specified attribute name will be put in parentheses if it occurs in
a value; the attribute value will not be shown.
</p></dd>
<dt>‘<samp>-<var>attribute-name</var></samp>’</dt>
<dd><p>The specified attribute will be shown completely again in the future.
</p></dd>
<dt>‘<samp>none</samp>’</dt>
<dd><p>All attributes will be shown completely again in the future.
</p></dd>
</dl>
<hr>
<a name="mor_002dincomplete"></a>
<a name="The-Option-mor_002dincomplete-_0028malaga_0029"></a>
<h3 class="section">5.9 The Option <code>mor-incomplete</code> (<code>malaga</code>)</h3>
<a name="index-mor_002dincomplete-_0028malaga-option_0029"></a>
<p>If you want to get morphological analysis results not only for the whole input
line, but for any grammatically well-formed prefix of the input line, you can
use the option <code>mor-incomplete</code>:
</p>
<dl compact="compact">
<dt><code>set mor-incomplete yes</code></dt>
<dd><p>Accept words that have been incompletely parsed.
</p></dd>
<dt><code>set mor-incomplete no</code></dt>
<dd><p>Only accept words that have been completely parsed.
</p></dd>
</dl>
<p>Note that this option has no effect in subordinate morphological analyses that
are needed by syntactic analysis.
</p>
<hr>
<a name="mor_002dout_002dfilter"></a>
<a name="The-Option-mor_002dout_002dfilter-_0028malaga_0029"></a>
<h3 class="section">5.10 The Option <code>mor-out-filter</code> (<code>malaga</code>)</h3>
<a name="index-mor_002dout_002dfilter-_0028malaga-option_0029"></a>
<p>Use the option <code>mor-out-filter</code> to switch the morphology output-filter
on or off:
</p>
<dl compact="compact">
<dt><code>set mor-out-filter yes</code></dt>
<dd><p>Activate the filter.
</p></dd>
<dt><code>set mor-out-filter no</code></dt>
<dd><p>Deactivate the filter.
</p></dd>
</dl>
<hr>
<a name="mor_002dpruning"></a>
<a name="The-Option-mor_002dpruning-_0028malaga_0029"></a>
<h3 class="section">5.11 The Option <code>mor-pruning</code> (<code>malaga</code>)</h3>
<a name="index-mor_002dpruning-_0028malaga-option_0029"></a>
<a name="index-Pruning"></a>
<p>In your morphology rules, you may have specified a pruning rule that
can prune the morphology analysis tree, i.e. it can reduce the number of
parallel paths. If you want this pruning rule to be executed, use the
option <code>mor-pruning</code>. Use one of the following arguments:
</p>
<dl compact="compact">
<dt><code>set mor-pruning <var>n</var></code></dt>
<dd><p>Call the morphology pruning rule whenever at least <var>n</var> states have consumed
the same amount of input, for <var>n</var> > 0.
</p></dd>
<dt><code>set mor-pruning 0</code></dt>
<dd><p>Deactivate the morphology pruning rule.
</p></dd>
</dl>
<hr>
<a name="result_002dformat"></a>
<a name="The-Option-result_002dformat-_0028malaga_0029"></a>
<h3 class="section">5.12 The Option <code>result-format</code> (<code>malaga</code>)</h3>
<a name="index-result_002dformat-_0028malaga-option_0029"></a>
<p>With <code>result-format</code>, you can change the output format for analysed items
that have been recognised. Enter a format string as argument. If the format
string contains spaces, enclose it in double quotes. If the argument is an
empty string (<code>""</code>), no recognised forms will be shown.
</p>
<p>In the format string, the following sequences have a special meaning:
</p>
<dl compact="compact">
<dt>‘<samp>%c</samp>’</dt>
<dd><p>Will be replaced by the result feature structure of the analysis.
</p></dd>
<dt>‘<samp>%l</samp>’</dt>
<dd><p>Will be replaced by the line number of the analysed form.
</p></dd>
<dt>‘<samp>%n</samp>’</dt>
<dd><p>Will be replaced by the number of analysis states for this form.
</p></dd>
<dt>‘<samp>%r</samp>’</dt>
<dd><p>Will be replaced by the reading index (the results for a form are
indexed from 1 to the number of results).
</p></dd>
<dt>‘<samp>%s</samp>’</dt>
<dd><p>Will be replaced by the surface.
</p></dd>
</dl>
<hr>
<a name="result_002dlist"></a>
<a name="The-Option-result_002dlist-_0028malaga_0029"></a>
<h3 class="section">5.13 The Option <code>result-list</code> (<code>malaga</code>)</h3>
<a name="index-result_002dlist-_0028malaga-option_0029"></a>
<p>With this command, you can specify whether you want malaga to pack all
analysis results into a single list. This option only has an impact in
filter mode or when a file is being analysed. Even results of
different lengths are combined; this could not be achieved by an
output-filter. Results of different lenghts can occur when the option
<code>mor-incomplete</code> or <code>syn-incomplete</code> is active.
</p>
<dl compact="compact">
<dt><code>set result-list yes</code></dt>
<dd><p>Combine results into a single list.
</p></dd>
<dt><code>set result-list no</code></dt>
<dd><p>Leave results unchanged.
</p></dd>
</dl>
<hr>
<a name="robust_002drule"></a>
<a name="The-Option-robust_002drule-_0028malaga_0029"></a>
<h3 class="section">5.14 The Option <code>robust-rule</code> (<code>malaga</code>)</h3>
<a name="index-robust_002drule-_0028malaga-option_0029"></a>
<p>With this command, you can specify if you want to run a robust-rule for the
word forms that could not be recognised by LAG rules. The robust-rule gets the
surface of an unknown word form as parameter and it can create one or more
results by executing the <code>result</code> statement.
</p>
<dl compact="compact">
<dt><code>set robust-rule yes</code></dt>
<dd><p>Enable the robust rule.
</p></dd>
<dt><code>set robust-rule no</code></dt>
<dd><p>Disable the robust rule.
</p></dd>
</dl>
<hr>
<a name="roman_002dhangul"></a>
<a name="The-Option-roman_002dhangul"></a>
<h3 class="section">5.15 The Option <code>roman-hangul</code></h3>
<a name="index-roman_002dhangul-_0028option_0029"></a>
<a name="index-Hangul_002c-transcribed"></a>
<a name="index-transcribed-Hangul"></a>
<p>If you are using the option ‘<samp>split-hangul-syllables: yes</samp>’ in
your project file, Malaga can transcribe Hangul using Latin
letters, basing on the Yale system. The transcribed text is enclosed
in curly braces, and each syllable starts with a dot.
</p>
<dl compact="compact">
<dt><code>set roman-hangul yes</code></dt>
<dd><p>Display Hangul using Latin transcription.
</p></dd>
<dt><code>set roman-hangul no</code></dt>
<dd><p>Display Hangul directly.
</p></dd>
</dl>
<hr>
<a name="sort_002drecords"></a>
<a name="The-Option-sort_002drecords"></a>
<h3 class="section">5.16 The Option <code>sort-records</code></h3>
<a name="index-sort_002drecords-_0028option_0029"></a>
<a name="index-order_002c-attribute"></a>
<a name="index-attribute-order"></a>
<p>There are different ways to determine the order in which the attributes of a
record are displayed. With <code>sort-records</code>, you can choose between three
order schemes:
</p>
<dl compact="compact">
<dt><code>set sort-records internal</code></dt>
<dd><p>The attributes will be displayed in the order they have internally.
</p></dd>
<dt><code>set sort-records alphabetic</code></dt>
<dd><p>The attributes will be ordered alphabetically by their names.
</p></dd>
<dt><code>set sort-records definition</code></dt>
<dd><p>The attributes will be ordered by their names; the order is the same as
in the symbol table.
</p></dd>
</dl>
<hr>
<a name="switch"></a>
<a name="The-Option-switch"></a>
<h3 class="section">5.17 The Option <code>switch</code></h3>
<a name="index-switch-_0028option_0029"></a>
<p>Malaga rules can query simple Malaga values (<em>switches</em>) that you can
change during run time. Use the option <code>switch</code> to change the values:
</p>
<dl compact="compact">
<dt><code>set switch <var>name</var> <var>value</var></code></dt>
<dd><p>Set the switch <var>name</var>, which must be a symbol, to <var>value</var>, which
can be any Malaga value.
</p></dd>
</dl>
<hr>
<a name="syn_002dincomplete"></a>
<a name="The-Option-syn_002dincomplete-_0028malaga_0029"></a>
<h3 class="section">5.18 The Option <code>syn-incomplete</code> (<code>malaga</code>)</h3>
<a name="index-syn_002dincomplete-_0028malaga-option_0029"></a>
<p>If you want to get syntactic analysis results not only for the whole input
line, but for any grammatically well-formed prefix of the sentence, you can use
the option <code>syn-incomplete</code>:
</p>
<dl compact="compact">
<dt><code>set syn-incomplete yes</code></dt>
<dd><p>Accept sentences that have been incompletely parsed.
</p></dd>
<dt><code>set syn-incomplete no</code></dt>
<dd><p>Only accept sentences that have been completely parsed.
</p></dd>
</dl>
<hr>
<a name="syn_002din_002dfilter"></a>
<a name="The-Option-syn_002din_002dfilter-_0028malaga_0029"></a>
<h3 class="section">5.19 The Option <code>syn-in-filter</code> (<code>malaga</code>)</h3>
<a name="index-syn_002din_002dfilter-_0028malaga-option_0029"></a>
<p>Use the option <code>syn-in-filter</code> to switch the syntax input-filter on or
off:
</p>
<dl compact="compact">
<dt><code>set syn-in-filter yes</code></dt>
<dd><p>Activate the filter.
</p></dd>
<dt><code>set syn-in-filter no</code></dt>
<dd><p>Deactivate the filter.
</p></dd>
</dl>
<hr>
<a name="syn_002dout_002dfilter"></a>
<a name="The-Option-syn_002dout_002dfilter-_0028malaga_0029"></a>
<h3 class="section">5.20 The Option <code>syn-out-filter</code> (<code>malaga</code>)</h3>
<a name="index-syn_002dout_002dfilter-_0028malaga-option_0029"></a>
<p>Use the option <code>syn-out-filter</code> to switch the syntax output-filter on
or off:
</p>
<dl compact="compact">
<dt><code>set syn-out-filter yes</code></dt>
<dd><p>Activate the filter.
</p></dd>
<dt><code>set syn-out-filter no</code></dt>
<dd><p>Deactivate the filter.
</p></dd>
</dl>
<hr>
<a name="syn_002dpruning"></a>
<a name="The-Option-syn_002dpruning-_0028malaga_0029"></a>
<h3 class="section">5.21 The Option <code>syn-pruning</code> (<code>malaga</code>)</h3>
<a name="index-syn_002dpruning-_0028malaga-option_0029"></a>
<a name="index-Pruning-1"></a>
<p>In your syntax rules, you may have specified a pruning rule that can prune the
syntax analysis tree, i.e. it can reduce the number of parallel paths. If you
want this pruning rule to be executed, use the option <code>syn-pruning</code>.
Use one of the following arguments:
</p>
<dl compact="compact">
<dt><code>set syn-pruning <var>n</var></code></dt>
<dd><p>Call the syntax pruning rule whenever at least <var>n</var> states have consumed
the same amount of input, for <var>n</var> > 0.
</p></dd>
<dt><code>set syn-pruning 0</code></dt>
<dd><p>Deactivate the syntax pruning rule.
</p></dd>
</dl>
<hr>
<a name="transmit_002dcmd"></a>
<a name="The-Option-transmit_002dcmd"></a>
<h3 class="section">5.22 The Option <code>transmit-cmd</code></h3>
<a name="index-transmit_002dcmd-_0028option_0029"></a>
<p>If you want to use the <code>transmit</code> function in <code>malaga</code> or
<code>mallex</code>, you have to set a command line that starts the transmit
process using the <code>transmit-cmd</code> option. Here is an example:
</p>
<div class="example">
<pre class="example">set transmit-cmd "perl my-transmit-program.pl"
</pre></div>
<hr>
<a name="unknown_002dformat"></a>
<a name="The-Option-unknown_002dformat-_0028malaga_0029"></a>
<h3 class="section">5.23 The Option <code>unknown-format</code> (<code>malaga</code>)</h3>
<a name="index-unknown_002dformat-_0028malaga-option_0029"></a>
<p>With <code>unknown-format</code>, you can change the output format for analysed items
that have not been recognised. Enter a format string as argument. If the
format string contains spaces, enclose it in double quotes. If the argument is
an empty string (<code>""</code>), no unrecognised forms will be shown.
</p>
<p>In the format string, the following sequences have a special meaning:
</p>
<dl compact="compact">
<dt>‘<samp>%l</samp>’</dt>
<dd><p>Will be replaced by the line number of the analysed form.
</p></dd>
<dt>‘<samp>%n</samp>’</dt>
<dd><p>Will be replaced by the number of analysis states for this form.
</p></dd>
<dt>‘<samp>%s</samp>’</dt>
<dd><p>Will be replaced by the surface.
</p></dd>
</dl>
<hr>
<a name="use_002ddisplay"></a>
<a name="The-Option-use_002ddisplay"></a>
<h3 class="section">5.24 The Option <code>use-display</code></h3>
<a name="index-use_002ddisplay-_0028option_0029"></a>
<p>If you want the output of the commands <code>result</code> and <code>variables</code> to be
shown by the <code>Display</code> process, use the option <code>use-display</code>:
</p>
<dl compact="compact">
<dt><code>set use-display yes</code></dt>
<dd><p>Use the <code>Display</code> process to show the output of <code>result</code> and
<code>variables</code>.
</p></dd>
<dt><code>set use-display no</code></dt>
<dd><p>Send the output of <code>result</code> and <code>variables</code> to your terminal.
</p></dd>
</dl>
<hr>
<a name="The-Language"></a>
<a name="The-Programming-Language-Malaga"></a>
<h2 class="chapter">6 The Programming Language Malaga</h2>
<a name="index-Malaga_002c-programming-language"></a>
<hr>
<a name="Characterisation"></a>
<a name="Characterisation-of-Malaga"></a>
<h3 class="section">6.1 Characterisation of Malaga</h3>
<p>A malaga rule file resembles much in programming languages like Pascal
or C (of course, those languages do not have a Left-Associative Grammar
formalism built in). A malaga source file must be translated before
execution, this is the same as for compiler languages. But the
generated Malaga code is not a machine code, but an <em>intermediate code</em>
and has to be executed (<em>interpreted</em>) by an analysis program.
Malaga may be characterised as follows, as far as programming structures and
data structures are concerned:
</p>
<dl compact="compact">
<dt><em>structured values:</em></dt>
<dd><p>The basic values in Malaga are symbols (names that can be used e.g. for
categories or subcategories), numbers (floating point numbers), and
strings. Values can be combined to ordered lists or records (also known
as attribute-value matrixes). A value in a list or a record can be a list or a
record itself. An “ambiguous” symbol like <code>singular_plural</code> can
be assigned a list of symbols like <code><singular, plural></code>; such a
symbol is called a <em>multi-symbol</em>.
</p>
</dd>
<dt><em>structured statements:</em></dt>
<dd><p>In Malaga, the concept of statement blocks is implemented in a similar
way as it is in the programming language Pascal. There are structured
control statements to select or repeat a statement sequence. A variable
is always defined <em>locally</em>, i.e. it only exists from the point
where it has been defined up to the end of the statement sequence in
which it has been defined.
</p>
</dd>
<dt><em>no type restrictions:</em></dt>
<dd><p>Any value can be assigned to a variable and the programmer can freely
define the structure of values.
</p>
</dd>
<dt><em>no side effects:</em></dt>
<dd><p>Malaga is, unlike programming languages like Pascal or C, free of side
effects. If a variable gets a value, no other variable will be
changed. Analysis paths are independent of each other.
</p>
</dd>
<dt><em>termination:</em></dt>
<dd><p>A Malaga grammar that contains no recursive subrules and no
<code>repeat</code> statements is guaranteed to terminate, i.e. it can never
hang in a loop.
</p>
</dd>
<dt><em>variables:</em></dt>
<dd><p>In a <code>define</code> statement, a variable is defined and gets an initial
value. Use an assignment to set a variable that has already been defined
to a new value.
</p>
</dd>
<dt><em>operators:</em></dt>
<dd><p>Many generative grammar theories or linguistical programming languages use the
concept of unification of feature structures. Malaga does not use unification,
but it offers some operators to build feature structures explicitly. Since
Malaga does without unification, analyses are much faster.
</p></dd>
</dl>
<hr>
<a name="Source-Texts"></a>
<a name="Malaga-Source-Texts"></a>
<h3 class="section">6.2 Malaga Source Texts</h3>
<p>Source texts in Malaga must be in the Unicode UTF-8 format. They are
format-free; this means that between lexical symbols (strings,
identifiers, keywords, numerals and symbols such as ‘<samp>+</samp>’, ‘<samp>~</samp>’
or ‘<samp>:=</samp>’) there may be blanks or newlines (whitespaces) or
comments. Between two identifiers or two keywords there <em>must</em> be
at least one whitespace to separate them syntactically.
</p>
<hr>
<a name="Comments"></a>
<a name="Comments-1"></a>
<h4 class="subsection">6.2.1 Comments</h4>
<a name="index-comments"></a>
<p>A comment may be inserted everywhere where a whitespace may be inserted. A
comment begins with the symbol ‘<samp>#</samp>’ and extends to the end of the line.
Comments are being ignored.
</p>
<hr>
<a name="Include"></a>
<a name="The-include-Statement"></a>
<h4 class="subsection">6.2.2 The <code>include</code> Statement</h4>
<a name="index-include-_0028statement_0029"></a>
<p>A Malaga file may contain the statement
</p>
<div class="example">
<pre class="example">include "<var>filename</var>";
</pre></div>
<p>In a rule file, it can stand everywhere a rule can stand. In lexicon
files, it can stand in place of a value; in symbol files, it can replace
a symbol definition. The text of the included file is inserted verbatim
at the very location where the <code>include</code> statement occurs. The file
name has to be stated relatively to the directory of the file which
contains the <code>include</code> statement.
</p>
<hr>
<a name="Identifiers"></a>
<a name="Identifiers-1"></a>
<h4 class="subsection">6.2.3 Identifiers</h4>
<a name="index-identifiers"></a>
<p>In Malaga, names for variables, constants, symbols, and rules, and (see below
for explanation) are called <em>identifiers</em>. An identifier may consist of
uppercase and lowercase characters, the underscore ‘<samp>_</samp>’, the ampersand
‘<samp>&</samp>’, the vertical bar ‘<samp>|</samp>’, and, from the second character on,
also of digits. Uppercase and lowercase characters are not distinguished, i.e.,
Malaga is <em>not</em> case-sensitive. Malaga keywords must not be used as
identifiers. A variable name must start with a ‘<samp>$</samp>’, a constant name
must start with a ‘<samp>@</samp>’. The same identifier may be used as variable
name, constant name, symbol name, or rule name independently. Malaga can
distinguish them by the context in which they occur.
</p>
<p>Valid identifiers would be ‘<samp>Noun</samp>’, ‘<samp>noun</samp>’ (the same as the
first), ‘<samp>R2D2</samp>’, ‘<samp>Vb_aux</samp>’, ‘<samp>A|G|D</samp>’, ‘<samp>_INF</samp>’.
Identifiers like ‘<samp>2Noun</samp>’, ‘<samp>Verb.Frame</samp>’, ‘<samp>OK?</samp>’,
‘<samp>_~INF</samp>’ are <em>not</em> valid.
</p>
<hr>
<a name="Values"></a>
<a name="Values-1"></a>
<h3 class="section">6.3 Values</h3>
<a name="index-values"></a>
<p>Malaga expressions can have values with very complex structures. To describe
how those values can be composed from simple values a few rules suffice. Simple
values in Malaga are <em>symbols</em>, <em>numbers</em>, and <em>strings</em>,
which can be composed to form <em>records</em> and <em>lists</em>.
</p>
<hr>
<a name="Symbols"></a>
<a name="Symbols-1"></a>
<h4 class="subsection">6.3.1 Symbols</h4>
<a name="index-symbols"></a>
<p>The central data type in Malaga is the symbol. It is used for describing
syntactic or semantic properties of an allomorph, a word, or a
sentence. A symbol is an identifier like ‘<samp>Verb</samp>’, ‘<samp>reflexive</samp>’,
‘<samp>Sing_1</samp>’. The symbols ‘<samp>nil</samp>’, ‘<samp>yes</samp>’, ‘<samp>no</samp>’,
‘<samp>symbol</samp>’, ‘<samp>string</samp>’, ‘<samp>number</samp>’, ‘<samp>list</samp>’, and
‘<samp>record</samp>’ are predefined and have special meanings.
</p>
<hr>
<a name="Numbers"></a>
<a name="Numbers-1"></a>
<h4 class="subsection">6.3.2 Numbers</h4>
<a name="index-numbers"></a>
<p>A number in Malaga consists of an integer part, an optional fractional
part and an optional exponent of the form ‘<samp>E[+|-]n</samp>’. There must be
a dot between the integer part and the fractional part. Examples:
‘<samp>0</samp>’, ‘<samp>1</samp>’, ‘<samp>1.0</samp>’, ‘<samp>13.75</samp>’, ‘<samp>1.2E-5</samp>’.
</p>
<p>Alternatively, a number may consist of an integer number followed by
‘<samp>L</samp>’, indicating that the number is intended as a list index
counting from the <em>left</em> border), or by ‘<samp>R</samp>’, indicating that
the number is intended as a list index counting from the <em>right</em>
border. Examples: <code>5L</code> = <code>5</code>, <code>12R</code> = <code>-12</code>.
</p>
<hr>
<a name="Strings"></a>
<a name="Strings-1"></a>
<h4 class="subsection">6.3.3 Strings</h4>
<a name="index-strings"></a>
<p>A string may consist of any number of characters (it may also be empty). It
must be enclosed in double quotes and must not extend over more than one line.
Within the double quotes there may be any combination of printable characters
except the backslash ‘<samp>\</samp>’ and the double quotes. When part of a
string, these characters must be preceded by a ‘<samp>\</samp>’ (escape character).
<a name="index-escape-character-_0028_005c_0029"></a>
Examples: <code>"Hello"</code>, <code>"He says: \"Great\""</code>.
</p>
<hr>
<a name="Lists"></a>
<a name="Lists-1"></a>
<h4 class="subsection">6.3.4 Lists</h4>
<a name="index-lists"></a>
<p>A list is an ordered sequence of values. The values are separated by commas and
enclosed in angle brackets:
</p>
<div class="example">
<pre class="example"><<var>element1</var>, <var>element2</var>, ...>
</pre></div>
<p>A list may as well be empty. The elements in a list may be arbitrarily complex;
they may also be lists or records.
</p>
<hr>
<a name="Records"></a>
<a name="Records-1"></a>
<h4 class="subsection">6.3.5 Records</h4>
<a name="index-records"></a>
<a name="index-attributes"></a>
<p>A record is a collection of attributes. An <em>attribute</em> consists of a
symbol, the <em>attribute name</em>, and an associated <em>attribute value</em>,
which can be an arbitrary Malaga value. The attribute name serves as an access
key for the attribute value, so all attributes in a record must have distinct
names.
</p>
<p>Records are noted down as follows:
</p>
<div class="example">
<pre class="example">[<var>name1</var>: <var>value1</var>, <var>name2</var>: <var>value2</var>, ...]
</pre></div>
<p>where <var>name i</var> denotes an attribute name and <var>value i</var> the associated
attribute value. Example: <code>[Class: Verb, Reg: Reg, Val: dirObj]</code>.
</p>
<p>A record with no attributes, <code>[]</code>, is called <em>empty record</em>.
<a name="index-record_002c-empty"></a>
<a name="index-empty-record"></a>
</p>
<hr>
<a name="Expressions"></a>
<a name="Expressions-1"></a>
<h3 class="section">6.4 Expressions</h3>
<a name="index-expressions"></a>
<p>An expression is the form in which a value is used in Malaga. Values can be
written as follows:
</p>
<div class="example">
<pre class="example">[Surf: "he", Class: Pron, Case&Number: S3]
</pre></div>
<p>Variables (these are placeholders for values within a rule) can as well be used
as expressions:
</p>
<div class="example">
<pre class="example">$Pron
</pre></div>
<p>Furthermore, constants (placeholders for values in a rule file) can be used as
expressions:
</p>
<div class="example">
<pre class="example">@combination_table
</pre></div>
<p>All three forms can be mixed:
</p>
<div class="example">
<pre class="example">[Surf: "he", Class: Pron, Case&Number: $result]
</pre></div>
<p>Furthermore, there are operators which modify values or combine two
values to form a new value. Complex values can be composed using those
operators. All operators have a priority assigned. An operator with
higher priority is applied before an operator with lower priority. If
two operators have the same priority, they are applied from the left to
the right. The order in which the operators are to be applied can be
changed by bracketing with round parentheses ‘<samp>()</samp>’.
<a name="index-priority_002c-operator"></a>
<a name="index-operator-priority"></a>
</p>
<dl compact="compact">
<dt>unary ‘<samp>-</samp>’</dt>
<dd><p>very high priority
</p></dd>
<dt>‘<samp>.</samp>’</dt>
<dd><p>high priority
</p></dd>
<dt>‘<samp>*</samp>’, ‘<samp>/</samp>’</dt>
<dd><p>middle priority
</p></dd>
<dt>‘<samp>+</samp>’, ‘<samp>-</samp>’</dt>
<dd><p>low priority
</p></dd>
</dl>
<hr>
<a name="Malaga-Variables"></a>
<a name="Variables"></a>
<h4 class="subsection">6.4.1 Variables</h4>
<p>A variable is marked by a ‘<samp>$</samp>’ preceding its name. The name may be any
valid identifier. A variable is defined by the <code>define</code> statement; it
receives a value and may from this point on be used in all expressions within
the statement sequence. In such a statement sequence (and all subordinated
statement sequences) a variable with the same name must not be defined again.
</p>
<hr>
<a name="Constants"></a>
<a name="Constants-1"></a>
<h4 class="subsection">6.4.2 Constants</h4>
<a name="index-constants"></a>
<p>A constant is marked by a ‘<samp>@</samp>’ preceding its name. The name may be any
valid identifier. A constant is defined by a constant definition in a rule
file, outside a rule. It is assigned a value and can be used in subsequent
rules and constant definitions in that rule file.
</p>
<hr>
<a name="Subrule-Calls"></a>
<a name="Subrule-Invokations"></a>
<h4 class="subsection">6.4.3 Subrule Invokations</h4>
<a name="index-subrules_002c-calling"></a>
<p>A subrule is invoked when an expression
<code><var>subrule</var>(<var>value1</var>, <var>value2</var>, ...)</code> is evaluated.
</p>
<p>The expression yields the value that is returned by the <code>return</code>
statement in the subrule.
<a name="index-return-_0028statement_0029"></a>
</p>
<p>The number of parameters in a subrule invokation must match the number of
parameters in the subrule definition.
</p>
<p>There is a number of default subrules which are predefined. They are called
<em>functions</em>.
<a name="index-functions"></a>
</p>
<hr>
<a name="Atoms"></a>
<a name="The-Function-atoms"></a>
<h4 class="subsection">6.4.4 The Function <code>atoms</code></h4>
<a name="index-atoms-_0028function_0029"></a>
<p>The expression <code>atoms(<var>symbol</var>)</code> yields the list of atomic
symbols for <var>symbol</var>. If <var>symbol</var> is not a multi-symbol, it
yields the list <code><<var>symbol</var>></code>.
</p>
<hr>
<a name="Capital"></a>
<a name="The-Function-capital"></a>
<h4 class="subsection">6.4.5 The Function <code>capital</code></h4>
<a name="index-capital-_0028function_0029"></a>
<p>The expression <code>capital(<var>string</var>)</code> yields <code>yes</code> if the
first character of <var>string</var> is a capital letter, else it yields
<code>no</code>.
</p>
<hr>
<a name="Floor"></a>
<a name="The-Function-floor"></a>
<h4 class="subsection">6.4.6 The Function <code>floor</code></h4>
<a name="index-floor-_0028function_0029"></a>
<p>The expression <code>floor(<var>number</var>)</code> yields the largest integer
number that is not greater than <var>number</var>.
</p>
<hr>
<a name="Length"></a>
<a name="The-Function-length"></a>
<h4 class="subsection">6.4.7 The Function <code>length</code></h4>
<a name="index-length-_0028function_0029"></a>
<p>The expression <code>length(<var>list</var>)</code> yields the number of
elements in <var>list</var>.
</p>
<p>The expression <code>length(<var>string</var>)</code> yields the number of
characters in <var>string</var>.
</p>
<hr>
<a name="Multi"></a>
<a name="The-Function-multi"></a>
<h4 class="subsection">6.4.8 The Function <code>multi</code></h4>
<a name="index-multi-_0028function_0029"></a>
<p>The expression <code>multi(<var>list</var>)</code> where <var>list</var> is a list of
symbols, yields the multi-symbol whose atomic list corresponds to
<var>list</var>. If <var>list</var> contains a single atomic symbol, this symbol
will be yield by the expression.
</p>
<hr>
<a name="Set"></a>
<a name="The-Function-set"></a>
<h4 class="subsection">6.4.9 The Function <code>set</code></h4>
<a name="index-set-_0028function_0029"></a>
<p>The expression <code>set(<var>list</var>)</code> yields a list which contains
each element of <var>list</var>, but only once. That means, the list is
converted to a set.
</p>
<hr>
<a name="Substring"></a>
<a name="The-Function-substring"></a>
<h4 class="subsection">6.4.10 The Function <code>substring</code></h4>
<a name="index-substring-_0028function_0029"></a>
<p>The expression <code>substring(<var>string</var>, <var>start_index</var>,
<var>end_index</var>)</code> yields the substring of <var>string</var> that starts at
<var>start_index</var> and ends at <var>end_index</var>, both inclusive. A
positive index counts from the string start: <code>1L</code> is the index of
the first character; a negative index counts from the string end:
<code>1R</code> is the index of the last character. If <var>end_index</var> is
omitted, it is assumed to be the same as <var>start_index</var>, so
<code>substring(<var>string</var>, <var>index</var>)</code> yields the character at
<var>index</var> in <var>string</var>. If <var>end_index</var> is less than
<var>start_index</var>, the function yields an empty string.
</p>
<hr>
<a name="Switch"></a>
<a name="The-Function-switch"></a>
<h4 class="subsection">6.4.11 The Function <code>switch</code></h4>
<a name="index-switch-_0028function_0029"></a>
<p>The expression <code>switch(<var>symbol</var>)</code> yields the current value of
the switch associated to <var>symbol</var>. Use the option <code>switch</code> to
change this value.
</p>
<hr>
<a name="Transmit"></a>
<a name="The-Function-transmit"></a>
<h4 class="subsection">6.4.12 The Function <code>transmit</code></h4>
<a name="index-transmit-_0028function_0029"></a>
<p>The expression <code>transmit(<var>value</var>)</code> writes <var>value</var>,
converted to text format, to the transmit process via pipe and reads a
value in text format from the transmit process via pipe. The answer is
converted to the internal Malaga value format and returned as the
result of the expression.
</p>
<p>When this function is evaluated, the transmit process is started if it
is not running. The command line of the transmit process is specified by
the option <code>transmit</code>.
</p>
<hr>
<a name="Value_005fString"></a>
<a name="The-Function-value_005fstring"></a>
<h4 class="subsection">6.4.13 The Function <code>value_string</code></h4>
<a name="index-value_005fstring-_0028function_0029"></a>
<p>The expression <code>value_string(<var>value</var>)</code> returns <var>value</var>
converted to text format as a string.
</p>
<hr>
<a name="Value_005fType"></a>
<a name="The-Function-value_005ftype"></a>
<h4 class="subsection">6.4.14 The Function <code>value_type</code></h4>
<a name="index-value_005ftype-_0028function_0029"></a>
<p>The expression <code>value_type(<var>value</var>)</code> yields the type of
<var>value</var>. The type information is coded as one of the symbols
<code>symbol</code>, <code>string</code>, <code>number</code>, <code>list</code>, or
<code>record</code>.
</p>
<hr>
<a name="If-Expression"></a>
<a name="The-if-Expression"></a>
<h4 class="subsection">6.4.15 The <code>if</code> Expression</h4>
<a name="index-if-_0028expression_0029"></a>
<a name="index-else-_0028keyword_0029"></a>
<a name="index-elseif-_0028keyword_0029"></a>
<p>An <code>if</code> expression has the following form:
</p>
<div class="example">
<pre class="example">if <var>condition1</var> then
<var>expression1</var>
elseif <var>condition2</var> then
<var>expression2</var>
else
<var>expression3</var>
end if
</pre></div>
<p>The <code>elseif</code> part may be repeated unrestrictedly (including zero times).
</p>
<p>First, <var>condition1</var> is evaluated. If it is satisfied, the
expression <var>expression1</var> is evaluated and yields the value of the
<code>if</code> expression.
</p>
<p>If <var>condition1</var> is not satisfied, each condition following an
<code>elseif</code> keyword is evaluated in turn, until a condition is found
that is satisfied. The expression that follows this condition will be
evaluated and yields the value of the <code>if</code> expression.
</p>
<p>If the <code>if</code> condition and <code>elseif</code> conditions all fail, the
expression <var>expression3</var> will be evaluated and yields the value of
the <code>if</code> expression.
</p>
<p>The <code>if</code> after the <code>end</code> may be omitted.
</p>
<hr>
<a name="Unary-Minus"></a>
<a name="Unary-_002d"></a>
<h4 class="subsection">6.4.16 Unary ‘<samp>-</samp>’</h4>
<p>A ‘<samp>-</samp>’ in front of a value of type <code>number</code> negates that value.
</p>
<hr>
<a name="Operator-Dot"></a>
<a name="The-Operator-_002e"></a>
<h4 class="subsection">6.4.17 The Operator ‘<samp>.</samp>’</h4>
<p>This operator may only be used in the following ways:
</p>
<dl compact="compact">
<dt><code><var>record</var>.<var>symbol</var></code></dt>
<dd><p>This yields the attribute value of the attribute of <var>record</var> whose
name is <var>symbol</var>. If there is no attribute in <var>record</var> whose
name is <var>symbol</var>, the expression yields the special symbol
<code>nil</code>.
</p>
</dd>
<dt><code><var>list</var>.<var>number</var></code></dt>
<dd><p>This yields the element of <var>list</var> at position <var>number</var>. If
there is no element at position <var>number</var> in <var>list</var>, the
expression yields the special symbol <code>nil</code>.
</p>
</dd>
<dt><code><var>value</var>.<var>list</var></code></dt>
<dd><p>Here, <var>list</var> must be a list <code><<var>e1</var>, <var>e2</var>, ...></code> of
symbols and/or numbers. This expression serves as an abbreviation for
<code><var>value</var>.<var>e1</var>.<var>e2</var>...</code>.
</p></dd>
</dl>
<hr>
<a name="Operator-Plus"></a>
<a name="The-Operator-_002b"></a>
<h4 class="subsection">6.4.18 The Operator ‘<samp>+</samp>’</h4>
<a name="index-_002b-_0028operator_0029"></a>
<p>This operator may only be used in the following ways:
</p>
<dl compact="compact">
<dt><code><var>string1</var> + <var>string2</var></code></dt>
<dd><p>This yields the concatenation of <var>string1</var> and <var>string2</var>.
</p>
</dd>
<dt><code><var>list1</var> + <var>list2</var></code></dt>
<dd><p>This yields the concatenation of <var>list1</var> and <var>list2</var>.
</p>
</dd>
<dt><code><var>number1</var> + <var>number2</var></code></dt>
<dd><p>This yields the sum of <var>number1</var> and <var>number2</var>.
</p>
</dd>
<dt><code><var>record1</var> + <var>record2</var></code></dt>
<dd><p>This yields a record wich consists of all attributes of <var>record1</var>
and <var>record2</var>. If <var>record1</var> and <var>record2</var> have a common
attribute names, the corresponding attributes in the result record will
have the attribute values from <var>record2</var>, in contrast to the
operator ‘<samp>*</samp>’.
</p></dd>
</dl>
<hr>
<a name="Operator-Minus"></a>
<a name="The-Operator-_002d"></a>
<h4 class="subsection">6.4.19 The Operator ‘<samp>-</samp>’</h4>
<a name="index-_002d-_0028operator_0029"></a>
<p>This operator may only be used in the following ways:
</p>
<dl compact="compact">
<dt><code><var>record</var> - <var>symbol</var></code></dt>
<dd><p>This yields <var>record</var> without the attribute named <var>symbol</var>, if
<var>symbol</var> is an attribute name in <var>record</var>. If not, the
expression yields <var>record</var>.
</p>
</dd>
<dt><code><var>record</var> - <var>list</var></code></dt>
<dd><p>Here, <var>list</var> must be a list of symbols. This yields <var>record</var>
without the attributes in <var>list</var>.
</p>
</dd>
<dt><code><var>list</var> - <var>number</var></code></dt>
<dd><p>This yields <var>list</var> without the element at index <var>number</var>. If
this element does not exist, the expression yields <var>list</var>.
</p>
</dd>
<dt><code><var>list1</var> - <var>list2</var></code></dt>
<dd><p>This yields the multi-set difference of the two lists <var>list1</var> and
<var>list2</var>. This means, it yields the list <var>list1</var>, but the first
<var>n</var> appearances of each element will be deleted, if that element
appears <var>n</var> times in <var>list2</var>.
</p>
</dd>
<dt><code><var>number1</var> - <var>number2</var></code></dt>
<dd><p>This yields the difference of <var>number1</var> and <var>number2</var>.
</p></dd>
</dl>
<hr>
<a name="Operator-Times"></a>
<a name="The-Operator-_002a"></a>
<h4 class="subsection">6.4.20 The Operator ‘<samp>*</samp>’</h4>
<a name="index-_002a-_0028operator_0029"></a>
<p>This operator may only be used in the following ways:
</p>
<dl compact="compact">
<dt><code><var>record</var> * <var>symbol</var></code></dt>
<dd><p>This yields the record which only contains the attribute of <var>record</var>
whose name is <var>symbol</var>.
</p>
</dd>
<dt><code><var>record1</var> * <var>record2</var></code></dt>
<dd><p>This yields a record wich consists of all attributes of <var>record1</var>
and <var>record2</var>. If <var>record1</var> and <var>record2</var> have a common
attribute names, the corresponding attributes in the result record will
have the attribute values from <var>record1</var>, in contrast to the
operator ‘<samp>+</samp>’.
</p>
</dd>
<dt><code><var>record</var> * <var>list</var></code></dt>
<dd><p>Her, <var>list</var> must be a list of symbols. This yields the record which
only contains the attributes of <var>record</var> whose names are in
<var>list</var>.
</p>
</dd>
<dt><code><var>list1</var> * <var>list2</var></code></dt>
<dd><p>This yields the <em>intersection</em> of the lists interpreted as
multi-sets; if an element is <var>m</var> times contained in <var>list1</var> and
<var>n</var> times contained in <var>list2</var>, it will be <code>min(<var>m</var>,
<var>n</var>)</code> times contained in the result.
</p>
</dd>
<dt><code><var>number1</var> * <var>number2</var></code></dt>
<dd><p>This yields the product of <var>number1</var> and <var>number2</var>.
</p></dd>
</dl>
<hr>
<a name="Operator-Divide"></a>
<a name="The-Operator-_002f"></a>
<h4 class="subsection">6.4.21 The Operator ‘<samp>/</samp>’</h4>
<a name="index-_002f-_0028operator_0029"></a>
<p>This operator may only be used in the following ways:
</p>
<dl compact="compact">
<dt><code><var>list1</var> / <var>list2</var></code></dt>
<dd><p>This yields the list which contains all elements of <var>list1</var> which
are not elements of <var>list2</var>.
</p>
</dd>
<dt><code><var>list</var> / <var>number</var></code></dt>
<dd><p>This yields the list which contains all elements of <var>list</var> without
the leftmost <var>number</var> elements, if <var>number</var> is positive, or
without the rightmost -<var>number</var> elements, if <var>number</var> is
negative.
</p>
</dd>
<dt><code><var>number1</var> / <var>number2</var></code></dt>
<dd><p>Here, <var>number2</var> must not be 0. This yields the quotient of
<var>number1</var> and <var>number2</var>.
</p></dd>
</dl>
<hr>
<a name="Conditions"></a>
<a name="Conditions-1"></a>
<h3 class="section">6.5 Conditions</h3>
<a name="index-conditions"></a>
<a name="index-yes-_0028symbol_0029"></a>
<a name="index-no-_0028symbol_0029"></a>
<p>A condition can either be true or false, as in <code>Verb = Verb</code> or
<code>Verb = Noun</code>, respectively. An expression that is evaluated to
any of the symbols <code>yes</code> or <code>no</code> is a valid condition.
</p>
<p>A condition can be used in all places where a non-constant value is
needed. It will evaluate to <code>yes</code> or <code>no</code>. In this case, the
condition must be surrounded by parentheses.
</p>
<hr>
<a name="Equality-Tests"></a>
<a name="The-Operators-_003d-and-_002f_003d"></a>
<h4 class="subsection">6.5.1 The Operators ‘<samp>=</samp>’ and ‘<samp>/=</samp>’</h4>
<a name="index-_003d-_0028operator_0029"></a>
<a name="index-_002f_003d-_0028operator_0029"></a>
<p>The condition <code><var>expr1</var> = <var>expr2</var></code> tests whether the
expressions <var>expr1</var> and <var>expr2</var> are equal. Depending on the
types of <var>expr1</var> and <var>expr2</var>, equality is defined as follows:
</p>
<dl compact="compact">
<dt><var>expr1</var> and <var>expr2</var> are both symbols or both numbers.</dt>
<dd><p>In this case <var>expr1</var> and <var>expr2</var> must be identical.
</p></dd>
<dt><var>expr1</var> and <var>expr2</var> are strings.</dt>
<dd><p>In this case <var>expr1</var> and <var>expr2</var> must be the same, but the
test is case-insensitive.
</p></dd>
<dt><var>expr1</var> and <var>expr2</var> are lists.</dt>
<dd><p>In this case <var>expr1</var> and <var>expr2</var> must have the same length,
and, for each <var>i</var>, the <var>i</var>-th element of <var>expr1</var> must
be equal to the <var>i</var>-th element of <var>expr2</var>.
</p></dd>
<dt><var>expr1</var> and <var>expr2</var> are records.</dt>
<dd><p>In this case <var>expr1</var> and <var>expr2</var> must contain the same
attribute names, though not necessarily in the same order.
For each attribute name, the attribute value of <var>expr1</var> and the
attribute value of <var>expr2</var> must be equal.
</p>
</dd>
</dl>
<p>If <var>expr1</var> and <var>expr2</var> do not have the same type and are both
different from the symbol <code>nil</code>, the test results in an error;
the symbol <code>nil</code> can be compared to any value without error message.
</p>
<p>The test <code><var>expr1</var> /= <var>expr2</var></code> holds if and only if the
test <code><var>expr1</var> = <var>expr2</var></code> does not hold.
</p>
<hr>
<a name="Number-Comparisons"></a>
<a name="The-Operators-less_002c-less_005fequal_002c-greater_002c-greater_005fequal"></a>
<h4 class="subsection">6.5.2 The Operators <code>less</code>, <code>less_equal</code>, <code>greater</code>, <code>greater_equal</code></h4>
<a name="index-less-_0028operator_0029"></a>
<a name="index-less_005fequal-_0028operator_0029"></a>
<a name="index-greater-_0028operator_0029"></a>
<a name="index-greater_005fequal-_0028operator_0029"></a>
<p>A condition of type <code><var>expr1</var> <var>operator</var> <var>expr2</var></code> compares
two numbers. Here, <var>operator</var> can have the following values:
</p>
<dl compact="compact">
<dt><code>less</code></dt>
<dd><p>The condition holds if <var>expr1</var> has a smaller value than <var>expr2</var>.
</p></dd>
<dt><code>less_equal</code></dt>
<dd><p>The condition holds if <var>expr1</var> has a smaller value than
<var>expr2</var> or both numbers are equal.
</p></dd>
<dt><code>greater</code></dt>
<dd><p>The condition holds if <var>expr1</var> has a bigger value than <var>expr2</var>
</p></dd>
<dt><code>greater_equal</code></dt>
<dd><p>The condition holds if <var>expr1</var> has a bigger value than
<var>expr2</var> or both numbers are equal.
</p></dd>
</dl>
<p>If either <var>expr1</var> or <var>expr2</var> is no number, an error will be
reported.
</p>
<hr>
<a name="Congruency-Tests"></a>
<a name="The-Operators-_007e-and-_002f_007e"></a>
<h4 class="subsection">6.5.3 The Operators ‘<samp>~</samp>’ and ‘<samp>/~</samp>’</h4>
<a name="index-_007e-_0028operator_0029"></a>
<a name="index-_002f_007e-_0028operator_0029"></a>
<p>The operator ‘<samp>~</samp>’ can be used in the following ways:
</p>
<dl compact="compact">
<dt><code><var>list1</var> ~ <var>list2</var></code></dt>
<dd><p>This tests whether <var>list1</var> and <var>list2</var> do <em>congruate</em>,
this means, whether they have at least one element in common.
</p>
</dd>
<dt><code><var>symbol1</var> ~ <var>symbol2</var></code></dt>
<dd><p>This tests if <code>atoms(<var>symbol1</var>)</code> and
<code>atoms(<var>symbol2</var>)</code>, the lists of their atomic symbols, do
congruate.
</p></dd>
</dl>
<p>The comparison <code><var>expr1</var> /~ <var>expr2</var></code> holds if and only if the
comparison <code><var>expr1</var> ~ <var>expr2</var></code> does not hold.
</p>
<hr>
<a name="Operator-In"></a>
<a name="The-Operator-in"></a>
<h4 class="subsection">6.5.4 The Operator <code>in</code></h4>
<a name="index-in-_0028operator_0029"></a>
<p>The operator <code>in</code> can be only used in the following ways:
</p>
<dl compact="compact">
<dt><code><var>symbol</var> in <var>record</var></code></dt>
<dd><p>This condition holds if and only if <var>record</var> contains an attribute named
<var>symbol</var>.
</p>
</dd>
<dt><code><var>value</var> in <var>list</var></code></dt>
<dd><p>This condition holds if and only if <var>value</var> is an element of
<var>list</var>.
</p></dd>
</dl>
<hr>
<a name="Regular-Expressions"></a>
<a name="The-matches-Condition-_0028Regular-Expressions_0029"></a>
<h4 class="subsection">6.5.5 The <code>matches</code> Condition (Regular Expressions)</h4>
<a name="index-matches-_0028operator_0029"></a>
<a name="index-expressions_002c-regular"></a>
<a name="index-regular-expressions"></a>
<a name="index-patterns_002c-string"></a>
<a name="index-string-patterns"></a>
<p>The condition
<code><var>expr</var> matches <var>pattern</var></code>
or
<code><var>expr</var> matches (<var>pattern</var>)</code>
interprets <var>pattern</var> as a pattern (a regular expression) and
tests whether <var>expr</var> matches <var>pattern</var>. Patterns are defined as
follows:
</p>
<dl compact="compact">
<dt><var>pattern</var> ::= <var>alternative</var> {‘<samp>|</samp>’ <var>alternative</var>}</dt>
<dd><p>The string must be identical with one of the alternatives.
</p>
</dd>
<dt><var>alternative</var> ::= {<var>atom</var> [‘<samp>*</samp>’ | ‘<samp>?</samp>’ | ‘<samp>+</samp>’]}</dt>
<dd><p>An alternative is a (possibly empty) sequence of atoms. An atom in a
pattern corresponds to a character in a string. By using an optional
postfix operator it is possible to specify for any atom how often it may
be repeated within the string at that location: zero times or
once (‘<samp>?</samp>’), at least once (‘<samp>+</samp>’), or arbitrarily often,
including zero times (‘<samp>*</samp>’).
</p>
<p>Normally, these operators are <em>greedy</em>, i.e. they try to match as
much as possible. If you put a ‘<samp>?</samp>’ behind a postfix operator, it
will try to match as few characters as possible. This can make a
difference if you’re assigning variables in your pattern.
</p>
</dd>
<dt><var>atom</var> ::= ‘<samp>(</samp>’ <var>pattern</var> ‘<samp>)</samp>’</dt>
<dd><p>A pattern may be grouped by parentheses.
</p>
</dd>
<dt><var>atom</var> ::= ‘<samp>[</samp>’ [‘<samp>^</samp>’] <var>range</var> {<var>range</var>} ‘<samp>]</samp>’</dt>
<dd><p>A character class. It represents exactly one character from one of the
ranges. If the symbol ‘<samp>^</samp>’ is the first one in the class, the
expression represents exactly one character that is <em>not</em> contained
in one of the ranges.
</p>
</dd>
<dt><var>atom</var> ::= ‘<samp>.</samp>’</dt>
<dd><p>Represents any character.
</p>
</dd>
<dt><var>atom</var> ::= <var>character</var></dt>
<dd><p>Represents the character itself.
</p>
</dd>
<dt><var>range</var> ::= <var>character1</var> [‘<samp>-</samp>’ <var>character2</var>]</dt>
<dd><p>The range contains any character with a code at least as big as the code
of <var>character1</var> and not bigger than the code of
<var>character2</var>. The code of <var>character2</var> must be at least as big
as the code of <var>character1</var>. If <var>character2</var> is omitted, the
range only contains <var>character1</var>.
</p>
</dd>
<dt><var>character</var> ::= Any character except ‘<samp>*?+[]^-.\|()</samp>’</dt>
<dd><p>To use one of the characters ‘<samp>*?+[]^-.|()</samp>’, it must be preceded by
a ‘<samp>\\</samp>’ (pattern escape). To insert the pattern escape itself, you
have to double it: ‘<samp>\\\\</samp>’.
</p>
</dd>
</dl>
<p>You can divide the pattern into segments:
</p>
<div class="example">
<pre class="example">$surf matches ("un|in|im|ir|il", ".*", "(en)?")
</pre></div>
<p>is is the same as
</p>
<div class="example">
<pre class="example">$surf matches ("(un|in|im|ir|il).*(en)?")
</pre></div>
<p>A section of the string can be stored in a variable by suffixing the respective
pattern with ‘<samp>: <var>variable_name</var></samp>’, as in
</p>
<div class="example">
<pre class="example">$surf matches ("un|in|im|ir|il": $a, ".*")
</pre></div>
<p>For backwards compatibility, you may also prefix the pattern with the variable
name, as in
</p>
<div class="example">
<pre class="example">$surf matches $a: "un|in|im|ir|il", ".*"
</pre></div>
<p>The variables defined by pattern matching are only defined in the statement
sequence which is being executed if the pattern matching is successful.
A <code>matches</code> condition may not have variable definitions in it if it
is
</p>
<ul>
<li> contained in a disjunction (an <code>or</code> condition),
</li><li> contained in a negation (a <code>not</code> condition), or
</li><li> used as a truth value (e.g. in an assignment).
</li></ul>
<hr>
<a name="Boolean-Operators"></a>
<a name="The-Operators-not_002c-and_002c-and-or"></a>
<h3 class="section">6.6 The Operators <code>not</code>, <code>and</code>, and <code>or</code></h3>
<a name="index-not-_0028operator_0029"></a>
<a name="index-and-_0028operator_0029"></a>
<a name="index-or-_0028operator_0029"></a>
<a name="index-boolean-operators"></a>
<p>Conditions can be combined logically:
</p>
<dl compact="compact">
<dt><code>not <var>cond</var></code></dt>
<dd><p>This is true if condition <var>cond</var> is false.
</p>
</dd>
<dt><code><var>cond1</var> and <var>cond2</var> and <var>cond3</var> and ...</code></dt>
<dd><p>This is true if all conditions <var>cond1</var>, <var>cond2</var>, <var>cond3</var>,
... are true. The conditions are tested one by one from left to right
until one of them is false. This is called <em>short-cut evaluation</em>.
</p>
</dd>
<dt><code><var>cond1</var> or <var>cond2</var> or <var>cond3</var> or ...</code></dt>
<dd><p>This is true if at least one of the conditions <var>cond1</var>,
<var>cond2</var>, <var>cond3</var>, ... is true. The conditions are tested one
by one from left to right until one of them is true. This is also a form
of short-cut evaluation.
</p></dd>
</dl>
<p>The operator <code>not</code> takes exactly one argument. If its argument contains
another logical operator, put it in parentheses ‘<samp>()</samp>’, as in
<code>not (<var>cond1</var> or <var>cond2</var>)</code>.
</p>
<p>The operators <code>and</code> and <code>or</code> may not be mixed as in
<code><var>cond1</var> and <var>cond2</var> or <var>cond3</var></code>; here the order of
evaluation would be ambiguous. Use parentheses ‘<samp>()</samp>’ to indicate in wich
order the condition is to be evaluated, as in
<code>(<var>cond1</var> and <var>cond2</var>) or <var>cond3</var></code>.
</p>
<hr>
<a name="Symbol-Table"></a>
<a name="The-Symbol-Table"></a>
<h3 class="section">6.7 The Symbol Table</h3>
<a name="index-symbol-table"></a>
<a name="index-symbol-definition"></a>
<p>Every symbol used in a grammar has to be defined at least once in the
<em>symbol table</em>. Every symbol must be followed by a semicolon:
<code>verb; noun; adjective;</code>
</p>
<p>Symbols that are being defined that way are called <em>atoms</em>. A
symbol can also be defined as a <em>molecule</em>. Then the entry for this
symbol has the following format:
<a name="index-atoms"></a>
<a name="index-molecules"></a>
</p>
<div class="example">
<pre class="example"><var>symbol</var> := <var>list</var>;
</pre></div>
<p>The <var>list</var> for this symbol must consist of at least two atoms; no atom may
occur more than once in the list. This list will be used by the operators
‘<samp>~</samp>’ and ‘<samp>/~</samp>’, <code>atoms</code>, and <code>multi</code>. The
lists in the symbol table must be different from each other; it does not
suffice that they only differ in the order of their elements. If a symbol is
defined more than once in the symbol table, the definitions must all match:
Either the symbol must always be defined atomic or it must always be molecular
with the same atom-list.
</p>
<hr>
<a name="Initial-State"></a>
<a name="The-Initial-State"></a>
<h3 class="section">6.8 The Initial State</h3>
<a name="index-state_002c-initial"></a>
<a name="index-initial-state"></a>
<p>The initial state in a combination rule file is defined as follows:
</p>
<div class="example">
<pre class="example">initial <var>value</var>, rules <var>rule1</var>, <var>rule2</var>, ...;
</pre></div>
<p>The initial state of a combi rule file specifies a feature structure and a list
of rules (behind the keyword <code>rules</code>). Each of the rules will be applied
to read in the first allomorph (in morphology) or word form (in syntax). The
list may be enclosed in parentheses.
</p>
<a name="index-failing-rule"></a>
<a name="index-rule_002c-failing"></a>
<a name="index-successful-rule"></a>
<a name="index-rule_002c-successful"></a>
<p>A combi rule or an end rule is successful if it creates at least one
new state, otherwise it fails. If you want rules to be executed only
if all other rules failed, you can put their names behind the other rules’
names and write an <code>else</code> in front of them:
</p>
<div class="example">
<pre class="example">initial <var>value</var>, rules <var>rule1</var>, <var>rule2</var> else
<var>rule3</var>, <var>rule4</var> else ...;
</pre></div>
<p>If both rules <var>rule1</var> and <var>rule2</var> fail, <var>rule3</var> and
<var>rule4</var> are executed. If these rules also fail, the next rules are
executed, and so on.
</p>
<hr>
<a name="Constant-Definition"></a>
<a name="The-Constant-Definition"></a>
<h3 class="section">6.9 The Constant Definition</h3>
<a name="index-constant-definition"></a>
<a name="index-definition_002c-constant"></a>
<p>A constant definition is of the form
</p>
<div class="example">
<pre class="example">define @<var>constant</var> := <var>expr</var>;
</pre></div>
<p>The constant expression <var>expr</var> will be evalued and the constant
@<var>constant</var> will be defined to have this value. The constant must
not have been defined previously. The constant is valid from this
definition up to the end of the rule file. If you use the keyword
<code>default</code> instead of <code>define</code>, you provide a default value for
@<var>constant</var>. This means, the value is only preliminary and may be
changed by a normal constant definition. After a constant has been used
in an expression, its value may not be changed any more.
</p>
<hr>
<a name="Rules"></a>
<a name="Rules-1"></a>
<h3 class="section">6.10 Rules</h3>
<a name="index-rules"></a>
<a name="index-allo_005frule-_0028rule_0029"></a>
<a name="index-combi_005frule-_0028rule_0029"></a>
<a name="index-end_005frule-_0028rule_0029"></a>
<a name="index-pruning_005frule-_0028rule_0029"></a>
<a name="index-robust_005frule-_0028rule_0029"></a>
<a name="index-input_005ffilter-_0028rule_0029"></a>
<a name="index-output_005ffilter-_0028rule_0029"></a>
<a name="index-subrule-_0028rule_0029"></a>
<p>A rule is a sequence of statements that is executed as a unit:
</p>
<div class="example">
<pre class="example">combi_rule <var>name</var>(<var>$param1</var>, <var>$param2</var>, ...):
<var>statement1</var>
<var>statement2</var>
...
end <var>name</var>;
</pre></div>
<p>A rule has to begin with one of the keywords <code>allo_rule</code>,
<code>combi_rule</code>, <code>end_rule</code>, <code>pruning_rule</code>,
<code>robust_rule</code>, <code>input_filter</code>, <code>output_filter</code> or
<code>subrule</code>. It is followed by its <em>parameter list</em>, a list of
variable names. The variables will be assigned the
parameter values when the rule is executed. The number of parameters
depends on the rule type. The rule names have the following meanings:
</p>
<dl compact="compact">
<dt><code>allo_rule(<var>$lex_entry</var>)</code></dt>
<dd><p>An allo-rule must occur exactly once in an allomorph rule file. It
analyses a lexical entry and must generate one or more allomorph entries
via <code>result</code>. An allomorph rule has one parameter, namely the
lexicon entry.
</p>
</dd>
<dt><code>combi_rule(<var>$state</var>, <var>$link</var>, <var>$surf</var>, <var>$index</var>)</code></dt>
<dd><p>Any number of combi-rules may occur in a combi-rule file. Before processing
such a rule, the <em>link</em> is read in, which is either the word form or
the allomorph that follows the state’s surface. The first parameter of the rule
is the state’s feature structure, the second is the link’s feature structure,
the third is the link’s surface, and the fourth is the link’s index. The third
and the fourth parameter are optional. A combi-rule may state a successor rule
set or accept the analysed input (both via <code>result</code>).
</p>
</dd>
<dt><code>end_rule(<var>$state</var>, <var>$remain_input</var>)</code></dt>
<dd><p>Any number of end-rules may occur in a combi-rule file. The first parameter is
the state’s feature structure, the second, which is optional, is the remaining
input. If the rule takes only one parameter, it is only called if the remaining
input is empty or begins with a space. An end rule may accept the analysed
input via <code>result</code>.
</p>
</dd>
<dt><code>pruning_rule(<var>$list</var>)</code></dt>
<dd><p>A pruning-rule may occur at most once in a combi-rule file. During
analysis, it can decide which states are still valid and which
are to be deleted. The parameter is a list of feature structures of the states
that have consumed the same input so far. The pruning-rule must execute
a <code>return</code> statement with a list of the symbols <code>yes</code> and/or
<code>no</code>. Each state in <var>$list</var> corresponds to a symbol in the
result list. If the symbol is <code>yes</code>, the corresponding state is
preserved. If the symbol is <code>no</code>, the state is abandoned.
</p>
</dd>
<dt><code>robust_rule(<var>$surface</var>, <var>$remain_input</var>)</code></dt>
<dd><p>A robust-rule can only appear at most once a morphology rule file. If
robust analysis has been switched on by the <code>robust</code> command, and a
word form could not be recognised by the combi-rules, the robust-rule is
executed with the surface of the next word form as its first
parameter. The next word form is defined as the remaining input up to
(but excluding) the next space. The optional second parameter contains
the whole remaining input. A robust-rule can accept any prefix of the
remaining input via <code>result</code>.
</p>
</dd>
<dt><code>input_filter(<var>$feature_structure_list</var>)</code></dt>
<dd><p>An input-filter may occur at most once in a syntax rule file. The
input-filter is called after a word form has been analysed. It gets one
parameter, namely the list of the analysis results, and it transforms it
to one or more filtered results (via <code>result</code>).
</p>
</dd>
<dt><code>output_filter(<var>$feature_structure_list</var>)</code></dt>
<dd><p>An output-filter may occur at most once in any rule file.
</p>
<dl compact="compact">
<dt><em>In allo-rule files:</em></dt>
<dd><p>The output-filter is called after all lexicon entry have been processed
by the allo-rules. The filter is called for every allomorph surface. It
gets one parameter, namely the list of the generated feature structures with
that surface, and it transforms it to one or more filtered allomorph
feature structures (via <code>result</code>).
</p>
</dd>
<dt><em>In combi-rule files:</em></dt>
<dd><p>The output-filter is called after an item has been analysed. It gets one
parameter, namely the list of the analysis results, and it transforms it
to one or more filtered results (via <code>result</code>).
</p></dd>
</dl>
</dd>
<dt><code>subrule(<var>$param1</var>, <var>$param2</var>, ...)</code></dt>
<dd><p>Any number of subrules may occur in any rule file. A subrule can be
invoked from other rules and it must return a value to this rule via
<code>return</code>. It can have any number of parameters (at least one).
</p></dd>
</dl>
<p>If a rule is executed, all statements in the rule are processed sequentially.
After that, the rule execution is terminated. Thereby, the <code>if</code> statement,
the <code>foreach</code> statement, and the <code>select</code> statement may change the
processing order. Special conditions apply if:
</p>
<ol>
<li> A condition in a <code>require</code> statement does not hold. In this case the
processing of the current rule path is terminated. This is not an error.
</li><li> The <code>stop</code> statement was executed. In this case the
processing of the current rule path is terminated. This is not an error.
</li><li> An <code>assert</code> condition does not hold. In this case the processing of
the whole grammar is terminated and an error message is displayed. This rule
termination can be used to find bugs in the rule system or in the lexicon.
</li><li> The <code>error</code> statement was executed. In this case the processing of
the whole grammar is terminated and an error message is displayed.
</li><li> The <code>return</code> statement was executed in a subrule or in a pruning
rule. In a subrule, this terminates the subrule int the current rule path and
immediately returns to the calling rule. In a pruning rule, this terminates
the pruning rule.
</li></ol>
<hr>
<a name="Statements"></a>
<a name="Statements-1"></a>
<h3 class="section">6.11 Statements</h3>
<a name="index-statements"></a>
<p>A rule body contains a sequence of statements.
</p>
<p>The statements are the assignment and the statements beginning with
<code>assert</code>, <code>choose</code>, <code>define</code>, <code>error</code>,
<code>foreach</code>, <code>if</code>, <code>repeat</code>, <code>require</code>,
<code>result</code>, <code>return</code>, <code>select</code>, and <code>stop</code>.
</p>
<hr>
<a name="Assert"></a>
<a name="The-assert-Statement"></a>
<h4 class="subsection">6.11.1 The <code>assert</code> Statement</h4>
<p>The statement <code>assert <var>condition</var>;</code> or <code>!
<var>condition</var>;</code> tests whether <var>condition</var> holds. If this is not
the case, an error message with the line number in the source code is
displayed and the processing of <em>all</em> paths is terminated.
</p>
<p>The <code>assert</code> statement should be used to check whether there are
structural flaws in the lexicon or the rule system.
</p>
<hr>
<a name="The-Assignment"></a>
<a name="The-Assignment-1"></a>
<h4 class="subsection">6.11.2 The Assignment</h4>
<a name="index-assignment"></a>
<p>To set the value of an already defined variable to a different value, use a
statement of the following form:
</p>
<div class="example">
<pre class="example"><var>$var</var> := <var>expr</var>;
</pre></div>
<p>The expression <var>expr</var> is evaluated and the result is assigned to the
variable <var>$var</var>. The variable must have already been defined.
</p>
<p>You can assign the elements of a list value to multiple variables at once:
<a name="index-list-assignment"></a>
</p>
<div class="example">
<pre class="example"><<var>$var1</var>, <var>$var2</var>, ... > := <var>expr</var>;
</pre></div>
<p>The first, second, ... element of <var>expr</var>, which must be a list, is
assigned to variable <var>$var1</var>, <var>$var2</var>, ... respectively. Any of
these variables may be followed by a path.
The number of variables must match the length of the list value.
</p>
<p>You can optionally specify a path behind the variable that is to be set by an
assignment:
</p>
<div class="example">
<pre class="example"><var>$var</var>.<var>part1</var>.<var>part2</var> := <var>value</var>;
</pre></div>
<p>In this case, only the value of <code><var>$var</var>.<var>part1</var>.<var>part2</var></code>
will be set to <var>value</var>; the remainder of the variable <var>$var</var>
will be unchanged. Each <var>part</var> must be an expression that evaluates
to a symbol, a number or a list of symbols and numbers.
</p>
<p>You can also use one of four other assignment operators instead of the operator
‘<samp>:=</samp>’: The statement <code><var>$var</var> :=+ <var>value</var>;</code> is a
shorthand for <code><var>$var</var> := <var>$var</var> + <var>value</var>;</code>. The
same holds for the assignment operators ‘<samp>:=-</samp>’, ‘<samp>:=*</samp>’, and
‘<samp>:=/</samp>’. Here, <var>$var</var> may be followed by a path again.
</p>
<hr>
<a name="Break"></a>
<a name="The-break-Statement"></a>
<h4 class="subsection">6.11.3 The <code>break</code> Statement</h4>
<a name="index-break-_0028statement_0029"></a>
<p>The <code>break</code> statement leaves the <code>foreach</code> loop with <var>Label</var>.
</p>
<div class="example">
<pre class="example">break <var>Label</var>;
</pre></div>
<p>If the label is omitted, the break statement leaves the innermost
<code>foreach</code> loop it is contained in. The statement must be situated
in the body of the <code>foreach</code> loop it wants to leave.
</p>
<hr>
<a name="Choose"></a>
<a name="The-choose-Statement"></a>
<h4 class="subsection">6.11.4 The <code>choose</code> Statement</h4>
<a name="index-choose-_0028statement_0029"></a>
<p>The <code>choose</code> statement chooses an element of a list. Its format
is:
</p>
<div class="example">
<pre class="example">choose <var>$var</var> in <var>expr</var>;
</pre></div>
<p>For every element in the list <var>expr</var> a rule path is created; in this
rule path the element is stored in the variable <var>$var</var>. Thus the
number of rule paths can multiply. If, for example, <var>expr</var> has the
value <code><A, B, C></code>, the currently processed rule path has three
continuations: In the first one <var>$var</var> has the value <code>A</code>, in
the second one it has the value <code>B</code> and in the third one it has the
value <code>C</code>. The three paths behave independently from now on.
</p>
<p>The <code>choose</code> statement can also be used for records. In that case, the
variable <var>$var</var> gets a different attribute name of the record
<var>expr</var> in each path.
</p>
<p>The <code>choose</code> statement also works for numbers:
</p><ul>
<li> If <var>expr</var> is a positive number <var>n</var>, the variable <var>$var</var> is
assigned the numbers 1, 2, ..., <var>n</var>, respectively, in each path.
</li><li> If <var>expr</var> is a negative number <var>-n</var>, the variable <var>$var</var> is
assigned the numbers -1, -2, ..., <var>-n</var>, respectively, in each path.
</li></ul>
<hr>
<a name="Continue"></a>
<a name="The-continue-Statement"></a>
<h4 class="subsection">6.11.5 The <code>continue</code> Statement</h4>
<a name="index-continue-_0028statement_0029"></a>
<p>The <code>continue</code> statement terminates the current pass of the
<code>foreach</code> loop with <var>Label</var> and starts the next pass. If the
current pass is the last one, the loop will be left.
</p>
<div class="example">
<pre class="example">continue <var>Label</var>;
</pre></div>
<p>If the label is omitted, the statement affects the innermost
<code>foreach</code> loop it is contained in. The statement must be situated
in the body of the <code>foreach</code> loop it wants to affect.
</p>
<hr>
<a name="Define"></a>
<a name="The-define-Statement"></a>
<h4 class="subsection">6.11.6 The <code>define</code> Statement</h4>
<a name="index-define-_0028statement_0029"></a>
<p>A <code>define</code> statement is of the form
</p><div class="example">
<pre class="example">define <var>$var</var> := <var>expr</var>;
</pre></div>
<p>The expression <var>expr</var> is evaluated and the result is assigned to the
variable <var>$var</var>. The variable may not be defined before this statement;
it is defined by the statement and only exists until the statement sequence in
which the assignment is situated has been processed fully.
</p>
<p>You can assign the elements of a list value to multiple variables at once:
</p><div class="example">
<pre class="example">define <<var>$var1</var>, <var>$var2</var>, ... > := <var>expr</var>;
</pre></div>
<p>The first, second, ... element of <var>expr</var>, which must be a list, is
assigned to the new variable <var>$var1</var>, <var>$var2</var>, ... respectively.
The number of variables must match the length of the list value.
</p>
<hr>
<a name="Error"></a>
<a name="The-error-Statement"></a>
<h4 class="subsection">6.11.7 The <code>error</code> Statement</h4>
<a name="index-error-_0028statement_0029"></a>
<p>The statement <code>error</code> terminates the execution of <em>all</em>
paths and displays the given expression, which must be a string, and
the line of the source text:
</p>
<div class="example">
<pre class="example">error <var>message</var>;
</pre></div>
<hr>
<a name="Foreach"></a>
<a name="The-foreach-Statement"></a>
<h4 class="subsection">6.11.8 The <code>foreach</code> Statement</h4>
<a name="index-foreach-_0028statement_0029"></a>
<p>You may wish to manipulate all elements of a list or a record
<em>sequentially</em> in <var>one</var> rule path. For this purpose, the
<code>foreach</code> statement was introduced. It has the following format:
</p>
<div class="example">
<pre class="example">foreach <var>$var</var> in <var>expr</var>:
<var>statements</var>
end foreach;
</pre></div>
<p>Sequentually, <var>$var</var> is assigned a number of values, depending on the
type of <var>expr</var>, and the statement sequence <var>statements</var> is executed
for each of those assignments. Every time the <var>statements</var> are being
walked through, the variable <var>$var</var> is defined again. Its scope is the
block <var>statements</var>.
</p>
<ul>
<li> If <var>expr</var> is a list, <var>$var</var> is assigned the first, second,
third, ... element of <var>expr</var>.
</li><li> If <var>expr</var> is a record, <var>$var</var> is assigned the first, second,
... attribute name of <var>expr</var>.
</li><li> If <var>expr</var> is a positive number <var>n</var>, the variable <var>$var</var> is
assigned the numbers 1, 2, ..., <var>n</var> sequentially.
</li><li> If <var>expr</var> is a negative number <var>n</var>, the variable <var>$var</var> is
assigned the numbers -1, -2, ..., <var>-n</var> sequentially.
</li><li> If <var>expr</var> is an empty list, an empty record or the number 0, the
foreach loop is terminated immediately.
</li></ul>
<hr>
<a name="If"></a>
<a name="The-if-Statement"></a>
<h4 class="subsection">6.11.9 The <code>if</code> Statement</h4>
<a name="index-if-_0028statement_0029"></a>
<a name="index-else-_0028keyword_0029-1"></a>
<a name="index-elseif-_0028keyword_0029-1"></a>
<p>An <code>if</code> statement has the following form:
</p>
<div class="example">
<pre class="example">if <var>condition1</var> then
<var>statements1</var>
elseif <var>condition2</var> then
<var>statements2</var>
else
<var>statements3</var>
end if;
</pre></div>
<p>The <code>elseif</code> part may be repeated unrestrictedly (including zero times),
the <code>else</code> part may be omitted.
</p>
<p>First, <var>condition1</var> is evaluated. If it is satisfied, the
statement sequence <var>statements1</var> is executed.
</p>
<p>If the first condition is not satisfied, <var>condition2</var> is evaluated; if
the result is true, <var>statements2</var> is executed. This procedure is
repeated for every <code>elseif</code> part until a condition is satisfied.
</p>
<p>If the <code>if</code> condition and <code>elseif</code> conditions fail, the statement
sequence <var>statements3</var> is executed (if it exists).
</p>
<p>After the <code>if</code> statement has been processed, the following statement is
executed.
</p>
<p>The <code>if</code> after the <code>end</code> may be omitted.
</p>
<hr>
<a name="Repeat"></a>
<a name="The-repeat-Statement"></a>
<h4 class="subsection">6.11.10 The <code>repeat</code> Statement</h4>
<a name="index-repeat-_0028statement_0029"></a>
<p>You may wish to repeat a sequence of statements while a specific condition
holds. This can be realised by the <code>repeat</code> loop. It has the following
form:
</p>
<div class="example">
<pre class="example">repeat
<var>statements1</var>
while <var>condition</var>;
<var>statements2</var>
end repeat;
</pre></div>
<p>The statements <var>statements1</var> are executed. Then, <var>condition</var>
is tested. If it holds, the <var>statements2</var> are
executed and the <code>repeat</code> statement is executed again. If <var>condition</var>
does not hold, execution proceeds after the <code>repeat</code> statement.
</p>
<p>If <var>statements1</var> is empty, the <code>repeat</code> loop is equivalent to a
while loop in C:
</p>
<div class="example">
<pre class="example">repeat while <var>condition</var>;
<var>statements</var>
end repeat;
</pre></div>
<p>If <var>statements2</var> is empty, the <code>repeat</code> loop is equivalent to a
do-while loop in C:
</p>
<div class="example">
<pre class="example">repeat
<var>statements</var>
while <var>condition</var>;
end repeat;
</pre></div>
<hr>
<a name="Require"></a>
<a name="The-require-Statement"></a>
<h4 class="subsection">6.11.11 The <code>require</code> Statement</h4>
<a name="index-require-_0028statement_0029"></a>
<p>A statement of the form
</p>
<div class="example">
<pre class="example">require <var>condition</var>;
</pre></div>
<p>or
</p>
<div class="example">
<pre class="example">? <var>condition</var>;
</pre></div>
<p>tests whether <var>condition</var> is true. If this is not the case the rule path
is terminated <em>without</em> error message. Test statements should be used to
decide whether the combination of a state and a link is grammatical.
</p>
<hr>
<a name="Result"></a>
<a name="The-result-Statement"></a>
<h4 class="subsection">6.11.12 The <code>result</code> Statement</h4>
<a name="index-result-_0028statement_0029"></a>
<a name="index-accept-_0028keyword_0029"></a>
<dl compact="compact">
<dt><em>In combi rules:</em></dt>
<dd><p>The statement
</p>
<div class="example">
<pre class="example">result <var>expr</var>, rules <var>rule1</var>, <var>rule2</var>, ...;
</pre></div>
<p>specifies the Result feature structure of the rule and the successor rules. The
value <var>expr</var> is the Result feature structure. Behind the keyword
<code>rules</code> the names of all successor rules are enumerated. For every
successor rule that is being executed a new rule path will be created. The rule
set may be enclosed in parentheses.
</p>
<p>If you want successor rules to be executed only if no other rule has
been successful, you can put their names behind the other rules’ names
and write an <code>else</code> in front of them:
</p>
<div class="example">
<pre class="example">result <var>expr</var>,
rules <var>rule1</var>, <var>rule2</var> else <var>rule3</var>, <var>rule4</var> else ...;
</pre></div>
<p>If none of the normal rules (here: <var>rule1</var> and <var>rule2</var>) has been
successful, <var>rule3</var> and <var>rule4</var> are executed. If these rule also fail,
the next rules are executed, and so on. A rule has been successful if at least
one <code>result</code> statement has been executed.
</p>
</dd>
<dt><em>In combi-rules and end-rules:</em></dt>
<dd><p>If the input is to be accepted by the <code>result</code> statement (and
therefore no successor rules are to be called) the following format has
to be used:
</p>
<div class="example">
<pre class="example">result <var>expr</var>, accept;
</pre></div>
<p>If this statement is reached in a rule path, the input is accepted as
grammatically well-formed. The value <var>expr</var> is returned as the
result of the morphological or syntactic analysis.
</p>
</dd>
<dt><em>In filters:</em></dt>
<dd><p>The format of a <code>result</code> statement in a filter or robust-rule is
</p>
<div class="example">
<pre class="example">result <var>expr</var>;
</pre></div>
<p>If this statement is reached, the value <var>expr</var> is used as a result
of the executed rule.
</p>
</dd>
<dt><em>In robust-rules:</em></dt>
<dd><p>The format of a <code>result</code> statement in a robust-rule:
</p>
<div class="example">
<pre class="example">result <var>feature_structure</var>;
</pre></div>
<p>or
</p>
<div class="example">
<pre class="example">result <var>surface</var>, <var>feature_structure</var>;
</pre></div>
<p>The word form <var>surface</var> with feature structure <var>feature_structure</var> is
used as a result of the robust-rule. <var>surface</var> must be a prefix of the
input that has not been parsed yet. If it is omitted, the input up to, but
excluding, the first space is taken.
</p>
</dd>
<dt><em>In allo-rules:</em></dt>
<dd><p>The format of the <code>result</code> statement in an allo rule is:
</p>
<div class="example">
<pre class="example">result <var>surface</var>, <var>feature_structure</var>;
</pre></div>
<p>It creates an entry in the allomorph lexicon. The allomorph surface
<var>surface</var> must be a string; <var>feature_structure</var> is the feature
structure of the allomorph.
</p>
</dd>
</dl>
<hr>
<a name="Return"></a>
<a name="The-return-Statement"></a>
<h4 class="subsection">6.11.13 The <code>return</code> Statement</h4>
<a name="index-return-_0028statement_0029-1"></a>
<p>In a subrule, the <code>return</code> statement is of the following form:
</p>
<div class="example">
<pre class="example">return <var>expr</var>;
</pre></div>
<p>The value of <var>expr</var> is returned to the rule that invoked this subrule and
the subrule execution is finished.
</p>
<p>In a pruning rule, the <code>return</code> statement is of the same form. Here,
<var>expr</var> must be a list a list of the symbols <code>yes</code> and/or
<code>no</code>. Each state in the feature structure list, which is the pruning rule
parameter, corresponds to a symbol in the result list. If the symbol is
<code>yes</code>, the corresponding state is preserved. If the symbol is <code>no</code>,
the state is abandoned.
</p>
<hr>
<a name="Select"></a>
<a name="The-select-Statement"></a>
<h4 class="subsection">6.11.14 The <code>select</code> Statement</h4>
<a name="index-select-_0028statement_0029"></a>
<p>By using the <code>select</code> statement, more than one continuation of an
analysis path can be generated. Its format is:
</p>
<div class="example">
<pre class="example">select
<var>statements1</var>
or
<var>statements2</var>
or
<var>statements3</var>
...
end select;
</pre></div>
<p>This creates as many rule paths as there are statement sequences. In the
first rule path, <var>statements1</var> are executed, in the second one
<var>statements2</var> are executed, etc. Each rule path continues by
executing the statements following the <code>select</code> statement.
</p>
<p>The keyword <code>select</code> behind the <code>end</code> can be omitted.
</p>
<hr>
<a name="Stop"></a>
<a name="The-stop-Statement"></a>
<h4 class="subsection">6.11.15 The <code>stop</code> Statement</h4>
<a name="index-stop-_0028statement_0029"></a>
<p>The <code>stop</code> statement terminates the current rule path. Its format is:
</p>
<div class="example">
<pre class="example">stop;
</pre></div>
<hr>
<a name="Files"></a>
<a name="Files-1"></a>
<h3 class="section">6.12 Files</h3>
<a name="index-files"></a>
<p>A Malaga grammar system comprises several files: a symbol file, a lexicon file,
an allomorph rule file, a morphology rule file, an extended symbol file
(optional), and a syntax rule file (optional). The type of a file can be
seen by the ending of the file name. A grammar for the English language may
consist of the files <samp>english.sym</samp>, <samp>english.lex</samp>,
<samp>english.all</samp>, <samp>english.mor</samp> and <samp>english.syn</samp>.
</p>
<hr>
<a name="Symbol-File"></a>
<a name="The-Symbol-File"></a>
<h4 class="subsection">6.12.1 The Symbol File</h4>
<a name="index-files_002c-symbol"></a>
<a name="index-symbol-files"></a>
<p>A symbol file has the suffix <samp>.sym</samp>. It contains the symbol table.
</p>
<hr>
<a name="Extended-Symbol-File"></a>
<a name="The-Extended-Symbol-File"></a>
<h4 class="subsection">6.12.2 The Extended Symbol File</h4>
<a name="index-files_002c-extended-symbol"></a>
<a name="index-symbol-files_002c-extended"></a>
<a name="index-extended-symbol-files"></a>
<p>An extended symbol file has the suffix <samp>.esym</samp>. It contains an
additional symbol table that contains symbols which may only be used in the
syntax rule file.
</p>
<hr>
<a name="Lexicon-File"></a>
<a name="The-Lexicon-File"></a>
<h4 class="subsection">6.12.3 The Lexicon File</h4>
<a name="index-files_002c-lexicon"></a>
<a name="index-lexicon-files"></a>
<p>A lexicon file has the suffix <samp>.lex</samp>. It consists of any number of
values and constant definitions, each terminated by a semicolon. Each
value stands for a lexical entry. A value may contain named constants
and the operators ‘<samp>.</samp>’, ‘<samp>+</samp>’, ‘<samp>-</samp>’, ‘<samp>*</samp>’, and ‘<samp>/</samp>’.
values, the lexical entries; The format of the lexical entries is free,
although it should be consistent with the conception of the whole rule
system.
</p>
<hr>
<a name="Allomorph-Rule-File"></a>
<a name="The-Allomorph-Rule-File"></a>
<h4 class="subsection">6.12.4 The Allomorph Rule File</h4>
<a name="index-files_002c-allomorph-rule"></a>
<a name="index-rule-files_002c-allomorph"></a>
<a name="index-allomorph-rule-files"></a>
<p>The allomorph lexicon is generated from the base form lexicon by applying the
allo-rule on the base form entries. The allomorph generation rule file has
the suffix <samp>.all</samp> and consists of one allo-rule, an optional
output-filter, and any number of subrules and constant definitions.
</p>
<p>For every lexical entry, the allo-rule is executed with the value of the
lexicon entry as parameter. The allo-rule can generate allomorphs using the
<code>result</code> statement.
</p>
<p>After all allomorphs have been produced, the output-filter is executed once for
each surface in the (intermediate) allomorph lexicon. As parameter, the
output-filter gets the list of feature structures that share that surface. An
entry in the final allomorph lexicon is created everytime the <code>result</code>
statement is executed. The surface cannot be changed by the output-filter.
</p>
<hr>
<a name="Combi_002dRule-Files"></a>
<a name="The-Combi_002dRule-Files"></a>
<h4 class="subsection">6.12.5 The Combi-Rule Files</h4>
<a name="index-files_002c-combi_002drule"></a>
<a name="index-files_002c-syntax-rule"></a>
<a name="index-files_002c-morphology-rule"></a>
<a name="index-rule-files_002c-syntax"></a>
<a name="index-rule-files_002c-morphology"></a>
<a name="index-combi_002drule-files"></a>
<a name="index-syntax-rule-files"></a>
<a name="index-morphology-rule-files"></a>
<p>A grammar system includes up to two combination rules files: one for
morphological combination with the suffix <samp>.mor</samp> and (optionally) one
for syntactic combination with the suffix <samp>.syn</samp>.
</p>
<p>A combination rule file consists of an initial state and any number of
combi-rules, subrules, and constant definitions. A syntax rule file
may contain one optional pruning-rule, one optional input-filter and
one optional output-filter; a morphology rule file may contain one
optional robust-rule, one optional pruning-rule and one optional
output-filter.
</p>
<p>Beginning with the rules listed up in the initial state, the rules and
their successors are processed until a <code>result</code> statement with the
keyword <code>accept</code> is encountered in every path. A path dies if there is no
more input (from the lexicon or from the morphology) that can be processed.
</p>
<p>In morphology, if analysis has created no result and robust analysis has been
switched on, the robust-rule will be called with the analysis surface and can
create a result.
</p>
<p>In syntax, when a new wordfom has been imported from morphology, the
input-filter can take a look at its feature structuress and create new result
feature structures.
</p>
<p>If a pruning-rule is present, pruning has been activated, and the
number of current LAG states is not less than <code>mor-pruning</code> (in
morphology) or <code>syn-pruning</code> (in syntax), the concatenation of
the next allomorph (in morphology) or word form (in syntax) is
preceded by the following step: The feature structures of all current
LAG states are merged into a list, which is the parameter of the
pruning rule. The pruning-rule must execute a <code>return</code> statement
with a list of the symbols <code>yes</code> and <code>no</code>. Each state in the
feature structure list corresponds to a symbol in the result list. If
the symbol is <code>yes</code>, the corresponding state is preserved. If the
symbol is <code>no</code>, the state is abandoned.
</p>
<p>After analysis has completed, the output-filter can take a look at all result
feature structures and create new result feature structures. This can
be used to merge similar feature structures or drop some results.
</p>
<hr>
<a name="Syntax-Summary"></a>
<a name="Summary-of-the-Malaga-Syntax"></a>
<h3 class="section">6.13 Summary of the Malaga Syntax</h3>
<a name="index-syntax_002c-Malaga"></a>
<p>The syntax of Malaga source texts is defined formally by a sort of EBNF
notation:
</p>
<ul>
<li> Terminals like <code>assert</code> and ‘<samp>:=</samp>’ stand for themselves.
</li><li> Nonterminals like <var>assignment</var> are defined by <em>productions</em>.
</li><li> A bar ‘|’ separates alternatives.
</li><li> Brackets ‘[]’ enclose optional parts.
</li><li> Curly braces ‘{}’ enclose parts that are repeated zero times, one time, or
multiple times.
</li><li> Parentheses ‘()’ are used for grouping.
</li></ul>
<p>The start productions for Malaga source texts are
<var>lexicon-file</var>, <var>rule-file</var>, and <var>symbol-file</var>. A
nonterminal marked with ‘<samp>*</samp>’ in its definition is a lexical
symbol.
</p>
<dl compact="compact">
<dt><var>assert-statement:</var></dt>
<dd><p>(<code>assert</code> | ‘<samp>!</samp>’) <var>condition</var> ‘<samp>;</samp>’
</p>
</dd>
<dt><var>assignment:</var></dt>
<dd><p><var>path</var> (‘<samp>:=</samp>’ | ‘<samp>:=+</samp>’ | ‘<samp>:=-</samp>’ | ‘<samp>:=*</samp>’ |
‘<samp>:=/</samp>’) <var>expression</var> ‘<samp>;</samp>’ | ‘<samp><</samp>’ <var>path</var> {‘<samp>,</samp>’
<var>path</var>} ‘<samp>></samp>’ ‘<samp>:=</samp>’ <var>expression</var> ‘<samp>;</samp>’
</p>
</dd>
<dt><var>break-statement:</var></dt>
<dd><p><code>break</code> [<var>label</var>] ‘<samp>;</samp>’
</p>
</dd>
<dt><var>choose-statement:</var></dt>
<dd><p><code>choose</code> <var>variable</var> <code>in</code> <var>expression</var> ‘<samp>;</samp>’
</p>
</dd>
<dt><var>comment*:</var></dt>
<dd><p>‘<samp>#</samp>’ {<var>printing-char</var>}
</p>
</dd>
<dt><var>comparison:</var></dt>
<dd><p>[<code>not</code>] (<var>expression</var> [<var>comparison-operator</var>
<var>expression</var>] | <var>match-comparison</var>)
</p>
</dd>
<dt><var>comparison-operator:</var></dt>
<dd><p>‘<samp>=</samp>’ | ‘<samp>/=</samp>’ | ‘<samp>~</samp>’ | ‘<samp>/~</samp>’ | <code>in</code> | <code>less</code> |
<code>greater</code> | <code>less_equal</code> | <code>greater_equal</code>
</p>
</dd>
<dt><var>condition:</var></dt>
<dd><p><var>comparison</var> ({<code>and</code> <var>comparison</var>} | {<code>or</code>
<var>comparison</var>})
</p>
</dd>
<dt><var>constant*:</var></dt>
<dd><p>‘<samp>@</samp>’ <var>identifier</var>
</p>
</dd>
<dt><var>constant-definition:</var></dt>
<dd><p>(<code>define</code> | <code>default</code>) <var>constant</var> ‘<samp>:=</samp>’
<var>constant-expression</var> ‘<samp>;</samp>’
</p>
</dd>
<dt><var>constant-expression:</var></dt>
<dd><p><var>expression</var>
</p>
</dd>
<dt><var>continue-statement:</var></dt>
<dd><p><code>continue</code> [<var>label</var>] ‘<samp>;</samp>’
</p>
</dd>
<dt><var>define-statement:</var></dt>
<dd><p><code>define</code> <var>variable</var> ‘<samp>:=</samp>’ <var>expression</var> ‘<samp>;</samp>’ |
<code>define</code> ‘<samp><</samp>’ <var>variable</var> {‘<samp>,</samp>’ <var>variable</var>}
‘<samp>></samp>’ ‘<samp>:=</samp>’ <var>expression</var> ‘<samp>;</samp>’
</p>
</dd>
<dt><var>error-statement:</var></dt>
<dd><p><code>error</code> <var>expression</var> ‘<samp>;</samp>’
</p>
</dd>
<dt><var>expression:</var></dt>
<dd><p><var>term</var> {(‘<samp>+</samp>’ | ‘<samp>-</samp>’) <var>term</var>}
</p>
</dd>
<dt><var>factor:</var></dt>
<dd><p><var>value</var> {‘<samp>.</samp>’ <var>value</var>}
</p>
</dd>
<dt><var>foreach-statement:</var></dt>
<dd><p>[<var>label</var> ‘<samp>:</samp>’] <code>foreach</code> <var>variable</var> <code>in</code>
<var>expression</var> ‘<samp>:</samp>’ <var>statements</var> <code>end</code>
[<code>foreach</code>] ‘<samp>;</samp>’
</p>
</dd>
<dt><var>identifier*:</var></dt>
<dd><p>(<var>letter</var> | ‘<samp>_</samp>’ | ‘<samp>&</samp>’) {<var>letter</var> | <var>digit</var> |
‘<samp>_</samp>’ | ‘<samp>&</samp>’}
</p>
</dd>
<dt><var>if-statement:</var></dt>
<dd><p><code>if</code> <var>condition</var> <code>then</code> <var>statements</var>
{<code>elseif</code> <var>condition</var> <code>then</code> <var>statements</var>}
[<code>else</code> <var>statements</var>] <code>end</code> [<code>if</code>] ‘<samp>;</samp>’
</p>
</dd>
<dt><var>if-expression:</var></dt>
<dd><p><code>if</code> <var>condition</var> <code>then</code> <var>expression</var>
{<code>elseif</code> <var>condition</var> <code>then</code> <var>expression</var>}
<code>else</code> <var>expression</var> <code>end</code> [<code>if</code>]
</p>
</dd>
<dt><var>include:</var></dt>
<dd><p><code>include</code> <var>string</var> ‘<samp>;</samp>’
</p>
</dd>
<dt><var>initial:</var></dt>
<dd><p><code>initial</code> <var>constant-expression</var> ‘<samp>,</samp>’ <var>rule-set</var> ‘<samp>;</samp>’
</p>
</dd>
<dt><var>label:</var></dt>
<dd><p><var>identifier</var>
</p>
</dd>
<dt><var>lexicon-file:</var></dt>
<dd><p>{<var>constant-definition</var> | <var>constant-expression</var> ‘<samp>;</samp>’}
</p>
</dd>
<dt><var>list:</var></dt>
<dd><p>‘<samp><</samp>’ {<var>expression</var> {‘<samp>,</samp>’ <var>expression</var>}} ‘<samp>></samp>’
</p>
</dd>
<dt><var>match:</var></dt>
<dd><p><var>constant-expression</var> [‘<samp>:</samp>’ <var>variable</var>] | <var>variable</var>
‘<samp>:</samp>’ <var>constant-expression</var>
</p>
</dd>
<dt><var>match-comparison:</var></dt>
<dd><p><var>expression</var> <code>matches</code> ( ‘<samp>(</samp>’ <var>match</var> {‘<samp>,</samp>’
<var>match</var>} ‘<samp>)</samp>’ | <var>match</var> {‘<samp>,</samp>’ <var>match</var>} )
</p>
</dd>
<dt><var>number*:</var></dt>
<dd><p><var>digit</var> {<var>digit</var>} ( ‘<samp>L</samp>’ | ‘<samp>R</samp>’ | [‘<samp>.</samp>’ <var>digit</var>
{<var>digit</var>}] [‘<samp>E</samp>’ <var>digit</var> {<var>digit</var>}] )
</p>
</dd>
<dt><var>path:</var></dt>
<dd><p><var>variable</var> {‘<samp>.</samp>’ <var>value</var>}
</p>
</dd>
<dt><var>record:</var></dt>
<dd><p>‘<samp>[</samp>’ {<var>symbol-value-pair</var> {‘<samp>,</samp>’
<var>symbol-value-pair</var>}} ‘<samp>]</samp>’
</p>
</dd>
<dt><var>repeat-statement:</var></dt>
<dd><p><code>repeat</code> <var>statements</var> <code>while</code> <var>condition</var> ‘<samp>;</samp>’
<var>statements</var> <code>end</code> [<code>repeat</code>] ‘<samp>;</samp>’
</p>
</dd>
<dt><var>require-statement:</var></dt>
<dd><p>(<code>require</code> | ‘<samp>?</samp>’) <var>condition</var> ‘<samp>;</samp>’
</p>
</dd>
<dt><var>result-statement:</var></dt>
<dd><p><code>result</code> <var>expression</var> [‘<samp>,</samp>’ (<var>rule-set</var> |
<code>accept</code>)] ‘<samp>;</samp>’
</p>
</dd>
<dt><var>return-statement:</var></dt>
<dd><p><code>return</code> <var>expression</var> ‘<samp>;</samp>’
</p>
</dd>
<dt><var>rule:</var></dt>
<dd><p><var>rule-type</var> <var>rule-name</var> ‘<samp>(</samp>’ <var>variable</var> {‘<samp>,</samp>’
<var>variable</var>} ‘<samp>)</samp>’ ‘<samp>:</samp>’ <var>statements</var> <code>end</code>
[<var>rule-type</var>] [<var>rule-name</var>] ‘<samp>;</samp>’
</p>
</dd>
<dt><var>rule-file:</var></dt>
<dd><p>{<var>rule</var> | <var>constant-definition</var> | <var>initial</var> |
<var>include</var>}
</p>
</dd>
<dt><var>rule-name:</var></dt>
<dd><p><var>identifier</var>
</p>
</dd>
<dt><var>rule-set:</var></dt>
<dd><p><code>rules</code> (<var>rules</var> {<code>else</code> <var>rules</var>} | ‘<samp>(</samp>’
<var>rules</var> {<code>else</code> <var>rules</var>} ‘<samp>)</samp>’)
</p>
</dd>
<dt><var>rule-type:</var></dt>
<dd><p><code>allo_rule</code> | <code>combi_rule</code> | <code>end_rule</code> |
<code>pruning_rule</code> | <code>robust_rule</code> | <code>input_filter</code> |
<code>output_filter</code> | <code>subrule</code>
</p>
</dd>
<dt><var>rules:</var></dt>
<dd><p><var>rule-name</var> {‘<samp>,</samp>’ <var>rule-name</var>}
</p>
</dd>
<dt><var>select-statement:</var></dt>
<dd><p><code>select</code> <var>statements</var> {<code>or</code> <var>statements</var>}
<code>end</code> [<code>select</code>] ‘<samp>;</samp>’
</p>
</dd>
<dt><var>statements:</var></dt>
<dd><p>{<var>assert-statement</var> | <var>assignment</var> | <var>break-statement</var> |
<var>choose-statement</var> | <var>continue-statement</var> | <var>define-statement</var> |
<var>error-statement</var> | <var>foreach-statement</var> | <var>if-statement</var> |
<var>select-statement</var> | <var>repeat-statement</var> | <var>require-statement</var> |
<var>result-statement</var> | <var>return-statement</var> | <var>stop-statement</var>}
</p>
</dd>
<dt><var>stop-statement:</var></dt>
<dd><p><code>stop</code> ‘<samp>;</samp>’
</p>
</dd>
<dt><var>string*:</var></dt>
<dd><p>‘<samp>"</samp>’ {<var>char-except-double-quotes</var> | ‘<samp>\"</samp>’ | ‘<samp>\\</samp>’} ‘<samp>"</samp>’
</p>
</dd>
<dt><var>subrule-invocation:</var></dt>
<dd><p><var>rule-name</var> ‘<samp>(</samp>’ <var>expression</var> {‘<samp>,</samp>’ <var>expression</var>}
</p>
</dd>
<dt><var>symbol:</var></dt>
<dd><p><var>identifier</var>
</p>
</dd>
<dt><var>symbol-definition:</var></dt>
<dd><p>symbol [‘<samp>:=</samp>’ ‘<samp><</samp>’ <var>symbol</var> {‘<samp>,</samp>’ <var>symbol</var>}
‘<samp>></samp>’] ‘<samp>;</samp>’
</p>
</dd>
<dt><var>symbol-file:</var></dt>
<dd><p>{<var>symbol-definition</var> | <var>include</var>}
</p>
</dd>
<dt><var>symbol-value-pair:</var></dt>
<dd><p><var>expression</var> ‘<samp>:</samp>’ <var>expression</var>
</p>
</dd>
<dt><var>term:</var></dt>
<dd><p><var>factor</var> {(‘<samp>*</samp>’ | ‘<samp>/</samp>’) <var>factor</var>}
</p>
</dd>
<dt><var>value:</var></dt>
<dd><p>[‘<samp>-</samp>’] (<var>symbol</var> | <var>string</var> | <var>number</var> | <var>list</var> |
<var>record</var> | <var>constant</var> | <var>subrule-invocation</var> |
<var>variable</var> | ‘<samp>(</samp>’ <var>condition</var> ‘<samp>)</samp>’) | <var>if-expression</var>
</p>
</dd>
<dt><var>variable*:</var></dt>
<dd><p>‘<samp>$</samp>’ <var>identifier</var>
</p></dd>
</dl>
<hr>
<a name="Index"></a>
<a name="Index-1"></a>
<h2 class="unnumbered">Index</h2>
<table><tr><th valign="top">Jump to: </th><td><a class="summary-letter" href="#Index_cp_symbol-1"><b>*</b></a>
<a class="summary-letter" href="#Index_cp_symbol-2"><b>+</b></a>
<a class="summary-letter" href="#Index_cp_symbol-3"><b>-</b></a>
<a class="summary-letter" href="#Index_cp_symbol-4"><b>.</b></a>
<a class="summary-letter" href="#Index_cp_symbol-5"><b>/</b></a>
<a class="summary-letter" href="#Index_cp_symbol-6"><b>=</b></a>
<a class="summary-letter" href="#Index_cp_symbol-7"><b>~</b></a>
<br>
<a class="summary-letter" href="#Index_cp_letter-A"><b>A</b></a>
<a class="summary-letter" href="#Index_cp_letter-B"><b>B</b></a>
<a class="summary-letter" href="#Index_cp_letter-C"><b>C</b></a>
<a class="summary-letter" href="#Index_cp_letter-D"><b>D</b></a>
<a class="summary-letter" href="#Index_cp_letter-E"><b>E</b></a>
<a class="summary-letter" href="#Index_cp_letter-F"><b>F</b></a>
<a class="summary-letter" href="#Index_cp_letter-G"><b>G</b></a>
<a class="summary-letter" href="#Index_cp_letter-H"><b>H</b></a>
<a class="summary-letter" href="#Index_cp_letter-I"><b>I</b></a>
<a class="summary-letter" href="#Index_cp_letter-L"><b>L</b></a>
<a class="summary-letter" href="#Index_cp_letter-M"><b>M</b></a>
<a class="summary-letter" href="#Index_cp_letter-N"><b>N</b></a>
<a class="summary-letter" href="#Index_cp_letter-O"><b>O</b></a>
<a class="summary-letter" href="#Index_cp_letter-P"><b>P</b></a>
<a class="summary-letter" href="#Index_cp_letter-Q"><b>Q</b></a>
<a class="summary-letter" href="#Index_cp_letter-R"><b>R</b></a>
<a class="summary-letter" href="#Index_cp_letter-S"><b>S</b></a>
<a class="summary-letter" href="#Index_cp_letter-T"><b>T</b></a>
<a class="summary-letter" href="#Index_cp_letter-U"><b>U</b></a>
<a class="summary-letter" href="#Index_cp_letter-V"><b>V</b></a>
<a class="summary-letter" href="#Index_cp_letter-W"><b>W</b></a>
<a class="summary-letter" href="#Index_cp_letter-Y"><b>Y</b></a>
</td></tr></table>
<table class="index-cp" border="0">
<tr><td></td><th align="left">Index Entry</th><td> </td><th align="left"> Section</th></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th><a name="Index_cp_symbol-1">*</a></th><td></td><td></td></tr>
<tr><td></td><td valign="top"><a href="#index-_002a-_0028operator_0029"><code>*</code> (operator)</a>:</td><td> </td><td valign="top"><a href="#Operator-Times">Operator Times</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th><a name="Index_cp_symbol-2">+</a></th><td></td><td></td></tr>
<tr><td></td><td valign="top"><a href="#index-_002b-_0028operator_0029"><code>+</code> (operator)</a>:</td><td> </td><td valign="top"><a href="#Operator-Plus">Operator Plus</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th><a name="Index_cp_symbol-3">-</a></th><td></td><td></td></tr>
<tr><td></td><td valign="top"><a href="#index-_002d-_0028operator_0029"><code>-</code> (operator)</a>:</td><td> </td><td valign="top"><a href="#Operator-Minus">Operator Minus</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th><a name="Index_cp_symbol-4">.</a></th><td></td><td></td></tr>
<tr><td></td><td valign="top"><a href="#index-_002emalagarc-_0028file_0029"><code>.malagarc</code> (file)</a>:</td><td> </td><td valign="top"><a href="#Profiles">Profiles</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th><a name="Index_cp_symbol-5">/</a></th><td></td><td></td></tr>
<tr><td></td><td valign="top"><a href="#index-_002f-_0028operator_0029"><code>/</code> (operator)</a>:</td><td> </td><td valign="top"><a href="#Operator-Divide">Operator Divide</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-_002f_003d-_0028operator_0029"><code>/=</code> (operator)</a>:</td><td> </td><td valign="top"><a href="#Equality-Tests">Equality Tests</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-_002f_007e-_0028operator_0029"><code>/~</code> (operator)</a>:</td><td> </td><td valign="top"><a href="#Congruency-Tests">Congruency Tests</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th><a name="Index_cp_symbol-6">=</a></th><td></td><td></td></tr>
<tr><td></td><td valign="top"><a href="#index-_003d-_0028operator_0029"><code>=</code> (operator)</a>:</td><td> </td><td valign="top"><a href="#Equality-Tests">Equality Tests</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th><a name="Index_cp_symbol-7">~</a></th><td></td><td></td></tr>
<tr><td></td><td valign="top"><a href="#index-_007e-_0028operator_0029"><code>~</code> (operator)</a>:</td><td> </td><td valign="top"><a href="#Congruency-Tests">Congruency Tests</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th><a name="Index_cp_letter-A">A</a></th><td></td><td></td></tr>
<tr><td></td><td valign="top"><a href="#index-accept-_0028keyword_0029"><code>accept</code> (keyword)</a>:</td><td> </td><td valign="top"><a href="#Result">Result</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-alias-_0028option_0029"><code>alias</code> (option)</a>:</td><td> </td><td valign="top"><a href="#alias">alias</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-allo_002dformat-_0028mallex-option_0029"><code>allo-format</code> (<code>mallex</code> option)</a>:</td><td> </td><td valign="top"><a href="#allo_002dformat">allo-format</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-allomorph-rule-files">allomorph rule files</a>:</td><td> </td><td valign="top"><a href="#Allomorph-Rule-File">Allomorph Rule File</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-allo_005frule-_0028rule_0029"><code>allo_rule</code> (rule)</a>:</td><td> </td><td valign="top"><a href="#Rules">Rules</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-and-_0028operator_0029"><code>and</code> (operator)</a>:</td><td> </td><td valign="top"><a href="#Boolean-Operators">Boolean Operators</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-assignment">assignment</a>:</td><td> </td><td valign="top"><a href="#The-Assignment">The Assignment</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-atoms">atoms</a>:</td><td> </td><td valign="top"><a href="#Symbol-Table">Symbol Table</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-atoms-_0028function_0029"><code>atoms</code> (function)</a>:</td><td> </td><td valign="top"><a href="#Atoms">Atoms</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-attribute-order">attribute order</a>:</td><td> </td><td valign="top"><a href="#sort_002drecords">sort-records</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-attributes">attributes</a>:</td><td> </td><td valign="top"><a href="#Records">Records</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-auto_002dtree-_0028malaga-option_0029"><code>auto-tree</code> (<code>malaga</code> option)</a>:</td><td> </td><td valign="top"><a href="#auto_002dtree">auto-tree</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-auto_002dvariables-_0028option_0029"><code>auto-variables</code> (option)</a>:</td><td> </td><td valign="top"><a href="#auto_002dvariables">auto-variables</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th><a name="Index_cp_letter-B">B</a></th><td></td><td></td></tr>
<tr><td></td><td valign="top"><a href="#index-backtrace-_0028command_0029"><code>backtrace</code> (command)</a>:</td><td> </td><td valign="top"><a href="#backtrace">backtrace</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-Beutel_002c-Bjorn">Beutel, Björn</a>:</td><td> </td><td valign="top"><a href="#Introduction">Introduction</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-binary-_0028command-line-option_0029"><code>binary</code> (command line option)</a>:</td><td> </td><td valign="top"><a href="#mallex">mallex</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-boolean-operators">boolean operators</a>:</td><td> </td><td valign="top"><a href="#Boolean-Operators">Boolean Operators</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-break-_0028command_0029"><code>break</code> (command)</a>:</td><td> </td><td valign="top"><a href="#break">break</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-break-_0028statement_0029"><code>break</code> (statement)</a>:</td><td> </td><td valign="top"><a href="#Break">Break</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-breakpoints">breakpoints</a>:</td><td> </td><td valign="top"><a href="#break">break</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th><a name="Index_cp_letter-C">C</a></th><td></td><td></td></tr>
<tr><td></td><td valign="top"><a href="#index-cache_002dsize-_0028malaga-option_0029"><code>cache-size</code> (<code>malaga</code> option)</a>:</td><td> </td><td valign="top"><a href="#cache_002dsize">cache-size</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-capital-_0028function_0029"><code>capital</code> (function)</a>:</td><td> </td><td valign="top"><a href="#Capital">Capital</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-choose-_0028statement_0029"><code>choose</code> (statement)</a>:</td><td> </td><td valign="top"><a href="#Choose">Choose</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-clear_002dcache-_0028malaga-command_0029"><code>clear-cache</code> (<code>malaga</code> command)</a>:</td><td> </td><td valign="top"><a href="#clear_002dcache">clear-cache</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-combi_002drule-files">combi-rule files</a>:</td><td> </td><td valign="top"><a href="#Combi_002dRule-Files">Combi-Rule Files</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-combi_005frule-_0028rule_0029"><code>combi_rule</code> (rule)</a>:</td><td> </td><td valign="top"><a href="#Rules">Rules</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-commands">commands</a>:</td><td> </td><td valign="top"><a href="#Commands">Commands</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-comments">comments</a>:</td><td> </td><td valign="top"><a href="#Comments">Comments</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-conditions">conditions</a>:</td><td> </td><td valign="top"><a href="#Conditions">Conditions</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-constant-definition">constant definition</a>:</td><td> </td><td valign="top"><a href="#Constant-Definition">Constant Definition</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-constants">constants</a>:</td><td> </td><td valign="top"><a href="#Constants">Constants</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-continue-_0028command_0029"><code>continue</code> (command)</a>:</td><td> </td><td valign="top"><a href="#continue">continue</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-continue-_0028statement_0029"><code>continue</code> (statement)</a>:</td><td> </td><td valign="top"><a href="#Continue">Continue</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th><a name="Index_cp_letter-D">D</a></th><td></td><td></td></tr>
<tr><td></td><td valign="top"><a href="#index-debug_002dga-_0028mallex-command_0029"><code>debug-ga</code> (<code>mallex</code> command)</a>:</td><td> </td><td valign="top"><a href="#debug_002dga">debug-ga</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-debug_002dga_002dfile-_0028mallex-command_0029"><code>debug-ga-file</code> (<code>mallex</code> command)</a>:</td><td> </td><td valign="top"><a href="#debug_002dga_002dfile">debug-ga-file</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-debug_002dga_002dline-_0028mallex-command_0029"><code>debug-ga-line</code> (<code>mallex</code> command)</a>:</td><td> </td><td valign="top"><a href="#debug_002dga_002dline">debug-ga-line</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-debug_002dma-_0028malaga-command_0029"><code>debug-ma</code> (<code>malaga</code> command)</a>:</td><td> </td><td valign="top"><a href="#debug_002dma">debug-ma</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-debug_002dma_002dline-_0028malaga-command_0029"><code>debug-ma-line</code> (<code>malaga</code> command)</a>:</td><td> </td><td valign="top"><a href="#debug_002dma_002dline">debug-ma-line</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-debug_002dsa-_0028malaga-command_0029"><code>debug-sa</code> (<code>malaga</code> command)</a>:</td><td> </td><td valign="top"><a href="#debug_002dsa">debug-sa</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-debug_002dsa_002dline-_0028malaga-command_0029"><code>debug-sa-line</code> (<code>malaga</code> command)</a>:</td><td> </td><td valign="top"><a href="#debug_002dsa_002dline">debug-sa-line</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-debug_002dstate-_0028malaga-command_0029"><code>debug-state</code> (<code>malaga</code> command)</a>:</td><td> </td><td valign="top"><a href="#debug_002dstate">debug-state</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-define-_0028statement_0029"><code>define</code> (statement)</a>:</td><td> </td><td valign="top"><a href="#Define">Define</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-definition_002c-constant">definition, constant</a>:</td><td> </td><td valign="top"><a href="#Constant-Definition">Constant Definition</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-delete-_0028command_0029"><code>delete</code> (command)</a>:</td><td> </td><td valign="top"><a href="#delete">delete</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-display_002dcmd-_0028option_0029"><code>display-cmd</code> (option)</a>:</td><td> </td><td valign="top"><a href="#display_002dcmd">display-cmd</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-down-_0028command_0029"><code>down</code> (command)</a>:</td><td> </td><td valign="top"><a href="#down">down</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th><a name="Index_cp_letter-E">E</a></th><td></td><td></td></tr>
<tr><td></td><td valign="top"><a href="#index-else-_0028keyword_0029"><code>else</code> (keyword)</a>:</td><td> </td><td valign="top"><a href="#If-Expression">If Expression</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-else-_0028keyword_0029-1"><code>else</code> (keyword)</a>:</td><td> </td><td valign="top"><a href="#If">If</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-elseif-_0028keyword_0029"><code>elseif</code> (keyword)</a>:</td><td> </td><td valign="top"><a href="#If-Expression">If Expression</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-elseif-_0028keyword_0029-1"><code>elseif</code> (keyword)</a>:</td><td> </td><td valign="top"><a href="#If">If</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-empty-record">empty record</a>:</td><td> </td><td valign="top"><a href="#Records">Records</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-end_005frule-_0028rule_0029"><code>end_rule</code> (rule)</a>:</td><td> </td><td valign="top"><a href="#Rules">Rules</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-error-_0028statement_0029"><code>error</code> (statement)</a>:</td><td> </td><td valign="top"><a href="#Error">Error</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-error_002dformat-_0028malaga-option_0029"><code>error-format</code> (<code>malaga</code> option)</a>:</td><td> </td><td valign="top"><a href="#error_002dformat">error-format</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-escape-character-_0028_005c_0029">escape character (‘<samp>\</samp>’)</a>:</td><td> </td><td valign="top"><a href="#Strings">Strings</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-expressions">expressions</a>:</td><td> </td><td valign="top"><a href="#Expressions">Expressions</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-expressions_002c-regular">expressions, regular</a>:</td><td> </td><td valign="top"><a href="#Regular-Expressions">Regular Expressions</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-extended-symbol-files">extended symbol files</a>:</td><td> </td><td valign="top"><a href="#Extended-Symbol-File">Extended Symbol File</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th><a name="Index_cp_letter-F">F</a></th><td></td><td></td></tr>
<tr><td></td><td valign="top"><a href="#index-failing-rule">failing rule</a>:</td><td> </td><td valign="top"><a href="#Initial-State">Initial State</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-files">files</a>:</td><td> </td><td valign="top"><a href="#Files">Files</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-files_002c-allomorph-rule">files, allomorph rule</a>:</td><td> </td><td valign="top"><a href="#Allomorph-Rule-File">Allomorph Rule File</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-files_002c-combi_002drule">files, combi-rule</a>:</td><td> </td><td valign="top"><a href="#Combi_002dRule-Files">Combi-Rule Files</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-files_002c-extended-symbol">files, extended symbol</a>:</td><td> </td><td valign="top"><a href="#Extended-Symbol-File">Extended Symbol File</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-files_002c-lexicon">files, lexicon</a>:</td><td> </td><td valign="top"><a href="#Lexicon-File">Lexicon File</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-files_002c-morphology-rule">files, morphology rule</a>:</td><td> </td><td valign="top"><a href="#Combi_002dRule-Files">Combi-Rule Files</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-files_002c-symbol">files, symbol</a>:</td><td> </td><td valign="top"><a href="#Symbol-File">Symbol File</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-files_002c-syntax-rule">files, syntax rule</a>:</td><td> </td><td valign="top"><a href="#Combi_002dRule-Files">Combi-Rule Files</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-finish-_0028command_0029"><code>finish</code> (command)</a>:</td><td> </td><td valign="top"><a href="#finish">finish</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-floor-_0028function_0029"><code>floor</code> (function)</a>:</td><td> </td><td valign="top"><a href="#Floor">Floor</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-font-family">font family</a>:</td><td> </td><td valign="top"><a href="#Profiles">Profiles</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-font-size">font size</a>:</td><td> </td><td valign="top"><a href="#Profiles">Profiles</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-foreach-_0028statement_0029"><code>foreach</code> (statement)</a>:</td><td> </td><td valign="top"><a href="#Foreach">Foreach</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-Formalism">Formalism</a>:</td><td> </td><td valign="top"><a href="#Formalism">Formalism</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-frame-_0028command_0029"><code>frame</code> (command)</a>:</td><td> </td><td valign="top"><a href="#frame">frame</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-functions">functions</a>:</td><td> </td><td valign="top"><a href="#Subrule-Calls">Subrule Calls</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th><a name="Index_cp_letter-G">G</a></th><td></td><td></td></tr>
<tr><td></td><td valign="top"><a href="#index-ga-_0028mallex-command_0029"><code>ga</code> (<code>mallex</code> command)</a>:</td><td> </td><td valign="top"><a href="#ga">ga</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-ga_002dfile-_0028mallex-command_0029"><code>ga-file</code> (<code>mallex</code> command)</a>:</td><td> </td><td valign="top"><a href="#ga_002dfile">ga-file</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-ga_002dline-_0028mallex-command_0029"><code>ga-line</code> (<code>mallex</code> command)</a>:</td><td> </td><td valign="top"><a href="#ga_002dline">ga-line</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-geometry">geometry</a>:</td><td> </td><td valign="top"><a href="#Profiles">Profiles</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-get-_0028command_0029"><code>get</code> (command)</a>:</td><td> </td><td valign="top"><a href="#get">get</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-greater-_0028operator_0029"><code>greater</code> (operator)</a>:</td><td> </td><td valign="top"><a href="#Number-Comparisons">Number Comparisons</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-greater_005fequal-_0028operator_0029"><code>greater_equal</code> (operator)</a>:</td><td> </td><td valign="top"><a href="#Number-Comparisons">Number Comparisons</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th><a name="Index_cp_letter-H">H</a></th><td></td><td></td></tr>
<tr><td></td><td valign="top"><a href="#index-Hangul">Hangul</a>:</td><td> </td><td valign="top"><a href="#Projects">Projects</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-Hangul_002c-transcribed">Hangul, transcribed</a>:</td><td> </td><td valign="top"><a href="#roman_002dhangul">roman-hangul</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-help-_0028command-line-option_0029"><code>help</code> (command line option)</a>:</td><td> </td><td valign="top"><a href="#The-Programs">The Programs</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-help-_0028command_0029"><code>help</code> (command)</a>:</td><td> </td><td valign="top"><a href="#help">help</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-hidden-_0028option_0029"><code>hidden</code> (option)</a>:</td><td> </td><td valign="top"><a href="#hidden">hidden</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th><a name="Index_cp_letter-I">I</a></th><td></td><td></td></tr>
<tr><td></td><td valign="top"><a href="#index-identifiers">identifiers</a>:</td><td> </td><td valign="top"><a href="#Identifiers">Identifiers</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-if-_0028expression_0029"><code>if</code> (expression)</a>:</td><td> </td><td valign="top"><a href="#If-Expression">If Expression</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-if-_0028statement_0029"><code>if</code> (statement)</a>:</td><td> </td><td valign="top"><a href="#If">If</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-in-_0028operator_0029"><code>in</code> (operator)</a>:</td><td> </td><td valign="top"><a href="#Operator-In">Operator In</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-include-_0028statement_0029"><code>include</code> (statement)</a>:</td><td> </td><td valign="top"><a href="#Include">Include</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-indexes_002c-state">indexes, state</a>:</td><td> </td><td valign="top"><a href="#Profiles">Profiles</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-info-_0028malaga-command_0029"><code>info</code> (<code>malaga</code> command)</a>:</td><td> </td><td valign="top"><a href="#info">info</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-initial-state">initial state</a>:</td><td> </td><td valign="top"><a href="#Initial-State">Initial State</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-input-_0028command-line-option_0029"><code>input</code> (command line option)</a>:</td><td> </td><td valign="top"><a href="#malaga">malaga</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-input_005ffilter-_0028rule_0029"><code>input_filter</code> (rule)</a>:</td><td> </td><td valign="top"><a href="#Rules">Rules</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th><a name="Index_cp_letter-L">L</a></th><td></td><td></td></tr>
<tr><td></td><td valign="top"><a href="#index-LAG">LAG</a>:</td><td> </td><td valign="top"><a href="#Formalism">Formalism</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-length-_0028function_0029"><code>length</code> (function)</a>:</td><td> </td><td valign="top"><a href="#Length">Length</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-less-_0028operator_0029"><code>less</code> (operator)</a>:</td><td> </td><td valign="top"><a href="#Number-Comparisons">Number Comparisons</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-less_005fequal-_0028operator_0029"><code>less_equal</code> (operator)</a>:</td><td> </td><td valign="top"><a href="#Number-Comparisons">Number Comparisons</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-lexicon-files">lexicon files</a>:</td><td> </td><td valign="top"><a href="#Lexicon-File">Lexicon File</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-list-_0028command_0029"><code>list</code> (command)</a>:</td><td> </td><td valign="top"><a href="#list">list</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-list-assignment">list assignment</a>:</td><td> </td><td valign="top"><a href="#The-Assignment">The Assignment</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-lists">lists</a>:</td><td> </td><td valign="top"><a href="#Lists">Lists</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th><a name="Index_cp_letter-M">M</a></th><td></td><td></td></tr>
<tr><td></td><td valign="top"><a href="#index-ma-_0028malaga-command_0029"><code>ma</code> (<code>malaga</code> command)</a>:</td><td> </td><td valign="top"><a href="#ma">ma</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-ma_002dfile-_0028malaga-command_0029"><code>ma-file</code> (<code>malaga</code> command)</a>:</td><td> </td><td valign="top"><a href="#ma_002dfile">ma-file</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-ma_002dline-_0028malaga-command_0029"><code>ma-line</code> (<code>malaga</code> command)</a>:</td><td> </td><td valign="top"><a href="#ma_002dline">ma-line</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-malaga-_0028program_0029"><code>malaga</code> (program)</a>:</td><td> </td><td valign="top"><a href="#malaga">malaga</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-Malaga_002c-programming-language">Malaga, programming language</a>:</td><td> </td><td valign="top"><a href="#The-Language">The Language</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-malaga_002eini-_0028file_0029"><code>malaga.ini</code> (file)</a>:</td><td> </td><td valign="top"><a href="#Profiles">Profiles</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-mallex-_0028program_0029"><code>mallex</code> (program)</a>:</td><td> </td><td valign="top"><a href="#mallex">mallex</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-malmake-_0028program_0029"><code>malmake</code> (program)</a>:</td><td> </td><td valign="top"><a href="#malmake">malmake</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-matches-_0028operator_0029"><code>matches</code> (operator)</a>:</td><td> </td><td valign="top"><a href="#Regular-Expressions">Regular Expressions</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-mg-_0028malaga-command_0029"><code>mg</code> (<code>malaga</code> command)</a>:</td><td> </td><td valign="top"><a href="#mg">mg</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-molecules">molecules</a>:</td><td> </td><td valign="top"><a href="#Symbol-Table">Symbol Table</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-mor_002dincomplete-_0028malaga-option_0029"><code>mor-incomplete</code> (<code>malaga</code> option)</a>:</td><td> </td><td valign="top"><a href="#mor_002dincomplete">mor-incomplete</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-mor_002dout_002dfilter-_0028malaga-option_0029"><code>mor-out-filter</code> (<code>malaga</code> option)</a>:</td><td> </td><td valign="top"><a href="#mor_002dout_002dfilter">mor-out-filter</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-mor_002dpruning-_0028malaga-option_0029"><code>mor-pruning</code> (<code>malaga</code> option)</a>:</td><td> </td><td valign="top"><a href="#mor_002dpruning">mor-pruning</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-morphology-_0028command-line-option_0029"><code>morphology</code> (command line option)</a>:</td><td> </td><td valign="top"><a href="#malaga">malaga</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-morphology-rule-files">morphology rule files</a>:</td><td> </td><td valign="top"><a href="#Combi_002dRule-Files">Combi-Rule Files</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-multi-_0028function_0029"><code>multi</code> (function)</a>:</td><td> </td><td valign="top"><a href="#Multi">Multi</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th><a name="Index_cp_letter-N">N</a></th><td></td><td></td></tr>
<tr><td></td><td valign="top"><a href="#index-next-_0028command_0029"><code>next</code> (command)</a>:</td><td> </td><td valign="top"><a href="#next">next</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-no-_0028symbol_0029"><code>no</code> (symbol)</a>:</td><td> </td><td valign="top"><a href="#Conditions">Conditions</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-not-_0028operator_0029"><code>not</code> (operator)</a>:</td><td> </td><td valign="top"><a href="#Boolean-Operators">Boolean Operators</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-numbers">numbers</a>:</td><td> </td><td valign="top"><a href="#Numbers">Numbers</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th><a name="Index_cp_letter-O">O</a></th><td></td><td></td></tr>
<tr><td></td><td valign="top"><a href="#index-operator-priority">operator priority</a>:</td><td> </td><td valign="top"><a href="#Expressions">Expressions</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-options">options</a>:</td><td> </td><td valign="top"><a href="#Options">Options</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-or-_0028operator_0029"><code>or</code> (operator)</a>:</td><td> </td><td valign="top"><a href="#Boolean-Operators">Boolean Operators</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-order_002c-attribute">order, attribute</a>:</td><td> </td><td valign="top"><a href="#sort_002drecords">sort-records</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-output_005ffilter-_0028rule_0029"><code>output_filter</code> (rule)</a>:</td><td> </td><td valign="top"><a href="#Rules">Rules</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th><a name="Index_cp_letter-P">P</a></th><td></td><td></td></tr>
<tr><td></td><td valign="top"><a href="#index-patterns_002c-string">patterns, string</a>:</td><td> </td><td valign="top"><a href="#Regular-Expressions">Regular Expressions</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-prelex-_0028command-line-option_0029"><code>prelex</code> (command line option)</a>:</td><td> </td><td valign="top"><a href="#mallex">mallex</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-print-_0028command_0029"><code>print</code> (command)</a>:</td><td> </td><td valign="top"><a href="#print">print</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-priority_002c-operator">priority, operator</a>:</td><td> </td><td valign="top"><a href="#Expressions">Expressions</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-profile">profile</a>:</td><td> </td><td valign="top"><a href="#Profiles">Profiles</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-projects">projects</a>:</td><td> </td><td valign="top"><a href="#Projects">Projects</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-Pruning">Pruning</a>:</td><td> </td><td valign="top"><a href="#mor_002dpruning">mor-pruning</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-Pruning-1">Pruning</a>:</td><td> </td><td valign="top"><a href="#syn_002dpruning">syn-pruning</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-pruning_005frule-_0028rule_0029"><code>pruning_rule</code> (rule)</a>:</td><td> </td><td valign="top"><a href="#Rules">Rules</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th><a name="Index_cp_letter-Q">Q</a></th><td></td><td></td></tr>
<tr><td></td><td valign="top"><a href="#index-quit-_0028command_0029"><code>quit</code> (command)</a>:</td><td> </td><td valign="top"><a href="#quit">quit</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-quoted-_0028command-line-option_0029"><code>quoted</code> (command line option)</a>:</td><td> </td><td valign="top"><a href="#malaga">malaga</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th><a name="Index_cp_letter-R">R</a></th><td></td><td></td></tr>
<tr><td></td><td valign="top"><a href="#index-read_002dconstants-_0028mallex-command_0029"><code>read-constants</code> (<code>mallex</code> command)</a>:</td><td> </td><td valign="top"><a href="#read_002dconstants">read-constants</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-readable-_0028command-line-option_0029"><code>readable</code> (command line option)</a>:</td><td> </td><td valign="top"><a href="#mallex">mallex</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-record_002c-empty">record, empty</a>:</td><td> </td><td valign="top"><a href="#Records">Records</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-records">records</a>:</td><td> </td><td valign="top"><a href="#Records">Records</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-regular-expressions">regular expressions</a>:</td><td> </td><td valign="top"><a href="#Regular-Expressions">Regular Expressions</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-repeat-_0028statement_0029"><code>repeat</code> (statement)</a>:</td><td> </td><td valign="top"><a href="#Repeat">Repeat</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-require-_0028statement_0029"><code>require</code> (statement)</a>:</td><td> </td><td valign="top"><a href="#Require">Require</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-result-_0028command_0029"><code>result</code> (command)</a>:</td><td> </td><td valign="top"><a href="#result">result</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-result-_0028statement_0029"><code>result</code> (statement)</a>:</td><td> </td><td valign="top"><a href="#Result">Result</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-result_002dformat-_0028malaga-option_0029"><code>result-format</code> (<code>malaga</code> option)</a>:</td><td> </td><td valign="top"><a href="#result_002dformat">result-format</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-result_002dlist-_0028malaga-option_0029"><code>result-list</code> (<code>malaga</code> option)</a>:</td><td> </td><td valign="top"><a href="#result_002dlist">result-list</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-return-_0028statement_0029"><code>return</code> (statement)</a>:</td><td> </td><td valign="top"><a href="#Subrule-Calls">Subrule Calls</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-return-_0028statement_0029-1"><code>return</code> (statement)</a>:</td><td> </td><td valign="top"><a href="#Return">Return</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-robust_002drule-_0028malaga-option_0029"><code>robust-rule</code> (<code>malaga</code> option)</a>:</td><td> </td><td valign="top"><a href="#robust_002drule">robust-rule</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-robust_005frule-_0028rule_0029"><code>robust_rule</code> (rule)</a>:</td><td> </td><td valign="top"><a href="#Rules">Rules</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-roman_002dhangul-_0028option_0029"><code>roman-hangul</code> (option)</a>:</td><td> </td><td valign="top"><a href="#roman_002dhangul">roman-hangul</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-rule-files_002c-allomorph">rule files, allomorph</a>:</td><td> </td><td valign="top"><a href="#Allomorph-Rule-File">Allomorph Rule File</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-rule-files_002c-morphology">rule files, morphology</a>:</td><td> </td><td valign="top"><a href="#Combi_002dRule-Files">Combi-Rule Files</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-rule-files_002c-syntax">rule files, syntax</a>:</td><td> </td><td valign="top"><a href="#Combi_002dRule-Files">Combi-Rule Files</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-rule_002c-failing">rule, failing</a>:</td><td> </td><td valign="top"><a href="#Initial-State">Initial State</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-rule_002c-successful">rule, successful</a>:</td><td> </td><td valign="top"><a href="#Initial-State">Initial State</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-rules">rules</a>:</td><td> </td><td valign="top"><a href="#Rules">Rules</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-run-_0028command_0029"><code>run</code> (command)</a>:</td><td> </td><td valign="top"><a href="#run">run</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th><a name="Index_cp_letter-S">S</a></th><td></td><td></td></tr>
<tr><td></td><td valign="top"><a href="#index-sa-_0028malaga-command_0029"><code>sa</code> (<code>malaga</code> command)</a>:</td><td> </td><td valign="top"><a href="#sa">sa</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-sa_002dfile-_0028malaga-command_0029"><code>sa-file</code> (<code>malaga</code> command)</a>:</td><td> </td><td valign="top"><a href="#sa_002dfile">sa-file</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-sa_002dline-_0028malaga-command_0029"><code>sa-line</code> (<code>malaga</code> command)</a>:</td><td> </td><td valign="top"><a href="#sa_002dline">sa-line</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-Schuller_002c-Gerald">Schüller, Gerald</a>:</td><td> </td><td valign="top"><a href="#Introduction">Introduction</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-select-_0028statement_0029"><code>select</code> (statement)</a>:</td><td> </td><td valign="top"><a href="#Select">Select</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-set-_0028command_0029"><code>set</code> (command)</a>:</td><td> </td><td valign="top"><a href="#set">set</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-set-_0028function_0029"><code>set</code> (function)</a>:</td><td> </td><td valign="top"><a href="#Set">Set</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-sg-_0028malaga-command_0029"><code>sg</code> (<code>malaga</code> command)</a>:</td><td> </td><td valign="top"><a href="#sg">sg</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-sort_002drecords-_0028option_0029"><code>sort-records</code> (option)</a>:</td><td> </td><td valign="top"><a href="#sort_002drecords">sort-records</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-split_002dhangul_002dsyllables"><code>split-hangul-syllables</code></a>:</td><td> </td><td valign="top"><a href="#Projects">Projects</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-state-indexes">state indexes</a>:</td><td> </td><td valign="top"><a href="#Profiles">Profiles</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-state_002c-initial">state, initial</a>:</td><td> </td><td valign="top"><a href="#Initial-State">Initial State</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-statements">statements</a>:</td><td> </td><td valign="top"><a href="#Statements">Statements</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-step-_0028command_0029"><code>step</code> (command)</a>:</td><td> </td><td valign="top"><a href="#step">step</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-stop-_0028statement_0029"><code>stop</code> (statement)</a>:</td><td> </td><td valign="top"><a href="#Stop">Stop</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-string-patterns">string patterns</a>:</td><td> </td><td valign="top"><a href="#Regular-Expressions">Regular Expressions</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-strings">strings</a>:</td><td> </td><td valign="top"><a href="#Strings">Strings</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-subrule-_0028rule_0029"><code>subrule</code> (rule)</a>:</td><td> </td><td valign="top"><a href="#Rules">Rules</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-subrules_002c-calling">subrules, calling</a>:</td><td> </td><td valign="top"><a href="#Subrule-Calls">Subrule Calls</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-substring-_0028function_0029"><code>substring</code> (function)</a>:</td><td> </td><td valign="top"><a href="#Substring">Substring</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-successful-rule">successful rule</a>:</td><td> </td><td valign="top"><a href="#Initial-State">Initial State</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-switch-_0028function_0029"><code>switch</code> (function)</a>:</td><td> </td><td valign="top"><a href="#Switch">Switch</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-switch-_0028option_0029"><code>switch</code> (option)</a>:</td><td> </td><td valign="top"><a href="#switch">switch</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-symbol-definition">symbol definition</a>:</td><td> </td><td valign="top"><a href="#Symbol-Table">Symbol Table</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-symbol-files">symbol files</a>:</td><td> </td><td valign="top"><a href="#Symbol-File">Symbol File</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-symbol-files_002c-extended">symbol files, extended</a>:</td><td> </td><td valign="top"><a href="#Extended-Symbol-File">Extended Symbol File</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-symbol-table">symbol table</a>:</td><td> </td><td valign="top"><a href="#Symbol-Table">Symbol Table</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-symbols">symbols</a>:</td><td> </td><td valign="top"><a href="#Symbols">Symbols</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-syn_002din_002dfilter-_0028malaga-option_0029"><code>syn-in-filter</code> (<code>malaga</code> option)</a>:</td><td> </td><td valign="top"><a href="#syn_002din_002dfilter">syn-in-filter</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-syn_002dincomplete-_0028malaga-option_0029"><code>syn-incomplete</code> (<code>malaga</code> option)</a>:</td><td> </td><td valign="top"><a href="#syn_002dincomplete">syn-incomplete</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-syn_002dout_002dfilter-_0028malaga-option_0029"><code>syn-out-filter</code> (<code>malaga</code> option)</a>:</td><td> </td><td valign="top"><a href="#syn_002dout_002dfilter">syn-out-filter</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-syn_002dpruning-_0028malaga-option_0029"><code>syn-pruning</code> (<code>malaga</code> option)</a>:</td><td> </td><td valign="top"><a href="#syn_002dpruning">syn-pruning</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-syntax-_0028command-line-option_0029"><code>syntax</code> (command line option)</a>:</td><td> </td><td valign="top"><a href="#malaga">malaga</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-syntax-rule-files">syntax rule files</a>:</td><td> </td><td valign="top"><a href="#Combi_002dRule-Files">Combi-Rule Files</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-syntax_002c-Malaga">syntax, Malaga</a>:</td><td> </td><td valign="top"><a href="#Syntax-Summary">Syntax Summary</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th><a name="Index_cp_letter-T">T</a></th><td></td><td></td></tr>
<tr><td></td><td valign="top"><a href="#index-transcribed-Hangul">transcribed Hangul</a>:</td><td> </td><td valign="top"><a href="#roman_002dhangul">roman-hangul</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-transmit-_0028command_0029"><code>transmit</code> (command)</a>:</td><td> </td><td valign="top"><a href="#transmit">transmit</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-transmit-_0028function_0029"><code>transmit</code> (function)</a>:</td><td> </td><td valign="top"><a href="#Transmit">Transmit</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-transmit_002dcmd-_0028option_0029"><code>transmit-cmd</code> (option)</a>:</td><td> </td><td valign="top"><a href="#transmit_002dcmd">transmit-cmd</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-tree-_0028malaga-command_0029"><code>tree</code> (<code>malaga</code> command)</a>:</td><td> </td><td valign="top"><a href="#tree">tree</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th><a name="Index_cp_letter-U">U</a></th><td></td><td></td></tr>
<tr><td></td><td valign="top"><a href="#index-unknown_002dformat-_0028malaga-option_0029"><code>unknown-format</code> (<code>malaga</code> option)</a>:</td><td> </td><td valign="top"><a href="#unknown_002dformat">unknown-format</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-up-_0028command_0029"><code>up</code> (command)</a>:</td><td> </td><td valign="top"><a href="#up">up</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-use_002ddisplay-_0028option_0029"><code>use-display</code> (option)</a>:</td><td> </td><td valign="top"><a href="#use_002ddisplay">use-display</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th><a name="Index_cp_letter-V">V</a></th><td></td><td></td></tr>
<tr><td></td><td valign="top"><a href="#index-values">values</a>:</td><td> </td><td valign="top"><a href="#Values">Values</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-value_005fstring-_0028function_0029"><code>value_string</code> (function)</a>:</td><td> </td><td valign="top"><a href="#Value_005fString">Value_String</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-value_005ftype-_0028function_0029"><code>value_type</code> (function)</a>:</td><td> </td><td valign="top"><a href="#Value_005fType">Value_Type</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-variables-_0028command_0029"><code>variables</code> (command)</a>:</td><td> </td><td valign="top"><a href="#variables">variables</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-version-_0028command-line-option_0029"><code>version</code> (command line option)</a>:</td><td> </td><td valign="top"><a href="#The-Programs">The Programs</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th><a name="Index_cp_letter-W">W</a></th><td></td><td></td></tr>
<tr><td></td><td valign="top"><a href="#index-walk-_0028command_0029"><code>walk</code> (command)</a>:</td><td> </td><td valign="top"><a href="#walk">walk</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-where-_0028command_0029"><code>where</code> (command)</a>:</td><td> </td><td valign="top"><a href="#where">where</a></td></tr>
<tr><td></td><td valign="top"><a href="#index-window-geometry">window geometry</a>:</td><td> </td><td valign="top"><a href="#Profiles">Profiles</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th><a name="Index_cp_letter-Y">Y</a></th><td></td><td></td></tr>
<tr><td></td><td valign="top"><a href="#index-yes-_0028symbol_0029"><code>yes</code> (symbol)</a>:</td><td> </td><td valign="top"><a href="#Conditions">Conditions</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
</table>
<table><tr><th valign="top">Jump to: </th><td><a class="summary-letter" href="#Index_cp_symbol-1"><b>*</b></a>
<a class="summary-letter" href="#Index_cp_symbol-2"><b>+</b></a>
<a class="summary-letter" href="#Index_cp_symbol-3"><b>-</b></a>
<a class="summary-letter" href="#Index_cp_symbol-4"><b>.</b></a>
<a class="summary-letter" href="#Index_cp_symbol-5"><b>/</b></a>
<a class="summary-letter" href="#Index_cp_symbol-6"><b>=</b></a>
<a class="summary-letter" href="#Index_cp_symbol-7"><b>~</b></a>
<br>
<a class="summary-letter" href="#Index_cp_letter-A"><b>A</b></a>
<a class="summary-letter" href="#Index_cp_letter-B"><b>B</b></a>
<a class="summary-letter" href="#Index_cp_letter-C"><b>C</b></a>
<a class="summary-letter" href="#Index_cp_letter-D"><b>D</b></a>
<a class="summary-letter" href="#Index_cp_letter-E"><b>E</b></a>
<a class="summary-letter" href="#Index_cp_letter-F"><b>F</b></a>
<a class="summary-letter" href="#Index_cp_letter-G"><b>G</b></a>
<a class="summary-letter" href="#Index_cp_letter-H"><b>H</b></a>
<a class="summary-letter" href="#Index_cp_letter-I"><b>I</b></a>
<a class="summary-letter" href="#Index_cp_letter-L"><b>L</b></a>
<a class="summary-letter" href="#Index_cp_letter-M"><b>M</b></a>
<a class="summary-letter" href="#Index_cp_letter-N"><b>N</b></a>
<a class="summary-letter" href="#Index_cp_letter-O"><b>O</b></a>
<a class="summary-letter" href="#Index_cp_letter-P"><b>P</b></a>
<a class="summary-letter" href="#Index_cp_letter-Q"><b>Q</b></a>
<a class="summary-letter" href="#Index_cp_letter-R"><b>R</b></a>
<a class="summary-letter" href="#Index_cp_letter-S"><b>S</b></a>
<a class="summary-letter" href="#Index_cp_letter-T"><b>T</b></a>
<a class="summary-letter" href="#Index_cp_letter-U"><b>U</b></a>
<a class="summary-letter" href="#Index_cp_letter-V"><b>V</b></a>
<a class="summary-letter" href="#Index_cp_letter-W"><b>W</b></a>
<a class="summary-letter" href="#Index_cp_letter-Y"><b>Y</b></a>
</td></tr></table>
<hr>
</body>
</html>
|