02_test_lemmaposition.md 9.51 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15


Test of parser: "Lemma"
=======================


Match-test "1"
--------------

### Test-code:
    facitergula

### AST
    (Lemma
        (LemmaWort
di68kap's avatar
di68kap committed
16
            (LAT_WORT
di68kap's avatar
di68kap committed
17
18
19
                (:RegExp
                    "facitergula"
                )
20
21
22
23
            )
        )
    )

di68kap's avatar
di68kap committed
24
25
26
27
28
29
Fail-test "99"
--------------

### Test-code:
    duo vocabula

30
31
32
33
34
35
36
37
38

Test of parser: "LemmaVarianten"
================================


Match-test "1"
--------------

### Test-code:
di68kap's avatar
di68kap committed
39
40
41
42
    fascitergula
    facietergula
    facistergula
    farcutergula
43
44
45

### AST
    (LemmaVarianten
di68kap's avatar
di68kap committed
46
47
48
49
        (LAT_WORT
            (:RegExp
                "fascitergula"
            )
50
        )
di68kap's avatar
di68kap committed
51
        (:ZeroOrMore
52
            (:Series
di68kap's avatar
di68kap committed
53
                (ZW
54
55
56
57
58
59
60
                    (ZEILENSPRUNG
                        (:RegExp
                            ""
                            ""
                        )
                    )
                )
61
                (LAT_WORT
di68kap's avatar
di68kap committed
62
63
                    (:RegExp
                        "facietergula"
64
65
66
67
                    )
                )
            )
            (:Series
di68kap's avatar
di68kap committed
68
                (ZW
69
70
71
72
73
74
75
                    (ZEILENSPRUNG
                        (:RegExp
                            ""
                            ""
                        )
                    )
                )
76
                (LAT_WORT
di68kap's avatar
di68kap committed
77
78
79
                    (:RegExp
                        "facistergula"
                    )
80
                )
di68kap's avatar
di68kap committed
81
82
            )
            (:Series
di68kap's avatar
di68kap committed
83
                (ZW
84
85
86
87
88
89
90
                    (ZEILENSPRUNG
                        (:RegExp
                            ""
                            ""
                        )
                    )
                )
di68kap's avatar
di68kap committed
91
92
93
94
95
                (LAT_WORT
                    (:RegExp
                        "farcutergula"
                    )
                )
96
97
98
99
100
101
102
103
            )
        )
    )

Match-test "2"
--------------

### Test-code:
di68kap's avatar
di68kap committed
104
    fascitergula
105
106
107

### AST
    (LemmaVarianten
di68kap's avatar
di68kap committed
108
109
        (LAT_WORT
            (:RegExp
di68kap's avatar
di68kap committed
110
                "fascitergula"
111
112
113
114
115
116
117
118
            )
        )
    )

Match-test "3"
--------------

### Test-code:
di68kap's avatar
di68kap committed
119
    fascitergula facietergula {sim.}
120
121
122

### AST
    (LemmaVarianten
di68kap's avatar
di68kap committed
123
124
125
126
127
128
129
        (LAT_WORT
            (:RegExp
                "fascitergula"
            )
            (:Whitespace
                " "
            )
130
        )
di68kap's avatar
di68kap committed
131
132
133
134
135
136
137
138
        (LemmaVariante
            (LAT_WORT
                (:RegExp
                    "facietergula"
                )
                (:Whitespace
                    " "
                )
di68kap's avatar
di68kap committed
139
            )
di68kap's avatar
di68kap committed
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
            (Zusatz
                (:Series
                    (:Token
                        "{"
                    )
                    (FREITEXT
                        (DEU_WORT
                            (DEU_KLEIN
                                (:RegExp
                                    "sim"
                                )
                            )
                        )
                        (SATZZEICHEN
                            "."
di68kap's avatar
di68kap committed
155
156
                        )
                    )
di68kap's avatar
di68kap committed
157
158
159
                    (:Token
                        "}"
                    )
di68kap's avatar
di68kap committed
160
                )
di68kap's avatar
di68kap committed
161
            )
162
163
164
        )
    )

di68kap's avatar
di68kap committed
165
166
167
168
Match-test "4"
--------------

### Test-code:
di68kap's avatar
di68kap committed
169
    fascitergula, facietergula, fascistergula {sim.}
di68kap's avatar
di68kap committed
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

### AST
    (LemmaVarianten
        (LAT_WORT
            (:RegExp
                "fascitergula"
            )
        )
        (:ZeroOrMore
            (:Series
                (:Token
                    (:RegExp
                        ","
                    )
                    (:Whitespace
                        " "
                    )
                )
                (LAT_WORT
                    (:RegExp
                        "facietergula"
                    )
                )
            )
            (:Series
                (:Token
                    (:RegExp
                        ","
                    )
                    (:Whitespace
                        " "
                    )
                )
di68kap's avatar
di68kap committed
203
204
                (LemmaVariante
                    (LAT_WORT
di68kap's avatar
di68kap committed
205
                        (:RegExp
di68kap's avatar
di68kap committed
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
                            "fascistergula"
                        )
                        (:Whitespace
                            " "
                        )
                    )
                    (Zusatz
                        (:Series
                            (:Token
                                "{"
                            )
                            (FREITEXT
                                (DEU_WORT
                                    (DEU_KLEIN
                                        (:RegExp
                                            "sim"
                                        )
                                    )
                                )
                                (SATZZEICHEN
                                    "."
                                )
                            )
                            (:Token
                                "}"
                            )
di68kap's avatar
di68kap committed
232
233
                        )
                    )
di68kap's avatar
di68kap committed
234
235
236
237
238
                )
            )
        )
    )

di68kap's avatar
di68kap committed
239
240
241
242
243
244
Fail-test "99"
--------------

### Test-code:
    * fascitergula

245
246
247
248
249
250
251
252
253

Test of parser: "LemmaPosition"
===============================


Match-test "1"
--------------

### Test-code:
di68kap's avatar
di68kap committed
254
    LEMMA facitergula
255
    
di68kap's avatar
di68kap committed
256
257
258
    fascitergula
    facietergula
    facistergula
di68kap's avatar
di68kap committed
259
    fascitercula {sim.}
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
    
    GRAMMATIK
    nomen; -ae f.

### AST
    (LemmaPosition
        (:Token
            (:RegExp
                "LEMMA"
            )
            (:Whitespace
                " "
            )
        )
        (Lemma
            (LemmaWort
di68kap's avatar
di68kap committed
276
                (LAT_WORT
di68kap's avatar
di68kap committed
277
278
279
                    (:RegExp
                        "facitergula"
                    )
280
281
282
                )
            )
        )
di68kap's avatar
di68kap committed
283
284
285
286
287
288
289
        (ZWW
            (ZEILENSPRUNG
                (:RegExp
                    ""
                    ""
                )
            )
di68kap's avatar
di68kap committed
290
            (LZ
di68kap's avatar
di68kap committed
291
292
293
294
295
                (:RegExp
                    ""
                    ""
                )
            )
296
297
        )
        (LemmaVarianten
di68kap's avatar
di68kap committed
298
299
300
301
302
303
            (LAT_WORT
                (:RegExp
                    "fascitergula"
                )
            )
            (:ZeroOrMore
304
                (:Series
di68kap's avatar
di68kap committed
305
                    (ZW
306
307
308
309
310
311
312
                        (ZEILENSPRUNG
                            (:RegExp
                                ""
                                ""
                            )
                        )
                    )
313
                    (LAT_WORT
di68kap's avatar
di68kap committed
314
315
                        (:RegExp
                            "facietergula"
316
317
318
319
                        )
                    )
                )
                (:Series
di68kap's avatar
di68kap committed
320
                    (ZW
321
322
323
324
325
326
327
                        (ZEILENSPRUNG
                            (:RegExp
                                ""
                                ""
                            )
                        )
                    )
328
                    (LAT_WORT
di68kap's avatar
di68kap committed
329
330
331
                        (:RegExp
                            "facistergula"
                        )
332
                    )
di68kap's avatar
di68kap committed
333
334
                )
                (:Series
di68kap's avatar
di68kap committed
335
                    (ZW
336
337
338
339
340
341
342
                        (ZEILENSPRUNG
                            (:RegExp
                                ""
                                ""
                            )
                        )
                    )
di68kap's avatar
di68kap committed
343
344
345
346
347
348
349
350
                    (LemmaVariante
                        (LAT_WORT
                            (:RegExp
                                "fascitercula"
                            )
                            (:Whitespace
                                " "
                            )
di68kap's avatar
di68kap committed
351
                        )
di68kap's avatar
di68kap committed
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
                        (Zusatz
                            (:Series
                                (:Token
                                    "{"
                                )
                                (FREITEXT
                                    (DEU_WORT
                                        (DEU_KLEIN
                                            (:RegExp
                                                "sim"
                                            )
                                        )
                                    )
                                    (SATZZEICHEN
                                        "."
                                    )
                                )
                                (:Token
                                    "}"
di68kap's avatar
di68kap committed
371
372
                                )
                            )
di68kap's avatar
di68kap committed
373
374
375
                        )
                    )
                )
376
377
378
            )
        )
        (GrammatikPosition
di68kap's avatar
di68kap committed
379
380
381
382
383
384
385
            (ZWW
                (ZEILENSPRUNG
                    (:RegExp
                        ""
                        ""
                    )
                )
di68kap's avatar
di68kap committed
386
                (LZ
di68kap's avatar
di68kap committed
387
388
389
390
391
392
                    (:RegExp
                        ""
                        ""
                    )
                )
            )
393
394
395
396
            (:Token
                "GRAMMATIK"
            )
            (LZ
di68kap's avatar
di68kap committed
397
398
399
400
                (:RegExp
                    ""
                    ""
                )
401
            )
di68kap's avatar
di68kap committed
402
403
404
            (Grammatik
                (wortart
                    "nomen"
405
                )
di68kap's avatar
di68kap committed
406
407
408
409
                (ABS
                    "; "
                )
                (flexion
di68kap's avatar
di68kap committed
410
411
412
                    (FLEX
                        (:RegExp
                            "-ae"
di68kap's avatar
di68kap committed
413
                        )
di68kap's avatar
di68kap committed
414
415
                        (:Whitespace
                            " "
di68kap's avatar
di68kap committed
416
                        )
417
418
                    )
                )
di68kap's avatar
di68kap committed
419
420
421
422
                (genus
                    "f."
                )
            )
423
424
        )
    )