summaryrefslogtreecommitdiff
path: root/data/sample-grammars/city.gram
blob: f4a765c126a0fea0bdbe97533e0ee9f607ce1ca7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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] <^2> [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]