summaryrefslogtreecommitdiff
path: root/web/funnelAC/answers/pr03.lis
blob: 437af4be44bca81329b96ebc3b5eb1dad78fe597 (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
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
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
FUNNELWEB LISTING FILE
======================

Dump of mapped file "<<Suppressed>>".

MEMORY DUMP OF MAPPED FILE
==========================

+-------------------------------------------------+------------------+
| 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F | 0123456789ABCDEF |
+-------------------------------------------------+------------------+
| 50 52 30 33 3A 20 54 65 73 74 20 74 68 65 20 70 | PR03: Test the p |
| 61 72 73 69 6E 67 20 61 6E 64 20 73 65 6D 61 6E | arsing and seman |
| 74 69 63 73 20 6F 66 20 73 65 63 74 69 6F 6E 73 | tics of sections |
| 2E 0A 0A 34 2E 20 54 65 73 74 20 66 69 72 73 74 | ...4. Test first |
| 20 73 65 63 74 69 6F 6E 20 6F 66 20 64 6F 63 75 |  section of docu |
| 6D 65 6E 74 20 69 73 20 6E 6F 74 20 3C 73 70 65 | ment is not <spe |
| 63 69 61 6C 3E 41 2E 0A 40 42 40 3C 54 68 69 73 | cial>A..@B@<This |
| 20 73 65 63 74 69 6F 6E 20 69 73 20 6F 75 74 20 |  section is out  |
| 6F 66 20 6F 72 64 65 72 20 28 61 6E 64 20 73 6F | of order (and so |
| 20 69 73 20 74 68 69 73 20 74 65 73 74 21 29 40 |  is this test!)@ |
| 3E 0A 0A 31 2E 20 54 65 73 74 20 73 65 63 74 69 | >..1. Test secti |
| 6F 6E 20 77 69 74 68 20 6E 6F 20 6E 61 6D 65 2E | on with no name. |
| 0A 40 41 20 54 68 69 73 20 73 65 63 74 69 6F 6E | .@A This section |
| 20 68 61 73 20 6E 6F 20 6E 61 6D 65 2E 0A 40 24 |  has no name..@$ |
| 40 3C 54 68 65 20 73 65 63 74 69 6F 6E 20 6E 61 | @<The section na |
| 6D 65 20 69 6E 68 65 72 69 74 73 20 74 68 65 20 | me inherits the  |
| 6E 61 6D 65 20 6F 66 20 74 68 69 73 20 6D 61 63 | name of this mac |
| 72 6F 40 3E 40 7B 57 61 6C 72 75 73 40 7D 0A 0A | ro@>@{Walrus@}.. |
| 32 2E 20 54 65 73 74 20 73 65 63 74 69 6F 6E 20 | 2. Test section  |
| 77 69 74 68 20 61 20 6E 61 6D 65 0A 40 41 40 3C | with a name.@A@< |
| 54 68 69 73 20 73 65 63 74 69 6F 6E 20 68 61 73 | This section has |
| 20 6E 6F 20 6E 61 6D 65 2E 40 3E 0A 0A 33 2E 20 |  no name.@>..3.  |
| 54 65 73 74 20 74 68 65 20 65 6E 74 69 72 65 20 | Test the entire  |
| 68 69 65 72 61 72 63 68 79 2E 0A 40 41 40 3C 4F | hierarchy..@A@<O |
| 6E 65 40 3E 0A 40 42 40 3C 54 77 6F 40 3E 0A 40 | ne@>.@B@<Two@>.@ |
| 43 40 3C 54 68 72 65 65 40 3E 0A 40 44 40 3C 46 | C@<Three@>.@D@<F |
| 6F 75 72 40 3E 0A 40 45 40 3C 46 69 76 65 40 3E | our@>.@E@<Five@> |
| 0A 0A 35 2E 20 54 65 73 74 20 64 65 74 65 63 74 | ..5. Test detect |
| 69 6F 6E 20 6F 66 20 64 69 73 63 6F 6E 74 69 6E | ion of discontin |
| 75 69 74 79 20 69 6E 20 6C 65 76 65 6C 73 2E 0A | uity in levels.. |
| 40 41 40 3C 4F 6E 65 40 3E 0A 40 43 40 3C 54 68 | @A@<One@>.@C@<Th |
| 72 65 65 40 3E 0A 40 45 40 3C 46 69 76 65 40 3E | ree@>.@E@<Five@> |
| 0A 0A 40 41 40 3C 4F 6E 65 40 3E 0A 40 42 40 3C | ..@A@<One@>.@B@< |
| 54 68 72 65 65 40 3E 0A 40 44 40 3C 46 69 76 65 | Three@>.@D@<Five |
| 40 3E 0A                                        | @>.              |
+-------------------------------------------------+------------------+


=========================== Start of LINE LIST DUMP ============================

Globl Local| Text
-----------+--------------------------------------------------------------------
00001 00001| PR03: Test the parsing and semantics of sections.<010>
00002 00002| <010>
00003 00003| 4. Test first section of document is not <special>A.<010>
00004 00004| @B@<This section is out of order (and so is this test!)@><010>
00005 00005| <010>
00006 00006| 1. Test section with no name.<010>
00007 00007| @A This section has no name.<010>
00008 00008| @$@<The section name inherits the name of this macro@>@{Walrus@}<010>
00009 00009| <010>
00010 00010| 2. Test section with a name<010>
00011 00011| @A@<This section has no name.@><010>
00012 00012| <010>
00013 00013| 3. Test the entire hierarchy.<010>
00014 00014| @A@<One@><010>
00015 00015| @B@<Two@><010>
00016 00016| @C@<Three@><010>
00017 00017| @D@<Four@><010>
00018 00018| @E@<Five@><010>
00019 00019| <010>
00020 00020| 5. Test detection of discontinuity in levels.<010>
00021 00021| @A@<One@><010>
00022 00022| @C@<Three@><010>
00023 00023| @E@<Five@><010>
00024 00024| <010>
00025 00025| @A@<One@><010>
00026 00026| @B@<Three@><010>
00027 00027| @D@<Five@><010>
00028 00028| <End-Of-File><010>
-----------+--------------------------------------------------------------------
Globl Local| Text

============================ End of LINE LIST DUMP =============================


=========================== Start of TOKEN LIST DUMP ===========================

Summary: There are 77 tokens in the token list.

Line[Column]: Token Description
-------------------------------

0001[01]: Text. Text scrap[Grey]="PR03: Test the parsing and semantics of sections.<010>
<010>
4. Test first section of document is not <special>A.<010>
"
0004[01]: @B New section (Level 2). 
0004[03]: @< Open name. 
0004[05]: Text. Text scrap[Grey]="This section is out of order (and so is this test!)"
0004[56]: @> Close name. 
0004[58]: Text. Text scrap[Grey]="<010>
<010>
1. Test section with no name.<010>
"
0007[01]: @A New section (Level 1). 
0007[03]: Text. Text scrap[Grey]=" This section has no name.<010>
"
0008[01]: @$ Macro defn. 
0008[03]: @< Open name. 
0008[05]: Text. Text scrap[Grey]="The section name inherits the name of this macro"
0008[53]: @> Close name. 
0008[55]: @{ Open defn. 
0008[57]: Text. Text scrap[Grey]="Walrus"
0008[63]: @} Close defn. 
0008[65]: Text. Text scrap[Grey]="<010>
<010>
2. Test section with a name<010>
"
0011[01]: @A New section (Level 1). 
0011[03]: @< Open name. 
0011[05]: Text. Text scrap[Grey]="This section has no name."
0011[30]: @> Close name. 
0011[32]: Text. Text scrap[Grey]="<010>
<010>
3. Test the entire hierarchy.<010>
"
0014[01]: @A New section (Level 1). 
0014[03]: @< Open name. 
0014[05]: Text. Text scrap[Grey]="One"
0014[08]: @> Close name. 
0014[10]: Text. Text scrap[White]="<010>
"
0015[01]: @B New section (Level 2). 
0015[03]: @< Open name. 
0015[05]: Text. Text scrap[Grey]="Two"
0015[08]: @> Close name. 
0015[10]: Text. Text scrap[White]="<010>
"
0016[01]: @C New section (Level 3). 
0016[03]: @< Open name. 
0016[05]: Text. Text scrap[Grey]="Three"
0016[10]: @> Close name. 
0016[12]: Text. Text scrap[White]="<010>
"
0017[01]: @D New section (Level 4). 
0017[03]: @< Open name. 
0017[05]: Text. Text scrap[Grey]="Four"
0017[09]: @> Close name. 
0017[11]: Text. Text scrap[White]="<010>
"
0018[01]: @E New section (Level 5). 
0018[03]: @< Open name. 
0018[05]: Text. Text scrap[Grey]="Five"
0018[09]: @> Close name. 
0018[11]: Text. Text scrap[Grey]="<010>
<010>
5. Test detection of discontinuity in levels.<010>
"
0021[01]: @A New section (Level 1). 
0021[03]: @< Open name. 
0021[05]: Text. Text scrap[Grey]="One"
0021[08]: @> Close name. 
0021[10]: Text. Text scrap[White]="<010>
"
0022[01]: @C New section (Level 3). 
0022[03]: @< Open name. 
0022[05]: Text. Text scrap[Grey]="Three"
0022[10]: @> Close name. 
0022[12]: Text. Text scrap[White]="<010>
"
0023[01]: @E New section (Level 5). 
0023[03]: @< Open name. 
0023[05]: Text. Text scrap[Grey]="Five"
0023[09]: @> Close name. 
0023[11]: Text. Text scrap[White]="<010>
<010>
"
0025[01]: @A New section (Level 1). 
0025[03]: @< Open name. 
0025[05]: Text. Text scrap[Grey]="One"
0025[08]: @> Close name. 
0025[10]: Text. Text scrap[White]="<010>
"
0026[01]: @B New section (Level 2). 
0026[03]: @< Open name. 
0026[05]: Text. Text scrap[Grey]="Three"
0026[10]: @> Close name. 
0026[12]: Text. Text scrap[White]="<010>
"
0027[01]: @D New section (Level 4). 
0027[03]: @< Open name. 
0027[05]: Text. Text scrap[Grey]="Five"
0027[09]: @> Close name. 
0027[11]: Text. Text scrap[White]="<010>
"
0028[01]: End Of File. 
============================ End of TOKEN LIST DUMP ============================


========================== Start of MACRO TABLE DUMP ===========================


------------------- Start of Macro Dump --------------------
Macro Name  : "The section name inherits the name of this macro"
Defined?    : Yes.
Parameters  : 0
Additive?   : No.
Zero Calls? : No.
Many Calls? : No.
Output File?: No.
Call list   :
Macro body  :

--Start of List of Body Parts--
This macro has 1 body part.
Body part 1: Seqnum=1, Pos(L,C)=(8,3), Expression follows:

---- Start of Expression ----

----- Start Text Element -----
Text scrap[Grey]="Walrus"
------ End Text Element ------

----- End of Expression -----

---End of List of Body Parts---

-------------------- End of Macro Dump ---------------------



=========================== End of MACRO TABLE DUMP ============================


========================= Start of DOCUMENT LIST DUMP ==========================


TEXT COMPONENT: Pos(L,C)=(1,1). 

-- Start of Text Scrap List --
Text scrap[Grey]="PR03: Test the parsing and semantics of sections.<010>
<010>
4. Test first section of document is not <special>A.<010>
"
--- End of Text Scrap List ---


TYPESETTER DIRECTIVE COMPONENT: 
   Section "1.2", Section name="This section is out of order (and so is this test!)".

TEXT COMPONENT: Pos(L,C)=(4,58). 

-- Start of Text Scrap List --
Text scrap[Grey]="<010>
<010>
1. Test section with no name.<010>
"
--- End of Text Scrap List ---


TYPESETTER DIRECTIVE COMPONENT: 
   Section "2", Section name="The section name inherits the name of this macro".

TEXT COMPONENT: Pos(L,C)=(7,3). 

-- Start of Text Scrap List --
Text scrap[Grey]=" This section has no name.<010>
"
--- End of Text Scrap List ---


MACRO DEFINITION COMPONENT: Pos(L,C)=(8,1). 
Part 1 of macro @<The section name inherits the name of this macro@>.

TEXT COMPONENT: Pos(L,C)=(8,65). 

-- Start of Text Scrap List --
Text scrap[Grey]="<010>
<010>
2. Test section with a name<010>
"
--- End of Text Scrap List ---


TYPESETTER DIRECTIVE COMPONENT: 
   Section "3", Section name="This section has no name.".

TEXT COMPONENT: Pos(L,C)=(11,32). 

-- Start of Text Scrap List --
Text scrap[Grey]="<010>
<010>
3. Test the entire hierarchy.<010>
"
--- End of Text Scrap List ---


TYPESETTER DIRECTIVE COMPONENT: 
   Section "4", Section name="One".

TEXT COMPONENT: Pos(L,C)=(14,10). 

-- Start of Text Scrap List --
Text scrap[White]="<010>
"
--- End of Text Scrap List ---


TYPESETTER DIRECTIVE COMPONENT: 
   Section "4.1", Section name="Two".

TEXT COMPONENT: Pos(L,C)=(15,10). 

-- Start of Text Scrap List --
Text scrap[White]="<010>
"
--- End of Text Scrap List ---


TYPESETTER DIRECTIVE COMPONENT: 
   Section "4.1.1", Section name="Three".

TEXT COMPONENT: Pos(L,C)=(16,12). 

-- Start of Text Scrap List --
Text scrap[White]="<010>
"
--- End of Text Scrap List ---


TYPESETTER DIRECTIVE COMPONENT: 
   Section "4.1.1.1", Section name="Four".

TEXT COMPONENT: Pos(L,C)=(17,11). 

-- Start of Text Scrap List --
Text scrap[White]="<010>
"
--- End of Text Scrap List ---


TYPESETTER DIRECTIVE COMPONENT: 
   Section "4.1.1.1.1", Section name="Five".

TEXT COMPONENT: Pos(L,C)=(18,11). 

-- Start of Text Scrap List --
Text scrap[Grey]="<010>
<010>
5. Test detection of discontinuity in levels.<010>
"
--- End of Text Scrap List ---


TYPESETTER DIRECTIVE COMPONENT: 
   Section "5", Section name="One".

TEXT COMPONENT: Pos(L,C)=(21,10). 

-- Start of Text Scrap List --
Text scrap[White]="<010>
"
--- End of Text Scrap List ---


TYPESETTER DIRECTIVE COMPONENT: 
   Section "1.1.2", Section name="Three".

TEXT COMPONENT: Pos(L,C)=(22,12). 

-- Start of Text Scrap List --
Text scrap[White]="<010>
"
--- End of Text Scrap List ---


TYPESETTER DIRECTIVE COMPONENT: 
   Section "1.1.1.1.2", Section name="Five".

TEXT COMPONENT: Pos(L,C)=(23,11). 

-- Start of Text Scrap List --
Text scrap[White]="<010>
<010>
"
--- End of Text Scrap List ---


TYPESETTER DIRECTIVE COMPONENT: 
   Section "2", Section name="One".

TEXT COMPONENT: Pos(L,C)=(25,10). 

-- Start of Text Scrap List --
Text scrap[White]="<010>
"
--- End of Text Scrap List ---


TYPESETTER DIRECTIVE COMPONENT: 
   Section "2.1", Section name="Three".

TEXT COMPONENT: Pos(L,C)=(26,12). 

-- Start of Text Scrap List --
Text scrap[White]="<010>
"
--- End of Text Scrap List ---


TYPESETTER DIRECTIVE COMPONENT: 
   Section "1.1.1.2", Section name="Five".

TEXT COMPONENT: Pos(L,C)=(27,11). 

-- Start of Text Scrap List --
Text scrap[White]="<010>
"
--- End of Text Scrap List ---


========================== End of DOCUMENT LIST DUMP ===========================


Global Local| Input File
------------+-------------------------------------------------------------------
     1     1| PR03: Test the parsing and semantics of sections.
     2     2| 
     3     3| 4. Test first section of document is not <special>A.
     4     4| @B@<This section is out of order (and so is this test!)@>
       Error|.^The first section in a document must be an @A section.
     5     5| 
     6     6| 1. Test section with no name.
     7     7| @A This section has no name.
     8     8| @$@<The section name inherits the name of this macro@>@{Walrus@}
     9     9| 
    10    10| 2. Test section with a name
    11    11| @A@<This section has no name.@>
    12    12| 
    13    13| 3. Test the entire hierarchy.
    14    14| @A@<One@>
    15    15| @B@<Two@>
    16    16| @C@<Three@>
    17    17| @D@<Four@>
    18    18| @E@<Five@>
    19    19| 
    20    20| 5. Test detection of discontinuity in levels.
    21    21| @A@<One@>
            |.^The next section (at line 22) is too deep.
    22    22| @C@<Three@>
       Error|.^This section is more than one level deeper than the last
            |.^section (at line 21). Example: @B followed by @D is not allowed.
            |.^The next section (at line 23) is too deep.
    23    23| @E@<Five@>
       Error|.^This section is more than one level deeper than the last
            |.^section (at line 22). Example: @B followed by @D is not allowed.
    24    24| 
    25    25| @A@<One@>
    26    26| @B@<Three@>
            |.^The next section (at line 27) is too deep.
    27    27| @D@<Five@>
       Error|.^This section is more than one level deeper than the last
            |.^section (at line 26). Example: @B followed by @D is not allowed.
            | <End-Of-File>
------------+-------------------------------------------------------------------

There were 4 Errors.