summaryrefslogtreecommitdiff
path: root/data/sample-grammars/city.gram
diff options
context:
space:
mode:
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]