summaryrefslogtreecommitdiff
path: root/data/sample-grammars/media.gram
diff options
context:
space:
mode:
Diffstat (limited to 'data/sample-grammars/media.gram')
-rwxr-xr-xdata/sample-grammars/media.gram164
1 files changed, 164 insertions, 0 deletions
diff --git a/data/sample-grammars/media.gram b/data/sample-grammars/media.gram
new file mode 100755
index 0000000..f3a1c98
--- /dev/null
+++ b/data/sample-grammars/media.gram
@@ -0,0 +1,164 @@
+[media-company] [television-station]
+ [radio-station]
+ [newspaper]
+
+pragma initial-rule [media-company]
+
+[television-station] [chan+name] on channel [2..45]
+ [chan+name] on channel [2..12]
+
+[chan+name] k [chan-name2]
+ w [chan-name2]
+
+[chan-name2] [letter] [letter] [letter] -tv
+
+[radio-station] [radio+name] on frequency [radio+chan]
+
+[radio+name] k [radio+name2]
+ w [radio+name2]
+
+[radio+name2] [letter] [letter] [letter] [chan-type]
+
+[chan-type] -fm {chantype=fm}
+ -am {chantype=am}
+
+[radio+chan] 9 [radio-9chan]
+ [$chantype-1chan]
+
+[radio-9chan] [digit] . [digit]
+
+[fm-1chan] 1 [digit] [digit] . [digit]
+
+[am-1chan] 10 [digit] [digit]
+
+[newspaper] the [newspaper-pair1] - [newspaper-pair2]
+ the [newspaper-pair1] - [newspaper-pair2] - [newspaper-pair2]
+ the daily [newspaper-pair1] [newspaper-pair2]
+ the [newspaper-pair1] [newspaper-pair2]
+ [city] [newspaper-pair1] - [newspaper-pair2]
+ [city] [newspaper-pair1] [newspaper-pair2]
+ [city] [newspaper-pair2]
+ [city] [newspaper-pair1]
+ [real-city] [newspaper-pair1] - [newspaper-pair2]
+ [town-name] [newspaper-pair2]
+ the [cardinal] [us-stateadj]
+ [us-stateadj] [newspaper-pair1] - [newspaper-pair2]
+ [cardinal] [us-state] [newspaper-pair1] [newspaper-pair2]
+
+[newspaper-pair1] southern
+ northern
+ eastern
+ western
+ democratic
+ republic
+ liberty
+ freedom
+ sun
+ patriot
+ river
+ mountain
+ plains
+ american
+ news
+ post
+ morning
+ evening
+ star
+ daily
+ new
+ old
+ responsible
+ ethical
+ pulp
+ events
+ banner
+ standard
+ world
+ register
+
+[newspaper-pair2] daily
+ weekly
+ evening
+ republic
+ american
+ democrat
+ republican
+ leader
+ ledger
+ journal
+ bulletin
+ advertiser
+ dispatch
+ intelligencier
+ inquirer
+ post
+ times
+ review
+ star
+ justice
+ record
+ press
+ tribune
+ gazette
+ chronicle
+ herald
+ bugle
+ arrow
+ statesman
+ monitor
+ globe
+ planet
+ register
+
+pragma export-rule [newspaper-pair2]
+
+[cardinal] [act-cardinal]
+ [act-cardinal]
+ [act-cardinal] by [act-cardinal]
+ [2+cardinal]
+
+[act-cardinal] north
+ west
+ east
+ south
+ northeast
+ northwest
+ southeast
+ southwest
+
+[2+cardinal] [act-cardinal] - [act-cardinal]
+
+pragma export-rule [cardinal]
+
+[real-newspaper] new york times
+ la times
+ chicago tribune
+ usa today
+ st. louis post-dispatch
+ washington post
+ houston chronicle
+ kansas city star
+ denver post
+ seattle times
+
+[tech-publication] wired news
+ infoworld
+ computerworld
+ pc week
+ windows magazine
+ salon.com
+ abcnews.com
+ the register
+
+[biz-publication] forbes
+ industry standard
+ business week
+ wall street journal
+ f@stcompany
+ motley fool
+ the economist
+ fortune
+
+pragma export-rule [television-station]
+pragma export-rule [radio-station]
+pragma export-rule [newspaper]