summaryrefslogtreecommitdiff
path: root/data/sample-grammars/city.gram
diff options
context:
space:
mode:
authorBenjamin J. Culkin <bjculkin@mix.wvu.edu>2018-05-29 15:44:57 -0300
committerBenjamin J. Culkin <bjculkin@mix.wvu.edu>2018-05-29 15:44:57 -0300
commit03b9ed1601acfe323dc9b5360b8f2c2c972c8e04 (patch)
tree72e33eec337b386e6d536f128da03a9d4f2f12fe /data/sample-grammars/city.gram
parentd22367abbb07f020dfb387032e9b72a040a170f5 (diff)
parent0faa5175b6f0de8835ed514615ac64135f406b29 (diff)
Merge branch 'working'
Diffstat (limited to 'data/sample-grammars/city.gram')
-rwxr-xr-xdata/sample-grammars/city.gram54
1 files changed, 54 insertions, 0 deletions
diff --git a/data/sample-grammars/city.gram b/data/sample-grammars/city.gram
new file mode 100755
index 0000000..b344d3b
--- /dev/null
+++ b/data/sample-grammars/city.gram
@@ -0,0 +1,54 @@
+[city] [real-city]
+ [town-name]
+ [other-city]
+
+pragma initial-rule [city]
+
+# @TODO 11/01/17 Ben Culkin :SuffixIssues
+# Figure out why suffixes aren't properly getting attached to
+# things.
+#
+
+[other-city] [act-other-city]
+ [act-other-city] [town-suffix]
+
+pragma despace-rule [other-city]
+pragma prefix-with [other-city] [town-prefix]
+
+[act-other-city] [town-name]
+ [sw-color-phrase]
+ [sw-color-phrase] [geographic-thing]
+ [sw-color-phrase] [tree]
+ [tree]
+ [geographic-thing]
+ [gen-name]
+ [gen-name] - [gen-name]
+ [gen-name] [geographic-thing]
+
+pragma despace-rule [act-other-city]
+
+[gen-name] [last-name]
+ [first-name]
+ [random-name]
+
+[town-prefix] [cardinal]
+ new
+ new
+ old
+ little
+ fort
+ lower
+ upper
+ san
+ la
+ van
+
+[town-suffix] burg
+ ton
+ ville
+ opolis
+ field
+ boro
+ dale
+
+pragma despace-rule [town-suffix]