summaryrefslogtreecommitdiff
path: root/RGens/data/sample-grammars/city.gram
blob: 5294cd05a18eba0a637c80c0f51ef6302c087db3 (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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
[city] [real-city]
	[real-city]
	[town-name]
	[town-name]
	[town-prefix] [town-name]
	[town-prefix] [town-name+suffix]
	[natural-color] [geographic-thing]
	[natural-color+suffix]
	[natural-color] [tree]
	[town-prefix+suffix]
	[town-prefix] [geographic-thing]
	[tree+suffix]
	[random-name]
	[town-prefix] [random-name]
	[random-name+suffix]
	[last-name]
	[last-name]
	[town-prefix] [last-name]
	[2+last-name]
	St. [last-name]
	[last-name+suffix]
	[first-name] [geographic-thing]
	[first-name+suffix]

pragma initial-rule [city]

[town-name+suffix] [town-name] [town-suffix]

[natural-color+suffix] [natural-color] [town-suffix]

[town-prefix+suffix] [town-prefix] [town-suffix]

[tree+suffix] [tree] [town-suffix]

[random-name+suffix] [random-name] [town-suffix]

[2+last-name] [last-name] - [last-name]

[last-name+suffix] [last-name] [town-suffix]

[first-name+suffix] [first-name] [town-suffix]

[geographic-thing] mountain
	hill
	lake
	plains
	river
	valley
	hollow
	beach
	bay
	harbor
	grove
	bridge
	station
	glade
	forest
	gulch
	swamp
	bend
	springs
	creek
	falls
	ridge
	pass
	meadow

[town-prefix] north
	south
	east
	west
	north
	south
	east
	west
	new
	new
	old
	little
	fort
	lower
	upper
	san
	la
	van

[town-suffix] burg
	ton
	ville
	opolis
	field
	boro
	dale

pragma export-rule [geographic-thing]