home *** CD-ROM | disk | FTP | other *** search
/ Mega Top 1 / os2_top1.zip / os2_top1 / APPS / TEKST / FUNNEL_S / ANSWERS / PR05.LIS < prev    next >
File List  |  1992-05-27  |  28KB  |  1,006 lines

  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 35 3A 20 54 65 73 74 20 74 68 65 20 70 | PR05: Test the p |
  13. | 61 72 73 69 6E 67 20 6F 66 20 66 6F 72 6D 61 6C | arsing of formal |
  14. | 20 70 61 72 61 6D 65 74 65 72 20 6C 69 73 74 73 |  parameter lists |
  15. | 2E 0A 0A 46 69 72 73 74 20 74 72 69 70 20 74 68 | ...First trip th |
  16. | 65 20 70 61 72 73 65 72 20 73 6F 20 77 65 20 64 | e parser so we d |
  17. | 6F 6E 27 74 20 67 65 74 20 70 61 73 74 20 74 68 | on't get past th |
  18. | 65 20 70 61 72 73 65 72 2E 0A 40 3E 0A 0A 31 2E | e parser..@>..1. |
  19. | 20 54 65 73 74 20 6D 61 63 72 6F 20 64 65 66 69 |  Test macro defi |
  20. | 6E 69 74 69 6F 6E 20 77 69 74 68 20 6E 6F 20 66 | nition with no f |
  21. | 6F 72 6D 61 6C 20 70 61 72 61 6D 65 74 65 72 73 | ormal parameters |
  22. | 2E 0A 40 24 40 3C 53 6C 6F 74 68 40 3E 40 7B 53 | ..@$@<Sloth@>@{S |
  23. | 6C 6F 74 68 74 65 78 74 40 7D 0A 0A 32 2E 20 54 | lothtext@}..2. T |
  24. | 65 73 74 20 6D 61 63 72 6F 20 64 65 66 69 6E 69 | est macro defini |
  25. | 74 69 6F 6E 20 77 69 74 68 20 6F 6E 65 20 66 6F | tion with one fo |
  26. | 72 6D 61 6C 20 70 61 72 61 6D 65 74 65 72 2E 0A | rmal parameter.. |
  27. | 40 24 40 3C 53 6C 6F 74 68 20 77 69 74 68 20 6F | @$@<Sloth with o |
  28. | 6E 65 40 3E 40 28 40 31 40 29 40 7B 53 6C 6F 74 | ne@>@(@1@)@{Slot |
  29. | 68 74 65 78 74 40 7D 0A 0A 33 2E 20 54 65 73 74 | htext@}..3. Test |
  30. | 20 6D 61 63 72 6F 20 64 65 66 69 6E 69 74 69 6F |  macro definitio |
  31. | 6E 20 77 69 74 68 20 6D 61 6E 79 20 66 6F 72 6D | n with many form |
  32. | 61 6C 20 70 61 72 61 6D 65 74 65 72 73 2E 0A 40 | al parameters..@ |
  33. | 24 40 3C 53 6C 6F 74 68 20 77 69 74 68 20 32 40 | $@<Sloth with 2@ |
  34. | 3E 40 28 40 32 40 29 40 7B 53 6C 6F 74 68 74 65 | >@(@2@)@{Slothte |
  35. | 78 74 40 7D 0A 40 24 40 3C 53 6C 6F 74 68 20 77 | xt@}.@$@<Sloth w |
  36. | 69 74 68 20 33 40 3E 40 28 40 33 40 29 40 7B 53 | ith 3@>@(@3@)@{S |
  37. | 6C 6F 74 68 74 65 78 74 40 7D 0A 40 24 40 3C 53 | lothtext@}.@$@<S |
  38. | 6C 6F 74 68 20 77 69 74 68 20 34 40 3E 40 28 40 | loth with 4@>@(@ |
  39. | 34 40 29 40 7B 53 6C 6F 74 68 74 65 78 74 40 7D | 4@)@{Slothtext@} |
  40. | 0A 40 24 40 3C 53 6C 6F 74 68 20 77 69 74 68 20 | .@$@<Sloth with  |
  41. | 35 40 3E 40 28 40 35 40 29 40 7B 53 6C 6F 74 68 | 5@>@(@5@)@{Sloth |
  42. | 74 65 78 74 40 7D 0A 40 24 40 3C 53 6C 6F 74 68 | text@}.@$@<Sloth |
  43. | 20 77 69 74 68 20 36 40 3E 40 28 40 36 40 29 40 |  with 6@>@(@6@)@ |
  44. | 7B 53 6C 6F 74 68 74 65 78 74 40 7D 0A 40 24 40 | {Slothtext@}.@$@ |
  45. | 3C 53 6C 6F 74 68 20 77 69 74 68 20 37 40 3E 40 | <Sloth with 7@>@ |
  46. | 28 40 37 40 29 40 7B 53 6C 6F 74 68 74 65 78 74 | (@7@)@{Slothtext |
  47. | 40 7D 0A 40 24 40 3C 53 6C 6F 74 68 20 77 69 74 | @}.@$@<Sloth wit |
  48. | 68 20 38 40 3E 40 28 40 38 40 29 40 7B 53 6C 6F | h 8@>@(@8@)@{Slo |
  49. | 74 68 74 65 78 74 40 7D 0A 40 24 40 3C 53 6C 6F | thtext@}.@$@<Slo |
  50. | 74 68 20 77 69 74 68 20 39 40 3E 40 28 40 39 40 | th with 9@>@(@9@ |
  51. | 29 40 7B 53 6C 6F 74 68 74 65 78 74 40 7D 0A 0A | )@{Slothtext@}.. |
  52. | 34 2E 20 54 65 73 74 20 77 69 74 68 20 73 79 6E | 4. Test with syn |
  53. | 74 61 78 20 65 72 72 6F 72 73 20 69 6E 20 74 68 | tax errors in th |
  54. | 65 20 70 61 72 61 6D 65 74 65 72 20 6C 69 73 74 | e parameter list |
  55. | 2E 0A 0A 40 24 40 3C 53 6C 6F 74 68 20 61 40 3E | ...@$@<Sloth a@> |
  56. | 40 28 40 2B 40 39 40 29 40 7B 53 6C 6F 74 68 74 | @(@+@9@)@{Slotht |
  57. | 65 78 74 40 7D 0A 40 41 40 3C 45 72 72 6F 72 20 | ext@}.@A@<Error  |
  58. | 72 65 63 6F 76 65 72 79 20 70 6F 69 6E 74 40 3E | recovery point@> |
  59. | 0A 0A 40 24 40 3C 53 6C 6F 74 68 20 62 40 3E 40 | ..@$@<Sloth b@>@ |
  60. | 39 40 29 40 7B 53 6C 6F 74 68 74 65 78 74 40 7D | 9@)@{Slothtext@} |
  61. | 0A 40 41 40 3C 45 72 72 6F 72 20 72 65 63 6F 76 | .@A@<Error recov |
  62. | 65 72 79 20 70 6F 69 6E 74 40 3E 0A 0A 40 24 40 | ery point@>..@$@ |
  63. | 3C 53 6C 6F 74 68 20 63 40 3E 40 28 39 40 29 40 | <Sloth c@>@(9@)@ |
  64. | 7B 53 6C 6F 74 68 74 65 78 74 40 7D 0A 40 41 40 | {Slothtext@}.@A@ |
  65. | 3C 45 72 72 6F 72 20 72 65 63 6F 76 65 72 79 20 | <Error recovery  |
  66. | 70 6F 69 6E 74 40 3E 0A 0A 40 24 40 3C 53 6C 6F | point@>..@$@<Slo |
  67. | 74 68 20 64 40 3E 40 39 40 29 40 7B 53 6C 6F 74 | th d@>@9@)@{Slot |
  68. | 68 74 65 78 74 40 7D 0A 40 41 40 3C 45 72 72 6F | htext@}.@A@<Erro |
  69. | 72 20 72 65 63 6F 76 65 72 79 20 70 6F 69 6E 74 | r recovery point |
  70. | 40 3E 0A 0A 40 24 40 3C 53 6C 6F 74 68 20 65 40 | @>..@$@<Sloth e@ |
  71. | 3E 40 28 40 39 40 29 40 29 40 7B 53 6C 6F 74 68 | >@(@9@)@)@{Sloth |
  72. | 74 65 78 74 40 7D 0A 40 41 40 3C 45 72 72 6F 72 | text@}.@A@<Error |
  73. | 20 72 65 63 6F 76 65 72 79 20 70 6F 69 6E 74 40 |  recovery point@ |
  74. | 3E 0A 0A 0A 0A                                  | >....            |
  75. +-------------------------------------------------+------------------+
  76.  
  77.  
  78. =========================== Start of LINE LIST DUMP ============================
  79.  
  80. Globl Local| Text
  81. -----------+--------------------------------------------------------------------
  82. 00001 00001| PR05: Test the parsing of formal parameter lists.<010>
  83. 00002 00002| <010>
  84. 00003 00003| First trip the parser so we don't get past the parser.<010>
  85. 00004 00004| @><010>
  86. 00005 00005| <010>
  87. 00006 00006| 1. Test macro definition with no formal parameters.<010>
  88. 00007 00007| @$@<Sloth@>@{Slothtext@}<010>
  89. 00008 00008| <010>
  90. 00009 00009| 2. Test macro definition with one formal parameter.<010>
  91. 00010 00010| @$@<Sloth with one@>@(@1@)@{Slothtext@}<010>
  92. 00011 00011| <010>
  93. 00012 00012| 3. Test macro definition with many formal parameters.<010>
  94. 00013 00013| @$@<Sloth with 2@>@(@2@)@{Slothtext@}<010>
  95. 00014 00014| @$@<Sloth with 3@>@(@3@)@{Slothtext@}<010>
  96. 00015 00015| @$@<Sloth with 4@>@(@4@)@{Slothtext@}<010>
  97. 00016 00016| @$@<Sloth with 5@>@(@5@)@{Slothtext@}<010>
  98. 00017 00017| @$@<Sloth with 6@>@(@6@)@{Slothtext@}<010>
  99. 00018 00018| @$@<Sloth with 7@>@(@7@)@{Slothtext@}<010>
  100. 00019 00019| @$@<Sloth with 8@>@(@8@)@{Slothtext@}<010>
  101. 00020 00020| @$@<Sloth with 9@>@(@9@)@{Slothtext@}<010>
  102. 00021 00021| <010>
  103. 00022 00022| 4. Test with syntax errors in the parameter list.<010>
  104. 00023 00023| <010>
  105. 00024 00024| @$@<Sloth a@>@(@+@9@)@{Slothtext@}<010>
  106. 00025 00025| @A@<Error recovery point@><010>
  107. 00026 00026| <010>
  108. 00027 00027| @$@<Sloth b@>@9@)@{Slothtext@}<010>
  109. 00028 00028| @A@<Error recovery point@><010>
  110. 00029 00029| <010>
  111. 00030 00030| @$@<Sloth c@>@(9@)@{Slothtext@}<010>
  112. 00031 00031| @A@<Error recovery point@><010>
  113. 00032 00032| <010>
  114. 00033 00033| @$@<Sloth d@>@9@)@{Slothtext@}<010>
  115. 00034 00034| @A@<Error recovery point@><010>
  116. 00035 00035| <010>
  117. 00036 00036| @$@<Sloth e@>@(@9@)@)@{Slothtext@}<010>
  118. 00037 00037| @A@<Error recovery point@><010>
  119. 00038 00038| <010>
  120. 00039 00039| <010>
  121. 00040 00040| <010>
  122. 00041 00041| <End-Of-File><010>
  123. -----------+--------------------------------------------------------------------
  124. Globl Local| Text
  125.  
  126. ============================ End of LINE LIST DUMP =============================
  127.  
  128.  
  129. =========================== Start of TOKEN LIST DUMP ===========================
  130.  
  131. Summary: There are 191 tokens in the token list.
  132.  
  133. Line[Column]: Token Description
  134. -------------------------------
  135.  
  136. 0001[01]: Text. Text scrap[Grey]="PR05: Test the parsing of formal parameter lists.<010>
  137. <010>
  138. First trip the parser so we don't get past the parser.<010>
  139. "
  140. 0004[01]: @> Close name. 
  141. 0004[03]: Text. Text scrap[Grey]="<010>
  142. <010>
  143. 1. Test macro definition with no formal parameters.<010>
  144. "
  145. 0007[01]: @$ Macro defn. 
  146. 0007[03]: @< Open name. 
  147. 0007[05]: Text. Text scrap[Grey]="Sloth"
  148. 0007[10]: @> Close name. 
  149. 0007[12]: @{ Open defn. 
  150. 0007[14]: Text. Text scrap[Grey]="Slothtext"
  151. 0007[23]: @} Close defn. 
  152. 0007[25]: Text. Text scrap[Grey]="<010>
  153. <010>
  154. 2. Test macro definition with one formal parameter.<010>
  155. "
  156. 0010[01]: @$ Macro defn. 
  157. 0010[03]: @< Open name. 
  158. 0010[05]: Text. Text scrap[Grey]="Sloth with one"
  159. 0010[19]: @> Close name. 
  160. 0010[21]: @( Open param. 
  161. 0010[23]: @n Parameter. Parameterno=1.
  162. 0010[25]: @} Close param. 
  163. 0010[27]: @{ Open defn. 
  164. 0010[29]: Text. Text scrap[Grey]="Slothtext"
  165. 0010[38]: @} Close defn. 
  166. 0010[40]: Text. Text scrap[Grey]="<010>
  167. <010>
  168. 3. Test macro definition with many formal parameters.<010>
  169. "
  170. 0013[01]: @$ Macro defn. 
  171. 0013[03]: @< Open name. 
  172. 0013[05]: Text. Text scrap[Grey]="Sloth with 2"
  173. 0013[17]: @> Close name. 
  174. 0013[19]: @( Open param. 
  175. 0013[21]: @n Parameter. Parameterno=2.
  176. 0013[23]: @} Close param. 
  177. 0013[25]: @{ Open defn. 
  178. 0013[27]: Text. Text scrap[Grey]="Slothtext"
  179. 0013[36]: @} Close defn. 
  180. 0013[38]: Text. Text scrap[White]="<010>
  181. "
  182. 0014[01]: @$ Macro defn. 
  183. 0014[03]: @< Open name. 
  184. 0014[05]: Text. Text scrap[Grey]="Sloth with 3"
  185. 0014[17]: @> Close name. 
  186. 0014[19]: @( Open param. 
  187. 0014[21]: @n Parameter. Parameterno=3.
  188. 0014[23]: @} Close param. 
  189. 0014[25]: @{ Open defn. 
  190. 0014[27]: Text. Text scrap[Grey]="Slothtext"
  191. 0014[36]: @} Close defn. 
  192. 0014[38]: Text. Text scrap[White]="<010>
  193. "
  194. 0015[01]: @$ Macro defn. 
  195. 0015[03]: @< Open name. 
  196. 0015[05]: Text. Text scrap[Grey]="Sloth with 4"
  197. 0015[17]: @> Close name. 
  198. 0015[19]: @( Open param. 
  199. 0015[21]: @n Parameter. Parameterno=4.
  200. 0015[23]: @} Close param. 
  201. 0015[25]: @{ Open defn. 
  202. 0015[27]: Text. Text scrap[Grey]="Slothtext"
  203. 0015[36]: @} Close defn. 
  204. 0015[38]: Text. Text scrap[White]="<010>
  205. "
  206. 0016[01]: @$ Macro defn. 
  207. 0016[03]: @< Open name. 
  208. 0016[05]: Text. Text scrap[Grey]="Sloth with 5"
  209. 0016[17]: @> Close name. 
  210. 0016[19]: @( Open param. 
  211. 0016[21]: @n Parameter. Parameterno=5.
  212. 0016[23]: @} Close param. 
  213. 0016[25]: @{ Open defn. 
  214. 0016[27]: Text. Text scrap[Grey]="Slothtext"
  215. 0016[36]: @} Close defn. 
  216. 0016[38]: Text. Text scrap[White]="<010>
  217. "
  218. 0017[01]: @$ Macro defn. 
  219. 0017[03]: @< Open name. 
  220. 0017[05]: Text. Text scrap[Grey]="Sloth with 6"
  221. 0017[17]: @> Close name. 
  222. 0017[19]: @( Open param. 
  223. 0017[21]: @n Parameter. Parameterno=6.
  224. 0017[23]: @} Close param. 
  225. 0017[25]: @{ Open defn. 
  226. 0017[27]: Text. Text scrap[Grey]="Slothtext"
  227. 0017[36]: @} Close defn. 
  228. 0017[38]: Text. Text scrap[White]="<010>
  229. "
  230. 0018[01]: @$ Macro defn. 
  231. 0018[03]: @< Open name. 
  232. 0018[05]: Text. Text scrap[Grey]="Sloth with 7"
  233. 0018[17]: @> Close name. 
  234. 0018[19]: @( Open param. 
  235. 0018[21]: @n Parameter. Parameterno=7.
  236. 0018[23]: @} Close param. 
  237. 0018[25]: @{ Open defn. 
  238. 0018[27]: Text. Text scrap[Grey]="Slothtext"
  239. 0018[36]: @} Close defn. 
  240. 0018[38]: Text. Text scrap[White]="<010>
  241. "
  242. 0019[01]: @$ Macro defn. 
  243. 0019[03]: @< Open name. 
  244. 0019[05]: Text. Text scrap[Grey]="Sloth with 8"
  245. 0019[17]: @> Close name. 
  246. 0019[19]: @( Open param. 
  247. 0019[21]: @n Parameter. Parameterno=8.
  248. 0019[23]: @} Close param. 
  249. 0019[25]: @{ Open defn. 
  250. 0019[27]: Text. Text scrap[Grey]="Slothtext"
  251. 0019[36]: @} Close defn. 
  252. 0019[38]: Text. Text scrap[White]="<010>
  253. "
  254. 0020[01]: @$ Macro defn. 
  255. 0020[03]: @< Open name. 
  256. 0020[05]: Text. Text scrap[Grey]="Sloth with 9"
  257. 0020[17]: @> Close name. 
  258. 0020[19]: @( Open param. 
  259. 0020[21]: @n Parameter. Parameterno=9.
  260. 0020[23]: @} Close param. 
  261. 0020[25]: @{ Open defn. 
  262. 0020[27]: Text. Text scrap[Grey]="Slothtext"
  263. 0020[36]: @} Close defn. 
  264. 0020[38]: Text. Text scrap[Grey]="<010>
  265. <010>
  266. 4. Test with syntax errors in the parameter list.<010>
  267. <010>
  268. "
  269. 0024[01]: @$ Macro defn. 
  270. 0024[03]: @< Open name. 
  271. 0024[05]: Text. Text scrap[Grey]="Sloth a"
  272. 0024[12]: @> Close name. 
  273. 0024[14]: @( Open param. 
  274. 0024[16]: Text. Text scrap[White]="<010>
  275. "
  276. 0024[18]: @n Parameter. Parameterno=9.
  277. 0024[20]: @} Close param. 
  278. 0024[22]: @{ Open defn. 
  279. 0024[24]: Text. Text scrap[Grey]="Slothtext"
  280. 0024[33]: @} Close defn. 
  281. 0024[35]: Text. Text scrap[White]="<010>
  282. "
  283. 0025[01]: @A New section (Level 1). 
  284. 0025[03]: @< Open name. 
  285. 0025[05]: Text. Text scrap[Grey]="Error recovery point"
  286. 0025[25]: @> Close name. 
  287. 0025[27]: Text. Text scrap[White]="<010>
  288. <010>
  289. "
  290. 0027[01]: @$ Macro defn. 
  291. 0027[03]: @< Open name. 
  292. 0027[05]: Text. Text scrap[Grey]="Sloth b"
  293. 0027[12]: @> Close name. 
  294. 0027[14]: @n Parameter. Parameterno=9.
  295. 0027[16]: @} Close param. 
  296. 0027[18]: @{ Open defn. 
  297. 0027[20]: Text. Text scrap[Grey]="Slothtext"
  298. 0027[29]: @} Close defn. 
  299. 0027[31]: Text. Text scrap[White]="<010>
  300. "
  301. 0028[01]: @A New section (Level 1). 
  302. 0028[03]: @< Open name. 
  303. 0028[05]: Text. Text scrap[Grey]="Error recovery point"
  304. 0028[25]: @> Close name. 
  305. 0028[27]: Text. Text scrap[White]="<010>
  306. <010>
  307. "
  308. 0030[01]: @$ Macro defn. 
  309. 0030[03]: @< Open name. 
  310. 0030[05]: Text. Text scrap[Grey]="Sloth c"
  311. 0030[12]: @> Close name. 
  312. 0030[14]: @( Open param. 
  313. 0030[16]: Text. Text scrap[Grey]="9"
  314. 0030[17]: @} Close param. 
  315. 0030[19]: @{ Open defn. 
  316. 0030[21]: Text. Text scrap[Grey]="Slothtext"
  317. 0030[30]: @} Close defn. 
  318. 0030[32]: Text. Text scrap[White]="<010>
  319. "
  320. 0031[01]: @A New section (Level 1). 
  321. 0031[03]: @< Open name. 
  322. 0031[05]: Text. Text scrap[Grey]="Error recovery point"
  323. 0031[25]: @> Close name. 
  324. 0031[27]: Text. Text scrap[White]="<010>
  325. <010>
  326. "
  327. 0033[01]: @$ Macro defn. 
  328. 0033[03]: @< Open name. 
  329. 0033[05]: Text. Text scrap[Grey]="Sloth d"
  330. 0033[12]: @> Close name. 
  331. 0033[14]: @n Parameter. Parameterno=9.
  332. 0033[16]: @} Close param. 
  333. 0033[18]: @{ Open defn. 
  334. 0033[20]: Text. Text scrap[Grey]="Slothtext"
  335. 0033[29]: @} Close defn. 
  336. 0033[31]: Text. Text scrap[White]="<010>
  337. "
  338. 0034[01]: @A New section (Level 1). 
  339. 0034[03]: @< Open name. 
  340. 0034[05]: Text. Text scrap[Grey]="Error recovery point"
  341. 0034[25]: @> Close name. 
  342. 0034[27]: Text. Text scrap[White]="<010>
  343. <010>
  344. "
  345. 0036[01]: @$ Macro defn. 
  346. 0036[03]: @< Open name. 
  347. 0036[05]: Text. Text scrap[Grey]="Sloth e"
  348. 0036[12]: @> Close name. 
  349. 0036[14]: @( Open param. 
  350. 0036[16]: @n Parameter. Parameterno=9.
  351. 0036[18]: @} Close param. 
  352. 0036[20]: @} Close param. 
  353. 0036[22]: @{ Open defn. 
  354. 0036[24]: Text. Text scrap[Grey]="Slothtext"
  355. 0036[33]: @} Close defn. 
  356. 0036[35]: Text. Text scrap[White]="<010>
  357. "
  358. 0037[01]: @A New section (Level 1). 
  359. 0037[03]: @< Open name. 
  360. 0037[05]: Text. Text scrap[Grey]="Error recovery point"
  361. 0037[25]: @> Close name. 
  362. 0037[27]: Text. Text scrap[White]="<010>
  363. <010>
  364. <010>
  365. <010>
  366. "
  367. 0041[01]: End Of File. 
  368. ============================ End of TOKEN LIST DUMP ============================
  369.  
  370.  
  371. ========================== Start of MACRO TABLE DUMP ===========================
  372.  
  373.  
  374. ------------------- Start of Macro Dump --------------------
  375. Macro Name  : "Sloth"
  376. Defined?    : Yes.
  377. Parameters  : 0
  378. Additive?   : No.
  379. Zero Calls? : No.
  380. Many Calls? : No.
  381. Output File?: No.
  382. Call list   :
  383. Macro body  :
  384.  
  385. --Start of List of Body Parts--
  386. This macro has 1 body part.
  387. Body part 1: Seqnum=1, Pos(L,C)=(7,3), Expression follows:
  388.  
  389. ---- Start of Expression ----
  390.  
  391. ----- Start Text Element -----
  392. Text scrap[Grey]="Slothtext"
  393. ------ End Text Element ------
  394.  
  395. ----- End of Expression -----
  396.  
  397. ---End of List of Body Parts---
  398.  
  399. -------------------- End of Macro Dump ---------------------
  400.  
  401.  
  402.  
  403. ------------------- Start of Macro Dump --------------------
  404. Macro Name  : "Sloth a"
  405. Defined?    : No.
  406. -------------------- End of Macro Dump ---------------------
  407.  
  408.  
  409.  
  410. ------------------- Start of Macro Dump --------------------
  411. Macro Name  : "Sloth b"
  412. Defined?    : Yes.
  413. Parameters  : 0
  414. Additive?   : No.
  415. Zero Calls? : No.
  416. Many Calls? : No.
  417. Output File?: No.
  418. Call list   :
  419. Macro body  :
  420.  
  421. --Start of List of Body Parts--
  422. This macro has 0 body parts.
  423. ---End of List of Body Parts---
  424.  
  425. -------------------- End of Macro Dump ---------------------
  426.  
  427.  
  428.  
  429. ------------------- Start of Macro Dump --------------------
  430. Macro Name  : "Sloth c"
  431. Defined?    : No.
  432. -------------------- End of Macro Dump ---------------------
  433.  
  434.  
  435.  
  436. ------------------- Start of Macro Dump --------------------
  437. Macro Name  : "Sloth d"
  438. Defined?    : Yes.
  439. Parameters  : 0
  440. Additive?   : No.
  441. Zero Calls? : No.
  442. Many Calls? : No.
  443. Output File?: No.
  444. Call list   :
  445. Macro body  :
  446.  
  447. --Start of List of Body Parts--
  448. This macro has 0 body parts.
  449. ---End of List of Body Parts---
  450.  
  451. -------------------- End of Macro Dump ---------------------
  452.  
  453.  
  454.  
  455. ------------------- Start of Macro Dump --------------------
  456. Macro Name  : "Sloth e"
  457. Defined?    : Yes.
  458. Parameters  : 9
  459. Additive?   : No.
  460. Zero Calls? : No.
  461. Many Calls? : No.
  462. Output File?: No.
  463. Call list   :
  464. Macro body  :
  465.  
  466. --Start of List of Body Parts--
  467. This macro has 0 body parts.
  468. ---End of List of Body Parts---
  469.  
  470. -------------------- End of Macro Dump ---------------------
  471.  
  472.  
  473.  
  474. ------------------- Start of Macro Dump --------------------
  475. Macro Name  : "Sloth with 2"
  476. Defined?    : Yes.
  477. Parameters  : 2
  478. Additive?   : No.
  479. Zero Calls? : No.
  480. Many Calls? : No.
  481. Output File?: No.
  482. Call list   :
  483. Macro body  :
  484.  
  485. --Start of List of Body Parts--
  486. This macro has 1 body part.
  487. Body part 1: Seqnum=3, Pos(L,C)=(13,3), Expression follows:
  488.  
  489. ---- Start of Expression ----
  490.  
  491. ----- Start Text Element -----
  492. Text scrap[Grey]="Slothtext"
  493. ------ End Text Element ------
  494.  
  495. ----- End of Expression -----
  496.  
  497. ---End of List of Body Parts---
  498.  
  499. -------------------- End of Macro Dump ---------------------
  500.  
  501.  
  502.  
  503. ------------------- Start of Macro Dump --------------------
  504. Macro Name  : "Sloth with 3"
  505. Defined?    : Yes.
  506. Parameters  : 3
  507. Additive?   : No.
  508. Zero Calls? : No.
  509. Many Calls? : No.
  510. Output File?: No.
  511. Call list   :
  512. Macro body  :
  513.  
  514. --Start of List of Body Parts--
  515. This macro has 1 body part.
  516. Body part 1: Seqnum=4, Pos(L,C)=(14,3), Expression follows:
  517.  
  518. ---- Start of Expression ----
  519.  
  520. ----- Start Text Element -----
  521. Text scrap[Grey]="Slothtext"
  522. ------ End Text Element ------
  523.  
  524. ----- End of Expression -----
  525.  
  526. ---End of List of Body Parts---
  527.  
  528. -------------------- End of Macro Dump ---------------------
  529.  
  530.  
  531.  
  532. ------------------- Start of Macro Dump --------------------
  533. Macro Name  : "Sloth with 4"
  534. Defined?    : Yes.
  535. Parameters  : 4
  536. Additive?   : No.
  537. Zero Calls? : No.
  538. Many Calls? : No.
  539. Output File?: No.
  540. Call list   :
  541. Macro body  :
  542.  
  543. --Start of List of Body Parts--
  544. This macro has 1 body part.
  545. Body part 1: Seqnum=5, Pos(L,C)=(15,3), Expression follows:
  546.  
  547. ---- Start of Expression ----
  548.  
  549. ----- Start Text Element -----
  550. Text scrap[Grey]="Slothtext"
  551. ------ End Text Element ------
  552.  
  553. ----- End of Expression -----
  554.  
  555. ---End of List of Body Parts---
  556.  
  557. -------------------- End of Macro Dump ---------------------
  558.  
  559.  
  560.  
  561. ------------------- Start of Macro Dump --------------------
  562. Macro Name  : "Sloth with 5"
  563. Defined?    : Yes.
  564. Parameters  : 5
  565. Additive?   : No.
  566. Zero Calls? : No.
  567. Many Calls? : No.
  568. Output File?: No.
  569. Call list   :
  570. Macro body  :
  571.  
  572. --Start of List of Body Parts--
  573. This macro has 1 body part.
  574. Body part 1: Seqnum=6, Pos(L,C)=(16,3), Expression follows:
  575.  
  576. ---- Start of Expression ----
  577.  
  578. ----- Start Text Element -----
  579. Text scrap[Grey]="Slothtext"
  580. ------ End Text Element ------
  581.  
  582. ----- End of Expression -----
  583.  
  584. ---End of List of Body Parts---
  585.  
  586. -------------------- End of Macro Dump ---------------------
  587.  
  588.  
  589.  
  590. ------------------- Start of Macro Dump --------------------
  591. Macro Name  : "Sloth with 6"
  592. Defined?    : Yes.
  593. Parameters  : 6
  594. Additive?   : No.
  595. Zero Calls? : No.
  596. Many Calls? : No.
  597. Output File?: No.
  598. Call list   :
  599. Macro body  :
  600.  
  601. --Start of List of Body Parts--
  602. This macro has 1 body part.
  603. Body part 1: Seqnum=7, Pos(L,C)=(17,3), Expression follows:
  604.  
  605. ---- Start of Expression ----
  606.  
  607. ----- Start Text Element -----
  608. Text scrap[Grey]="Slothtext"
  609. ------ End Text Element ------
  610.  
  611. ----- End of Expression -----
  612.  
  613. ---End of List of Body Parts---
  614.  
  615. -------------------- End of Macro Dump ---------------------
  616.  
  617.  
  618.  
  619. ------------------- Start of Macro Dump --------------------
  620. Macro Name  : "Sloth with 7"
  621. Defined?    : Yes.
  622. Parameters  : 7
  623. Additive?   : No.
  624. Zero Calls? : No.
  625. Many Calls? : No.
  626. Output File?: No.
  627. Call list   :
  628. Macro body  :
  629.  
  630. --Start of List of Body Parts--
  631. This macro has 1 body part.
  632. Body part 1: Seqnum=8, Pos(L,C)=(18,3), Expression follows:
  633.  
  634. ---- Start of Expression ----
  635.  
  636. ----- Start Text Element -----
  637. Text scrap[Grey]="Slothtext"
  638. ------ End Text Element ------
  639.  
  640. ----- End of Expression -----
  641.  
  642. ---End of List of Body Parts---
  643.  
  644. -------------------- End of Macro Dump ---------------------
  645.  
  646.  
  647.  
  648. ------------------- Start of Macro Dump --------------------
  649. Macro Name  : "Sloth with 8"
  650. Defined?    : Yes.
  651. Parameters  : 8
  652. Additive?   : No.
  653. Zero Calls? : No.
  654. Many Calls? : No.
  655. Output File?: No.
  656. Call list   :
  657. Macro body  :
  658.  
  659. --Start of List of Body Parts--
  660. This macro has 1 body part.
  661. Body part 1: Seqnum=9, Pos(L,C)=(19,3), Expression follows:
  662.  
  663. ---- Start of Expression ----
  664.  
  665. ----- Start Text Element -----
  666. Text scrap[Grey]="Slothtext"
  667. ------ End Text Element ------
  668.  
  669. ----- End of Expression -----
  670.  
  671. ---End of List of Body Parts---
  672.  
  673. -------------------- End of Macro Dump ---------------------
  674.  
  675.  
  676.  
  677. ------------------- Start of Macro Dump --------------------
  678. Macro Name  : "Sloth with 9"
  679. Defined?    : Yes.
  680. Parameters  : 9
  681. Additive?   : No.
  682. Zero Calls? : No.
  683. Many Calls? : No.
  684. Output File?: No.
  685. Call list   :
  686. Macro body  :
  687.  
  688. --Start of List of Body Parts--
  689. This macro has 1 body part.
  690. Body part 1: Seqnum=10, Pos(L,C)=(20,3), Expression follows:
  691.  
  692. ---- Start of Expression ----
  693.  
  694. ----- Start Text Element -----
  695. Text scrap[Grey]="Slothtext"
  696. ------ End Text Element ------
  697.  
  698. ----- End of Expression -----
  699.  
  700. ---End of List of Body Parts---
  701.  
  702. -------------------- End of Macro Dump ---------------------
  703.  
  704.  
  705.  
  706. ------------------- Start of Macro Dump --------------------
  707. Macro Name  : "Sloth with one"
  708. Defined?    : Yes.
  709. Parameters  : 1
  710. Additive?   : No.
  711. Zero Calls? : No.
  712. Many Calls? : No.
  713. Output File?: No.
  714. Call list   :
  715. Macro body  :
  716.  
  717. --Start of List of Body Parts--
  718. This macro has 1 body part.
  719. Body part 1: Seqnum=2, Pos(L,C)=(10,3), Expression follows:
  720.  
  721. ---- Start of Expression ----
  722.  
  723. ----- Start Text Element -----
  724. Text scrap[Grey]="Slothtext"
  725. ------ End Text Element ------
  726.  
  727. ----- End of Expression -----
  728.  
  729. ---End of List of Body Parts---
  730.  
  731. -------------------- End of Macro Dump ---------------------
  732.  
  733.  
  734.  
  735. =========================== End of MACRO TABLE DUMP ============================
  736.  
  737.  
  738. ========================= Start of DOCUMENT LIST DUMP ==========================
  739.  
  740.  
  741. TEXT COMPONENT: Pos(L,C)=(1,1). 
  742.  
  743. -- Start of Text Scrap List --
  744. Text scrap[Grey]="PR05: Test the parsing of formal parameter lists.<010>
  745. <010>
  746. First trip the parser so we don't get past the parser.<010>
  747. "
  748. --- End of Text Scrap List ---
  749.  
  750.  
  751. TEXT COMPONENT: Pos(L,C)=(4,3). 
  752.  
  753. -- Start of Text Scrap List --
  754. Text scrap[Grey]="<010>
  755. <010>
  756. 1. Test macro definition with no formal parameters.<010>
  757. "
  758. --- End of Text Scrap List ---
  759.  
  760.  
  761. MACRO DEFINITION COMPONENT: Pos(L,C)=(7,1). 
  762. Part 1 of macro @<Sloth@>.
  763.  
  764. TEXT COMPONENT: Pos(L,C)=(7,25). 
  765.  
  766. -- Start of Text Scrap List --
  767. Text scrap[Grey]="<010>
  768. <010>
  769. 2. Test macro definition with one formal parameter.<010>
  770. "
  771. --- End of Text Scrap List ---
  772.  
  773.  
  774. MACRO DEFINITION COMPONENT: Pos(L,C)=(10,1). 
  775. Part 1 of macro @<Sloth with one@>.
  776.  
  777. TEXT COMPONENT: Pos(L,C)=(10,40). 
  778.  
  779. -- Start of Text Scrap List --
  780. Text scrap[Grey]="<010>
  781. <010>
  782. 3. Test macro definition with many formal parameters.<010>
  783. "
  784. --- End of Text Scrap List ---
  785.  
  786.  
  787. MACRO DEFINITION COMPONENT: Pos(L,C)=(13,1). 
  788. Part 1 of macro @<Sloth with 2@>.
  789.  
  790. TEXT COMPONENT: Pos(L,C)=(13,38). 
  791.  
  792. -- Start of Text Scrap List --
  793. Text scrap[White]="<010>
  794. "
  795. --- End of Text Scrap List ---
  796.  
  797.  
  798. MACRO DEFINITION COMPONENT: Pos(L,C)=(14,1). 
  799. Part 1 of macro @<Sloth with 3@>.
  800.  
  801. TEXT COMPONENT: Pos(L,C)=(14,38). 
  802.  
  803. -- Start of Text Scrap List --
  804. Text scrap[White]="<010>
  805. "
  806. --- End of Text Scrap List ---
  807.  
  808.  
  809. MACRO DEFINITION COMPONENT: Pos(L,C)=(15,1). 
  810. Part 1 of macro @<Sloth with 4@>.
  811.  
  812. TEXT COMPONENT: Pos(L,C)=(15,38). 
  813.  
  814. -- Start of Text Scrap List --
  815. Text scrap[White]="<010>
  816. "
  817. --- End of Text Scrap List ---
  818.  
  819.  
  820. MACRO DEFINITION COMPONENT: Pos(L,C)=(16,1). 
  821. Part 1 of macro @<Sloth with 5@>.
  822.  
  823. TEXT COMPONENT: Pos(L,C)=(16,38). 
  824.  
  825. -- Start of Text Scrap List --
  826. Text scrap[White]="<010>
  827. "
  828. --- End of Text Scrap List ---
  829.  
  830.  
  831. MACRO DEFINITION COMPONENT: Pos(L,C)=(17,1). 
  832. Part 1 of macro @<Sloth with 6@>.
  833.  
  834. TEXT COMPONENT: Pos(L,C)=(17,38). 
  835.  
  836. -- Start of Text Scrap List --
  837. Text scrap[White]="<010>
  838. "
  839. --- End of Text Scrap List ---
  840.  
  841.  
  842. MACRO DEFINITION COMPONENT: Pos(L,C)=(18,1). 
  843. Part 1 of macro @<Sloth with 7@>.
  844.  
  845. TEXT COMPONENT: Pos(L,C)=(18,38). 
  846.  
  847. -- Start of Text Scrap List --
  848. Text scrap[White]="<010>
  849. "
  850. --- End of Text Scrap List ---
  851.  
  852.  
  853. MACRO DEFINITION COMPONENT: Pos(L,C)=(19,1). 
  854. Part 1 of macro @<Sloth with 8@>.
  855.  
  856. TEXT COMPONENT: Pos(L,C)=(19,38). 
  857.  
  858. -- Start of Text Scrap List --
  859. Text scrap[White]="<010>
  860. "
  861. --- End of Text Scrap List ---
  862.  
  863.  
  864. MACRO DEFINITION COMPONENT: Pos(L,C)=(20,1). 
  865. Part 1 of macro @<Sloth with 9@>.
  866.  
  867. TEXT COMPONENT: Pos(L,C)=(20,38). 
  868.  
  869. -- Start of Text Scrap List --
  870. Text scrap[Grey]="<010>
  871. <010>
  872. 4. Test with syntax errors in the parameter list.<010>
  873. <010>
  874. "
  875. --- End of Text Scrap List ---
  876.  
  877.  
  878. TYPESETTER DIRECTIVE COMPONENT: 
  879.    Section "1", Section name="Error recovery point".
  880.  
  881. TEXT COMPONENT: Pos(L,C)=(25,27). 
  882.  
  883. -- Start of Text Scrap List --
  884. Text scrap[White]="<010>
  885. <010>
  886. "
  887. --- End of Text Scrap List ---
  888.  
  889.  
  890. TYPESETTER DIRECTIVE COMPONENT: 
  891.    Section "2", Section name="Error recovery point".
  892.  
  893. TEXT COMPONENT: Pos(L,C)=(28,27). 
  894.  
  895. -- Start of Text Scrap List --
  896. Text scrap[White]="<010>
  897. <010>
  898. "
  899. --- End of Text Scrap List ---
  900.  
  901.  
  902. TYPESETTER DIRECTIVE COMPONENT: 
  903.    Section "3", Section name="Error recovery point".
  904.  
  905. TEXT COMPONENT: Pos(L,C)=(31,27). 
  906.  
  907. -- Start of Text Scrap List --
  908. Text scrap[White]="<010>
  909. <010>
  910. "
  911. --- End of Text Scrap List ---
  912.  
  913.  
  914. TYPESETTER DIRECTIVE COMPONENT: 
  915.    Section "4", Section name="Error recovery point".
  916.  
  917. TEXT COMPONENT: Pos(L,C)=(34,27). 
  918.  
  919. -- Start of Text Scrap List --
  920. Text scrap[White]="<010>
  921. <010>
  922. "
  923. --- End of Text Scrap List ---
  924.  
  925.  
  926. TYPESETTER DIRECTIVE COMPONENT: 
  927.    Section "5", Section name="Error recovery point".
  928.  
  929. TEXT COMPONENT: Pos(L,C)=(37,27). 
  930.  
  931. -- Start of Text Scrap List --
  932. Text scrap[White]="<010>
  933. <010>
  934. <010>
  935. <010>
  936. "
  937. --- End of Text Scrap List ---
  938.  
  939.  
  940. ========================== End of DOCUMENT LIST DUMP ===========================
  941.  
  942.  
  943. Global Local| Input File
  944. ------------+-------------------------------------------------------------------
  945.      1     1| PR05: Test the parsing of formal parameter lists.
  946.      2     2| 
  947.      3     3| First trip the parser so we don't get past the parser.
  948.      4     4| @>
  949.        Error|.^The parser was at the top level and was expecting
  950.             |.^one of: {Directive, Text, Macro definition, EOF}.
  951.      5     5| 
  952.      6     6| 1. Test macro definition with no formal parameters.
  953.      7     7| @$@<Sloth@>@{Slothtext@}
  954.      8     8| 
  955.      9     9| 2. Test macro definition with one formal parameter.
  956.     10    10| @$@<Sloth with one@>@(@1@)@{Slothtext@}
  957.     11    11| 
  958.     12    12| 3. Test macro definition with many formal parameters.
  959.     13    13| @$@<Sloth with 2@>@(@2@)@{Slothtext@}
  960.     14    14| @$@<Sloth with 3@>@(@3@)@{Slothtext@}
  961.     15    15| @$@<Sloth with 4@>@(@4@)@{Slothtext@}
  962.     16    16| @$@<Sloth with 5@>@(@5@)@{Slothtext@}
  963.     17    17| @$@<Sloth with 6@>@(@6@)@{Slothtext@}
  964.     18    18| @$@<Sloth with 7@>@(@7@)@{Slothtext@}
  965.     19    19| @$@<Sloth with 8@>@(@8@)@{Slothtext@}
  966.     20    20| @$@<Sloth with 9@>@(@9@)@{Slothtext@}
  967.     21    21| 
  968.     22    22| 4. Test with syntax errors in the parameter list.
  969.     23    23| 
  970.     24    24| @$@<Sloth a@>@(@+@9@)@{Slothtext@}
  971.        Error|................^Expecting one of [@1..@9].
  972.             |................^Skipping after error to the next major construct...
  973.     25    25| @A@<Error recovery point@>
  974.             |.^...skipped to here after the error.
  975.     26    26| 
  976.     27    27| @$@<Sloth b@>@9@)@{Slothtext@}
  977.        Error|..............^Expecting '@{'.
  978.             |..............^Skipping after error to the next major construct...
  979.     28    28| @A@<Error recovery point@>
  980.             |.^...skipped to here after the error.
  981.     29    29| 
  982.     30    30| @$@<Sloth c@>@(9@)@{Slothtext@}
  983.        Error|................^Expecting one of [@1..@9].
  984.             |................^Skipping after error to the next major construct...
  985.     31    31| @A@<Error recovery point@>
  986.             |.^...skipped to here after the error.
  987.     32    32| 
  988.     33    33| @$@<Sloth d@>@9@)@{Slothtext@}
  989.        Error|..............^Expecting '@{'.
  990.             |..............^Skipping after error to the next major construct...
  991.     34    34| @A@<Error recovery point@>
  992.             |.^...skipped to here after the error.
  993.     35    35| 
  994.     36    36| @$@<Sloth e@>@(@9@)@)@{Slothtext@}
  995.        Error|....................^Expecting '@{'.
  996.             |....................^Skipping after error to the next major construct...
  997.     37    37| @A@<Error recovery point@>
  998.             |.^...skipped to here after the error.
  999.     38    38| 
  1000.     39    39| 
  1001.     40    40| 
  1002.             | <End-Of-File>
  1003. ------------+-------------------------------------------------------------------
  1004.  
  1005. There were 6 Errors.
  1006.