diff options
Diffstat (limited to 'data/sample-grammars/long-data')
| -rwxr-xr-x | data/sample-grammars/long-data/cards.gram | 56 | ||||
| -rwxr-xr-x | data/sample-grammars/long-data/letters.gram | 6 | ||||
| -rwxr-xr-x | data/sample-grammars/long-data/nation.gram | 436 | ||||
| -rwxr-xr-x | data/sample-grammars/long-data/numbers.gram | 21 | ||||
| -rwxr-xr-x | data/sample-grammars/long-data/planet.gram | 2 | ||||
| -rwxr-xr-x | data/sample-grammars/long-data/real-city.gram | 153 | ||||
| -rwxr-xr-x | data/sample-grammars/long-data/real-company.gram | 415 | ||||
| -rwxr-xr-x | data/sample-grammars/long-data/relative.gram | 2 | ||||
| -rwxr-xr-x | data/sample-grammars/long-data/roman-numeral.gram | 6 | ||||
| -rwxr-xr-x | data/sample-grammars/long-data/town-name.gram | 282 | ||||
| -rwxr-xr-x | data/sample-grammars/long-data/tree.gram | 2 |
11 files changed, 665 insertions, 716 deletions
diff --git a/data/sample-grammars/long-data/cards.gram b/data/sample-grammars/long-data/cards.gram index 51a86d4..21ebc68 100755 --- a/data/sample-grammars/long-data/cards.gram +++ b/data/sample-grammars/long-data/cards.gram @@ -14,47 +14,21 @@ pragma export-rule [playing-card] spades diamonds -[playing-rank] [rank-two] - [rank-three] - [rank-four] - [rank-five] - [rank-six] - [rank-seven] - [rank-eight] - [rank-nine] - [rank-ten] +[playing-rank] <^8> [playing-rank-num] jack king queen ace -[rank-two] 2 - deuce - two - -[rank-three] 3 - three - -[rank-four] 4 - four - -[rank-five] 5 - five - -[rank-six] 6 - six - -[rank-seven] 7 - seven - -[rank-eight] 8 - eight - -[rank-nine] 9 - nine - -[rank-ten] 10 - ten +[playing-rank-num] [2|deuce|two] + [3|three] + [4|four] + [5|five] + [6|six] + [7|seven] + [8|eight] + [9|nine] + [10|ten] [tarot-card] [minor-arcana] [major-arcana] @@ -75,15 +49,7 @@ pragma export-rule [tarot-card] pragma export-rule [major-arcana] [minor-rank] ace - [rank-two] - [rank-three] - [rank-four] - [rank-five] - [rank-six] - [rank-seven] - [rank-eight] - [rank-nine] - [rank-ten] + <^8> [playing-rank-num] knave page jack diff --git a/data/sample-grammars/long-data/letters.gram b/data/sample-grammars/long-data/letters.gram index f561b99..8d66436 100755 --- a/data/sample-grammars/long-data/letters.gram +++ b/data/sample-grammars/long-data/letters.gram @@ -125,10 +125,6 @@ pragma export-rule [letter] pragma export-rule [middle-initial] -[vowel] a - e - i - o - u +[vowel] [a|e|i|o|u] pragma export-rule [vowel] diff --git a/data/sample-grammars/long-data/nation.gram b/data/sample-grammars/long-data/nation.gram index d15788d..14ef8e5 100755 --- a/data/sample-grammars/long-data/nation.gram +++ b/data/sample-grammars/long-data/nation.gram @@ -1,220 +1,220 @@ -[nation] afghanistan - albania - algeria - american samoa - andorra - angola - anguilla - antarctica - antigua - argentina - armenia - aruba - australia - austria - azerbaijan - bahamas - bahrain - bangladesh - barbados - belarus - belgium - belize - benin - bermuda - bhutan - bolivia - bosnia and herzegovina - botswana - brazil - brunei - bulgaria - burkina faso - burma - burundi - cambodia - cameroon - canada - cape verde - central african republic - chad - chile - china - colombia - comoros - congo - cook islands - costa rica - cote d'ivoire - croatia - cuba - cyprus - czech republic - denmark - djibouti - dominica - dominican republic - ecuador - egypt - el salvador - equatorial guinea - eritrea - estonia - ethiopia - falkland islands - fiji - finland - france - french guiana - french polynesia - gabon - the gambia - georgia - germany - ghana - gibraltar - greece - greenland - grenada - guadeloupe - guam - guatemala - guinea - guinea-bissau - guyana - haiti - the holy see - honduras - hong kong - hungary - iceland - india - indonesia - iran - iraq - ireland - israel - italy - jamaica - japan - jordan - kazakhstan - kenya - kiribati - kuwait - kyrgyzstan - laos - latvia - lebanon - lesotho - liberia - libya - liechtenstein - lithuania - luxembourg - macau - macedonia - madagascar - malawi - malaysia - maldives - mali - malta - marshall islands - martinique - mauritania - mauritius - mayotte - mexico - federated states of micronesia - moldova - monaco - mongolia - montserrat - morocco - mozambique - namibia - nauru - nepal - netherlands - netherlands antilles - new caledonia - new zealand - nicaragua - niger - nigeria - north korea - northern mariana islands - norway - oman - pakistan - palau - panama - papua new guinea - paraguay - peru - philippines - pitcairn islands - poland - portugal - puerto rico - qatar - reunion - romania - russia - rwanda - saint kitts and nevis - saint lucia - saint pierre and miquelon - saint vincent and the grenadines - samoa - san marino - sao tome and principe - saudi arabia - senegal - seychelles - sierra leone - singapore - slovakia - slovenia - solomon islands - somalia - south africa - south korea - spain - sri lanka - sudan - suriname - swaziland - sweden - switzerland - syria - taiwan - tajikistan - tanzania - thailand - togo - tonga - trinidad and tobago - tunisia - turkey - turkmenistan - turks and caicos islands - tuvalu - uganda - ukraine - united arab emirates - united kingdom - united states - uruguay - uzbekistan - vanuatu - venezuela - vietnam - western sahara - yemen - zaire - zambia - zimbabwe +[nation] Afghanistan + Albania + Algeria + American samoa + Andorra + Angola + Anguilla + Antarctica + Antigua + Argentina + Armenia + Aruba + Australia + Austria + Azerbaijan + Bahamas + Bahrain + Bangladesh + Barbados + Belarus + Belgium + Belize + Benin + Bermuda + Bhutan + Bolivia + Bosnia and Herzegovina + Botswana + Brazil + Brunei + Bulgaria + Burkina faso + Burma + Burundi + Cambodia + Cameroon + Canada + Cape verde + Central African Republic + Chad + Chile + China + Colombia + Comoros + Congo + Cook Islands + Costa Rica + Cote d'Ivoire + Croatia + Cuba + Cyprus + Czech Republic + Denmark + Djibouti + Dominica + Dominican Republic + Ecuador + Egypt + El Salvador + Equatorial Guinea + Eritrea + Estonia + Ethiopia + Falkland Islands + Fiji + Finland + France + French Guiana + French Polynesia + Gabon + The Gambia + Georgia + Germany + Ghana + Gibraltar + Greece + Greenland + Grenada + Guadeloupe + Guam + Guatemala + Guinea + Guinea-Bissau + Guyana + Haiti + The Holy See + Honduras + Hong Kong + Hungary + Iceland + India + Indonesia + Iran + Iraq + Ireland + Israel + Italy + Jamaica + Japan + Jordan + Kazakhstan + Kenya + Kiribati + Kuwait + Kyrgyzstan + Laos + Latvia + Lebanon + Lesotho + Liberia + Libya + Liechtenstein + Lithuania + Luxembourg + Macau + Macedonia + Madagascar + Malawi + Malaysia + Maldives + Mali + Malta + Marshall Islands + Martinique + Mauritania + Mauritius + Mayotte + Mexico + Federated States Of Micronesia + Moldova + Monaco + Mongolia + Montserrat + Morocco + Mozambique + Namibia + Nauru + Nepal + Netherlands + Netherlands Antilles + New Caledonia + New Zealand + Nicaragua + Niger + Nigeria + North Korea + Northern Mariana Islands + Norway + Oman + Pakistan + Palau + Panama + Papua New Guinea + Paraguay + Peru + Philippines + Pitcairn Islands + Poland + Portugal + Puerto Rico + Qatar + Reunion + Romania + Russia + Rwanda + Saint Kitts and Nevis + Saint Lucia + Saint Pierre and Miquelon + Saint Vincent and The Grenadines + Samoa + San Marino + Sao Tome and Principe + Saudi Arabia + Senegal + Seychelles + Sierra Leone + Singapore + Slovakia + Slovenia + Solomon Islands + Somalia + South Africa + South Korea + Spain + Sri Lanka + Sudan + Suriname + Swaziland + Sweden + Switzerland + Syria + Taiwan + Tajikistan + Tanzania + Thailand + Togo + Tonga + Trinidad and Tobago + Tunisia + Turkey + Turkmenistan + Turks and Caicos Islands + Tuvalu + Uganda + Ukraine + United Arab Emirates + United Kingdom + United States + Uruguay + Uzbekistan + Vanuatu + Venezuela + Vietnam + Western Sahara + Yemen + Zaire + Zambia + Zimbabwe pragma initial-rule [nation] diff --git a/data/sample-grammars/long-data/numbers.gram b/data/sample-grammars/long-data/numbers.gram index 8525102..31bfc3c 100755 --- a/data/sample-grammars/long-data/numbers.gram +++ b/data/sample-grammars/long-data/numbers.gram @@ -1,4 +1,4 @@ -[binary-digit] 0 +[binary-digit] [0-1] 1 pragma export-rule [binary-digit] @@ -15,26 +15,11 @@ pragma export-rule [binary-digit] pragma export-rule [digit-noone] -[digit-nonzero] 1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 +[digit-nonzero] [1..9] pragma export-rule [digit-nonzero] -[digit-twoup] 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 +[digit-twoup] [2..9] pragma export-rule [digit-twoup] diff --git a/data/sample-grammars/long-data/planet.gram b/data/sample-grammars/long-data/planet.gram index 1da1678..6149a61 100755 --- a/data/sample-grammars/long-data/planet.gram +++ b/data/sample-grammars/long-data/planet.gram @@ -1,4 +1,4 @@ -[planet] → Mercury +[planet] Mercury Venus Mars Jupiter diff --git a/data/sample-grammars/long-data/real-city.gram b/data/sample-grammars/long-data/real-city.gram index 7ca57b9..cea075d 100755 --- a/data/sample-grammars/long-data/real-city.gram +++ b/data/sample-grammars/long-data/real-city.gram @@ -1,78 +1,79 @@ -[real-city] → birmingham - anchorage - mesa - phoenix - tucson - anaheim - fresno - long beach - los angeles - oakland - riverside - sacramento - san diego - san francisco - san jose - santa ana - stockton - aurora - colorado springs - denver - washington - jacksonville - miami - st. petersburg - tampa - atlanta - honolulu - chicago - indianapolis - wichita - lexington - louisville - baton rouge - new orleans - baltimore - boston - detroit - minneapolis - st. paul - kansas city - st. louis - omaha - las vegas - jersey city - newark - albuquerque - buffalo - new york - rochester - charlotte - raleigh - akron - cincinnati - cleveland - columbus - toledo - oklahoma city - tulsa - portland - philadelphia - pittsburgh - memphis - nashville - arlington - austin - corpus christi - dallas - el paso - fort worth - houston - san antonio - norfolk - richmond - virginia beach - seattle - milwaukee +[real-city] + Birmingham + Anchorage + Mesa + Phoenix + Tucson + Anaheim + Fresno + Long Beach + Los Angeles + Oakland + Riverside + Sacramento + San diego + San Francisco + San Jose + Santa Ana + Stockton + Aurora + Colorado Springs + Denver + Washington + Jacksonville + Miami + St. Petersburg + Tampa + Atlanta + Honolulu + Chicago + Indianapolis + Wichita + Lexington + Louisville + Baton Rouge + New Orleans + Baltimore + Boston + Detroit + Minneapolis + St. Paul + Kansas City + St. Louis + Omaha + Las Vegas + Jersey City + Newark + Albuquerque + Buffalo + New York + Rochester + Charlotte + Raleigh + Akron + Cincinnati + Cleveland + Columbus + Toledo + Oklahoma City + Tulsa + Portland + Philadelphia + Pittsburgh + Memphis + Nashville + Arlington + Austin + Corpus Christi + Dallas + El Paso + Fort Worth + Houston + San Antonio + Norfolk + Richmond + Virginia Beach + Seattle + Milwaukee pragma initial-rule [real-city] diff --git a/data/sample-grammars/long-data/real-company.gram b/data/sample-grammars/long-data/real-company.gram index f81ec14..079b945 100755 --- a/data/sample-grammars/long-data/real-company.gram +++ b/data/sample-grammars/long-data/real-company.gram @@ -1,209 +1,210 @@ -[real-company] 3com - aflac - at&t - ace hardware - aetna - aid association for lutherans - albertson's - allstate - alltel - amerenue - america online - american express - american general - ames department stores - anheuser-busch - apple computer - archer daniels midland - autozone - avis rent a car - avon products - b.f. goodrich - bank of america corp. - barnes & noble - bell atlantic - bellsouth - berkshire hathaway - best buy - black & decker - boeing - bristol-myers squibb - burlington northern santa fe - cbs - cvs - cablevision systems - campbell soup - caterpillar - cendant - charles schwab - chase manhattan corp. - chevron - cigna - cinergy - circuit city group - cisco systems - citigroup - clorox - coastal - coca-cola - colgate-palmolive - columbia/hca healthcare - comcast - comerica - compusa - compaq computer - computer associates intl. - conagra - conoco - conseco - continental airlines - corning - costco wholesale - dana - dell computer - delta air lines - dillard's - dole food - dollar general - dow chemical - eastman kodak - eli lilly - este lauder - exxon mobil - fannie mae - farmland industries - fedex - firstar corp. - fleetwood enterprises - ford motor - gte - gannett - gap - gateway - general electric - general mills - general motors - gillette - goldman sachs group - goodyear tire & rubber - h.j. heinz - hartford financial services - hasbro - healthsouth - hershey foods - hewlett-packard - home depot - honeywell international - hormel foods - itt industries - ikon office solutions - ingersoll-rand - intel - ibm - j.c. penney - j.p. morgan & co. - john hancock financial services - johnson & johnson - kellogg - kimberly-clark - kmart - knight-ridder - kroger - lexmark international - lockheed martin - lowe's - lucent technologies - mci worldcom - marriott international - mattel - maytag - mcdonald's - mcgraw-hill - merck - merrill lynch - metropolitan life insurance - micron technology - microsoft - monsanto - morgan stanley dean witter - motorola - mutual of omaha insurance - ncr - nabisco group holdings - new york life insurance - new york times - newell rubbermaid - nextel communications - nike - nordstrom - northwest airlines - office depot - officemax - oracle - owens corning - paine webber group - pepsico - pfizer - pharmacia & upjohn - philip morris - procter & gamble - providian financial - prudential ins. co. of america - quaker oats - qualcomm - quantum - qwest communications - r. j. reynolds tobacco - ralston purina - raytheon - rockwell international - sbc communications - safeway - saks - sara lee - seagate technology - sears roebuck - servicemaster - sherwin-williams - shopko stores - sodexho marriott services - southwest airlines - sprint - staples - state farm insurance cos. - sun microsystems - suntrust banks - sunoco - supervalu - tandy - target - tenet healthcare - texaco - texas instruments - time warner - times mirror - toys `r' us - trans world airlines - tyson foods - u.s. bancorp - us airways group - us west - ultramar diamond shamrock - union carbide - union pacific - unisys - united parcel service - unitedhealth group - universal - viacom - wal-mart stores - walgreen - walt disney - warner-lambert - wells fargo - weyerhaeuser - whirlpool - winn-dixie stores - xerox +[real-company] + 3com + Aflac + At&T + Ace Hardware + Aetna + Aid Association For Lutherans + Albertson'S + Allstate + Alltel + Amerenue + America Online + American Express + American General + Ames Department Stores + Anheuser-Busch + Apple Computer + Archer Daniels Midland + Autozone + Avis Rent A Car + Avon Products + B.F. Goodrich + Bank Of America Corp. + Barnes & Noble + Bell Atlantic + Bellsouth + Berkshire Hathaway + Best Buy + Black & Decker + Boeing + Bristol-Myers Squibb + Burlington Northern Santa Fe + Cbs + Cvs + Cablevision Systems + Campbell Soup + Caterpillar + Cendant + Charles Schwab + Chase Manhattan Corp. + Chevron + Cigna + Cinergy + Circuit City Group + Cisco Systems + Citigroup + Clorox + Coastal + Coca-Cola + Colgate-Palmolive + Columbia/Hca Healthcare + Comcast + Comerica + Compusa + Compaq Computer + Computer Associates Intl. + Conagra + Conoco + Conseco + Continental Airlines + Corning + Costco Wholesale + Dana + Dell Computer + Delta Air Lines + Dillard'S + Dole Food + Dollar General + Dow Chemical + Eastman Kodak + Eli Lilly + Este Lauder + Exxon Mobil + Fannie Mae + Farmland Industries + Fedex + Firstar Corp. + Fleetwood Enterprises + Ford Motor + Gte + Gannett + Gap + Gateway + General Electric + General Mills + General Motors + Gillette + Goldman Sachs Group + Goodyear Tire & Rubber + H.J. Heinz + Hartford Financial Services + Hasbro + Healthsouth + Hershey Foods + Hewlett-Packard + Home Depot + Honeywell International + Hormel Foods + Itt Industries + Ikon Office Solutions + Ingersoll-Rand + Intel + Ibm + J.C. Penney + J.P. Morgan & Co. + John Hancock Financial Services + Johnson & Johnson + Kellogg + Kimberly-Clark + Kmart + Knight-Ridder + Kroger + Lexmark International + Lockheed Martin + Lowe'S + Lucent Technologies + Mci Worldcom + Marriott International + Mattel + Maytag + Mcdonald'S + Mcgraw-Hill + Merck + Merrill Lynch + Metropolitan Life Insurance + Micron Technology + Microsoft + Monsanto + Morgan Stanley Dean Witter + Motorola + Mutual Of Omaha Insurance + Ncr + Nabisco Group Holdings + New York Life Insurance + New York Times + Newell Rubbermaid + Nextel Communications + Nike + Nordstrom + Northwest Airlines + Office Depot + Officemax + Oracle + Owens Corning + Paine Webber Group + Pepsico + Pfizer + Pharmacia & Upjohn + Philip Morris + Procter & Gamble + Providian Financial + Prudential Ins. Co. Of America + Quaker Oats + Qualcomm + Quantum + Qwest Communications + R. J. Reynolds Tobacco + Ralston Purina + Raytheon + Rockwell International + Sbc Communications + Safeway + Saks + Sara Lee + Seagate Technology + Sears Roebuck + Servicemaster + Sherwin-Williams + Shopko Stores + Sodexho Marriott Services + Southwest Airlines + Sprint + Staples + State Farm Insurance Cos. + Sun Microsystems + Suntrust Banks + Sunoco + Supervalu + Tandy + Target + Tenet Healthcare + Texaco + Texas Instruments + Time Warner + Times Mirror + Toys `R' Us + Trans World Airlines + Tyson Foods + U.S. Bancorp + Us Airways Group + Us West + Ultramar Diamond Shamrock + Union Carbide + Union Pacific + Unisys + United Parcel Service + Unitedhealth Group + Universal + Viacom + Wal-Mart Stores + Walgreen + Walt Disney + Warner-Lambert + Wells Fargo + Weyerhaeuser + Whirlpool + Winn-Dixie Stores + Xerox pragma initial-rule [real-company] diff --git a/data/sample-grammars/long-data/relative.gram b/data/sample-grammars/long-data/relative.gram index a18e015..d51a451 100755 --- a/data/sample-grammars/long-data/relative.gram +++ b/data/sample-grammars/long-data/relative.gram @@ -1,4 +1,4 @@ -[relative] → father +[relative] father mother uncle aunt diff --git a/data/sample-grammars/long-data/roman-numeral.gram b/data/sample-grammars/long-data/roman-numeral.gram index 886d44c..9715036 100755 --- a/data/sample-grammars/long-data/roman-numeral.gram +++ b/data/sample-grammars/long-data/roman-numeral.gram @@ -1,8 +1,8 @@ [roman-numeral-string] [roman-numeral-string+1] -[roman-numeral-string+1] [roman-numeral] - [roman-numeral] - [roman-numeral] [roman-numeral-string] +[roman-numeral-string+1] <^2> <&1..4> [roman-numeral] + <^4> <&5..10> [roman-numeral] + <&10..15> [roman-numeral] pragma initial-rule [roman-numeral-string] diff --git a/data/sample-grammars/long-data/town-name.gram b/data/sample-grammars/long-data/town-name.gram index e176c7d..9a97fe4 100755 --- a/data/sample-grammars/long-data/town-name.gram +++ b/data/sample-grammars/long-data/town-name.gram @@ -1,143 +1,143 @@ -[town-name] → sullivan - jakin - geneva - coleharbor - cadiz - dawson - turon - salem - pax - dakota - moorefield - zenda - mettawa - orchard - busby - cloudcroft - perla - burlington - morrison - blackburn - jerico - skykomish - dupree - dawson - bowers - star - dorrance - roberts - carbon - hopedale - croghan - elgin - holland - berkley - sherrill - varna - owen - oxford - drake - notus - hobgood - thacker - springfield - fraser - avon - audubon - waterloo - windsor - atoka - cherry - hudson - kechi - pickstown - elizabeth - holt - stapleton - kell - gardena - osceola - moscow - morrison - mustang - maxwell - francis - eureka - darlington - ely - bancroft - hanover - milano - cabery - byars - gully - sherwood - reklaw - watkins - heartwell - dawson - vermont - goldville - paxson - potwin - sherman - glenbeulah - sunset - clearwater - solen - altamont - dyer - murray - rathbun - huntleigh - poulan - burlington - jackson - verndale - cleveland - josephine - leland - carrollton - vance - sumner - tira - mead - gumbranch - glenwood - harrison - hannibal - carthage - callao - bussey - coaldale - chugwater - andale - adell - farber - carlton - prue - tenney - walcott - udall - brighton - minburn - swan - frazer - menlo - bassett - massena - trommald - waynesfield - lynd - mendon - hammond - simsboro - thornton - crary - reynolds - turton - perry - penasco - loami +[town-name] Sullivan + Jakin + Geneva + Coleharbor + Cadiz + Dawson + Turon + Salem + Pax + Dakota + Moorefield + Zenda + Mettawa + Orchard + Busby + Cloudcroft + Perla + Burlington + Morrison + Blackburn + Jerico + Skykomish + Dupree + Dawson + Bowers + Star + Dorrance + Roberts + Carbon + Hopedale + Croghan + Elgin + Holland + Berkley + Sherrill + Varna + Owen + Oxford + Drake + Notus + Hobgood + Thacker + Springfield + Fraser + Avon + Audubon + Waterloo + Windsor + Atoka + Cherry + Hudson + Kechi + Pickstown + Elizabeth + Holt + Stapleton + Kell + Gardena + Osceola + Moscow + Morrison + Mustang + Maxwell + Francis + Eureka + Darlington + Ely + Bancroft + Hanover + Milano + Cabery + Byars + Gully + Sherwood + Reklaw + Watkins + Heartwell + Dawson + Vermont + Goldville + Paxson + Potwin + Sherman + Glenbeulah + Sunset + Clearwater + Solen + Altamont + Dyer + Murray + Rathbun + Huntleigh + Poulan + Burlington + Jackson + Verndale + Cleveland + Josephine + Leland + Carrollton + Vance + Sumner + Tira + Mead + Gumbranch + Glenwood + Harrison + Hannibal + Carthage + Callao + Bussey + Coaldale + Chugwater + Andale + Adell + Farber + Carlton + Prue + Tenney + Walcott + Udall + Brighton + Minburn + Swan + Frazer + Menlo + Bassett + Massena + Trommald + Waynesfield + Lynd + Mendon + Hammond + Simsboro + Thornton + Crary + Reynolds + Turton + Perry + Penasco + Loami pragma initial-rule [town-name] diff --git a/data/sample-grammars/long-data/tree.gram b/data/sample-grammars/long-data/tree.gram index 6fd0f0e..6293ada 100755 --- a/data/sample-grammars/long-data/tree.gram +++ b/data/sample-grammars/long-data/tree.gram @@ -1,4 +1,4 @@ -[tree] → pine +[tree] pine elm maple oak |
