From 0faa5175b6f0de8835ed514615ac64135f406b29 Mon Sep 17 00:00:00 2001 From: "Benjamin J. Culkin" Date: Tue, 29 May 2018 15:35:02 -0300 Subject: Move files out of folder --- data/sample-grammars/city.gram | 54 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 data/sample-grammars/city.gram (limited to 'data/sample-grammars/city.gram') diff --git a/data/sample-grammars/city.gram b/data/sample-grammars/city.gram new file mode 100644 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] -- cgit v1.2.3