Debian Codegraph @

answers/pr08.lis

raw
1 FUNNELWEB LISTING FILE
2 ======================
3
4 Dump of mapped file "<<Suppressed>>".
5
6 MEMORY DUMP OF MAPPED FILE
7 ==========================
8
9 +-------------------------------------------------+------------------+
10 | 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F | 0123456789ABCDEF |
11 +-------------------------------------------------+------------------+
12 | 50 52 30 38 3A 20 54 65 73 74 20 73 65 6D 61 6E | PR08: Test seman |
13 | 74 69 63 20 63 68 65 63 6B 69 6E 67 20 6F 66 20 | tic checking of |
14 | 6D 61 63 72 6F 20 64 65 66 69 6E 69 74 69 6F 6E | macro definition |
15 | 73 2E 0A 0A 54 72 69 70 20 70 61 72 73 65 72 20 | s...Trip parser |
16 | 74 6F 20 62 65 20 73 75 72 65 20 74 68 61 74 20 | to be sure that |
17 | 77 65 20 77 6F 6E 27 74 20 67 65 74 20 61 6E 79 | we won't get any |
18 | 20 6F 75 74 70 75 74 20 66 69 6C 65 73 21 0A 40 | output files!.@ |
19 | 3E 0A 0A 31 2E 20 46 69 6C 65 20 6D 61 63 72 6F | >..1. File macro |
20 | 20 68 61 73 20 70 61 72 61 6D 65 74 65 72 73 2E | has parameters. |
21 | 20 45 72 72 6F 72 2E 0A 40 4F 40 3C 53 6C 6F 74 | Error..@O@<Slot |
22 | 68 20 31 40 3E 40 28 40 33 40 29 40 7B 57 61 6C | h 1@>@(@3@)@{Wal |
23 | 72 75 73 40 7D 0A 40 41 40 3C 45 72 72 6F 72 20 | rus@}.@A@<Error |
24 | 72 65 63 6F 76 65 72 79 20 70 6F 69 6E 74 40 3E | recovery point@> |
25 | 0A 0A 32 2E 20 46 69 6C 65 20 6D 61 63 72 6F 20 | ..2. File macro |
26 | 69 73 20 61 64 64 69 74 69 76 65 2E 20 45 72 72 | is additive. Err |
27 | 6F 72 2E 0A 40 4F 40 3C 53 6C 6F 74 68 20 32 40 | or..@O@<Sloth 2@ |
28 | 3E 2B 3D 40 7B 57 61 6C 72 75 73 40 7D 0A 40 41 | >+=@{Walrus@}.@A |
29 | 40 3C 45 72 72 6F 72 20 72 65 63 6F 76 65 72 79 | @<Error recovery |
30 | 20 70 6F 69 6E 74 40 3E 0A 0A 33 2E 20 46 69 6C | point@>..3. Fil |
31 | 65 20 6D 61 63 72 6F 20 68 61 73 20 74 6F 6F 20 | e macro has too |
32 | 6C 6F 6E 67 20 61 20 6E 61 6D 65 2E 20 54 68 65 | long a name. The |
33 | 20 74 65 73 74 20 6E 61 6D 65 20 68 61 73 20 31 | test name has 1 |
34 | 32 30 30 20 63 68 61 72 61 63 74 65 72 73 2E 20 | 200 characters. |
35 | 45 72 72 2E 0A 4E 6F 74 65 3A 20 54 68 69 73 20 | Err..Note: This |
36 | 74 65 73 74 20 63 61 6E 27 74 20 74 65 73 74 20 | test can't test |
37 | 74 68 65 20 65 72 72 6F 72 20 6D 65 73 73 61 67 | the error messag |
38 | 65 20 69 66 20 74 68 65 20 6D 61 78 69 6D 75 6D | e if the maximum |
39 | 20 6C 65 6E 67 74 68 20 6F 66 20 61 0A 6D 61 63 | length of a.mac |
40 | 72 6F 20 6E 61 6D 65 20 69 73 20 6C 65 73 73 20 | ro name is less |
41 | 74 68 61 6E 20 74 68 65 20 6D 61 78 69 6D 75 6D | than the maximum |
42 | 20 6C 65 6E 67 74 68 20 6F 66 20 61 20 66 69 6C | length of a fil |
43 | 65 20 6E 61 6D 65 20 61 73 20 74 68 65 20 6E 61 | e name as the na |
44 | 6D 65 0A 65 72 72 6F 72 20 69 73 20 63 61 75 67 | me.error is caug |
45 | 68 74 20 66 69 72 73 74 2E 0A 40 70 20 6D 61 78 | ht first..@p max |
46 | 69 6D 75 6D 5F 69 6E 70 75 74 5F 6C 69 6E 65 5F | imum_input_line_ |
47 | 6C 65 6E 67 74 68 20 3D 20 69 6E 66 69 6E 69 74 | length = infinit |
48 | 79 0A 40 4F 40 3C 31 32 33 34 35 36 37 38 39 30 | y.@O@<1234567890 |
49 | 31 32 33 34 35 36 37 38 39 30 31 32 33 34 35 36 | 1234567890123456 |
50 | 37 38 39 30 31 32 33 34 35 36 37 38 39 30 31 32 | 7890123456789012 |
51 | 33 34 35 36 37 38 39 30 31 32 33 34 35 36 37 38 | 3456789012345678 |
52 | 39 30 31 32 33 34 35 36 37 38 39 30 31 32 33 34 | 9012345678901234 |
53 | 35 36 37 38 39 30 31 32 33 34 35 36 37 38 39 30 | 5678901234567890 |
54 | 31 32 33 34 35 36 37 38 39 30 31 32 33 34 35 36 | 1234567890123456 |
55 | 37 38 39 30 31 32 33 34 35 36 37 38 39 30 31 32 | 7890123456789012 |
56 | 33 34 35 36 37 38 39 30 31 32 33 34 35 36 37 38 | 3456789012345678 |
57 | 39 30 31 32 33 34 35 36 37 38 39 30 31 32 33 34 | 9012345678901234 |
58 | 35 36 37 38 39 30 31 32 33 34 35 36 37 38 39 30 | 5678901234567890 |
59 | 31 32 33 34 35 36 37 38 39 30 31 32 33 34 35 36 | 1234567890123456 |
60 | 37 38 39 30 31 32 33 34 35 36 37 38 39 30 31 32 | 7890123456789012 |
61 | 33 34 35 36 37 38 39 30 31 32 33 34 35 36 37 38 | 3456789012345678 |
62 | 39 30 31 32 33 34 35 36 37 38 39 30 31 32 33 34 | 9012345678901234 |
63 | 35 36 37 38 39 30 31 32 33 34 35 36 37 38 39 30 | 5678901234567890 |
64 | 31 32 33 34 35 36 37 38 39 30 31 32 33 34 35 36 | 1234567890123456 |
65 | 37 38 39 30 31 32 33 34 35 36 37 38 39 30 31 32 | 7890123456789012 |
66 | 33 34 35 36 37 38 39 30 31 32 33 34 35 36 37 38 | 3456789012345678 |
67 | 39 30 31 32 33 34 35 36 37 38 39 30 31 32 33 34 | 9012345678901234 |
68 | 35 36 37 38 39 30 31 32 33 34 35 36 37 38 39 30 | 5678901234567890 |
69 | 31 32 33 34 35 36 37 38 39 30 31 32 33 34 35 36 | 1234567890123456 |
70 | 37 38 39 30 31 32 33 34 35 36 37 38 39 30 31 32 | 7890123456789012 |
71 | 33 34 35 36 37 38 39 30 31 32 33 34 35 36 37 38 | 3456789012345678 |
72 | 39 30 31 32 33 34 35 36 37 38 39 30 31 32 33 34 | 9012345678901234 |
73 | 35 36 37 38 39 30 31 32 33 34 35 36 37 38 39 30 | 5678901234567890 |
74 | 31 32 33 34 35 36 37 38 39 30 31 32 33 34 35 36 | 1234567890123456 |
75 | 37 38 39 30 31 32 33 34 35 36 37 38 39 30 31 32 | 7890123456789012 |
76 | 33 34 35 36 37 38 39 30 31 32 33 34 35 36 37 38 | 3456789012345678 |
77 | 39 30 31 32 33 34 35 36 37 38 39 30 31 32 33 34 | 9012345678901234 |
78 | 35 36 37 38 39 30 31 32 33 34 35 36 37 38 39 30 | 5678901234567890 |
79 | 31 32 33 34 35 36 37 38 39 30 31 32 33 34 35 36 | 1234567890123456 |
80 | 37 38 39 30 31 32 33 34 35 36 37 38 39 30 31 32 | 7890123456789012 |
81 | 33 34 35 36 37 38 39 30 31 32 33 34 35 36 37 38 | 3456789012345678 |
82 | 39 30 31 32 33 34 35 36 37 38 39 30 31 32 33 34 | 9012345678901234 |
83 | 35 36 37 38 39 30 31 32 33 34 35 36 37 38 39 30 | 5678901234567890 |
84 | 31 32 33 34 35 36 37 38 39 30 31 32 33 34 35 36 | 1234567890123456 |
85 | 37 38 39 30 31 32 33 34 35 36 37 38 39 30 31 32 | 7890123456789012 |
86 | 33 34 35 36 37 38 39 30 31 32 33 34 35 36 37 38 | 3456789012345678 |
87 | 39 30 31 32 33 34 35 36 37 38 39 30 31 32 33 34 | 9012345678901234 |
88 | 35 36 37 38 39 30 31 32 33 34 35 36 37 38 39 30 | 5678901234567890 |
89 | 31 32 33 34 35 36 37 38 39 30 31 32 33 34 35 36 | 1234567890123456 |
90 | 37 38 39 30 31 32 33 34 35 36 37 38 39 30 31 32 | 7890123456789012 |
91 | 33 34 35 36 37 38 39 30 31 32 33 34 35 36 37 38 | 3456789012345678 |
92 | 39 30 31 32 33 34 35 36 37 38 39 30 31 32 33 34 | 9012345678901234 |
93 | 35 36 37 38 39 30 31 32 33 34 35 36 37 38 39 30 | 5678901234567890 |
94 | 31 32 33 34 35 36 37 38 39 30 31 32 33 34 35 36 | 1234567890123456 |
95 | 37 38 39 30 31 32 33 34 35 36 37 38 39 30 31 32 | 7890123456789012 |
96 | 33 34 35 36 37 38 39 30 31 32 33 34 35 36 37 38 | 3456789012345678 |
97 | 39 30 31 32 33 34 35 36 37 38 39 30 31 32 33 34 | 9012345678901234 |
98 | 35 36 37 38 39 30 31 32 33 34 35 36 37 38 39 30 | 5678901234567890 |
99 | 31 32 33 34 35 36 37 38 39 30 31 32 33 34 35 36 | 1234567890123456 |
100 | 37 38 39 30 31 32 33 34 35 36 37 38 39 30 31 32 | 7890123456789012 |
101 | 33 34 35 36 37 38 39 30 31 32 33 34 35 36 37 38 | 3456789012345678 |
102 | 39 30 31 32 33 34 35 36 37 38 39 30 31 32 33 34 | 9012345678901234 |
103 | 35 36 37 38 39 30 31 32 33 34 35 36 37 38 39 30 | 5678901234567890 |
104 | 31 32 33 34 35 36 37 38 39 30 31 32 33 34 35 36 | 1234567890123456 |
105 | 37 38 39 30 31 32 33 34 35 36 37 38 39 30 31 32 | 7890123456789012 |
106 | 33 34 35 36 37 38 39 30 31 32 33 34 35 36 37 38 | 3456789012345678 |
107 | 39 30 31 32 33 34 35 36 37 38 39 30 31 32 33 34 | 9012345678901234 |
108 | 35 36 37 38 39 30 31 32 33 34 35 36 37 38 39 30 | 5678901234567890 |
109 | 31 32 33 34 35 36 37 38 39 30 31 32 33 34 35 36 | 1234567890123456 |
110 | 37 38 39 30 31 32 33 34 35 36 37 38 39 30 31 32 | 7890123456789012 |
111 | 33 34 35 36 37 38 39 30 31 32 33 34 35 36 37 38 | 3456789012345678 |
112 | 39 30 31 32 33 34 35 36 37 38 39 30 31 32 33 34 | 9012345678901234 |
113 | 35 36 37 38 39 30 31 32 33 34 35 36 37 38 39 30 | 5678901234567890 |
114 | 31 32 33 34 35 36 37 38 39 30 31 32 33 34 35 36 | 1234567890123456 |
115 | 37 38 39 30 31 32 33 34 35 36 37 38 39 30 31 32 | 7890123456789012 |
116 | 33 34 35 36 37 38 39 30 31 32 33 34 35 36 37 38 | 3456789012345678 |
117 | 39 30 31 32 33 34 35 36 37 38 39 30 31 32 33 34 | 9012345678901234 |
118 | 35 36 37 38 39 30 31 32 33 34 35 36 37 38 39 30 | 5678901234567890 |
119 | 31 32 33 34 35 36 37 38 39 30 31 32 33 34 35 36 | 1234567890123456 |
120 | 37 38 39 30 31 32 33 34 35 36 37 38 39 30 31 32 | 7890123456789012 |
121 | 33 34 35 36 37 38 39 30 31 32 33 34 35 36 37 38 | 3456789012345678 |
122 | 39 30 31 32 33 34 35 36 37 38 39 30 31 32 33 34 | 9012345678901234 |
123 | 35 36 37 38 39 30 40 3E 40 7B 40 7D 0A 40 41 40 | 567890@>@{@}.@A@ |
124 | 3C 45 72 72 6F 72 20 72 65 63 6F 76 65 72 79 20 | <Error recovery |
125 | 70 6F 69 6E 74 40 3E 0A 0A 34 2E 20 46 69 6C 65 | point@>..4. File |
126 | 20 6D 61 63 72 6F 20 68 61 73 20 7A 65 72 6F 20 | macro has zero |
127 | 6F 72 20 6D 61 6E 79 20 61 74 74 72 69 62 75 74 | or many attribut |
128 | 65 73 2E 20 45 72 72 6F 72 2E 0A 40 4F 40 3C 53 | es. Error..@O@<S |
129 | 6C 6F 74 68 20 33 40 3E 40 5A 40 7B 57 61 6C 72 | loth 3@>@Z@{Walr |
130 | 75 73 40 7D 0A 40 41 40 3C 45 72 72 6F 72 20 72 | us@}.@A@<Error r |
131 | 65 63 6F 76 65 72 79 20 70 6F 69 6E 74 40 3E 0A | ecovery point@>. |
132 | 0A 40 4F 40 3C 53 6C 6F 74 68 20 34 40 3E 40 4D | .@O@<Sloth 4@>@M |
133 | 40 7B 57 61 6C 72 75 73 40 7D 0A 40 41 40 3C 45 | @{Walrus@}.@A@<E |
134 | 72 72 6F 72 20 72 65 63 6F 76 65 72 79 20 70 6F | rror recovery po |
135 | 69 6E 74 40 3E 0A 0A 40 4F 40 3C 53 6C 6F 74 68 | int@>..@O@<Sloth |
136 | 20 35 40 3E 40 5A 40 4D 40 7B 57 61 6C 72 75 73 | 5@>@Z@M@{Walrus |
137 | 40 7D 0A 40 41 40 3C 45 72 72 6F 72 20 72 65 63 | @}.@A@<Error rec |
138 | 6F 76 65 72 79 20 70 6F 69 6E 74 40 3E 0A 0A 35 | overy point@>..5 |
139 | 2E 20 50 72 65 76 69 6F 75 73 20 64 65 66 69 6E | . Previous defin |
140 | 69 74 69 6F 6E 20 69 73 20 66 75 6C 6C 2C 20 63 | ition is full, c |
141 | 75 72 72 65 6E 74 20 69 73 20 61 64 64 69 74 69 | urrent is additi |
142 | 76 65 2E 0A 40 24 40 3C 57 61 6C 72 75 73 20 31 | ve..@$@<Walrus 1 |
143 | 40 3E 3D 3D 40 7B 53 6C 6F 74 68 40 7D 0A 40 24 | @>==@{Sloth@}.@$ |
144 | 40 3C 57 61 6C 72 75 73 20 31 40 3E 2B 3D 40 7B | @<Walrus 1@>+=@{ |
145 | 41 61 72 64 76 61 72 6B 40 7D 0A 40 41 40 3C 45 | Aardvark@}.@A@<E |
146 | 72 72 6F 72 20 72 65 63 6F 76 65 72 79 20 70 6F | rror recovery po |
147 | 69 6E 74 40 3E 0A 0A 36 2E 20 50 72 65 76 69 6F | int@>..6. Previo |
148 | 75 73 20 64 65 66 69 6E 69 74 69 6F 6E 20 69 73 | us definition is |
149 | 20 61 64 64 69 74 69 76 65 2C 20 63 75 72 72 65 | additive, curre |
150 | 6E 74 20 69 73 20 66 75 6C 6C 2E 0A 40 24 40 3C | nt is full..@$@< |
151 | 57 61 6C 72 75 73 20 32 40 3E 2B 3D 40 7B 53 6C | Walrus 2@>+=@{Sl |
152 | 6F 74 68 40 7D 0A 40 24 40 3C 57 61 6C 72 75 73 | oth@}.@$@<Walrus |
153 | 20 32 40 3E 3D 3D 40 7B 41 61 72 64 76 61 72 6B | 2@>==@{Aardvark |
154 | 40 7D 0A 40 41 40 3C 45 72 72 6F 72 20 72 65 63 | @}.@A@<Error rec |
155 | 6F 76 65 72 79 20 70 6F 69 6E 74 40 3E 0A 0A 37 | overy point@>..7 |
156 | 2E 20 4E 6F 6E 2D 66 69 72 73 74 20 62 6F 64 79 | . Non-first body |
157 | 20 70 61 72 74 20 6F 66 20 70 61 72 74 69 61 6C | part of partial |
158 | 20 68 61 73 20 70 61 72 61 6D 65 74 65 72 2E 0A | has parameter.. |
159 | 40 24 40 3C 55 6E 69 63 6F 72 6E 40 3E 40 28 40 | @$@<Unicorn@>@(@ |
160 | 33 40 29 2B 3D 40 7B 54 75 72 6B 65 79 40 7D 0A | 3@)+=@{Turkey@}. |
161 | 40 24 40 3C 55 6E 69 63 6F 72 6E 40 3E 40 28 40 | @$@<Unicorn@>@(@ |
162 | 33 40 29 2B 3D 40 7B 54 75 72 6B 65 79 40 7D 0A | 3@)+=@{Turkey@}. |
163 | 40 41 40 3C 45 72 72 6F 72 20 72 65 63 6F 76 65 | @A@<Error recove |
164 | 72 79 20 70 6F 69 6E 74 40 3E 0A 0A 38 2E 20 5A | ry point@>..8. Z |
165 | 65 72 6F 20 6F 72 20 6D 61 6E 79 20 61 74 74 72 | ero or many attr |
166 | 69 62 75 74 65 73 20 6F 6E 20 6E 6F 6E 2D 66 69 | ibutes on non-fi |
167 | 72 73 74 20 62 6F 64 79 20 70 61 72 74 20 6F 66 | rst body part of |
168 | 20 61 64 64 69 74 69 76 65 2E 0A 40 24 40 3C 45 | additive..@$@<E |
169 | 6C 65 70 68 61 6E 74 40 3E 40 5A 40 4D 2B 3D 40 | lephant@>@Z@M+=@ |
170 | 7B 54 75 72 6B 65 79 40 7D 0A 40 24 40 3C 45 6C | {Turkey@}.@$@<El |
171 | 65 70 68 61 6E 74 40 3E 40 5A 40 4D 2B 3D 40 7B | ephant@>@Z@M+=@{ |
172 | 54 75 72 6B 65 79 40 7D 0A 40 41 40 3C 45 72 72 | Turkey@}.@A@<Err |
173 | 6F 72 20 72 65 63 6F 76 65 72 79 20 70 6F 69 6E | or recovery poin |
174 | 74 40 3E 0A 0A 39 2E 20 43 68 65 63 6B 20 74 68 | t@>..9. Check th |
175 | 61 74 20 6E 6F 6E 2D 65 78 69 73 74 65 6E 74 20 | at non-existent |
176 | 66 6F 72 6D 61 6C 20 70 61 72 61 6D 65 74 65 72 | formal parameter |
177 | 73 20 61 72 65 20 63 61 75 67 68 74 2E 0A 0A 40 | s are caught...@ |
178 | 24 40 3C 5A 65 72 6F 40 3E 40 5A 40 7B 53 6C 6F | $@<Zero@>@Z@{Slo |
179 | 74 68 40 31 57 61 6C 72 75 73 40 7D 0A 40 41 40 | th@1Walrus@}.@A@ |
180 | 3C 45 72 72 6F 72 20 72 65 63 6F 76 65 72 79 20 | <Error recovery |
181 | 70 6F 69 6E 74 40 3E 0A 0A 40 24 40 3C 4F 6E 65 | point@>..@$@<One |
182 | 40 3E 40 28 40 31 40 29 40 5A 40 7B 53 6C 6F 74 | @>@(@1@)@Z@{Slot |
183 | 68 40 32 57 61 6C 72 75 73 40 7D 0A 40 41 40 3C | h@2Walrus@}.@A@< |
184 | 45 72 72 6F 72 20 72 65 63 6F 76 65 72 79 20 70 | Error recovery p |
185 | 6F 69 6E 74 40 3E 0A 0A 40 24 40 3C 4D 61 6E 79 | oint@>..@$@<Many |
186 | 40 3E 40 28 40 37 40 29 40 5A 40 7B 53 6C 6F 74 | @>@(@7@)@Z@{Slot |
187 | 68 40 38 57 61 6C 72 75 73 40 7D 0A 40 41 40 3C | h@8Walrus@}.@A@< |
188 | 45 72 72 6F 72 20 72 65 63 6F 76 65 72 79 20 70 | Error recovery p |
189 | 6F 69 6E 74 40 3E 0A | oint@>. |
190 +-------------------------------------------------+------------------+
191
192
193 =========================== Start of LINE LIST DUMP ============================
194
195 Globl Local| Text
196 -----------+--------------------------------------------------------------------
197 00001 00001| PR08: Test semantic checking of macro definitions.<010>
198 00002 00002| <010>
199 00003 00003| Trip parser to be sure that we won't get any output files!<010>
200 00004 00004| @><010>
201 00005 00005| <010>
202 00006 00006| 1. File macro has parameters. Error.<010>
203 00007 00007| @O@<Sloth 1@>@(@3@)@{Walrus@}<010>
204 00008 00008| @A@<Error recovery point@><010>
205 00009 00009| <010>
206 00010 00010| 2. File macro is additive. Error.<010>
207 00011 00011| @O@<Sloth 2@>+=@{Walrus@}<010>
208 00012 00012| @A@<Error recovery point@><010>
209 00013 00013| <010>
210 00014 00014| 3. File macro has too long a name. The test name has 1200 characters. Err.<010>
211 00015 00015| Note: This test can't test the error message if the maximum length of a<010>
212 00016 00016| macro name is less than the maximum length of a file name as the name<010>
213 00017 00017| error is caught first.<010>
214 00018 00018| @p maximum_input_line_length = infinity<010>
215 00019 00019| @O@<123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890@>@{@}<010>
216 00020 00020| @A@<Error recovery point@><010>
217 00021 00021| <010>
218 00022 00022| 4. File macro has zero or many attributes. Error.<010>
219 00023 00023| @O@<Sloth 3@>@Z@{Walrus@}<010>
220 00024 00024| @A@<Error recovery point@><010>
221 00025 00025| <010>
222 00026 00026| @O@<Sloth 4@>@M@{Walrus@}<010>
223 00027 00027| @A@<Error recovery point@><010>
224 00028 00028| <010>
225 00029 00029| @O@<Sloth 5@>@Z@M@{Walrus@}<010>
226 00030 00030| @A@<Error recovery point@><010>
227 00031 00031| <010>
228 00032 00032| 5. Previous definition is full, current is additive.<010>
229 00033 00033| @$@<Walrus 1@>==@{Sloth@}<010>
230 00034 00034| @$@<Walrus 1@>+=@{Aardvark@}<010>
231 00035 00035| @A@<Error recovery point@><010>
232 00036 00036| <010>
233 00037 00037| 6. Previous definition is additive, current is full.<010>
234 00038 00038| @$@<Walrus 2@>+=@{Sloth@}<010>
235 00039 00039| @$@<Walrus 2@>==@{Aardvark@}<010>
236 00040 00040| @A@<Error recovery point@><010>
237 00041 00041| <010>
238 00042 00042| 7. Non-first body part of partial has parameter.<010>
239 00043 00043| @$@<Unicorn@>@(@3@)+=@{Turkey@}<010>
240 00044 00044| @$@<Unicorn@>@(@3@)+=@{Turkey@}<010>
241 00045 00045| @A@<Error recovery point@><010>
242 00046 00046| <010>
243 00047 00047| 8. Zero or many attributes on non-first body part of additive.<010>
244 00048 00048| @$@<Elephant@>@Z@M+=@{Turkey@}<010>
245 00049 00049| @$@<Elephant@>@Z@M+=@{Turkey@}<010>
246 00050 00050| @A@<Error recovery point@><010>
247 00051 00051| <010>
248 00052 00052| 9. Check that non-existent formal parameters are caught.<010>
249 00053 00053| <010>
250 00054 00054| @$@<Zero@>@Z@{Sloth@1Walrus@}<010>
251 00055 00055| @A@<Error recovery point@><010>
252 00056 00056| <010>
253 00057 00057| @$@<One@>@(@1@)@Z@{Sloth@2Walrus@}<010>
254 00058 00058| @A@<Error recovery point@><010>
255 00059 00059| <010>
256 00060 00060| @$@<Many@>@(@7@)@Z@{Sloth@8Walrus@}<010>
257 00061 00061| @A@<Error recovery point@><010>
258 00062 00062| <End-Of-File><010>
259 -----------+--------------------------------------------------------------------
260 Globl Local| Text
261
262 ============================ End of LINE LIST DUMP =============================
263
264
265 =========================== Start of TOKEN LIST DUMP ===========================
266
267 Summary: There are 245 tokens in the token list.
268
269 Line[Column]: Token Description
270 -------------------------------
271
272 0001[01]: Text. Text scrap[Grey]="PR08: Test semantic checking of macro definitions.<010>
273 <010>
274 Trip parser to be sure that we won't get any output files!<010>
275 "
276 0004[01]: @> Close name.
277 0004[03]: Text. Text scrap[Grey]="<010>
278 <010>
279 1. File macro has parameters. Error.<010>
280 "
281 0007[01]: @F File defn.
282 0007[03]: @< Open name.
283 0007[05]: Text. Text scrap[Grey]="Sloth 1"
284 0007[12]: @> Close name.
285 0007[14]: @( Open param.
286 0007[16]: @n Parameter. Parameterno=3.
287 0007[18]: @} Close param.
288 0007[20]: @{ Open defn.
289 0007[22]: Text. Text scrap[Grey]="Walrus"
290 0007[28]: @} Close defn.
291 0007[30]: Text. Text scrap[White]="<010>
292 "
293 0008[01]: @A New section (Level 1).
294 0008[03]: @< Open name.
295 0008[05]: Text. Text scrap[Grey]="Error recovery point"
296 0008[25]: @> Close name.
297 0008[27]: Text. Text scrap[Grey]="<010>
298 <010>
299 2. File macro is additive. Error.<010>
300 "
301 0011[01]: @F File defn.
302 0011[03]: @< Open name.
303 0011[05]: Text. Text scrap[Grey]="Sloth 2"
304 0011[12]: @> Close name.
305 0011[14]: Text. Text scrap[Grey]="+="
306 0011[16]: @{ Open defn.
307 0011[18]: Text. Text scrap[Grey]="Walrus"
308 0011[24]: @} Close defn.
309 0011[26]: Text. Text scrap[White]="<010>
310 "
311 0012[01]: @A New section (Level 1).
312 0012[03]: @< Open name.
313 0012[05]: Text. Text scrap[Grey]="Error recovery point"
314 0012[25]: @> Close name.
315 0012[27]: Text. Text scrap[Grey]="<010>
316 <010>
317 3. File macro has too long a name. The test name has 1200 characters. Err.<010>
318 Note: This test can't test the error message if the maximum length of a<010>
319 macro name is less than the maximum length of a file name as the name<010>
320 error is caught first.<010>
321 "
322 0019[01]: @F File defn.
323 0019[03]: @< Open name.
324 0019[05]: Text. Text scrap[Grey]="123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890"
325 0019[1205]: @> Close name.
326 0019[1207]: @{ Open defn.
327 0019[1209]: @} Close defn.
328 0019[1211]: Text. Text scrap[White]="<010>
329 "
330 0020[01]: @A New section (Level 1).
331 0020[03]: @< Open name.
332 0020[05]: Text. Text scrap[Grey]="Error recovery point"
333 0020[25]: @> Close name.
334 0020[27]: Text. Text scrap[Grey]="<010>
335 <010>
336 4. File macro has zero or many attributes. Error.<010>
337 "
338 0023[01]: @F File defn.
339 0023[03]: @< Open name.
340 0023[05]: Text. Text scrap[Grey]="Sloth 3"
341 0023[12]: @> Close name.
342 0023[14]: @Z Zero calls.
343 0023[16]: @{ Open defn.
344 0023[18]: Text. Text scrap[Grey]="Walrus"
345 0023[24]: @} Close defn.
346 0023[26]: Text. Text scrap[White]="<010>
347 "
348 0024[01]: @A New section (Level 1).
349 0024[03]: @< Open name.
350 0024[05]: Text. Text scrap[Grey]="Error recovery point"
351 0024[25]: @> Close name.
352 0024[27]: Text. Text scrap[White]="<010>
353 <010>
354 "
355 0026[01]: @F File defn.
356 0026[03]: @< Open name.
357 0026[05]: Text. Text scrap[Grey]="Sloth 4"
358 0026[12]: @> Close name.
359 0026[14]: @M Many calls.
360 0026[16]: @{ Open defn.
361 0026[18]: Text. Text scrap[Grey]="Walrus"
362 0026[24]: @} Close defn.
363 0026[26]: Text. Text scrap[White]="<010>
364 "
365 0027[01]: @A New section (Level 1).
366 0027[03]: @< Open name.
367 0027[05]: Text. Text scrap[Grey]="Error recovery point"
368 0027[25]: @> Close name.
369 0027[27]: Text. Text scrap[White]="<010>
370 <010>
371 "
372 0029[01]: @F File defn.
373 0029[03]: @< Open name.
374 0029[05]: Text. Text scrap[Grey]="Sloth 5"
375 0029[12]: @> Close name.
376 0029[14]: @Z Zero calls.
377 0029[16]: @M Many calls.
378 0029[18]: @{ Open defn.
379 0029[20]: Text. Text scrap[Grey]="Walrus"
380 0029[26]: @} Close defn.
381 0029[28]: Text. Text scrap[White]="<010>
382 "
383 0030[01]: @A New section (Level 1).
384 0030[03]: @< Open name.
385 0030[05]: Text. Text scrap[Grey]="Error recovery point"
386 0030[25]: @> Close name.
387 0030[27]: Text. Text scrap[Grey]="<010>
388 <010>
389 5. Previous definition is full, current is additive.<010>
390 "
391 0033[01]: @$ Macro defn.
392 0033[03]: @< Open name.
393 0033[05]: Text. Text scrap[Grey]="Walrus 1"
394 0033[13]: @> Close name.
395 0033[15]: Text. Text scrap[Grey]="=="
396 0033[17]: @{ Open defn.
397 0033[19]: Text. Text scrap[Grey]="Sloth"
398 0033[24]: @} Close defn.
399 0033[26]: Text. Text scrap[White]="<010>
400 "
401 0034[01]: @$ Macro defn.
402 0034[03]: @< Open name.
403 0034[05]: Text. Text scrap[Grey]="Walrus 1"
404 0034[13]: @> Close name.
405 0034[15]: Text. Text scrap[Grey]="+="
406 0034[17]: @{ Open defn.
407 0034[19]: Text. Text scrap[Grey]="Aardvark"
408 0034[27]: @} Close defn.
409 0034[29]: Text. Text scrap[White]="<010>
410 "
411 0035[01]: @A New section (Level 1).
412 0035[03]: @< Open name.
413 0035[05]: Text. Text scrap[Grey]="Error recovery point"
414 0035[25]: @> Close name.
415 0035[27]: Text. Text scrap[Grey]="<010>
416 <010>
417 6. Previous definition is additive, current is full.<010>
418 "
419 0038[01]: @$ Macro defn.
420 0038[03]: @< Open name.
421 0038[05]: Text. Text scrap[Grey]="Walrus 2"
422 0038[13]: @> Close name.
423 0038[15]: Text. Text scrap[Grey]="+="
424 0038[17]: @{ Open defn.
425 0038[19]: Text. Text scrap[Grey]="Sloth"
426 0038[24]: @} Close defn.
427 0038[26]: Text. Text scrap[White]="<010>
428 "
429 0039[01]: @$ Macro defn.
430 0039[03]: @< Open name.
431 0039[05]: Text. Text scrap[Grey]="Walrus 2"
432 0039[13]: @> Close name.
433 0039[15]: Text. Text scrap[Grey]="=="
434 0039[17]: @{ Open defn.
435 0039[19]: Text. Text scrap[Grey]="Aardvark"
436 0039[27]: @} Close defn.
437 0039[29]: Text. Text scrap[White]="<010>
438 "
439 0040[01]: @A New section (Level 1).
440 0040[03]: @< Open name.
441 0040[05]: Text. Text scrap[Grey]="Error recovery point"
442 0040[25]: @> Close name.
443 0040[27]: Text. Text scrap[Grey]="<010>
444 <010>
445 7. Non-first body part of partial has parameter.<010>
446 "
447 0043[01]: @$ Macro defn.
448 0043[03]: @< Open name.
449 0043[05]: Text. Text scrap[Grey]="Unicorn"
450 0043[12]: @> Close name.
451 0043[14]: @( Open param.
452 0043[16]: @n Parameter. Parameterno=3.
453 0043[18]: @} Close param.
454 0043[20]: Text. Text scrap[Grey]="+="
455 0043[22]: @{ Open defn.
456 0043[24]: Text. Text scrap[Grey]="Turkey"
457 0043[30]: @} Close defn.
458 0043[32]: Text. Text scrap[White]="<010>
459 "
460 0044[01]: @$ Macro defn.
461 0044[03]: @< Open name.
462 0044[05]: Text. Text scrap[Grey]="Unicorn"
463 0044[12]: @> Close name.
464 0044[14]: @( Open param.
465 0044[16]: @n Parameter. Parameterno=3.
466 0044[18]: @} Close param.
467 0044[20]: Text. Text scrap[Grey]="+="
468 0044[22]: @{ Open defn.
469 0044[24]: Text. Text scrap[Grey]="Turkey"
470 0044[30]: @} Close defn.
471 0044[32]: Text. Text scrap[White]="<010>
472 "
473 0045[01]: @A New section (Level 1).
474 0045[03]: @< Open name.
475 0045[05]: Text. Text scrap[Grey]="Error recovery point"
476 0045[25]: @> Close name.
477 0045[27]: Text. Text scrap[Grey]="<010>
478 <010>
479 8. Zero or many attributes on non-first body part of additive.<010>
480 "
481 0048[01]: @$ Macro defn.
482 0048[03]: @< Open name.
483 0048[05]: Text. Text scrap[Grey]="Elephant"
484 0048[13]: @> Close name.
485 0048[15]: @Z Zero calls.
486 0048[17]: @M Many calls.
487 0048[19]: Text. Text scrap[Grey]="+="
488 0048[21]: @{ Open defn.
489 0048[23]: Text. Text scrap[Grey]="Turkey"
490 0048[29]: @} Close defn.
491 0048[31]: Text. Text scrap[White]="<010>
492 "
493 0049[01]: @$ Macro defn.
494 0049[03]: @< Open name.
495 0049[05]: Text. Text scrap[Grey]="Elephant"
496 0049[13]: @> Close name.
497 0049[15]: @Z Zero calls.
498 0049[17]: @M Many calls.
499 0049[19]: Text. Text scrap[Grey]="+="
500 0049[21]: @{ Open defn.
501 0049[23]: Text. Text scrap[Grey]="Turkey"
502 0049[29]: @} Close defn.
503 0049[31]: Text. Text scrap[White]="<010>
504 "
505 0050[01]: @A New section (Level 1).
506 0050[03]: @< Open name.
507 0050[05]: Text. Text scrap[Grey]="Error recovery point"
508 0050[25]: @> Close name.
509 0050[27]: Text. Text scrap[Grey]="<010>
510 <010>
511 9. Check that non-existent formal parameters are caught.<010>
512 <010>
513 "
514 0054[01]: @$ Macro defn.
515 0054[03]: @< Open name.
516 0054[05]: Text. Text scrap[Grey]="Zero"
517 0054[09]: @> Close name.
518 0054[11]: @Z Zero calls.
519 0054[13]: @{ Open defn.
520 0054[15]: Text. Text scrap[Grey]="Sloth"
521 0054[20]: @n Parameter. Parameterno=1.
522 0054[22]: Text. Text scrap[Grey]="Walrus"
523 0054[28]: @} Close defn.
524 0054[30]: Text. Text scrap[White]="<010>
525 "
526 0055[01]: @A New section (Level 1).
527 0055[03]: @< Open name.
528 0055[05]: Text. Text scrap[Grey]="Error recovery point"
529 0055[25]: @> Close name.
530 0055[27]: Text. Text scrap[White]="<010>
531 <010>
532 "
533 0057[01]: @$ Macro defn.
534 0057[03]: @< Open name.
535 0057[05]: Text. Text scrap[Grey]="One"
536 0057[08]: @> Close name.
537 0057[10]: @( Open param.
538 0057[12]: @n Parameter. Parameterno=1.
539 0057[14]: @} Close param.
540 0057[16]: @Z Zero calls.
541 0057[18]: @{ Open defn.
542 0057[20]: Text. Text scrap[Grey]="Sloth"
543 0057[25]: @n Parameter. Parameterno=2.
544 0057[27]: Text. Text scrap[Grey]="Walrus"
545 0057[33]: @} Close defn.
546 0057[35]: Text. Text scrap[White]="<010>
547 "
548 0058[01]: @A New section (Level 1).
549 0058[03]: @< Open name.
550 0058[05]: Text. Text scrap[Grey]="Error recovery point"
551 0058[25]: @> Close name.
552 0058[27]: Text. Text scrap[White]="<010>
553 <010>
554 "
555 0060[01]: @$ Macro defn.
556 0060[03]: @< Open name.
557 0060[05]: Text. Text scrap[Grey]="Many"
558 0060[09]: @> Close name.
559 0060[11]: @( Open param.
560 0060[13]: @n Parameter. Parameterno=7.
561 0060[15]: @} Close param.
562 0060[17]: @Z Zero calls.
563 0060[19]: @{ Open defn.
564 0060[21]: Text. Text scrap[Grey]="Sloth"
565 0060[26]: @n Parameter. Parameterno=8.
566 0060[28]: Text. Text scrap[Grey]="Walrus"
567 0060[34]: @} Close defn.
568 0060[36]: Text. Text scrap[White]="<010>
569 "
570 0061[01]: @A New section (Level 1).
571 0061[03]: @< Open name.
572 0061[05]: Text. Text scrap[Grey]="Error recovery point"
573 0061[25]: @> Close name.
574 0061[27]: Text. Text scrap[White]="<010>
575 "
576 0062[01]: End Of File.
577 ============================ End of TOKEN LIST DUMP ============================
578
579
580 ========================== Start of MACRO TABLE DUMP ===========================
581
582
583 ------------------- Start of Macro Dump --------------------
584 Macro Name : "Elephant"
585 Macro MinLv : 0
586 Call list :
587
588 Level 0 is defined as follows.
589 Parameters : 0
590 Pos(L,C) : (48,1)
591 Additive? : Yes.
592 Zero Calls? : Yes.
593 Many Calls? : Yes.
594 Output File?: No.
595 Macro body :
596
597 --Start of List of Body Parts--
598 This macro has 1 body part.
599 Body part 1: Seqnum=4, Pos(L,C)=(48,3), Expression follows:
600
601 ---- Start of Expression ----
602
603 ----- Start Text Element -----
604 Text scrap[Grey]="Turkey"
605 ------ End Text Element ------
606
607 ----- End of Expression -----
608
609 ---End of List of Body Parts---
610
611 Level 1 is not defined.
612 Level 2 is not defined.
613 Level 3 is not defined.
614 Level 4 is not defined.
615 Level 5 is not defined.
616 -------------------- End of Macro Dump ---------------------
617
618
619
620 ------------------- Start of Macro Dump --------------------
621 Macro Name : "Many"
622 Macro MinLv : 0
623 Call list :
624
625 Level 0 is defined as follows.
626 Parameters : 7
627 Pos(L,C) : (60,1)
628 Additive? : No.
629 Zero Calls? : Yes.
630 Many Calls? : No.
631 Output File?: No.
632 Macro body :
633
634 --Start of List of Body Parts--
635 This macro has 1 body part.
636 Body part 1: Seqnum=7, Pos(L,C)=(60,3), Expression follows:
637
638 ---- Start of Expression ----
639
640 ----- Start Text Element -----
641 Text scrap[Grey]="Sloth"
642 ------ End Text Element ------
643
644
645 -- Start Parameter Element --
646 Parameter number=8.
647 Parameter is of macro "Many".
648 --- End Parameter Element ---
649
650
651 ----- Start Text Element -----
652 Text scrap[Grey]="Walrus"
653 ------ End Text Element ------
654
655 ----- End of Expression -----
656
657 ---End of List of Body Parts---
658
659 Level 1 is not defined.
660 Level 2 is not defined.
661 Level 3 is not defined.
662 Level 4 is not defined.
663 Level 5 is not defined.
664 -------------------- End of Macro Dump ---------------------
665
666
667
668 ------------------- Start of Macro Dump --------------------
669 Macro Name : "One"
670 Macro MinLv : 0
671 Call list :
672
673 Level 0 is defined as follows.
674 Parameters : 1
675 Pos(L,C) : (57,1)
676 Additive? : No.
677 Zero Calls? : Yes.
678 Many Calls? : No.
679 Output File?: No.
680 Macro body :
681
682 --Start of List of Body Parts--
683 This macro has 1 body part.
684 Body part 1: Seqnum=6, Pos(L,C)=(57,3), Expression follows:
685
686 ---- Start of Expression ----
687
688 ----- Start Text Element -----
689 Text scrap[Grey]="Sloth"
690 ------ End Text Element ------
691
692
693 -- Start Parameter Element --
694 Parameter number=2.
695 Parameter is of macro "One".
696 --- End Parameter Element ---
697
698
699 ----- Start Text Element -----
700 Text scrap[Grey]="Walrus"
701 ------ End Text Element ------
702
703 ----- End of Expression -----
704
705 ---End of List of Body Parts---
706
707 Level 1 is not defined.
708 Level 2 is not defined.
709 Level 3 is not defined.
710 Level 4 is not defined.
711 Level 5 is not defined.
712 -------------------- End of Macro Dump ---------------------
713
714
715
716 ------------------- Start of Macro Dump --------------------
717 Macro Name : "Sloth 1"
718 Macro MinLv : 6
719 Call list :
720 Level 0 is not defined.
721 Level 1 is not defined.
722 Level 2 is not defined.
723 Level 3 is not defined.
724 Level 4 is not defined.
725 Level 5 is not defined.
726 -------------------- End of Macro Dump ---------------------
727
728
729
730 ------------------- Start of Macro Dump --------------------
731 Macro Name : "Sloth 2"
732 Macro MinLv : 6
733 Call list :
734 Level 0 is not defined.
735 Level 1 is not defined.
736 Level 2 is not defined.
737 Level 3 is not defined.
738 Level 4 is not defined.
739 Level 5 is not defined.
740 -------------------- End of Macro Dump ---------------------
741
742
743
744 ------------------- Start of Macro Dump --------------------
745 Macro Name : "Sloth 3"
746 Macro MinLv : 6
747 Call list :
748 Level 0 is not defined.
749 Level 1 is not defined.
750 Level 2 is not defined.
751 Level 3 is not defined.
752 Level 4 is not defined.
753 Level 5 is not defined.
754 -------------------- End of Macro Dump ---------------------
755
756
757
758 ------------------- Start of Macro Dump --------------------
759 Macro Name : "Sloth 4"
760 Macro MinLv : 6
761 Call list :
762 Level 0 is not defined.
763 Level 1 is not defined.
764 Level 2 is not defined.
765 Level 3 is not defined.
766 Level 4 is not defined.
767 Level 5 is not defined.
768 -------------------- End of Macro Dump ---------------------
769
770
771
772 ------------------- Start of Macro Dump --------------------
773 Macro Name : "Sloth 5"
774 Macro MinLv : 6
775 Call list :
776 Level 0 is not defined.
777 Level 1 is not defined.
778 Level 2 is not defined.
779 Level 3 is not defined.
780 Level 4 is not defined.
781 Level 5 is not defined.
782 -------------------- End of Macro Dump ---------------------
783
784
785
786 ------------------- Start of Macro Dump --------------------
787 Macro Name : "Unicorn"
788 Macro MinLv : 0
789 Call list :
790
791 Level 0 is defined as follows.
792 Parameters : 3
793 Pos(L,C) : (43,1)
794 Additive? : Yes.
795 Zero Calls? : No.
796 Many Calls? : No.
797 Output File?: No.
798 Macro body :
799
800 --Start of List of Body Parts--
801 This macro has 1 body part.
802 Body part 1: Seqnum=3, Pos(L,C)=(43,3), Expression follows:
803
804 ---- Start of Expression ----
805
806 ----- Start Text Element -----
807 Text scrap[Grey]="Turkey"
808 ------ End Text Element ------
809
810 ----- End of Expression -----
811
812 ---End of List of Body Parts---
813
814 Level 1 is not defined.
815 Level 2 is not defined.
816 Level 3 is not defined.
817 Level 4 is not defined.
818 Level 5 is not defined.
819 -------------------- End of Macro Dump ---------------------
820
821
822
823 ------------------- Start of Macro Dump --------------------
824 Macro Name : "Walrus 1"
825 Macro MinLv : 0
826 Call list :
827
828 Level 0 is defined as follows.
829 Parameters : 0
830 Pos(L,C) : (33,1)
831 Additive? : No.
832 Zero Calls? : No.
833 Many Calls? : No.
834 Output File?: No.
835 Macro body :
836
837 --Start of List of Body Parts--
838 This macro has 1 body part.
839 Body part 1: Seqnum=1, Pos(L,C)=(33,3), Expression follows:
840
841 ---- Start of Expression ----
842
843 ----- Start Text Element -----
844 Text scrap[Grey]="Sloth"
845 ------ End Text Element ------
846
847 ----- End of Expression -----
848
849 ---End of List of Body Parts---
850
851 Level 1 is not defined.
852 Level 2 is not defined.
853 Level 3 is not defined.
854 Level 4 is not defined.
855 Level 5 is not defined.
856 -------------------- End of Macro Dump ---------------------
857
858
859
860 ------------------- Start of Macro Dump --------------------
861 Macro Name : "Walrus 2"
862 Macro MinLv : 0
863 Call list :
864
865 Level 0 is defined as follows.
866 Parameters : 0
867 Pos(L,C) : (38,1)
868 Additive? : Yes.
869 Zero Calls? : No.
870 Many Calls? : No.
871 Output File?: No.
872 Macro body :
873
874 --Start of List of Body Parts--
875 This macro has 1 body part.
876 Body part 1: Seqnum=2, Pos(L,C)=(38,3), Expression follows:
877
878 ---- Start of Expression ----
879
880 ----- Start Text Element -----
881 Text scrap[Grey]="Sloth"
882 ------ End Text Element ------
883
884 ----- End of Expression -----
885
886 ---End of List of Body Parts---
887
888 Level 1 is not defined.
889 Level 2 is not defined.
890 Level 3 is not defined.
891 Level 4 is not defined.
892 Level 5 is not defined.
893 -------------------- End of Macro Dump ---------------------
894
895
896
897 ------------------- Start of Macro Dump --------------------
898 Macro Name : "Zero"
899 Macro MinLv : 0
900 Call list :
901
902 Level 0 is defined as follows.
903 Parameters : 0
904 Pos(L,C) : (54,1)
905 Additive? : No.
906 Zero Calls? : Yes.
907 Many Calls? : No.
908 Output File?: No.
909 Macro body :
910
911 --Start of List of Body Parts--
912 This macro has 1 body part.
913 Body part 1: Seqnum=5, Pos(L,C)=(54,3), Expression follows:
914
915 ---- Start of Expression ----
916
917 ----- Start Text Element -----
918 Text scrap[Grey]="Sloth"
919 ------ End Text Element ------
920
921
922 -- Start Parameter Element --
923 Parameter number=1.
924 Parameter is of macro "Zero".
925 --- End Parameter Element ---
926
927
928 ----- Start Text Element -----
929 Text scrap[Grey]="Walrus"
930 ------ End Text Element ------
931
932 ----- End of Expression -----
933
934 ---End of List of Body Parts---
935
936 Level 1 is not defined.
937 Level 2 is not defined.
938 Level 3 is not defined.
939 Level 4 is not defined.
940 Level 5 is not defined.
941 -------------------- End of Macro Dump ---------------------
942
943
944
945 =========================== End of MACRO TABLE DUMP ============================
946
947
948 ========================= Start of DOCUMENT LIST DUMP ==========================
949
950
951 TEXT COMPONENT: Pos(L,C)=(1,1).
952
953 -- Start of Text Scrap List --
954 Text scrap[Grey]="PR08: Test semantic checking of macro definitions.<010>
955 <010>
956 Trip parser to be sure that we won't get any output files!<010>
957 "
958 --- End of Text Scrap List ---
959
960
961 TEXT COMPONENT: Pos(L,C)=(4,3).
962
963 -- Start of Text Scrap List --
964 Text scrap[Grey]="<010>
965 <010>
966 1. File macro has parameters. Error.<010>
967 "
968 --- End of Text Scrap List ---
969
970
971 TYPESETTER DIRECTIVE COMPONENT:
972 Section "1", Section name="Error recovery point".
973
974 TEXT COMPONENT: Pos(L,C)=(8,27).
975
976 -- Start of Text Scrap List --
977 Text scrap[Grey]="<010>
978 <010>
979 2. File macro is additive. Error.<010>
980 "
981 --- End of Text Scrap List ---
982
983
984 TYPESETTER DIRECTIVE COMPONENT:
985 Section "2", Section name="Error recovery point".
986
987 TEXT COMPONENT: Pos(L,C)=(12,27).
988
989 -- Start of Text Scrap List --
990 Text scrap[Grey]="<010>
991 <010>
992 3. File macro has too long a name. The test name has 1200 characters. Err.<010>
993 Note: This test can't test the error message if the maximum length of a<010>
994 macro name is less than the maximum length of a file name as the name<010>
995 error is caught first.<010>
996 "
997 --- End of Text Scrap List ---
998
999
1000 TYPESETTER DIRECTIVE COMPONENT:
1001 Section "3", Section name="Error recovery point".
1002
1003 TEXT COMPONENT: Pos(L,C)=(20,27).
1004
1005 -- Start of Text Scrap List --
1006 Text scrap[Grey]="<010>
1007 <010>
1008 4. File macro has zero or many attributes. Error.<010>
1009 "
1010 --- End of Text Scrap List ---
1011
1012
1013 TYPESETTER DIRECTIVE COMPONENT:
1014 Section "4", Section name="Error recovery point".
1015
1016 TEXT COMPONENT: Pos(L,C)=(24,27).
1017
1018 -- Start of Text Scrap List --
1019 Text scrap[White]="<010>
1020 <010>
1021 "
1022 --- End of Text Scrap List ---
1023
1024
1025 TYPESETTER DIRECTIVE COMPONENT:
1026 Section "5", Section name="Error recovery point".
1027
1028 TEXT COMPONENT: Pos(L,C)=(27,27).
1029
1030 -- Start of Text Scrap List --
1031 Text scrap[White]="<010>
1032 <010>
1033 "
1034 --- End of Text Scrap List ---
1035
1036
1037 TYPESETTER DIRECTIVE COMPONENT:
1038 Section "6", Section name="Error recovery point".
1039
1040 TEXT COMPONENT: Pos(L,C)=(30,27).
1041
1042 -- Start of Text Scrap List --
1043 Text scrap[Grey]="<010>
1044 <010>
1045 5. Previous definition is full, current is additive.<010>
1046 "
1047 --- End of Text Scrap List ---
1048
1049
1050 MACRO DEFINITION COMPONENT: Pos(L,C)=(33,1).
1051 Part 1 of level 0 of macro @<Walrus 1@>.
1052
1053 TEXT COMPONENT: Pos(L,C)=(33,26).
1054
1055 -- Start of Text Scrap List --
1056 Text scrap[White]="<010>
1057 "
1058 --- End of Text Scrap List ---
1059
1060
1061 TYPESETTER DIRECTIVE COMPONENT:
1062 Section "7", Section name="Error recovery point".
1063
1064 TEXT COMPONENT: Pos(L,C)=(35,27).
1065
1066 -- Start of Text Scrap List --
1067 Text scrap[Grey]="<010>
1068 <010>
1069 6. Previous definition is additive, current is full.<010>
1070 "
1071 --- End of Text Scrap List ---
1072
1073
1074 MACRO DEFINITION COMPONENT: Pos(L,C)=(38,1).
1075 Part 1 of level 0 of macro @<Walrus 2@>.
1076
1077 TEXT COMPONENT: Pos(L,C)=(38,26).
1078
1079 -- Start of Text Scrap List --
1080 Text scrap[White]="<010>
1081 "
1082 --- End of Text Scrap List ---
1083
1084
1085 TYPESETTER DIRECTIVE COMPONENT:
1086 Section "8", Section name="Error recovery point".
1087
1088 TEXT COMPONENT: Pos(L,C)=(40,27).
1089
1090 -- Start of Text Scrap List --
1091 Text scrap[Grey]="<010>
1092 <010>
1093 7. Non-first body part of partial has parameter.<010>
1094 "
1095 --- End of Text Scrap List ---
1096
1097
1098 MACRO DEFINITION COMPONENT: Pos(L,C)=(43,1).
1099 Part 1 of level 0 of macro @<Unicorn@>.
1100
1101 TEXT COMPONENT: Pos(L,C)=(43,32).
1102
1103 -- Start of Text Scrap List --
1104 Text scrap[White]="<010>
1105 "
1106 --- End of Text Scrap List ---
1107
1108
1109 TYPESETTER DIRECTIVE COMPONENT:
1110 Section "9", Section name="Error recovery point".
1111
1112 TEXT COMPONENT: Pos(L,C)=(45,27).
1113
1114 -- Start of Text Scrap List --
1115 Text scrap[Grey]="<010>
1116 <010>
1117 8. Zero or many attributes on non-first body part of additive.<010>
1118 "
1119 --- End of Text Scrap List ---
1120
1121
1122 MACRO DEFINITION COMPONENT: Pos(L,C)=(48,1).
1123 Part 1 of level 0 of macro @<Elephant@>.
1124
1125 TEXT COMPONENT: Pos(L,C)=(48,31).
1126
1127 -- Start of Text Scrap List --
1128 Text scrap[White]="<010>
1129 "
1130 --- End of Text Scrap List ---
1131
1132
1133 TYPESETTER DIRECTIVE COMPONENT:
1134 Section "10", Section name="Error recovery point".
1135
1136 TEXT COMPONENT: Pos(L,C)=(50,27).
1137
1138 -- Start of Text Scrap List --
1139 Text scrap[Grey]="<010>
1140 <010>
1141 9. Check that non-existent formal parameters are caught.<010>
1142 <010>
1143 "
1144 --- End of Text Scrap List ---
1145
1146
1147 MACRO DEFINITION COMPONENT: Pos(L,C)=(54,1).
1148 Part 1 of level 0 of macro @<Zero@>.
1149
1150 TEXT COMPONENT: Pos(L,C)=(54,30).
1151
1152 -- Start of Text Scrap List --
1153 Text scrap[White]="<010>
1154 "
1155 --- End of Text Scrap List ---
1156
1157
1158 TYPESETTER DIRECTIVE COMPONENT:
1159 Section "11", Section name="Error recovery point".
1160
1161 TEXT COMPONENT: Pos(L,C)=(55,27).
1162
1163 -- Start of Text Scrap List --
1164 Text scrap[White]="<010>
1165 <010>
1166 "
1167 --- End of Text Scrap List ---
1168
1169
1170 MACRO DEFINITION COMPONENT: Pos(L,C)=(57,1).
1171 Part 1 of level 0 of macro @<One@>.
1172
1173 TEXT COMPONENT: Pos(L,C)=(57,35).
1174
1175 -- Start of Text Scrap List --
1176 Text scrap[White]="<010>
1177 "
1178 --- End of Text Scrap List ---
1179
1180
1181 TYPESETTER DIRECTIVE COMPONENT:
1182 Section "12", Section name="Error recovery point".
1183
1184 TEXT COMPONENT: Pos(L,C)=(58,27).
1185
1186 -- Start of Text Scrap List --
1187 Text scrap[White]="<010>
1188 <010>
1189 "
1190 --- End of Text Scrap List ---
1191
1192
1193 MACRO DEFINITION COMPONENT: Pos(L,C)=(60,1).
1194 Part 1 of level 0 of macro @<Many@>.
1195
1196 TEXT COMPONENT: Pos(L,C)=(60,36).
1197
1198 -- Start of Text Scrap List --
1199 Text scrap[White]="<010>
1200 "
1201 --- End of Text Scrap List ---
1202
1203
1204 TYPESETTER DIRECTIVE COMPONENT:
1205 Section "13", Section name="Error recovery point".
1206
1207 TEXT COMPONENT: Pos(L,C)=(61,27).
1208
1209 -- Start of Text Scrap List --
1210 Text scrap[White]="<010>
1211 "
1212 --- End of Text Scrap List ---
1213
1214
1215 ========================== End of DOCUMENT LIST DUMP ===========================
1216
1217
1218 Global Local| Input File
1219 ------------+-------------------------------------------------------------------
1220 1 1| PR08: Test semantic checking of macro definitions.
1221 2 2|
1222 3 3| Trip parser to be sure that we won't get any output files!
1223 4 4| @>
1224 Error|.^The parser was at the top level and was expecting
1225 |.^one of: {Directive, Text, Macro definition, EOF}.
1226 5 5|
1227 6 6| 1. File macro has parameters. Error.
1228 7 7| @O@<Sloth 1@>@(@3@)@{Walrus@}
1229 |...^Macro definition ignored.
1230 Error|................^Macros attached to output files cannot be parameterized.
1231 |................^Reason: No actual parameters would be available during
1232 |................^ output file generation.
1233 |....................^Skipping after error to the next major construct...
1234 8 8| @A@<Error recovery point@>
1235 |.^...skipped to here after the error.
1236 9 9|
1237 10 10| 2. File macro is additive. Error.
1238 11 11| @O@<Sloth 2@>+=@{Walrus@}
1239 |...^Macro definition ignored.
1240 Error|..............^Macros attached to output files cannot be additive.
1241 |..............^Reason: Preventing this makes it easy to find output
1242 |..............^file macros later, because there will be exactly one
1243 |..............^@O declaration in the input file for each output file.
1244 |..............^To do what you are trying to do, just create an additive
1245 |..............^bridging macro, like this:
1246 |..............^ @O@<prog.c@>@{@<Bridge@>@}
1247 |..............^ @$@<Bridge@>+=@{void stringhack()...@}
1248 |..............^ @$@<Bridge@>+=@{main()...@}
1249 |................^Skipping after error to the next major construct...
1250 12 12| @A@<Error recovery point@>
1251 |.^...skipped to here after the error.
1252 13 13|
1253 14 14| 3. File macro has too long a name. The test name has 1200 characters. Err.
1254 15 15| Note: This test can't test the error message if the maximum length of a
1255 16 16| macro name is less than the maximum length of a file name as the name
1256 17 17| error is caught first.
1257 18 18| @p maximum_input_line_length = infinity
1258 19 19| @O@<123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890@>@{@}
1259 Error|.....^Name is too long.
1260 |.....^The maximum length of a legal name is 80 characters.
1261 |.....^Skipping after error to the next major construct...
1262 20 20| @A@<Error recovery point@>
1263 |.^...skipped to here after the error.
1264 21 21|
1265 22 22| 4. File macro has zero or many attributes. Error.
1266 23 23| @O@<Sloth 3@>@Z@{Walrus@}
1267 |...^Macro definition ignored.
1268 Error|..............^Macros attached to output files cannot have @Z or @M.
1269 |..............^Reason: They are always called once to generate their
1270 |..............^output file and they cannot be called from other macros.
1271 |..............^Hence they are always called exactly once and so there
1272 |..............^can be no need for @Z or @M in their declarations.
1273 |................^Skipping after error to the next major construct...
1274 24 24| @A@<Error recovery point@>
1275 |.^...skipped to here after the error.
1276 25 25|
1277 26 26| @O@<Sloth 4@>@M@{Walrus@}
1278 |...^Macro definition ignored.
1279 Error|..............^Macros attached to output files cannot have @Z or @M.
1280 |..............^Reason: They are always called once to generate their
1281 |..............^output file and they cannot be called from other macros.
1282 |..............^Hence they are always called exactly once and so there
1283 |..............^can be no need for @Z or @M in their declarations.
1284 |................^Skipping after error to the next major construct...
1285 27 27| @A@<Error recovery point@>
1286 |.^...skipped to here after the error.
1287 28 28|
1288 29 29| @O@<Sloth 5@>@Z@M@{Walrus@}
1289 |...^Macro definition ignored.
1290 Error|..............^Macros attached to output files cannot have @Z or @M.
1291 |..............^Reason: They are always called once to generate their
1292 |..............^output file and they cannot be called from other macros.
1293 |..............^Hence they are always called exactly once and so there
1294 |..............^can be no need for @Z or @M in their declarations.
1295 |..................^Skipping after error to the next major construct...
1296 30 30| @A@<Error recovery point@>
1297 |.^...skipped to here after the error.
1298 31 31|
1299 32 32| 5. Previous definition is full, current is additive.
1300 33 33| @$@<Walrus 1@>==@{Sloth@}
1301 34 34| @$@<Walrus 1@>+=@{Aardvark@}
1302 Error|...^A full definition of this macro appears at line 33.
1303 |...^Full and additive definitions of the same macro cannot coexist.
1304 |...^Macro definition ignored.
1305 |.................^Skipping after error to the next major construct...
1306 35 35| @A@<Error recovery point@>
1307 |.^...skipped to here after the error.
1308 36 36|
1309 37 37| 6. Previous definition is additive, current is full.
1310 38 38| @$@<Walrus 2@>+=@{Sloth@}
1311 39 39| @$@<Walrus 2@>==@{Aardvark@}
1312 Error|...^An additive definition of this macro appears at line 38.
1313 |...^Full and additive definitions of the same macro cannot coexist.
1314 |...^Macro definition ignored.
1315 |.................^Skipping after error to the next major construct...
1316 40 40| @A@<Error recovery point@>
1317 |.^...skipped to here after the error.
1318 41 41|
1319 42 42| 7. Non-first body part of partial has parameter.
1320 43 43| @$@<Unicorn@>@(@3@)+=@{Turkey@}
1321 44 44| @$@<Unicorn@>@(@3@)+=@{Turkey@}
1322 |...^Macro definition ignored.
1323 Error|................^The formal parameter list of an additive macro
1324 |................^must be placed only in the first definition part.
1325 |................^The first part of this macro appears at line 43.
1326 |......................^Skipping after error to the next major construct...
1327 45 45| @A@<Error recovery point@>
1328 |.^...skipped to here after the error.
1329 46 46|
1330 47 47| 8. Zero or many attributes on non-first body part of additive.
1331 48 48| @$@<Elephant@>@Z@M+=@{Turkey@}
1332 49 49| @$@<Elephant@>@Z@M+=@{Turkey@}
1333 |...^Macro definition ignored.
1334 Error|...............^@Z and @M modifiers for additive macros must
1335 |...............^be placed only in the first definition part.
1336 |...............^The first part of this macro appears at line 48.
1337 |.....................^Skipping after error to the next major construct...
1338 50 50| @A@<Error recovery point@>
1339 |.^...skipped to here after the error.
1340 51 51|
1341 52 52| 9. Check that non-existent formal parameters are caught.
1342 53 53|
1343 54 54| @$@<Zero@>@Z@{Sloth@1Walrus@}
1344 Error|....................^Macro being defined has only 0 parameters.
1345 55 55| @A@<Error recovery point@>
1346 56 56|
1347 57 57| @$@<One@>@(@1@)@Z@{Sloth@2Walrus@}
1348 Error|.........................^Macro being defined has only 1 parameter.
1349 58 58| @A@<Error recovery point@>
1350 59 59|
1351 60 60| @$@<Many@>@(@7@)@Z@{Sloth@8Walrus@}
1352 Error|..........................^Macro being defined has only 7 parameters.
1353 61 61| @A@<Error recovery point@>
1354 | <End-Of-File>
1355 ------------+-------------------------------------------------------------------
1356
1357 There were 14 Errors.