summaryrefslogtreecommitdiff
path: root/data/sample-grammars/city.gram
blob: b344d3bc4577b654bf27c8f5a22afb52a45490ec (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] [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]