-
Notifications
You must be signed in to change notification settings - Fork 2
/
GRAMMAR.TXT
221 lines (155 loc) · 6.76 KB
/
GRAMMAR.TXT
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
INCLUDE nlsyms.txt
_DATA segment
org 0
;;;
;;; Mark as a VOCAB file
;;;
db 86h,0
;;;
;;; Here comes the Parser NL Grammar
;;;
dw NLS, NLROOT,NLVP, NULL,NULL, NULL,NULL, NULL,NULL,NULL
;;;
;;;******************* VP *******************
;;;
;shoot
dw NLVP, NLROOT,NLCVERB, NULL ,NULL, NULL,NULL, NULL,NULL,NULL
;put board down = put<down/board
dw NLVP, NLROOT,NLCVERB, NLDOBJ,NLNP, NLMOD,NLPREP, NULL,NULL,NULL
;color the paper red
dw NLVP, NLROOT,NLCVERB, NLDOBJ,NLNP, NLMOD,NLCADJ, NULL,NULL,NULL
;hit board lightly
dw NLVP, NLROOT,NLCVERB, NLDOBJ,NLNP, NLMOD,NLADV, NULL,NULL,NULL
;talk to dwarf
;put down board = put<down/board
dw NLVP, NLROOT,NLCVERB, NLDOBJ,NLNP, NULL,NULL, NULL,NULL,NULL
;give gold to dwarf = 'give<to/gold/dwarf'
;put rock under bridge = 'put<under/rock/bridge'
dw NLVP, NLROOT,NLCVERB, NLDOBJ,NLNP, NLMOD,NLPREP, NLIOBJ,NLNP,NULL
;give dwarf the gold: IO=dwarf DO=gold (same as above) 'give/gold/dwarf'
dw NLVP, NLROOT,NLCVERB, NLIOBJ,NLNP, NLDOBJ,NLNP, NULL,NULL,NULL
;talk to dwarf about gold: talk<to/dwarf/gold<about
dw NLVP, NLROOT,NLCVERB, NLDOBJ,NLNP, NLIOBJ,NLAP, NULL,NULL,NULL
;talk about gold = 'talk//gold<about'
dw NLVP, NLROOT,NLCVERB, NLIOBJ,NLAP, NULL,NULL, NULL,NULL,NULL
;burger = '/burger'
;john is SORRY
dw NLVP, NLDOBJ,NLNP, NULL ,NULL, NULL,NULL, NULL,NULL,NULL
;burger with fries = '/burger/fries
dw NLVP, NLDOBJ,NLNP, NLIOBJ,NLAP, NULL,NULL, NULL,NULL,NULL
;*** this doesn't work, phrase MUST have a root or SCI bombs ***
; WITH FRIES or IN THE TRUNK
;dw NLVP, NLIOBJ,NLAP, NULL,NULL, NULL,NULL, NULL,NULL,NULL
;TELL THE MAN TO give the gold to the dwarf = 'give<TELL<MAN<TO/gold/dwarf'
dw NLVP, NLMOD ,NLCVERB, NLMOD,NLNP, NLMOD ,NLPREP, NLROOT,NLVP,NULL
;the tall clerk is the killer: 'is<(clerk<tall)/killer'
;john is sorry = is<john/sorry
dw NLVP, NLMOD,NLNP, NLROOT,NLVP, NULL,NULL, NULL,NULL,NULL
;;;
;;;******************* NP *******************
;;;
;the book
dw NLNP, NLIGNR,NLART, NLROOT,NLCNOUN, NULL,NULL, NULL,NULL,NULL
;the red book
dw NLNP, NLIGNR,NLART, NLMOD ,NLCADJ, NLROOT,NLCNOUN, NULL,NULL,NULL
;red book
dw NLNP, NLMOD ,NLCADJ, NLROOT,NLCNOUN, NULL,NULL, NULL,NULL,NULL
;red
dw NLNP, NLROOT,NLCADJ, NULL,NULL, NULL,NULL, NULL,NULL,NULL
;book
dw NLNP, NLROOT,NLCNOUN, NULL,NULL, NULL,NULL, NULL,NULL,NULL
;;;
;;;******************* AP *******************
;;;
;put rock UNDER BRIDGE - OBSOLETE CLAUSE
;dw NLAP, NLMOD ,NLPREP, NLROOT,NLNP, NULL,NULL, NULL,NULL,NULL
;give book TO DWARF
;chop tree WITH AX
dw NLAP, NLMOD ,NLASS, NLROOT,NLNP, NULL,NULL, NULL,NULL,NULL
;chop tree USING AX
dw NLAP, NLMOD ,NLAUXV, NLROOT,NLNP, NULL,NULL, NULL,NULL,NULL
;ask maid TO DO THE BED
dw NLAP, NLMOD ,NLASS, NLROOT,NLAUXV, NLMOD ,NLNP, NULL,NULL,NULL
;ask child TO BE QUIET
dw NLAP, NLMOD ,NLASS, NLROOT,NLAUXV, NLMOD ,NLADJ, NULL,NULL,NULL
;"sleep" in "do fairies sleep" spec: 'do/fairies/sleep'
dw NLAP, NLROOT,NLCVERB, NULL ,NULL, NULL,NULL, NULL,NULL,NULL
;say the body IS IN THE TRUNK
dw NLAP, NLMOD,NLCVERB, NLROOT,NLAP, NULL,NULL, NULL,NULL,NULL
;ask ABOUT SYMBOL OF MITHRA = ask//symbol<about<symbol<of
;("of" is a positional PREPosition)
dw NLAP, NLMOD ,NLASS, NLROOT,NLNP, NLMOD,NLPREP, NLMOD,NLNP,NULL
;???
;dw NLAP, NLROOT,NLNP, NULL ,NULL, NULL,NULL, NULL,NULL,NULL
;dw NLAP, NLROOT,NLVP, NULL ,NULL, NULL,NULL, NULL,NULL,NULL
;;;
;;;******************* CNOUN *******************
;;;
;bow and arrows
;door of the crypt
dw NLCNOUN, NLROOT,NLNOUN, NLIGNR,NLCONJ, NLROOT,NLNP, NULL,NULL,NULL
;prison guard jacket
dw NLCNOUN, NLMOD ,NLNOUN, NLROOT,NLCNOUN, NULL,NULL, NULL,NULL,NULL
;jacket
dw NLCNOUN, NLROOT,NLNOUN, NULL,NULL, NULL,NULL, NULL,NULL,NULL
;;;
;;;******************* CVERB *******************
;;;
;go swim
dw NLCVERB, NLMOD ,NLAUXV, NLROOT,NLCVERB, NULL,NULL, NULL,NULL,NULL
;did you see?
;do zombies sleep?
dw NLCVERB, NLMOD ,NLAUXV, NLMOD ,NLNOUN, NLROOT,NLCVERB, NULL,NULL,NULL
;john IS sorry
dw NLCVERB, NLROOT,NLAUXV, NULL,NULL, NULL,NULL, NULL,NULL,NULL
;go to swim
dw NLCVERB, NLMOD,NLAUXV, NLMOD,NLPREP, NLROOT,NLVERB, NULL,NULL,NULL
;go down to swim
dw NLCVERB, NLMOD,NLAUXV, NLMOD,NLPREP, NLMOD,NLPREP, NLROOT,NLVERB,NULL
;put
dw NLCVERB, NLROOT,NLVERB, NULL,NULL, NULL,NULL, NULL,NULL,NULL
;put down
dw NLCVERB, NLROOT,NLVERB, NLMOD ,NLPREP, NULL,NULL, NULL,NULL,NULL
;lie down on
dw NLCVERB, NLROOT,NLVERB, NLMOD ,NLPREP, NLMOD ,NLPREP, NULL,NULL,NULL
;COLOR BRIGHT RED the paper
dw NLCVERB, NLROOT,NLVERB, NLMOD ,NLCADJ, NULL,NULL, NULL,NULL,NULL
;swim quickly
dw NLCVERB, NLROOT,NLVERB, NLMOD ,NLADV, NULL,NULL, NULL,NULL,NULL
;HOW MUCH IS dinner : 'is<much<how/dinner'
dw NLCVERB, NLMOD ,NLADV, NLMOD ,NLADV, NLROOT,NLCVERB, NULL,NULL,NULL
;soundly sleep
;what did you see
dw NLCVERB, NLMOD ,NLADV, NLROOT,NLCVERB, NULL,NULL, NULL,NULL,NULL
;how
dw NLCVERB, NLROOT,NLADV, NULL,NULL, NULL,NULL, NULL,NULL,NULL
;"what time is" in "what time is it" spec: 'is<what<time'
dw NLCVERB, NLMOD ,NLADV, NLMOD ,NLNOUN, NLROOT,NLCVERB, NULL,NULL,NULL
;look and feel
dw NLCVERB, NLROOT,NLVERB, NLIGNR,NLCONJ, NLROOT,NLVERB, NULL,NULL,NULL
;look, listen and feel
dw NLCVERB, NLROOT,NLVERB, NLROOT,NLVERB, NLIGNR,NLCONJ, NLROOT,NLVERB,NULL
;;;
;;;******************* CADJ *******************
;;;
;green
dw NLCADJ, NLROOT,NLADJ, NULL,NULL, NULL,NULL, NULL,NULL,NULL
;dark green
dw NLCADJ, NLMOD ,NLADJ, NLROOT,NLCADJ, NULL,NULL, NULL,NULL,NULL
;;;
;;;******************* VOCAB POINTERS *******************
;;;
dw NLADV, NLVOCAB,ADV, NULL,NULL, NULL,NULL, NULL,NULL,NULL
dw NLVERB, NLVOCAB,VERB, NULL,NULL, NULL,NULL, NULL,NULL,NULL
dw NLVERB, NLVOCAB,AUXV, NULL,NULL, NULL,NULL, NULL,NULL,NULL
dw NLAUXV, NLVOCAB,AUXV, NULL,NULL, NULL,NULL, NULL,NULL,NULL
dw NLNOUN, NLVOCAB,NOUN, NULL,NULL, NULL,NULL, NULL,NULL,NULL
dw NLPRON, NLVOCAB,PRON, NULL,NULL, NULL,NULL, NULL,NULL,NULL
dw NLADJ, NLVOCAB,ADJ, NULL,NULL, NULL,NULL, NULL,NULL,NULL
dw NLART, NLVOCAB,ART, NULL,NULL, NULL,NULL, NULL,NULL,NULL
dw NLPREP, NLVOCAB,POS, NULL,NULL, NULL,NULL, NULL,NULL,NULL
dw NLASS, NLVOCAB,ASS, NULL,NULL, NULL,NULL, NULL,NULL,NULL
dw NLCONJ, NLVOCAB,CONJ, NULL,NULL, NULL,NULL, NULL,NULL,NULL
dw NULL, NULL,NULL, NULL,NULL, NULL,NULL, NULL,NULL,NULL
_DATA ends
end