home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1994 March / Source_Code_CD-ROM_Walnut_Creek_March_1994.iso / compsrcs / unix / volume26 / funnlweb / part11 < prev    next >
Encoding:
Text File  |  1993-04-10  |  109.0 KB  |  2,796 lines

  1. Newsgroups: comp.sources.unix
  2. From: ross@spam.adelaide.edu.au (Ross Williams)
  3. Subject: v26i131: funnelweb - a tool for literate programming in C, Part11/20
  4. Sender: unix-sources-moderator@vix.com
  5. Approved: paul@vix.com
  6.  
  7. Submitted-By: ross@spam.adelaide.edu.au (Ross Williams)
  8. Posting-Number: Volume 26, Issue 131
  9. Archive-Name: funnelweb/part11
  10.  
  11. #! /bin/sh
  12. # This is a shell archive.  Remove anything before this line, then unpack
  13. # it by saving it into a file and typing "sh file".  To overwrite existing
  14. # files, type "sh file -c".  You can also feed this as standard input via
  15. # unshar, or by typing "sh <file", e.g..  If this archive is complete, you
  16. # will see the following message at the end:
  17. #        "End of archive 11 (of 20)."
  18. # Contents:  answers/pr04.lis answers/pr06.lis answers/wv03.tex
  19. #   hackman/h_cha.tex sources/help_gnu.ctx
  20. # Wrapped by vixie@gw.home.vix.com on Sun Apr 11 11:00:26 1993
  21. PATH=/bin:/usr/bin:/usr/ucb ; export PATH
  22. if test -f 'answers/pr04.lis' -a "${1}" != "-c" ; then 
  23.   echo shar: Will not clobber existing file \"'answers/pr04.lis'\"
  24. else
  25. echo shar: Extracting \"'answers/pr04.lis'\" \(21256 characters\)
  26. sed "s/^X//" >'answers/pr04.lis' <<'END_OF_FILE'
  27. XFUNNELWEB LISTING FILE
  28. X======================
  29. X
  30. Dump of mapped file "<<Suppressed>>".
  31. X
  32. MEMORY DUMP OF MAPPED FILE
  33. X==========================
  34. X
  35. X+-------------------------------------------------+------------------+
  36. X| 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F | 0123456789ABCDEF |
  37. X+-------------------------------------------------+------------------+
  38. X| 50 52 30 34 3A 20 54 65 73 74 20 74 68 65 20 64 | PR04: Test the d |
  39. X| 65 66 69 6E 69 74 69 6F 6E 20 6F 66 20 6F 72 64 | efinition of ord |
  40. X| 69 6E 61 72 79 20 6D 61 63 72 6F 73 2E 0A 0A 31 | inary macros...1 |
  41. X| 2E 20 54 65 73 74 20 61 6E 20 6F 72 64 69 6E 61 | . Test an ordina |
  42. X| 72 79 20 6D 61 63 72 6F 20 64 65 66 69 6E 69 74 | ry macro definit |
  43. X| 69 6F 6E 2E 0A 40 24 40 3C 4F 72 64 69 6E 61 72 | ion..@$@<Ordinar |
  44. X| 79 40 3E 40 7B 54 68 65 20 74 65 78 74 20 6F 66 | y@>@{The text of |
  45. X| 20 6F 72 64 69 6E 61 72 79 40 7D 0A 0A 32 2E 20 |  ordinary@}..2.  |
  46. X| 54 65 73 74 20 61 6E 20 6F 72 64 69 6E 61 72 79 | Test an ordinary |
  47. X| 20 64 65 66 69 6E 69 74 69 6F 6E 20 75 73 69 6E |  definition usin |
  48. X| 67 20 61 20 71 75 69 63 6B 6E 61 6D 65 2E 0A 40 | g a quickname..@ |
  49. X| 24 40 23 7C 40 7B 54 68 65 20 74 65 78 74 20 6F | $@#|@{The text o |
  50. X| 66 20 6F 72 64 69 6E 61 72 79 40 7D 0A 0A 33 2E | f ordinary@}..3. |
  51. X| 20 54 65 73 74 20 61 20 6E 61 6D 65 20 74 68 61 |  Test a name tha |
  52. X| 74 20 69 6E 63 6C 75 64 65 73 20 45 4F 4C 2E 0A | t includes EOL.. |
  53. X| 40 24 40 3C 54 68 69 73 20 6E 61 6D 65 20 69 73 | @$@<This name is |
  54. X| 20 69 6C 6C 65 67 61 6C 20 62 65 63 61 75 73 65 |  illegal because |
  55. X| 0A 69 74 20 63 72 6F 73 73 65 73 20 61 20 6C 69 | .it crosses a li |
  56. X| 6F 6E 40 3E 40 7B 41 6E 64 20 70 65 6F 70 6C 65 | on@>@{And people |
  57. X| 20 77 68 6F 20 63 72 6F 73 73 20 6C 69 6F 6E 73 |  who cross lions |
  58. X| 20 74 65 6E 64 20 74 6F 20 67 65 74 20 65 61 74 |  tend to get eat |
  59. X| 65 6E 2E 40 7D 0A 40 41 40 3C 45 72 72 6F 72 20 | en.@}.@A@<Error  |
  60. X| 52 65 63 6F 76 65 72 79 20 50 6F 69 6E 74 40 3E | Recovery Point@> |
  61. X| 0A 0A 34 2E 20 54 65 73 74 20 74 68 65 20 6D 69 | ..4. Test the mi |
  62. X| 6E 69 6D 75 6D 20 6C 65 6E 67 74 68 20 6E 61 6D | nimum length nam |
  63. X| 65 20 28 74 68 65 20 65 6D 70 74 79 20 6E 61 6D | e (the empty nam |
  64. X| 65 29 2E 0A 40 24 40 3C 40 3E 40 7B 54 68 65 20 | e)..@$@<@>@{The  |
  65. X| 65 6D 70 74 79 20 6D 61 63 72 6F 20 6E 61 6D 65 | empty macro name |
  66. X| 20 69 73 20 71 75 69 74 65 20 6C 65 67 61 6C 20 |  is quite legal  |
  67. X| 69 6E 20 46 75 6E 6E 65 6C 57 65 62 2E 40 7D 0A | in FunnelWeb.@}. |
  68. X| 0A 35 2E 20 54 65 73 74 20 61 20 6E 61 6D 65 20 | .5. Test a name  |
  69. X| 61 74 20 74 68 65 20 6D 61 78 69 6D 75 6D 20 6E | at the maximum n |
  70. X| 61 6D 65 20 6C 65 6E 67 74 68 20 6C 69 6D 69 74 | ame length limit |
  71. X| 20 28 38 30 29 2E 0A 4F 4E 6C 79 20 74 68 65 20 |  (80)..ONly the  |
  72. X| 73 65 63 6F 6E 64 20 6F 66 20 74 68 65 20 74 77 | second of the tw |
  73. X| 6F 20 6D 61 63 72 6F 73 20 73 68 6F 75 6C 64 20 | o macros should  |
  74. X| 67 65 6E 65 72 61 74 65 20 61 6E 20 65 72 72 6F | generate an erro |
  75. X| 72 2E 0A 40 70 20 6D 61 78 69 6D 75 6D 5F 69 6E | r..@p maximum_in |
  76. X| 70 75 74 5F 6C 69 6E 65 5F 6C 65 6E 67 74 68 20 | put_line_length  |
  77. X| 3D 20 31 30 30 0A 40 24 40 3C 31 32 33 34 35 36 | = 100.@$@<123456 |
  78. X| 37 38 39 30 31 32 33 34 35 36 37 38 39 30 31 32 | 7890123456789012 |
  79. X| 33 34 35 36 37 38 39 30 31 32 33 34 35 36 37 38 | 3456789012345678 |
  80. X| 39 30 31 32 33 34 35 36 37 38 39 30 31 32 33 34 | 9012345678901234 |
  81. X| 35 36 37 38 39 30 31 32 33 34 35 36 37 38 39 30 | 5678901234567890 |
  82. X| 31 32 33 34 35 36 37 38 39 30 40 3E 40 7B 40 7D | 1234567890@>@{@} |
  83. X| 0A 40 24 40 3C 31 32 33 34 35 36 37 38 39 30 31 | .@$@<12345678901 |
  84. X| 32 33 34 35 36 37 38 39 30 31 32 33 34 35 36 37 | 2345678901234567 |
  85. X| 38 39 30 31 32 33 34 35 36 37 38 39 30 31 32 33 | 8901234567890123 |
  86. X| 34 35 36 37 38 39 30 31 32 33 34 35 36 37 38 39 | 4567890123456789 |
  87. X| 30 31 32 33 34 35 36 37 38 39 30 31 32 33 34 35 | 0123456789012345 |
  88. X| 36 37 38 39 30 31 40 3E 40 7B 40 7D 0A 40 41 40 | 678901@>@{@}.@A@ |
  89. X| 3C 45 72 72 6F 72 20 52 65 63 6F 76 65 72 79 20 | <Error Recovery  |
  90. X| 50 6F 69 6E 74 40 3E 0A 0A 36 2E 20 54 65 73 74 | Point@>..6. Test |
  91. X| 20 6E 61 6D 65 73 20 77 69 74 68 20 61 6C 6C 20 |  names with all  |
  92. X| 6C 65 67 61 6C 20 63 68 61 72 61 63 74 65 72 73 | legal characters |
  93. X| 2E 20 54 68 65 72 65 20 73 68 6F 75 6C 64 20 62 | . There should b |
  94. X| 65 20 6E 6F 20 65 72 72 6F 72 73 2E 0A 40 24 40 | e no errors..@$@ |
  95. X| 3C 20 21 22 23 24 25 27 28 29 2A 2B 2C 2D 2E 2F | < !"#$%'()*+,-./ |
  96. X| 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F | 0123456789:;<=>? |
  97. X| 40 3E 40 7B 40 7D 0A 40 24 40 3C 41 42 43 44 45 | @>@{@}.@$@<ABCDE |
  98. X| 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 | FGHIJKLMNOPQRSTU |
  99. X| 56 57 58 59 5A 5B 5C 5D 5E 5F 60 40 3E 40 7B 40 | VWXYZ[\]^_`@>@{@ |
  100. X| 7D 0A 40 24 40 3C 61 62 63 64 65 66 67 68 69 6A | }.@$@<abcdefghij |
  101. X| 6B 6C 6D 6E 6F 70 71 72 73 74 75 76 77 78 79 7A | klmnopqrstuvwxyz |
  102. X| 7B 7C 7D 7E 40 3E 40 7B 40 7D 0A 0A 37 2E 20 54 | {|}~@>@{@}..7. T |
  103. X| 65 73 74 20 61 20 6E 61 6D 65 20 74 68 61 74 20 | est a name that  |
  104. X| 68 61 73 20 69 6E 73 65 72 74 65 64 20 74 65 78 | has inserted tex |
  105. X| 74 20 73 65 71 75 65 6E 63 65 73 2E 0A 0A 40 24 | t sequences...@$ |
  106. X| 40 3C 40 5E 44 28 30 36 35 29 40 40 40 3E 3D 3D | @<@^D(065)@@@>== |
  107. X| 40 7B 40 7D 0A 0A 0A                            | @{@}...          |
  108. X+-------------------------------------------------+------------------+
  109. X
  110. X
  111. X=========================== Start of LINE LIST DUMP ============================
  112. X
  113. Globl Local| Text
  114. X-----------+--------------------------------------------------------------------
  115. X00001 00001| PR04: Test the definition of ordinary macros.<010>
  116. X00002 00002| <010>
  117. X00003 00003| 1. Test an ordinary macro definition.<010>
  118. X00004 00004| @$@<Ordinary@>@{The text of ordinary@}<010>
  119. X00005 00005| <010>
  120. X00006 00006| 2. Test an ordinary definition using a quickname.<010>
  121. X00007 00007| @$@#|@{The text of ordinary@}<010>
  122. X00008 00008| <010>
  123. X00009 00009| 3. Test a name that includes EOL.<010>
  124. X00010 00010| @$@<This name is illegal because<010>
  125. X00011 00011| it crosses a lion@>@{And people who cross lions tend to get eaten.@}<010>
  126. X00012 00012| @A@<Error Recovery Point@><010>
  127. X00013 00013| <010>
  128. X00014 00014| 4. Test the minimum length name (the empty name).<010>
  129. X00015 00015| @$@<@>@{The empty macro name is quite legal in FunnelWeb.@}<010>
  130. X00016 00016| <010>
  131. X00017 00017| 5. Test a name at the maximum name length limit (80).<010>
  132. X00018 00018| ONly the second of the two macros should generate an error.<010>
  133. X00019 00019| @p maximum_input_line_length = 100<010>
  134. X00020 00020| @$@<12345678901234567890123456789012345678901234567890123456789012345678901234567890@>@{@}<010>
  135. X00021 00021| @$@<123456789012345678901234567890123456789012345678901234567890123456789012345678901@>@{@}<010>
  136. X00022 00022| @A@<Error Recovery Point@><010>
  137. X00023 00023| <010>
  138. X00024 00024| 6. Test names with all legal characters. There should be no errors.<010>
  139. X00025 00025| @$@< !"#$%'()*+,-./0123456789:;<=>?@>@{@}<010>
  140. X00026 00026| @$@<ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`@>@{@}<010>
  141. X00027 00027| @$@<abcdefghijklmnopqrstuvwxyz{|}~@>@{@}<010>
  142. X00028 00028| <010>
  143. X00029 00029| 7. Test a name that has inserted text sequences.<010>
  144. X00030 00030| <010>
  145. X00031 00031| @$@<@^D(065)@@@>==@{@}<010>
  146. X00032 00032| <010>
  147. X00033 00033| <010>
  148. X00034 00034| <End-Of-File><010>
  149. X-----------+--------------------------------------------------------------------
  150. Globl Local| Text
  151. X
  152. X============================ End of LINE LIST DUMP =============================
  153. X
  154. X
  155. X=========================== Start of TOKEN LIST DUMP ===========================
  156. X
  157. Summary: There are 85 tokens in the token list.
  158. X
  159. Line[Column]: Token Description
  160. X-------------------------------
  161. X
  162. X0001[01]: Text. Text scrap[Grey]="PR04: Test the definition of ordinary macros.<010>
  163. X<010>
  164. X1. Test an ordinary macro definition.<010>
  165. X"
  166. X0004[01]: @$ Macro defn. 
  167. X0004[03]: @< Open name. 
  168. X0004[05]: Text. Text scrap[Grey]="Ordinary"
  169. X0004[13]: @> Close name. 
  170. X0004[15]: @{ Open defn. 
  171. X0004[17]: Text. Text scrap[Grey]="The text of ordinary"
  172. X0004[37]: @} Close defn. 
  173. X0004[39]: Text. Text scrap[Grey]="<010>
  174. X<010>
  175. X2. Test an ordinary definition using a quickname.<010>
  176. X"
  177. X0007[01]: @$ Macro defn. 
  178. X0007[03]: @# Name. Character='|'.
  179. X0007[06]: @{ Open defn. 
  180. X0007[08]: Text. Text scrap[Grey]="The text of ordinary"
  181. X0007[28]: @} Close defn. 
  182. X0007[30]: Text. Text scrap[Grey]="<010>
  183. X<010>
  184. X3. Test a name that includes EOL.<010>
  185. X"
  186. X0010[01]: @$ Macro defn. 
  187. X0010[03]: @< Open name. 
  188. X0010[05]: Text. Text scrap[Grey]="This name is illegal because<010>
  189. it crosses a lion"
  190. X0011[18]: @> Close name. 
  191. X0011[20]: @{ Open defn. 
  192. X0011[22]: Text. Text scrap[Grey]="And people who cross lions tend to get eaten."
  193. X0011[67]: @} Close defn. 
  194. X0011[69]: Text. Text scrap[White]="<010>
  195. X"
  196. X0012[01]: @A New section (Level 1). 
  197. X0012[03]: @< Open name. 
  198. X0012[05]: Text. Text scrap[Grey]="Error Recovery Point"
  199. X0012[25]: @> Close name. 
  200. X0012[27]: Text. Text scrap[Grey]="<010>
  201. X<010>
  202. X4. Test the minimum length name (the empty name).<010>
  203. X"
  204. X0015[01]: @$ Macro defn. 
  205. X0015[03]: @< Open name. 
  206. X0015[05]: @> Close name. 
  207. X0015[07]: @{ Open defn. 
  208. X0015[09]: Text. Text scrap[Grey]="The empty macro name is quite legal in FunnelWeb."
  209. X0015[58]: @} Close defn. 
  210. X0015[60]: Text. Text scrap[Grey]="<010>
  211. X<010>
  212. X5. Test a name at the maximum name length limit (80).<010>
  213. ONly the second of the two macros should generate an error.<010>
  214. X"
  215. X0020[01]: @$ Macro defn. 
  216. X0020[03]: @< Open name. 
  217. X0020[05]: Text. Text scrap[Grey]="12345678901234567890123456789012345678901234567890123456789012345678901234567890"
  218. X0020[85]: @> Close name. 
  219. X0020[87]: @{ Open defn. 
  220. X0020[89]: @} Close defn. 
  221. X0020[91]: Text. Text scrap[White]="<010>
  222. X"
  223. X0021[01]: @$ Macro defn. 
  224. X0021[03]: @< Open name. 
  225. X0021[05]: Text. Text scrap[Grey]="123456789012345678901234567890123456789012345678901234567890123456789012345678901"
  226. X0021[86]: @> Close name. 
  227. X0021[88]: @{ Open defn. 
  228. X0021[90]: @} Close defn. 
  229. X0021[92]: Text. Text scrap[White]="<010>
  230. X"
  231. X0022[01]: @A New section (Level 1). 
  232. X0022[03]: @< Open name. 
  233. X0022[05]: Text. Text scrap[Grey]="Error Recovery Point"
  234. X0022[25]: @> Close name. 
  235. X0022[27]: Text. Text scrap[Grey]="<010>
  236. X<010>
  237. X6. Test names with all legal characters. There should be no errors.<010>
  238. X"
  239. X0025[01]: @$ Macro defn. 
  240. X0025[03]: @< Open name. 
  241. X0025[05]: Text. Text scrap[Grey]=" !"#$%'()*+,-./0123456789:;<=>?"
  242. X0025[36]: @> Close name. 
  243. X0025[38]: @{ Open defn. 
  244. X0025[40]: @} Close defn. 
  245. X0025[42]: Text. Text scrap[White]="<010>
  246. X"
  247. X0026[01]: @$ Macro defn. 
  248. X0026[03]: @< Open name. 
  249. X0026[05]: Text. Text scrap[Grey]="ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`"
  250. X0026[37]: @> Close name. 
  251. X0026[39]: @{ Open defn. 
  252. X0026[41]: @} Close defn. 
  253. X0026[43]: Text. Text scrap[White]="<010>
  254. X"
  255. X0027[01]: @$ Macro defn. 
  256. X0027[03]: @< Open name. 
  257. X0027[05]: Text. Text scrap[Grey]="abcdefghijklmnopqrstuvwxyz{|}~"
  258. X0027[35]: @> Close name. 
  259. X0027[37]: @{ Open defn. 
  260. X0027[39]: @} Close defn. 
  261. X0027[41]: Text. Text scrap[Grey]="<010>
  262. X<010>
  263. X7. Test a name that has inserted text sequences.<010>
  264. X<010>
  265. X"
  266. X0031[01]: @$ Macro defn. 
  267. X0031[03]: @< Open name. 
  268. X0031[05]: Text. Text scrap[Grey]="A"
  269. X0031[13]: Text. Text scrap[Grey]="@"
  270. X0031[15]: @> Close name. 
  271. X0031[17]: Text. Text scrap[Grey]="=="
  272. X0031[19]: @{ Open defn. 
  273. X0031[21]: @} Close defn. 
  274. X0031[23]: Text. Text scrap[White]="<010>
  275. X<010>
  276. X<010>
  277. X"
  278. X0034[01]: End Of File. 
  279. X============================ End of TOKEN LIST DUMP ============================
  280. X
  281. X
  282. X========================== Start of MACRO TABLE DUMP ===========================
  283. X
  284. X
  285. X------------------- Start of Macro Dump --------------------
  286. Macro Name  : ""
  287. Defined?    : Yes.
  288. Parameters  : 0
  289. Additive?   : No.
  290. Zero Calls? : No.
  291. Many Calls? : No.
  292. Output File?: No.
  293. Call list   :
  294. Macro body  :
  295. X
  296. X--Start of List of Body Parts--
  297. This macro has 1 body part.
  298. Body part 1: Seqnum=3, Pos(L,C)=(15,3), Expression follows:
  299. X
  300. X---- Start of Expression ----
  301. X
  302. X----- Start Text Element -----
  303. Text scrap[Grey]="The empty macro name is quite legal in FunnelWeb."
  304. X------ End Text Element ------
  305. X
  306. X----- End of Expression -----
  307. X
  308. X---End of List of Body Parts---
  309. X
  310. X-------------------- End of Macro Dump ---------------------
  311. X
  312. X
  313. X
  314. X------------------- Start of Macro Dump --------------------
  315. Macro Name  : " !"#$%'()*+,-./0123456789:;<=>?"
  316. Defined?    : Yes.
  317. Parameters  : 0
  318. Additive?   : No.
  319. Zero Calls? : No.
  320. Many Calls? : No.
  321. Output File?: No.
  322. Call list   :
  323. Macro body  :
  324. X
  325. X--Start of List of Body Parts--
  326. This macro has 1 body part.
  327. Body part 1: Seqnum=5, Pos(L,C)=(25,3), Expression follows:
  328. X
  329. X---- Start of Expression ----
  330. X----- End of Expression -----
  331. X
  332. X---End of List of Body Parts---
  333. X
  334. X-------------------- End of Macro Dump ---------------------
  335. X
  336. X
  337. X
  338. X------------------- Start of Macro Dump --------------------
  339. Macro Name  : "12345678901234567890123456789012345678901234567890123456789012345678901234567890"
  340. Defined?    : Yes.
  341. Parameters  : 0
  342. Additive?   : No.
  343. Zero Calls? : No.
  344. Many Calls? : No.
  345. Output File?: No.
  346. Call list   :
  347. Macro body  :
  348. X
  349. X--Start of List of Body Parts--
  350. This macro has 1 body part.
  351. Body part 1: Seqnum=4, Pos(L,C)=(20,3), Expression follows:
  352. X
  353. X---- Start of Expression ----
  354. X----- End of Expression -----
  355. X
  356. X---End of List of Body Parts---
  357. X
  358. X-------------------- End of Macro Dump ---------------------
  359. X
  360. X
  361. X
  362. X------------------- Start of Macro Dump --------------------
  363. Macro Name  : "A@"
  364. Defined?    : Yes.
  365. Parameters  : 0
  366. Additive?   : No.
  367. Zero Calls? : No.
  368. Many Calls? : No.
  369. Output File?: No.
  370. Call list   :
  371. Macro body  :
  372. X
  373. X--Start of List of Body Parts--
  374. This macro has 1 body part.
  375. Body part 1: Seqnum=8, Pos(L,C)=(31,3), Expression follows:
  376. X
  377. X---- Start of Expression ----
  378. X----- End of Expression -----
  379. X
  380. X---End of List of Body Parts---
  381. X
  382. X-------------------- End of Macro Dump ---------------------
  383. X
  384. X
  385. X
  386. X------------------- Start of Macro Dump --------------------
  387. Macro Name  : "ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`"
  388. Defined?    : Yes.
  389. Parameters  : 0
  390. Additive?   : No.
  391. Zero Calls? : No.
  392. Many Calls? : No.
  393. Output File?: No.
  394. Call list   :
  395. Macro body  :
  396. X
  397. X--Start of List of Body Parts--
  398. This macro has 1 body part.
  399. Body part 1: Seqnum=6, Pos(L,C)=(26,3), Expression follows:
  400. X
  401. X---- Start of Expression ----
  402. X----- End of Expression -----
  403. X
  404. X---End of List of Body Parts---
  405. X
  406. X-------------------- End of Macro Dump ---------------------
  407. X
  408. X
  409. X
  410. X------------------- Start of Macro Dump --------------------
  411. Macro Name  : "Ordinary"
  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. X
  421. X--Start of List of Body Parts--
  422. This macro has 1 body part.
  423. Body part 1: Seqnum=1, Pos(L,C)=(4,3), Expression follows:
  424. X
  425. X---- Start of Expression ----
  426. X
  427. X----- Start Text Element -----
  428. Text scrap[Grey]="The text of ordinary"
  429. X------ End Text Element ------
  430. X
  431. X----- End of Expression -----
  432. X
  433. X---End of List of Body Parts---
  434. X
  435. X-------------------- End of Macro Dump ---------------------
  436. X
  437. X
  438. X
  439. X------------------- Start of Macro Dump --------------------
  440. Macro Name  : "abcdefghijklmnopqrstuvwxyz{|}~"
  441. Defined?    : Yes.
  442. Parameters  : 0
  443. Additive?   : No.
  444. Zero Calls? : No.
  445. Many Calls? : No.
  446. Output File?: No.
  447. Call list   :
  448. Macro body  :
  449. X
  450. X--Start of List of Body Parts--
  451. This macro has 1 body part.
  452. Body part 1: Seqnum=7, Pos(L,C)=(27,3), Expression follows:
  453. X
  454. X---- Start of Expression ----
  455. X----- End of Expression -----
  456. X
  457. X---End of List of Body Parts---
  458. X
  459. X-------------------- End of Macro Dump ---------------------
  460. X
  461. X
  462. X
  463. X------------------- Start of Macro Dump --------------------
  464. Macro Name  : "|"
  465. Defined?    : Yes.
  466. Parameters  : 0
  467. Additive?   : No.
  468. Zero Calls? : No.
  469. Many Calls? : No.
  470. Output File?: No.
  471. Call list   :
  472. Macro body  :
  473. X
  474. X--Start of List of Body Parts--
  475. This macro has 1 body part.
  476. Body part 1: Seqnum=2, Pos(L,C)=(7,3), Expression follows:
  477. X
  478. X---- Start of Expression ----
  479. X
  480. X----- Start Text Element -----
  481. Text scrap[Grey]="The text of ordinary"
  482. X------ End Text Element ------
  483. X
  484. X----- End of Expression -----
  485. X
  486. X---End of List of Body Parts---
  487. X
  488. X-------------------- End of Macro Dump ---------------------
  489. X
  490. X
  491. X
  492. X=========================== End of MACRO TABLE DUMP ============================
  493. X
  494. X
  495. X========================= Start of DOCUMENT LIST DUMP ==========================
  496. X
  497. X
  498. TEXT COMPONENT: Pos(L,C)=(1,1). 
  499. X
  500. X-- Start of Text Scrap List --
  501. Text scrap[Grey]="PR04: Test the definition of ordinary macros.<010>
  502. X<010>
  503. X1. Test an ordinary macro definition.<010>
  504. X"
  505. X--- End of Text Scrap List ---
  506. X
  507. X
  508. MACRO DEFINITION COMPONENT: Pos(L,C)=(4,1). 
  509. Part 1 of macro @<Ordinary@>.
  510. X
  511. TEXT COMPONENT: Pos(L,C)=(4,39). 
  512. X
  513. X-- Start of Text Scrap List --
  514. Text scrap[Grey]="<010>
  515. X<010>
  516. X2. Test an ordinary definition using a quickname.<010>
  517. X"
  518. X--- End of Text Scrap List ---
  519. X
  520. X
  521. MACRO DEFINITION COMPONENT: Pos(L,C)=(7,1). 
  522. Part 1 of macro @<|@>.
  523. X
  524. TEXT COMPONENT: Pos(L,C)=(7,30). 
  525. X
  526. X-- Start of Text Scrap List --
  527. Text scrap[Grey]="<010>
  528. X<010>
  529. X3. Test a name that includes EOL.<010>
  530. X"
  531. X--- End of Text Scrap List ---
  532. X
  533. X
  534. TYPESETTER DIRECTIVE COMPONENT: 
  535. X   Section "1", Section name="Error Recovery Point".
  536. X
  537. TEXT COMPONENT: Pos(L,C)=(12,27). 
  538. X
  539. X-- Start of Text Scrap List --
  540. Text scrap[Grey]="<010>
  541. X<010>
  542. X4. Test the minimum length name (the empty name).<010>
  543. X"
  544. X--- End of Text Scrap List ---
  545. X
  546. X
  547. MACRO DEFINITION COMPONENT: Pos(L,C)=(15,1). 
  548. Part 1 of macro @<@>.
  549. X
  550. TEXT COMPONENT: Pos(L,C)=(15,60). 
  551. X
  552. X-- Start of Text Scrap List --
  553. Text scrap[Grey]="<010>
  554. X<010>
  555. X5. Test a name at the maximum name length limit (80).<010>
  556. ONly the second of the two macros should generate an error.<010>
  557. X"
  558. X--- End of Text Scrap List ---
  559. X
  560. X
  561. MACRO DEFINITION COMPONENT: Pos(L,C)=(20,1). 
  562. Part 1 of macro @<12345678901234567890123456789012345678901234567890123456789012345678901234567890@>.
  563. X
  564. TEXT COMPONENT: Pos(L,C)=(20,91). 
  565. X
  566. X-- Start of Text Scrap List --
  567. Text scrap[White]="<010>
  568. X"
  569. X--- End of Text Scrap List ---
  570. X
  571. X
  572. TYPESETTER DIRECTIVE COMPONENT: 
  573. X   Section "2", Section name="Error Recovery Point".
  574. X
  575. TEXT COMPONENT: Pos(L,C)=(22,27). 
  576. X
  577. X-- Start of Text Scrap List --
  578. Text scrap[Grey]="<010>
  579. X<010>
  580. X6. Test names with all legal characters. There should be no errors.<010>
  581. X"
  582. X--- End of Text Scrap List ---
  583. X
  584. X
  585. MACRO DEFINITION COMPONENT: Pos(L,C)=(25,1). 
  586. Part 1 of macro @< !"#$%'()*+,-./0123456789:;<=>?@>.
  587. X
  588. TEXT COMPONENT: Pos(L,C)=(25,42). 
  589. X
  590. X-- Start of Text Scrap List --
  591. Text scrap[White]="<010>
  592. X"
  593. X--- End of Text Scrap List ---
  594. X
  595. X
  596. MACRO DEFINITION COMPONENT: Pos(L,C)=(26,1). 
  597. Part 1 of macro @<ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`@>.
  598. X
  599. TEXT COMPONENT: Pos(L,C)=(26,43). 
  600. X
  601. X-- Start of Text Scrap List --
  602. Text scrap[White]="<010>
  603. X"
  604. X--- End of Text Scrap List ---
  605. X
  606. X
  607. MACRO DEFINITION COMPONENT: Pos(L,C)=(27,1). 
  608. Part 1 of macro @<abcdefghijklmnopqrstuvwxyz{|}~@>.
  609. X
  610. TEXT COMPONENT: Pos(L,C)=(27,41). 
  611. X
  612. X-- Start of Text Scrap List --
  613. Text scrap[Grey]="<010>
  614. X<010>
  615. X7. Test a name that has inserted text sequences.<010>
  616. X<010>
  617. X"
  618. X--- End of Text Scrap List ---
  619. X
  620. X
  621. MACRO DEFINITION COMPONENT: Pos(L,C)=(31,1). 
  622. Part 1 of macro @<A@@>.
  623. X
  624. TEXT COMPONENT: Pos(L,C)=(31,23). 
  625. X
  626. X-- Start of Text Scrap List --
  627. Text scrap[White]="<010>
  628. X<010>
  629. X<010>
  630. X"
  631. X--- End of Text Scrap List ---
  632. X
  633. X
  634. X========================== End of DOCUMENT LIST DUMP ===========================
  635. X
  636. X
  637. Global Local| Input File
  638. X------------+-------------------------------------------------------------------
  639. X     1     1| PR04: Test the definition of ordinary macros.
  640. X     2     2| 
  641. X     3     3| 1. Test an ordinary macro definition.
  642. X     4     4| @$@<Ordinary@>@{The text of ordinary@}
  643. X     5     5| 
  644. X     6     6| 2. Test an ordinary definition using a quickname.
  645. X     7     7| @$@#|@{The text of ordinary@}
  646. X     8     8| 
  647. X     9     9| 3. Test a name that includes EOL.
  648. X    10    10| @$@<This name is illegal because
  649. X       Error|.....^Names cannot cross lines.
  650. X            |.....^Skipping after error to the next major construct...
  651. X    11    11| it crosses a lion@>@{And people who cross lions tend to get eaten.@}
  652. X    12    12| @A@<Error Recovery Point@>
  653. X            |.^...skipped to here after the error.
  654. X    13    13| 
  655. X    14    14| 4. Test the minimum length name (the empty name).
  656. X    15    15| @$@<@>@{The empty macro name is quite legal in FunnelWeb.@}
  657. X    16    16| 
  658. X    17    17| 5. Test a name at the maximum name length limit (80).
  659. X    18    18| ONly the second of the two macros should generate an error.
  660. X    19    19| @p maximum_input_line_length = 100
  661. X    20    20| @$@<12345678901234567890123456789012345678901234567890123456789012345678901234567890@>@{@}
  662. X    21    21| @$@<123456789012345678901234567890123456789012345678901234567890123456789012345678901@>@{@}
  663. X       Error|.....^Name is too long.
  664. X            |.....^The maximum length of a legal name is 80 characters.
  665. X            |.....^Skipping after error to the next major construct...
  666. X    22    22| @A@<Error Recovery Point@>
  667. X            |.^...skipped to here after the error.
  668. X    23    23| 
  669. X    24    24| 6. Test names with all legal characters. There should be no errors.
  670. X    25    25| @$@< !"#$%'()*+,-./0123456789:;<=>?@>@{@}
  671. X    26    26| @$@<ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`@>@{@}
  672. X    27    27| @$@<abcdefghijklmnopqrstuvwxyz{|}~@>@{@}
  673. X    28    28| 
  674. X    29    29| 7. Test a name that has inserted text sequences.
  675. X    30    30| 
  676. X    31    31| @$@<@^D(065)@@@>==@{@}
  677. X    32    32| 
  678. X    33    33| 
  679. X            | <End-Of-File>
  680. X------------+-------------------------------------------------------------------
  681. X
  682. There were 2 Errors.
  683. END_OF_FILE
  684. if test 21256 -ne `wc -c <'answers/pr04.lis'`; then
  685.     echo shar: \"'answers/pr04.lis'\" unpacked with wrong size!
  686. fi
  687. # end of 'answers/pr04.lis'
  688. fi
  689. if test -f 'answers/pr06.lis' -a "${1}" != "-c" ; then 
  690.   echo shar: Will not clobber existing file \"'answers/pr06.lis'\"
  691. else
  692. echo shar: Extracting \"'answers/pr06.lis'\" \(21683 characters\)
  693. sed "s/^X//" >'answers/pr06.lis' <<'END_OF_FILE'
  694. XFUNNELWEB LISTING FILE
  695. X======================
  696. X
  697. Dump of mapped file "<<Suppressed>>".
  698. X
  699. MEMORY DUMP OF MAPPED FILE
  700. X==========================
  701. X
  702. X+-------------------------------------------------+------------------+
  703. X| 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F | 0123456789ABCDEF |
  704. X+-------------------------------------------------+------------------+
  705. X| 50 52 30 36 3A 20 54 65 73 74 20 74 68 65 20 70 | PR06: Test the p |
  706. X| 61 72 73 69 6E 67 20 6F 6E 20 69 6E 76 6F 63 61 | arsing on invoca |
  707. X| 74 69 6F 6E 20 6E 75 6D 62 65 72 20 63 6F 6E 73 | tion number cons |
  708. X| 74 72 61 69 6E 74 73 2E 0A 0A 54 72 69 70 20 74 | traints...Trip t |
  709. X| 68 65 20 70 61 72 73 65 72 20 73 6F 20 77 65 20 | he parser so we  |
  710. X| 64 6F 6E 27 74 20 67 65 74 20 70 61 73 74 20 69 | don't get past i |
  711. X| 74 2E 0A 40 3E 0A 0A 31 2E 20 54 65 73 74 20 77 | t..@>..1. Test w |
  712. X| 69 74 68 20 6E 6F 20 7A 65 72 6F 20 61 6E 64 20 | ith no zero and  |
  713. X| 6E 6F 20 6D 61 6E 79 2E 0A 40 24 40 3C 53 6C 6F | no many..@$@<Slo |
  714. X| 74 68 40 3E 40 7B 4E 6F 20 7A 65 72 6F 20 61 6E | th@>@{No zero an |
  715. X| 64 20 6E 6F 20 6D 61 6E 79 20 69 6E 20 74 68 69 | d no many in thi |
  716. X| 73 20 6D 61 63 72 6F 40 7D 0A 0A 32 2E 20 54 65 | s macro@}..2. Te |
  717. X| 73 74 20 77 69 74 68 20 61 20 7A 65 72 6F 2E 0A | st with a zero.. |
  718. X| 40 24 40 3C 53 6C 6F 74 68 20 7A 65 72 6F 40 3E | @$@<Sloth zero@> |
  719. X| 40 5A 40 7B 43 61 6E 20 62 65 20 63 61 6C 6C 65 | @Z@{Can be calle |
  720. X| 64 20 66 72 6F 6D 20 30 20 74 6F 20 31 20 74 69 | d from 0 to 1 ti |
  721. X| 6D 65 73 2E 40 7D 0A 0A 33 2E 20 54 65 73 74 20 | mes.@}..3. Test  |
  722. X| 77 69 74 68 20 61 20 6D 61 6E 79 2E 0A 40 24 40 | with a many..@$@ |
  723. X| 3C 53 6C 6F 74 68 20 6D 61 6E 79 40 3E 40 4D 40 | <Sloth many@>@M@ |
  724. X| 7B 43 61 6E 20 62 65 20 63 61 6C 6C 65 64 20 66 | {Can be called f |
  725. X| 72 6F 6D 20 31 20 74 6F 20 69 6E 66 69 6E 69 74 | rom 1 to infinit |
  726. X| 79 20 74 69 6D 65 73 2E 40 7D 0A 0A 34 2E 20 54 | y times.@}..4. T |
  727. X| 65 73 74 20 77 69 74 68 20 61 20 7A 65 72 6F 20 | est with a zero  |
  728. X| 61 6E 64 20 61 20 6D 61 6E 79 2E 0A 40 24 40 3C | and a many..@$@< |
  729. X| 53 6C 6F 74 68 20 7A 65 72 6F 6D 61 6E 79 40 3E | Sloth zeromany@> |
  730. X| 40 5A 40 4D 40 7B 43 61 6E 20 62 65 20 63 61 6C | @Z@M@{Can be cal |
  731. X| 6C 65 64 20 66 72 6F 6D 20 30 20 74 6F 20 69 6E | led from 0 to in |
  732. X| 66 69 6E 69 74 79 20 74 69 6D 65 73 2E 40 7D 0A | finity times.@}. |
  733. X| 0A 35 2E 20 54 65 73 74 20 77 69 74 68 20 61 20 | .5. Test with a  |
  734. X| 7A 65 72 6F 20 61 6E 64 20 61 20 6D 61 6E 79 20 | zero and a many  |
  735. X| 62 75 74 20 6F 75 74 20 6F 66 20 6F 72 64 65 72 | but out of order |
  736. X| 20 28 73 68 6F 75 6C 64 20 67 69 76 65 20 65 72 |  (should give er |
  737. X| 72 6F 72 29 2E 0A 40 24 40 3C 53 6C 6F 74 68 20 | ror)..@$@<Sloth  |
  738. X| 6D 61 6E 79 7A 65 72 6F 40 3E 40 4D 40 5A 40 7B | manyzero@>@M@Z@{ |
  739. X| 4F 6F 70 73 2E 40 7D 0A 40 41 40 3C 45 72 72 6F | Oops.@}.@A@<Erro |
  740. X| 72 20 72 65 63 6F 76 65 72 79 20 70 6F 69 6E 74 | r recovery point |
  741. X| 40 3E 0A 0A 36 2E 20 54 65 73 74 20 77 69 74 68 | @>..6. Test with |
  742. X| 20 73 79 6E 74 61 63 74 69 63 20 65 72 72 6F 72 |  syntactic error |
  743. X| 73 2E 0A 0A 40 24 40 3C 53 6C 6F 74 68 20 61 40 | s...@$@<Sloth a@ |
  744. X| 3E 20 40 4D 20 40 5A 20 40 7B 4F 6F 70 73 2E 40 | > @M @Z @{Oops.@ |
  745. X| 7D 0A 40 41 40 3C 45 72 72 6F 72 20 72 65 63 6F | }.@A@<Error reco |
  746. X| 76 65 72 79 20 70 6F 69 6E 74 40 3E 0A 0A 40 24 | very point@>..@$ |
  747. X| 40 3C 53 6C 6F 74 68 20 62 40 3E 40 5A 40 5A 40 | @<Sloth b@>@Z@Z@ |
  748. X| 7B 4F 6F 70 73 2E 40 7D 0A 40 41 40 3C 45 72 72 | {Oops.@}.@A@<Err |
  749. X| 6F 72 20 72 65 63 6F 76 65 72 79 20 70 6F 69 6E | or recovery poin |
  750. X| 74 40 3E 0A 0A 40 24 40 3C 53 6C 6F 74 68 20 63 | t@>..@$@<Sloth c |
  751. X| 40 5A 40 3E 40 7B 4F 6F 70 73 2E 40 7D 0A 40 41 | @Z@>@{Oops.@}.@A |
  752. X| 40 3C 45 72 72 6F 72 20 72 65 63 6F 76 65 72 79 | @<Error recovery |
  753. X| 20 70 6F 69 6E 74 40 3E 0A 0A 40 24 40 3C 53 6C |  point@>..@$@<Sl |
  754. X| 6F 74 68 20 64 40 3E 5A 40 7B 4F 6F 70 73 2E 40 | oth d@>Z@{Oops.@ |
  755. X| 7D 0A 40 41 40 3C 45 72 72 6F 72 20 72 65 63 6F | }.@A@<Error reco |
  756. X| 76 65 72 79 20 70 6F 69 6E 74 40 3E 0A 0A 40 24 | very point@>..@$ |
  757. X| 40 3C 53 6C 6F 74 68 20 64 40 3E 40 5A 4D 40 7B | @<Sloth d@>@ZM@{ |
  758. X| 4F 6F 70 73 2E 40 7D 0A 40 41 40 3C 45 72 72 6F | Oops.@}.@A@<Erro |
  759. X| 72 20 72 65 63 6F 76 65 72 79 20 70 6F 69 6E 74 | r recovery point |
  760. X| 40 3E 0A 0A 0A                                  | @>...            |
  761. X+-------------------------------------------------+------------------+
  762. X
  763. X
  764. X=========================== Start of LINE LIST DUMP ============================
  765. X
  766. Globl Local| Text
  767. X-----------+--------------------------------------------------------------------
  768. X00001 00001| PR06: Test the parsing on invocation number constraints.<010>
  769. X00002 00002| <010>
  770. X00003 00003| Trip the parser so we don't get past it.<010>
  771. X00004 00004| @><010>
  772. X00005 00005| <010>
  773. X00006 00006| 1. Test with no zero and no many.<010>
  774. X00007 00007| @$@<Sloth@>@{No zero and no many in this macro@}<010>
  775. X00008 00008| <010>
  776. X00009 00009| 2. Test with a zero.<010>
  777. X00010 00010| @$@<Sloth zero@>@Z@{Can be called from 0 to 1 times.@}<010>
  778. X00011 00011| <010>
  779. X00012 00012| 3. Test with a many.<010>
  780. X00013 00013| @$@<Sloth many@>@M@{Can be called from 1 to infinity times.@}<010>
  781. X00014 00014| <010>
  782. X00015 00015| 4. Test with a zero and a many.<010>
  783. X00016 00016| @$@<Sloth zeromany@>@Z@M@{Can be called from 0 to infinity times.@}<010>
  784. X00017 00017| <010>
  785. X00018 00018| 5. Test with a zero and a many but out of order (should give error).<010>
  786. X00019 00019| @$@<Sloth manyzero@>@M@Z@{Oops.@}<010>
  787. X00020 00020| @A@<Error recovery point@><010>
  788. X00021 00021| <010>
  789. X00022 00022| 6. Test with syntactic errors.<010>
  790. X00023 00023| <010>
  791. X00024 00024| @$@<Sloth a@> @M @Z @{Oops.@}<010>
  792. X00025 00025| @A@<Error recovery point@><010>
  793. X00026 00026| <010>
  794. X00027 00027| @$@<Sloth b@>@Z@Z@{Oops.@}<010>
  795. X00028 00028| @A@<Error recovery point@><010>
  796. X00029 00029| <010>
  797. X00030 00030| @$@<Sloth c@Z@>@{Oops.@}<010>
  798. X00031 00031| @A@<Error recovery point@><010>
  799. X00032 00032| <010>
  800. X00033 00033| @$@<Sloth d@>Z@{Oops.@}<010>
  801. X00034 00034| @A@<Error recovery point@><010>
  802. X00035 00035| <010>
  803. X00036 00036| @$@<Sloth d@>@ZM@{Oops.@}<010>
  804. X00037 00037| @A@<Error recovery point@><010>
  805. X00038 00038| <010>
  806. X00039 00039| <010>
  807. X00040 00040| <End-Of-File><010>
  808. X-----------+--------------------------------------------------------------------
  809. Globl Local| Text
  810. X
  811. X============================ End of LINE LIST DUMP =============================
  812. X
  813. X
  814. X=========================== Start of TOKEN LIST DUMP ===========================
  815. X
  816. Summary: There are 131 tokens in the token list.
  817. X
  818. Line[Column]: Token Description
  819. X-------------------------------
  820. X
  821. X0001[01]: Text. Text scrap[Grey]="PR06: Test the parsing on invocation number constraints.<010>
  822. X<010>
  823. Trip the parser so we don't get past it.<010>
  824. X"
  825. X0004[01]: @> Close name. 
  826. X0004[03]: Text. Text scrap[Grey]="<010>
  827. X<010>
  828. X1. Test with no zero and no many.<010>
  829. X"
  830. X0007[01]: @$ Macro defn. 
  831. X0007[03]: @< Open name. 
  832. X0007[05]: Text. Text scrap[Grey]="Sloth"
  833. X0007[10]: @> Close name. 
  834. X0007[12]: @{ Open defn. 
  835. X0007[14]: Text. Text scrap[Grey]="No zero and no many in this macro"
  836. X0007[47]: @} Close defn. 
  837. X0007[49]: Text. Text scrap[Grey]="<010>
  838. X<010>
  839. X2. Test with a zero.<010>
  840. X"
  841. X0010[01]: @$ Macro defn. 
  842. X0010[03]: @< Open name. 
  843. X0010[05]: Text. Text scrap[Grey]="Sloth zero"
  844. X0010[15]: @> Close name. 
  845. X0010[17]: @Z Zero calls. 
  846. X0010[19]: @{ Open defn. 
  847. X0010[21]: Text. Text scrap[Grey]="Can be called from 0 to 1 times."
  848. X0010[53]: @} Close defn. 
  849. X0010[55]: Text. Text scrap[Grey]="<010>
  850. X<010>
  851. X3. Test with a many.<010>
  852. X"
  853. X0013[01]: @$ Macro defn. 
  854. X0013[03]: @< Open name. 
  855. X0013[05]: Text. Text scrap[Grey]="Sloth many"
  856. X0013[15]: @> Close name. 
  857. X0013[17]: @M Many calls. 
  858. X0013[19]: @{ Open defn. 
  859. X0013[21]: Text. Text scrap[Grey]="Can be called from 1 to infinity times."
  860. X0013[60]: @} Close defn. 
  861. X0013[62]: Text. Text scrap[Grey]="<010>
  862. X<010>
  863. X4. Test with a zero and a many.<010>
  864. X"
  865. X0016[01]: @$ Macro defn. 
  866. X0016[03]: @< Open name. 
  867. X0016[05]: Text. Text scrap[Grey]="Sloth zeromany"
  868. X0016[19]: @> Close name. 
  869. X0016[21]: @Z Zero calls. 
  870. X0016[23]: @M Many calls. 
  871. X0016[25]: @{ Open defn. 
  872. X0016[27]: Text. Text scrap[Grey]="Can be called from 0 to infinity times."
  873. X0016[66]: @} Close defn. 
  874. X0016[68]: Text. Text scrap[Grey]="<010>
  875. X<010>
  876. X5. Test with a zero and a many but out of order (should give error).<010>
  877. X"
  878. X0019[01]: @$ Macro defn. 
  879. X0019[03]: @< Open name. 
  880. X0019[05]: Text. Text scrap[Grey]="Sloth manyzero"
  881. X0019[19]: @> Close name. 
  882. X0019[21]: @M Many calls. 
  883. X0019[23]: @Z Zero calls. 
  884. X0019[25]: @{ Open defn. 
  885. X0019[27]: Text. Text scrap[Grey]="Oops."
  886. X0019[32]: @} Close defn. 
  887. X0019[34]: Text. Text scrap[White]="<010>
  888. X"
  889. X0020[01]: @A New section (Level 1). 
  890. X0020[03]: @< Open name. 
  891. X0020[05]: Text. Text scrap[Grey]="Error recovery point"
  892. X0020[25]: @> Close name. 
  893. X0020[27]: Text. Text scrap[Grey]="<010>
  894. X<010>
  895. X6. Test with syntactic errors.<010>
  896. X<010>
  897. X"
  898. X0024[01]: @$ Macro defn. 
  899. X0024[03]: @< Open name. 
  900. X0024[05]: Text. Text scrap[Grey]="Sloth a"
  901. X0024[12]: @> Close name. 
  902. X0024[14]: Text. Text scrap[White]=" "
  903. X0024[15]: @M Many calls. 
  904. X0024[17]: Text. Text scrap[White]=" "
  905. X0024[18]: @Z Zero calls. 
  906. X0024[20]: Text. Text scrap[White]=" "
  907. X0024[21]: @{ Open defn. 
  908. X0024[23]: Text. Text scrap[Grey]="Oops."
  909. X0024[28]: @} Close defn. 
  910. X0024[30]: Text. Text scrap[White]="<010>
  911. X"
  912. X0025[01]: @A New section (Level 1). 
  913. X0025[03]: @< Open name. 
  914. X0025[05]: Text. Text scrap[Grey]="Error recovery point"
  915. X0025[25]: @> Close name. 
  916. X0025[27]: Text. Text scrap[White]="<010>
  917. X<010>
  918. X"
  919. X0027[01]: @$ Macro defn. 
  920. X0027[03]: @< Open name. 
  921. X0027[05]: Text. Text scrap[Grey]="Sloth b"
  922. X0027[12]: @> Close name. 
  923. X0027[14]: @Z Zero calls. 
  924. X0027[16]: @Z Zero calls. 
  925. X0027[18]: @{ Open defn. 
  926. X0027[20]: Text. Text scrap[Grey]="Oops."
  927. X0027[25]: @} Close defn. 
  928. X0027[27]: Text. Text scrap[White]="<010>
  929. X"
  930. X0028[01]: @A New section (Level 1). 
  931. X0028[03]: @< Open name. 
  932. X0028[05]: Text. Text scrap[Grey]="Error recovery point"
  933. X0028[25]: @> Close name. 
  934. X0028[27]: Text. Text scrap[White]="<010>
  935. X<010>
  936. X"
  937. X0030[01]: @$ Macro defn. 
  938. X0030[03]: @< Open name. 
  939. X0030[05]: Text. Text scrap[Grey]="Sloth c"
  940. X0030[12]: @Z Zero calls. 
  941. X0030[14]: @> Close name. 
  942. X0030[16]: @{ Open defn. 
  943. X0030[18]: Text. Text scrap[Grey]="Oops."
  944. X0030[23]: @} Close defn. 
  945. X0030[25]: Text. Text scrap[White]="<010>
  946. X"
  947. X0031[01]: @A New section (Level 1). 
  948. X0031[03]: @< Open name. 
  949. X0031[05]: Text. Text scrap[Grey]="Error recovery point"
  950. X0031[25]: @> Close name. 
  951. X0031[27]: Text. Text scrap[White]="<010>
  952. X<010>
  953. X"
  954. X0033[01]: @$ Macro defn. 
  955. X0033[03]: @< Open name. 
  956. X0033[05]: Text. Text scrap[Grey]="Sloth d"
  957. X0033[12]: @> Close name. 
  958. X0033[14]: Text. Text scrap[Grey]="Z"
  959. X0033[15]: @{ Open defn. 
  960. X0033[17]: Text. Text scrap[Grey]="Oops."
  961. X0033[22]: @} Close defn. 
  962. X0033[24]: Text. Text scrap[White]="<010>
  963. X"
  964. X0034[01]: @A New section (Level 1). 
  965. X0034[03]: @< Open name. 
  966. X0034[05]: Text. Text scrap[Grey]="Error recovery point"
  967. X0034[25]: @> Close name. 
  968. X0034[27]: Text. Text scrap[White]="<010>
  969. X<010>
  970. X"
  971. X0036[01]: @$ Macro defn. 
  972. X0036[03]: @< Open name. 
  973. X0036[05]: Text. Text scrap[Grey]="Sloth d"
  974. X0036[12]: @> Close name. 
  975. X0036[14]: @Z Zero calls. 
  976. X0036[16]: Text. Text scrap[Grey]="M"
  977. X0036[17]: @{ Open defn. 
  978. X0036[19]: Text. Text scrap[Grey]="Oops."
  979. X0036[24]: @} Close defn. 
  980. X0036[26]: Text. Text scrap[White]="<010>
  981. X"
  982. X0037[01]: @A New section (Level 1). 
  983. X0037[03]: @< Open name. 
  984. X0037[05]: Text. Text scrap[Grey]="Error recovery point"
  985. X0037[25]: @> Close name. 
  986. X0037[27]: Text. Text scrap[White]="<010>
  987. X<010>
  988. X<010>
  989. X"
  990. X0040[01]: End Of File. 
  991. X============================ End of TOKEN LIST DUMP ============================
  992. X
  993. X
  994. X========================== Start of MACRO TABLE DUMP ===========================
  995. X
  996. X
  997. X------------------- Start of Macro Dump --------------------
  998. Macro Name  : "Sloth"
  999. Defined?    : Yes.
  1000. Parameters  : 0
  1001. Additive?   : No.
  1002. Zero Calls? : No.
  1003. Many Calls? : No.
  1004. Output File?: No.
  1005. Call list   :
  1006. Macro body  :
  1007. X
  1008. X--Start of List of Body Parts--
  1009. This macro has 1 body part.
  1010. Body part 1: Seqnum=1, Pos(L,C)=(7,3), Expression follows:
  1011. X
  1012. X---- Start of Expression ----
  1013. X
  1014. X----- Start Text Element -----
  1015. Text scrap[Grey]="No zero and no many in this macro"
  1016. X------ End Text Element ------
  1017. X
  1018. X----- End of Expression -----
  1019. X
  1020. X---End of List of Body Parts---
  1021. X
  1022. X-------------------- End of Macro Dump ---------------------
  1023. X
  1024. X
  1025. X
  1026. X------------------- Start of Macro Dump --------------------
  1027. Macro Name  : "Sloth a"
  1028. Defined?    : No.
  1029. X-------------------- End of Macro Dump ---------------------
  1030. X
  1031. X
  1032. X
  1033. X------------------- Start of Macro Dump --------------------
  1034. Macro Name  : "Sloth b"
  1035. Defined?    : Yes.
  1036. Parameters  : 0
  1037. Additive?   : No.
  1038. Zero Calls? : Yes.
  1039. Many Calls? : No.
  1040. Output File?: No.
  1041. Call list   :
  1042. Macro body  :
  1043. X
  1044. X--Start of List of Body Parts--
  1045. This macro has 0 body parts.
  1046. X---End of List of Body Parts---
  1047. X
  1048. X-------------------- End of Macro Dump ---------------------
  1049. X
  1050. X
  1051. X
  1052. X------------------- Start of Macro Dump --------------------
  1053. Macro Name  : "Sloth d"
  1054. Defined?    : No.
  1055. X-------------------- End of Macro Dump ---------------------
  1056. X
  1057. X
  1058. X
  1059. X------------------- Start of Macro Dump --------------------
  1060. Macro Name  : "Sloth many"
  1061. Defined?    : Yes.
  1062. Parameters  : 0
  1063. Additive?   : No.
  1064. Zero Calls? : No.
  1065. Many Calls? : Yes.
  1066. Output File?: No.
  1067. Call list   :
  1068. Macro body  :
  1069. X
  1070. X--Start of List of Body Parts--
  1071. This macro has 1 body part.
  1072. Body part 1: Seqnum=3, Pos(L,C)=(13,3), Expression follows:
  1073. X
  1074. X---- Start of Expression ----
  1075. X
  1076. X----- Start Text Element -----
  1077. Text scrap[Grey]="Can be called from 1 to infinity times."
  1078. X------ End Text Element ------
  1079. X
  1080. X----- End of Expression -----
  1081. X
  1082. X---End of List of Body Parts---
  1083. X
  1084. X-------------------- End of Macro Dump ---------------------
  1085. X
  1086. X
  1087. X
  1088. X------------------- Start of Macro Dump --------------------
  1089. Macro Name  : "Sloth manyzero"
  1090. Defined?    : Yes.
  1091. Parameters  : 0
  1092. Additive?   : No.
  1093. Zero Calls? : No.
  1094. Many Calls? : Yes.
  1095. Output File?: No.
  1096. Call list   :
  1097. Macro body  :
  1098. X
  1099. X--Start of List of Body Parts--
  1100. This macro has 0 body parts.
  1101. X---End of List of Body Parts---
  1102. X
  1103. X-------------------- End of Macro Dump ---------------------
  1104. X
  1105. X
  1106. X
  1107. X------------------- Start of Macro Dump --------------------
  1108. Macro Name  : "Sloth zero"
  1109. Defined?    : Yes.
  1110. Parameters  : 0
  1111. Additive?   : No.
  1112. Zero Calls? : Yes.
  1113. Many Calls? : No.
  1114. Output File?: No.
  1115. Call list   :
  1116. Macro body  :
  1117. X
  1118. X--Start of List of Body Parts--
  1119. This macro has 1 body part.
  1120. Body part 1: Seqnum=2, Pos(L,C)=(10,3), Expression follows:
  1121. X
  1122. X---- Start of Expression ----
  1123. X
  1124. X----- Start Text Element -----
  1125. Text scrap[Grey]="Can be called from 0 to 1 times."
  1126. X------ End Text Element ------
  1127. X
  1128. X----- End of Expression -----
  1129. X
  1130. X---End of List of Body Parts---
  1131. X
  1132. X-------------------- End of Macro Dump ---------------------
  1133. X
  1134. X
  1135. X
  1136. X------------------- Start of Macro Dump --------------------
  1137. Macro Name  : "Sloth zeromany"
  1138. Defined?    : Yes.
  1139. Parameters  : 0
  1140. Additive?   : No.
  1141. Zero Calls? : Yes.
  1142. Many Calls? : Yes.
  1143. Output File?: No.
  1144. Call list   :
  1145. Macro body  :
  1146. X
  1147. X--Start of List of Body Parts--
  1148. This macro has 1 body part.
  1149. Body part 1: Seqnum=4, Pos(L,C)=(16,3), Expression follows:
  1150. X
  1151. X---- Start of Expression ----
  1152. X
  1153. X----- Start Text Element -----
  1154. Text scrap[Grey]="Can be called from 0 to infinity times."
  1155. X------ End Text Element ------
  1156. X
  1157. X----- End of Expression -----
  1158. X
  1159. X---End of List of Body Parts---
  1160. X
  1161. X-------------------- End of Macro Dump ---------------------
  1162. X
  1163. X
  1164. X
  1165. X=========================== End of MACRO TABLE DUMP ============================
  1166. X
  1167. X
  1168. X========================= Start of DOCUMENT LIST DUMP ==========================
  1169. X
  1170. X
  1171. TEXT COMPONENT: Pos(L,C)=(1,1). 
  1172. X
  1173. X-- Start of Text Scrap List --
  1174. Text scrap[Grey]="PR06: Test the parsing on invocation number constraints.<010>
  1175. X<010>
  1176. Trip the parser so we don't get past it.<010>
  1177. X"
  1178. X--- End of Text Scrap List ---
  1179. X
  1180. X
  1181. TEXT COMPONENT: Pos(L,C)=(4,3). 
  1182. X
  1183. X-- Start of Text Scrap List --
  1184. Text scrap[Grey]="<010>
  1185. X<010>
  1186. X1. Test with no zero and no many.<010>
  1187. X"
  1188. X--- End of Text Scrap List ---
  1189. X
  1190. X
  1191. MACRO DEFINITION COMPONENT: Pos(L,C)=(7,1). 
  1192. Part 1 of macro @<Sloth@>.
  1193. X
  1194. TEXT COMPONENT: Pos(L,C)=(7,49). 
  1195. X
  1196. X-- Start of Text Scrap List --
  1197. Text scrap[Grey]="<010>
  1198. X<010>
  1199. X2. Test with a zero.<010>
  1200. X"
  1201. X--- End of Text Scrap List ---
  1202. X
  1203. X
  1204. MACRO DEFINITION COMPONENT: Pos(L,C)=(10,1). 
  1205. Part 1 of macro @<Sloth zero@>.
  1206. X
  1207. TEXT COMPONENT: Pos(L,C)=(10,55). 
  1208. X
  1209. X-- Start of Text Scrap List --
  1210. Text scrap[Grey]="<010>
  1211. X<010>
  1212. X3. Test with a many.<010>
  1213. X"
  1214. X--- End of Text Scrap List ---
  1215. X
  1216. X
  1217. MACRO DEFINITION COMPONENT: Pos(L,C)=(13,1). 
  1218. Part 1 of macro @<Sloth many@>.
  1219. X
  1220. TEXT COMPONENT: Pos(L,C)=(13,62). 
  1221. X
  1222. X-- Start of Text Scrap List --
  1223. Text scrap[Grey]="<010>
  1224. X<010>
  1225. X4. Test with a zero and a many.<010>
  1226. X"
  1227. X--- End of Text Scrap List ---
  1228. X
  1229. X
  1230. MACRO DEFINITION COMPONENT: Pos(L,C)=(16,1). 
  1231. Part 1 of macro @<Sloth zeromany@>.
  1232. X
  1233. TEXT COMPONENT: Pos(L,C)=(16,68). 
  1234. X
  1235. X-- Start of Text Scrap List --
  1236. Text scrap[Grey]="<010>
  1237. X<010>
  1238. X5. Test with a zero and a many but out of order (should give error).<010>
  1239. X"
  1240. X--- End of Text Scrap List ---
  1241. X
  1242. X
  1243. TYPESETTER DIRECTIVE COMPONENT: 
  1244. X   Section "1", Section name="Error recovery point".
  1245. X
  1246. TEXT COMPONENT: Pos(L,C)=(20,27). 
  1247. X
  1248. X-- Start of Text Scrap List --
  1249. Text scrap[Grey]="<010>
  1250. X<010>
  1251. X6. Test with syntactic errors.<010>
  1252. X<010>
  1253. X"
  1254. X--- End of Text Scrap List ---
  1255. X
  1256. X
  1257. TYPESETTER DIRECTIVE COMPONENT: 
  1258. X   Section "2", Section name="Error recovery point".
  1259. X
  1260. TEXT COMPONENT: Pos(L,C)=(25,27). 
  1261. X
  1262. X-- Start of Text Scrap List --
  1263. Text scrap[White]="<010>
  1264. X<010>
  1265. X"
  1266. X--- End of Text Scrap List ---
  1267. X
  1268. X
  1269. TYPESETTER DIRECTIVE COMPONENT: 
  1270. X   Section "3", Section name="Error recovery point".
  1271. X
  1272. TEXT COMPONENT: Pos(L,C)=(28,27). 
  1273. X
  1274. X-- Start of Text Scrap List --
  1275. Text scrap[White]="<010>
  1276. X<010>
  1277. X"
  1278. X--- End of Text Scrap List ---
  1279. X
  1280. X
  1281. TYPESETTER DIRECTIVE COMPONENT: 
  1282. X   Section "4", Section name="Error recovery point".
  1283. X
  1284. TEXT COMPONENT: Pos(L,C)=(31,27). 
  1285. X
  1286. X-- Start of Text Scrap List --
  1287. Text scrap[White]="<010>
  1288. X<010>
  1289. X"
  1290. X--- End of Text Scrap List ---
  1291. X
  1292. X
  1293. TYPESETTER DIRECTIVE COMPONENT: 
  1294. X   Section "5", Section name="Error recovery point".
  1295. X
  1296. TEXT COMPONENT: Pos(L,C)=(34,27). 
  1297. X
  1298. X-- Start of Text Scrap List --
  1299. Text scrap[White]="<010>
  1300. X<010>
  1301. X"
  1302. X--- End of Text Scrap List ---
  1303. X
  1304. X
  1305. TYPESETTER DIRECTIVE COMPONENT: 
  1306. X   Section "6", Section name="Error recovery point".
  1307. X
  1308. TEXT COMPONENT: Pos(L,C)=(37,27). 
  1309. X
  1310. X-- Start of Text Scrap List --
  1311. Text scrap[White]="<010>
  1312. X<010>
  1313. X<010>
  1314. X"
  1315. X--- End of Text Scrap List ---
  1316. X
  1317. X
  1318. X========================== End of DOCUMENT LIST DUMP ===========================
  1319. X
  1320. X
  1321. Global Local| Input File
  1322. X------------+-------------------------------------------------------------------
  1323. X     1     1| PR06: Test the parsing on invocation number constraints.
  1324. X     2     2| 
  1325. X     3     3| Trip the parser so we don't get past it.
  1326. X     4     4| @>
  1327. X       Error|.^The parser was at the top level and was expecting
  1328. X            |.^one of: {Directive, Text, Macro definition, EOF}.
  1329. X     5     5| 
  1330. X     6     6| 1. Test with no zero and no many.
  1331. X     7     7| @$@<Sloth@>@{No zero and no many in this macro@}
  1332. X     8     8| 
  1333. X     9     9| 2. Test with a zero.
  1334. X    10    10| @$@<Sloth zero@>@Z@{Can be called from 0 to 1 times.@}
  1335. X    11    11| 
  1336. X    12    12| 3. Test with a many.
  1337. X    13    13| @$@<Sloth many@>@M@{Can be called from 1 to infinity times.@}
  1338. X    14    14| 
  1339. X    15    15| 4. Test with a zero and a many.
  1340. X    16    16| @$@<Sloth zeromany@>@Z@M@{Can be called from 0 to infinity times.@}
  1341. X    17    17| 
  1342. X    18    18| 5. Test with a zero and a many but out of order (should give error).
  1343. X    19    19| @$@<Sloth manyzero@>@M@Z@{Oops.@}
  1344. X       Error|.......................^Expecting '@{'.
  1345. X            |.......................^Skipping after error to the next major construct...
  1346. X    20    20| @A@<Error recovery point@>
  1347. X            |.^...skipped to here after the error.
  1348. X    21    21| 
  1349. X    22    22| 6. Test with syntactic errors.
  1350. X    23    23| 
  1351. X    24    24| @$@<Sloth a@> @M @Z @{Oops.@}
  1352. X       Error|..............^Expecting "==@{" or "+=@{" or just "@{".
  1353. X            |..............^(or @Z or @M if they have not already appeared).
  1354. X            |..............^Note: FunnelWeb is intolerant of spaces at this point.
  1355. X            |...............^Skipping after error to the next major construct...
  1356. X    25    25| @A@<Error recovery point@>
  1357. X            |.^...skipped to here after the error.
  1358. X    26    26| 
  1359. X    27    27| @$@<Sloth b@>@Z@Z@{Oops.@}
  1360. X       Error|................^Expecting '@{'.
  1361. X            |................^Skipping after error to the next major construct...
  1362. X    28    28| @A@<Error recovery point@>
  1363. X            |.^...skipped to here after the error.
  1364. X    29    29| 
  1365. X    30    30| @$@<Sloth c@Z@>@{Oops.@}
  1366. X       Error|............^Illegal character or symbol in name.
  1367. X            |............^Skipping after error to the next major construct...
  1368. X    31    31| @A@<Error recovery point@>
  1369. X            |.^...skipped to here after the error.
  1370. X    32    32| 
  1371. X    33    33| @$@<Sloth d@>Z@{Oops.@}
  1372. X       Error|..............^Expecting "==@{" or "+=@{" or just "@{".
  1373. X            |..............^(or @Z or @M if they have not already appeared).
  1374. X            |..............^Note: FunnelWeb is intolerant of spaces at this point.
  1375. X            |...............^Skipping after error to the next major construct...
  1376. X    34    34| @A@<Error recovery point@>
  1377. X            |.^...skipped to here after the error.
  1378. X    35    35| 
  1379. X    36    36| @$@<Sloth d@>@ZM@{Oops.@}
  1380. X       Error|................^Expecting "==@{" or "+=@{" or just "@{".
  1381. X            |................^(or @Z or @M if they have not already appeared).
  1382. X            |................^Note: FunnelWeb is intolerant of spaces at this point.
  1383. X            |.................^Skipping after error to the next major construct...
  1384. X    37    37| @A@<Error recovery point@>
  1385. X            |.^...skipped to here after the error.
  1386. X    38    38| 
  1387. X    39    39| 
  1388. X            | <End-Of-File>
  1389. X------------+-------------------------------------------------------------------
  1390. X
  1391. There were 7 Errors.
  1392. END_OF_FILE
  1393. if test 21683 -ne `wc -c <'answers/pr06.lis'`; then
  1394.     echo shar: \"'answers/pr06.lis'\" unpacked with wrong size!
  1395. fi
  1396. # end of 'answers/pr06.lis'
  1397. fi
  1398. if test -f 'answers/wv03.tex' -a "${1}" != "-c" ; then 
  1399.   echo shar: Will not clobber existing file \"'answers/wv03.tex'\"
  1400. else
  1401. echo shar: Extracting \"'answers/wv03.tex'\" \(20799 characters\)
  1402. sed "s/^X//" >'answers/wv03.tex' <<'END_OF_FILE'
  1403. X
  1404. X%*******************************************************************************
  1405. X%*                    START OF AUTOMATICALLY GENERATED TEX FILE                *
  1406. X%*******************************************************************************
  1407. X%*                                                                             *
  1408. X%* This TeX file was automatically generated by the FunnelWeb preprocessor.    *
  1409. X%* You can typeset this file to produce printed documentation by running it    *
  1410. X%* through the TeX typesetter using a command such as:                         *
  1411. X%*    tex thisfilename                                                         *
  1412. X%* The resultant file thisfilename.dvi can be printed using a command such as: *
  1413. X%*    lpr -Pcslw -d thisfilename.dvi                                           *
  1414. X%*                                                                             *
  1415. X%* FunnelWeb is a preprocessor that allows programmers to weave programs and   *
  1416. X%* their documentation together in a single document. The FunnelWeb program    *
  1417. X%* analyses such documents producing both program files and typeset            *
  1418. X%* documentation such as this TeX file.                                        *
  1419. X%* FunnelWeb was created by Ross Williams.                                     *
  1420. X%*                                                                             *
  1421. X%* For more information on FunnelWeb look in the following FTP archive:        *
  1422. X%*    Machine  : sirius.itd.adelaide.edu.au [IP=129.127.40.3].                 *
  1423. X%*    Directory: ~pub/funnelweb/                                               *
  1424. X%*               (or some other appropriately named directory).                *
  1425. X%* or email Ross Williams at ross@spam.adelaide.edu.au                         *
  1426. X%*                                                                             *
  1427. X%*******************************************************************************
  1428. X
  1429. X
  1430. X%===================== Start of FunnelWeb TeX Definitions ======================
  1431. X
  1432. X
  1433. X% Version
  1434. X% -------
  1435. X% This is FunnelWeb TeX Macro Library Version 1.0.
  1436. X
  1437. X
  1438. X% Copyright
  1439. X% ---------
  1440. X% This set of FunnelWeb TeX definitions was written by Ross Williams and was
  1441. X% originally Copyright (C) 1992 Ross N. Williams.  However, I, Ross Williams,
  1442. X% hereby forego any claim to Copyright in this set of FunnelWeb TeX definitions
  1443. X% and hereby authorize that the set of TeX definitions pass into the public
  1444. X% domain. -- Ross N. Williams, 3:41pm 07-May-1992, Adelaide, Australia.
  1445. X
  1446. X
  1447. X% Modification
  1448. X% ------------
  1449. X% Please record all modifications to these TeX definitions here. Unless
  1450. X% otherwise specified, all modified definitions fall in the public domain too.
  1451. X%
  1452. X% Programmers:
  1453. X%    RNW  Ross N. Williams  ross@spam.adelaide.edu.au
  1454. X%
  1455. X% Changes:
  1456. X%    07-May-1992  RNW  Prepared this work for public domain release.
  1457. X%
  1458. X
  1459. X
  1460. X% General Comments
  1461. X% ----------------
  1462. X% This set of TeX definitions exists for two reasons:
  1463. X%
  1464. X%    1. To shorten and neaten the FunnelWeb TeX output.
  1465. X%    2. To allow users to fiddle with the output format in their input files
  1466. X%       (by inserting redefining "\def"s) without having to resort to
  1467. X%       modifying the FunnelWeb code.
  1468. X%
  1469. X% The user is warned that these definitions may be changed from time to time
  1470. X% (but probably not much). The user should not be too sneaky. In particular,
  1471. X% users wishing to redefine some of these macros should do so in an explicitly
  1472. X% defined section at the top of their input file. This will mean that in the
  1473. X% event of problems, that section can simply be deleted or commented out to
  1474. X% allow the document to at least be typeset in the default format. Users should
  1475. X% limit themselves to redefining these macros in such a section and should
  1476. X% refrain from using the macros throughout their documents.
  1477. X
  1478. X
  1479. X% Environment Parameters
  1480. X% ----------------------
  1481. X% \tolerance tells TeX how tolerant it should be about making bad line and
  1482. X% page breaks. Here we set it to it's maximum, as
  1483. X%   1) Computer programs are likely to cause lots of bad breaks.
  1484. X%   2) In most cases the user would probably rather get the TeX file through
  1485. X%      TeX without any errors than fiddle with spacings for perfection.
  1486. X\tolerance=10000
  1487. X
  1488. X% I don't like indentation as it makes the page look more busy. Instead,
  1489. X% paragraphs are separated by a little space (see next).
  1490. X\parindent=0pt
  1491. X
  1492. X% In many cases, users will produce documents with long runs of paragraphs.
  1493. X% In order to space out these paragraphs, it is convenient to maintain a
  1494. X% prevailing non-zero \parskip (end-of-paragaph skip). The only trouble is
  1495. X% that the skip becomes a problem in macro definitions which require no skip
  1496. X% and so we have to turn the skip on and off. The following two macros
  1497. X% simplify this process.
  1498. X\def\fwparskipon{\parskip=\medskipamount}
  1499. X\def\fwparskipoff{\parskip=0pt}
  1500. X\fwparskipon
  1501. X
  1502. X% Setting raggedbottom allows TeX to leave a bit of space at the bottom of the
  1503. X% page in order to better vertically align the rest of the page (e.g. skips
  1504. X% won't stretch as much). It also means that headings are less likely to be
  1505. X% isolated at the bottom of the page without any following text.
  1506. X\raggedbottom
  1507. X
  1508. X
  1509. X% Fonts
  1510. X% -----
  1511. X% Most of the typeset output is set in 10pt roman and 10pt tt font.
  1512. X% The major extra font needs spring from titles and headings.
  1513. X% For portability's sake we use only the following fonts:
  1514. X%    cmr10
  1515. X%    cmbx10
  1516. X%    cmtt10
  1517. X% and some enlargements of them. These fonts are all "standard" fonts
  1518. X% in Plain TeX. See The TeXbook p.350.
  1519. X\font\fwfontnote=cmr7
  1520. X
  1521. X\font\fwfontnorm=cmr10
  1522. X\font\fwfontnorma=cmr10 scaled \magstep1
  1523. X\font\fwfontnormb=cmr10 scaled \magstep2
  1524. X
  1525. X\font\fwfontbold=cmbx10
  1526. X\font\fwfontbolda=cmbx10 scaled \magstep1
  1527. X\font\fwfontboldb=cmbx10 scaled \magstep2
  1528. X\font\fwfontboldc=cmbx10 scaled \magstep3
  1529. X\font\fwfontboldd=cmbx10 scaled \magstep4
  1530. X
  1531. X
  1532. X% Macros for Stylistic Details
  1533. X% ----------------------------
  1534. X% This section contains all the fiddly little macros for setting the details
  1535. X% of each macro definition.
  1536. X
  1537. X% Macro definitions are sandwiched by calls to these macros which can be used
  1538. X% to sort out the spacing before and after the macro definition.
  1539. X\def\fwbeginmacro{\fwparskipoff\bigskip}
  1540. X\def\fwendmacro{\fwparskipon\par}
  1541. X
  1542. X% These macros deal with the macro name and definition line.
  1543. X\def\fwmacroname#1#2{{\sl #1\/}$\lbrack$#2$\rbrack$}
  1544. X\def\fwfilename#1#2{{\bf #1}$\lbrack$#2$\rbrack$}
  1545. X\def\fwzero#1{{\bf Z}}
  1546. X\def\fwmany#1{{\bf M}}
  1547. X\def\fwequals{ $\equiv$}
  1548. X\def\fwplusequals{ $+\equiv$}
  1549. X
  1550. X% Now for the actual body of the definition. It looks nice to have the tt
  1551. X% code indented a little. Again, we use macros instead of writing direct TeX,
  1552. X% so as to allow the user to fiddle this stuff to taste without having to
  1553. X% modify the FunnelWeb C code.
  1554. X\def\fwodef{\parindent=15pt\vskip0pt$\lbrace$\parindent=20pt}
  1555. X\def\fwcdef{$\rbrace$\vskip0pt\parindent=0pt}
  1556. X\def\fwoquote{`}
  1557. X\def\fwcquote{'}
  1558. X\def\fwoparen{$($}
  1559. X\def\fwcomma{$,$}
  1560. X\def\fwcparen{$)$}
  1561. X\def\fwparam#1{$\diamond #1$}
  1562. X\def\fwparams#1{$(\diamond #1)$}
  1563. X
  1564. X% These macros deal with the notes that are appended at the end of each
  1565. X% macro definition. Note that even though \fwisafile,\fwusedin, and \fwseealso
  1566. X% have the same definition, they are given different names so as to allow the
  1567. X% user to redefine these macros to typeset each kind of information differently
  1568. X% if desired.
  1569. X\def\fwbeginmacronotes{\begingroup\baselineskip=9pt\smallskip}
  1570. X\def\fwnote#1{{\fwfontnote #1}\par}
  1571. X\def\fwisafile#1{\fwnote{#1}}
  1572. X\def\fwusedin#1{\fwnote{#1}}
  1573. X\def\fwseealso#1{\fwnote{#1}}
  1574. X\def\fwendmacronotes{\endgroup}
  1575. X
  1576. X
  1577. X% Macros to Typeset Program Code Verbatim
  1578. X% ---------------------------------------
  1579. X% This is by far the hairiest and most difficult part of the typesetting task
  1580. X% because we have to turn off most of TeX's natural instincts in order to
  1581. X% typeset the program text exactly as it appears in the input file.
  1582. X% Two macros are defined to pull this off: \fwbtx and \fwverbatimgobble.
  1583. X% Their code was inspired by the following sections of "The TeXbook":
  1584. X%    Appendix D: Dirty Tricks, 3.Verbatim listing, p.380-382.
  1585. X%    Appendix E: Example Formats, p.421.
  1586. X% The \fwbtx[ (for "FunnelWeb Begin TeXt") macro does most of the hard work.
  1587. X% The liberal use of "%" is because I don't understand TeX well enough to
  1588. X% understand when an end of line will cause trouble, and I am playing it safe.
  1589. X
  1590. X% Before defining the main \fwbtx macro, we have to stash away some definitions
  1591. X% in the hidden part of TeX's environment. Let's hope that these "hidden"
  1592. X% definitions don't affect anything except what is desired to be affected.
  1593. X
  1594. X% The tt font in which we wish to set the text has two Latin lurking ligatures!
  1595. X% These are ?` and !`. To disable them, we define the left quote when ACTIVE
  1596. X% to be defined in such a way as to prevent ligatures. The main TeX text will
  1597. X% normally not be exposed to this definition because normally the leftquote
  1598. X% character is not active. The \fwbtx macro temporarily makes the left quote
  1599. X% character active thus activating the deactivation of left quote ligatures.
  1600. X% See The TeXbook p.381.
  1601. X{\catcode`\`=\active \gdef`{\relax\lq}}
  1602. X
  1603. X% TeX is fairly carefree about spaces and so we have to make it more serious.
  1604. X% To do so we pull the same trick as above, setting up a definition for active
  1605. X% space, but only making space active during the span of the verbatim text.
  1606. X% In Plain TeX the active space is defined to be simply a space, but here we
  1607. X% define it to be a control space. This ensures that the space cannot
  1608. X% be gobbled up by one of TeX's mysterious mechanisms when activated.
  1609. X% See The TeXbook, p.381 and p.352.
  1610. X{\obeyspaces\global\let =\ }
  1611. X
  1612. X% Here is the main \fwbtx verbatim text macro.
  1613. X% Note: The order in which all these pieces of business have to be done is
  1614. X% still a partial mystery to me. Don't fiddle with this stuff unless you
  1615. X% think you know what you are doing.
  1616. X\def\fwbtx[{%
  1617. X%
  1618. X% The funnies involved in getting verbatim output are safely housed inside
  1619. X% this \begingroup, and the \endgroup in \fwverbatimgobble. Groups are used
  1620. X% instead of curly braces because we have to be able to signal the end of
  1621. X% this macro with a curly brace.
  1622. X\begingroup%
  1623. X%
  1624. X% \pars at the end of empty lines in the verbatim text won't come out normally
  1625. X% because TeX is in vertical mode and they get gobbled up. To prevent this,
  1626. X% we force \par to exit vertical mode first. See The TeXbook p.381.
  1627. X\def\par{\leavevmode\endgraf}%
  1628. X%
  1629. X% Activate the leftquote character so as to avoid ligatures (see above).
  1630. X\catcode`\`=\active%
  1631. X%
  1632. X% The \obeylines macro simply defines end of line (^M) to be \par. This ensures
  1633. X% that TeX will treat each verbatim line as a new paragraph.
  1634. X\obeylines%
  1635. X%
  1636. X% To get verbatim output, we have to desex all the special characters. This
  1637. X% is explained in detail in The TeXbook p.380.
  1638. X\def\do##1{\catcode`##1=12 }\dospecials%
  1639. X%
  1640. X% Activate the space character so as to make TeX treat blanks seriously.
  1641. X% This activation invokes an eralier definition (see above).
  1642. X\obeyspaces
  1643. X%
  1644. X% Interparagraph skips do not help the cause.
  1645. X% Note: We have to preserve the indentation though, as the code is actually
  1646. X% indented in the final output. See \fwodef in an earlier section.
  1647. X\parskip=0pt%
  1648. X%
  1649. X% We typeset the verbatim text in tt font (courier on the Macintosh) for a
  1650. X% number of reasons:
  1651. X%    - tt font has the same horizontal spacing for each character.
  1652. X%    - tt font covers the ASCII character set.
  1653. X%    - tt font doesn't have many surprises (e.g. ligatures).
  1654. X%    - tt font looks much what you might see on a computer terminal screen.
  1655. X\tt%
  1656. X%
  1657. X% Having set up an environment for verbatim, we are ready to use it.
  1658. X% By invoking \fwverbatimgobble, this \fwbtx macro gobbles up text verbatim (as
  1659. X% part of the parameter of \fwverbatimgobble) until it sees the termination
  1660. X% string "]fwetx=" (the "=" was thrown in to add obscurity as this sequence
  1661. X% must never occur in the verbatim text).
  1662. X\fwverbatimgobble}
  1663. X
  1664. X% The \fwverbatimgobble macro exists to allow \fwbtx to bracket verbatim text.
  1665. X\def\fwverbatimgobble#1]fwetx={#1\endgroup}
  1666. X
  1667. X
  1668. X% Table of Contents
  1669. X% -----------------
  1670. X% The five levels of table of contents that FunnelWeb supports are identified
  1671. X% by the five letters [A..E]. These are used throughout the following macros.
  1672. X
  1673. X% The following macros are utilities to the TOC macros to follow.
  1674. X\def\fwrule{\medskip\hrule\medskip}
  1675. X\def\fwqh{\hskip1.5em\relax}
  1676. X\def\fwbeforesec{\penalty-200\bigskip\medskip\par}
  1677. X
  1678. X% The following macros are used to typeset the table of contents.
  1679. X\def\fwtocstart#1{\fwrule\leftline{\fwfontbolda Table of Contents}\fwrule}
  1680. X\def\fwtoca#1#2{\leftline{{\bf #1 #2}}}
  1681. X\def\fwtocb#1#2{\leftline{\fwqh #1 #2}}
  1682. X\def\fwtocc#1#2{\leftline{\fwqh\fwqh #1 #2}}
  1683. X\def\fwtocd#1#2{\leftline{\fwqh\fwqh\fwqh #1 #2}}
  1684. X\def\fwtoce#1#2{\leftline{\fwqh\fwqh\fwqh\fwqh #1 #2}}
  1685. X\def\fwtocfinish#1{\fwrule}
  1686. X
  1687. X% The following "library" macros define five different strengths of headings
  1688. X% which can be used later in the section macros.
  1689. X\def\fwliba#1#2{\vfill\eject{\fwfontboldc #1 #2}\penalty200\smallskip}
  1690. X\def\fwlibb#1#2{\fwbeforesec{\fwfontboldb #1 #2}\penalty200\smallskip}
  1691. X\def\fwlibc#1#2{\fwbeforesec{\fwfontnormb #1 #2}\penalty200\smallskip}
  1692. X\def\fwlibd#1#2{\fwbeforesec{\bf          #1 #2}\penalty200}
  1693. X\def\fwlibe#1#2{\fwbeforesec{\bf          #1 #2}}
  1694. X
  1695. X% Here are the macros that actually typeset the section headings throughout
  1696. X% the document. The fwlib system has been employed so as to easily allow the
  1697. X% user to redefine the strengths of headings to taste. For example, the
  1698. X% user could insert in the input document a similar set of definitions to these
  1699. X% but with the b..e headings set to \fwlibc. This would tone down the output.
  1700. X\def\fwseca#1#2{\fwliba{#1}{#2}}
  1701. X\def\fwsecb#1#2{\fwlibb{#1}{#2}}
  1702. X\def\fwsecc#1#2{\fwlibc{#1}{#2}}
  1703. X\def\fwsecd#1#2{\fwlibd{#1}{#2}}
  1704. X\def\fwsece#1#2{\fwlibe{#1}{#2}}
  1705. X
  1706. X
  1707. X% Support for Explicit Typesetting
  1708. X% --------------------------------
  1709. X% FunnelWeb supports pragmas and other constructs that allow
  1710. X% typesetter-independent typesetting commands to be given. The
  1711. X% following macros support these features.
  1712. X
  1713. X% The in-text literal @{sloth@} and emphasise @[walrus@] features.
  1714. X\def\fwlit#1{{\tt #1}}
  1715. X\def\fwemp#1{{\it #1}}
  1716. X
  1717. X% The "@p new_page" pragma.
  1718. X\def\fwnewpage{\vfill\eject}
  1719. X
  1720. X% The "@p vskip Nmm" pragma.
  1721. X\def\fwvskip#1{\null\vskip #1mm}
  1722. X
  1723. X% The "@p title <font> <align> <text>" pragma.
  1724. X\def\fwfontnormal#1{{\fwfontnorm {#1}}}
  1725. X\def\fwfonttitle#1{{\fwfontboldd {#1}}}
  1726. X\def\fwfontsmalltitle#1{{\fwfontboldb {#1}}}
  1727. X\def\fwleftline#1{\leftline{#1}}
  1728. X\def\fwcenterline#1{\centerline{#1}}
  1729. X\def\fwrightline#1{\rightline{#1}}
  1730. X
  1731. X
  1732. X% Support for Old FunnelWeb
  1733. X% -------------------------
  1734. X% The following macros were used extensively in the first version of
  1735. X% FunnelWeb and are retained so that these older input files will still
  1736. X% typeset cleanly.
  1737. X\def\p#1{{\tt #1}}  % P for Program text.
  1738. X\def\flagpage#1#2{
  1739. X   \null
  1740. X   \vfill
  1741. X   \centerline{\fwfontboldd #1}
  1742. X   \vskip 1cm
  1743. X   \centerline{\fwfontboldd #2}
  1744. X   \vfill
  1745. X   \null
  1746. X   \vfill
  1747. X}
  1748. X
  1749. X%====================== End of FunnelWeb TeX Definitions =======================
  1750. WV03: Test the typesetting of various kinds of macros.
  1751. X
  1752. XFirst create an output file to keep the analyser happy.
  1753. X\fwbeginmacro
  1754. X\fwfilename{wv03.out}{1}\fwequals \fwodef \fwcdef 
  1755. X\fwbeginmacronotes
  1756. X\fwisafile{This macro is attached to an output file.}
  1757. X\fwendmacronotes
  1758. X\fwendmacro
  1759. X
  1760. X
  1761. X1. Test macro never used.
  1762. X\fwbeginmacro
  1763. X\fwmacroname{Never Used}{2}\fwzero{}\fwequals \fwodef \fwcdef 
  1764. X\fwbeginmacronotes
  1765. X\fwusedin{This macro is NEVER invoked.}
  1766. X\fwendmacronotes
  1767. X\fwendmacro
  1768. X
  1769. X
  1770. X2. Test a macro used once.
  1771. X\fwbeginmacro
  1772. X\fwmacroname{Used Once}{3}\fwequals \fwodef \fwcdef 
  1773. X\fwbeginmacronotes
  1774. X\fwusedin{This macro is invoked in definition 7.}
  1775. X\fwendmacronotes
  1776. X\fwendmacro
  1777. X
  1778. X
  1779. X3. Test a macro used twice.
  1780. X\fwbeginmacro
  1781. X\fwmacroname{Used Twice}{4}\fwmany{}\fwequals \fwodef \fwcdef 
  1782. X\fwbeginmacronotes
  1783. X\fwusedin{This macro is invoked in definitions 7 and 8.}
  1784. X\fwendmacronotes
  1785. X\fwendmacro
  1786. X
  1787. X
  1788. X4. Test a macro used three times.
  1789. X\fwbeginmacro
  1790. X\fwmacroname{Used Thrice}{5}\fwmany{}\fwequals \fwodef \fwcdef 
  1791. X\fwbeginmacronotes
  1792. X\fwusedin{This macro is invoked in definitions 7, 8, and 9.}
  1793. X\fwendmacronotes
  1794. X\fwendmacro
  1795. X
  1796. X
  1797. X5. Test a macro used five times.
  1798. X\fwbeginmacro
  1799. X\fwmacroname{Used Quice}{6}\fwmany{}\fwequals \fwodef \fwcdef 
  1800. X\fwbeginmacronotes
  1801. X\fwusedin{This macro is invoked in definitions 7, 8, 9, 10, and 11.}
  1802. X\fwendmacronotes
  1803. X\fwendmacro
  1804. X
  1805. X
  1806. Here is the macro that does all the calling for the above.
  1807. X\fwbeginmacro
  1808. X\fwmacroname{Dummy1}{7}\fwzero{}\fwequals \fwodef \fwmacroname{Used Once}{3}\fwbtx[
  1809. X]fwetx=%
  1810. X\fwmacroname{Used Twice}{4}\fwbtx[
  1811. X]fwetx=%
  1812. X\fwmacroname{Used Thrice}{5}\fwbtx[
  1813. X]fwetx=%
  1814. X\fwmacroname{Used Quice}{6}\fwbtx[
  1815. X]fwetx=%
  1816. X\fwcdef 
  1817. X\fwbeginmacronotes
  1818. X\fwusedin{This macro is NEVER invoked.}
  1819. X\fwendmacronotes
  1820. X\fwendmacro
  1821. X
  1822. X
  1823. X\fwbeginmacro
  1824. X\fwmacroname{Dummy2}{8}\fwzero{}\fwequals \fwodef \fwmacroname{Used Twice}{4}\fwbtx[
  1825. X]fwetx=%
  1826. X\fwmacroname{Used Thrice}{5}\fwbtx[
  1827. X]fwetx=%
  1828. X\fwmacroname{Used Quice}{6}\fwbtx[
  1829. X]fwetx=%
  1830. X\fwcdef 
  1831. X\fwbeginmacronotes
  1832. X\fwusedin{This macro is NEVER invoked.}
  1833. X\fwendmacronotes
  1834. X\fwendmacro
  1835. X
  1836. X
  1837. X\fwbeginmacro
  1838. X\fwmacroname{Dummy3}{9}\fwzero{}\fwequals \fwodef \fwmacroname{Used Thrice}{5}\fwbtx[
  1839. X]fwetx=%
  1840. X\fwmacroname{Used Quice}{6}\fwbtx[
  1841. X]fwetx=%
  1842. X\fwcdef 
  1843. X\fwbeginmacronotes
  1844. X\fwusedin{This macro is NEVER invoked.}
  1845. X\fwendmacronotes
  1846. X\fwendmacro
  1847. X
  1848. X
  1849. X\fwbeginmacro
  1850. X\fwmacroname{Dummy4}{10}\fwzero{}\fwequals \fwodef \fwmacroname{Used Quice}{6}\fwbtx[
  1851. X]fwetx=%
  1852. X\fwcdef 
  1853. X\fwbeginmacronotes
  1854. X\fwusedin{This macro is NEVER invoked.}
  1855. X\fwendmacronotes
  1856. X\fwendmacro
  1857. X
  1858. X
  1859. X\fwbeginmacro
  1860. X\fwmacroname{Dummy5}{11}\fwzero{}\fwequals \fwodef \fwmacroname{Used Quice}{6}\fwbtx[
  1861. X]fwetx=%
  1862. X\fwcdef 
  1863. X\fwbeginmacronotes
  1864. X\fwusedin{This macro is NEVER invoked.}
  1865. X\fwendmacronotes
  1866. X\fwendmacro
  1867. X
  1868. X
  1869. X6. Test a macro with two body parts.
  1870. X\fwbeginmacro
  1871. X\fwmacroname{Two body parts}{12}\fwzero{}\fwplusequals \fwodef \fwbtx[Sloth]fwetx=%
  1872. X\fwcdef 
  1873. X\fwbeginmacronotes
  1874. X\fwseealso{This macro is defined in definitions 12 and 13.}
  1875. X\fwusedin{This macro is invoked in definition 21.}
  1876. X\fwendmacronotes
  1877. X\fwendmacro
  1878. X
  1879. X\fwbeginmacro
  1880. X\fwmacroname{Two body parts}{13}\fwzero{}\fwplusequals \fwodef \fwbtx[Walrus]fwetx=%
  1881. X\fwcdef 
  1882. X\fwbeginmacronotes
  1883. X\fwseealso{This macro is defined in definitions 12 and 13.}
  1884. X\fwusedin{This macro is invoked in definition 21.}
  1885. X\fwendmacronotes
  1886. X\fwendmacro
  1887. X
  1888. X
  1889. X7. Test a macro with three body parts.
  1890. X\fwbeginmacro
  1891. X\fwmacroname{Three body parts}{14}\fwzero{}\fwplusequals \fwodef \fwbtx[Sloth]fwetx=%
  1892. X\fwcdef 
  1893. X\fwbeginmacronotes
  1894. X\fwseealso{This macro is defined in definitions 14, 15, and 16.}
  1895. X\fwusedin{This macro is invoked in definition 19.}
  1896. X\fwendmacronotes
  1897. X\fwendmacro
  1898. X
  1899. X\fwbeginmacro
  1900. X\fwmacroname{Three body parts}{15}\fwzero{}\fwplusequals \fwodef \fwbtx[Walrus]fwetx=%
  1901. X\fwcdef 
  1902. X\fwbeginmacronotes
  1903. X\fwseealso{This macro is defined in definitions 14, 15, and 16.}
  1904. X\fwusedin{This macro is invoked in definition 19.}
  1905. X\fwendmacronotes
  1906. X\fwendmacro
  1907. X
  1908. X\fwbeginmacro
  1909. X\fwmacroname{Three body parts}{16}\fwzero{}\fwplusequals \fwodef \fwbtx[Aardvaark]fwetx=%
  1910. X\fwcdef 
  1911. X\fwbeginmacronotes
  1912. X\fwseealso{This macro is defined in definitions 14, 15, and 16.}
  1913. X\fwusedin{This macro is invoked in definition 19.}
  1914. X\fwendmacronotes
  1915. X\fwendmacro
  1916. X
  1917. X
  1918. X8. Test a macro with five body parts.
  1919. X\fwbeginmacro
  1920. X\fwmacroname{Five body parts}{17}\fwzero{}\fwplusequals \fwodef \fwbtx[Sloth]fwetx=%
  1921. X\fwcdef 
  1922. X\fwbeginmacronotes
  1923. X\fwseealso{This macro is defined in definitions 17, 18, 19, 20, and 21.}
  1924. X\fwusedin{This macro is NEVER invoked.}
  1925. X\fwendmacronotes
  1926. X\fwendmacro
  1927. X
  1928. X\fwbeginmacro
  1929. X\fwmacroname{Five body parts}{18}\fwzero{}\fwplusequals \fwodef \fwbtx[Walrus]fwetx=%
  1930. X\fwcdef 
  1931. X\fwbeginmacronotes
  1932. X\fwseealso{This macro is defined in definitions 17, 18, 19, 20, and 21.}
  1933. X\fwusedin{This macro is NEVER invoked.}
  1934. X\fwendmacronotes
  1935. X\fwendmacro
  1936. X
  1937. X\fwbeginmacro
  1938. X\fwmacroname{Five body parts}{19}\fwzero{}\fwplusequals \fwodef \fwmacroname{Three body parts}{14}\fwcdef 
  1939. X\fwbeginmacronotes
  1940. X\fwseealso{This macro is defined in definitions 17, 18, 19, 20, and 21.}
  1941. X\fwusedin{This macro is NEVER invoked.}
  1942. X\fwendmacronotes
  1943. X\fwendmacro
  1944. X
  1945. X\fwbeginmacro
  1946. X\fwmacroname{Five body parts}{20}\fwzero{}\fwplusequals \fwodef \fwbtx[Aardvaark]fwetx=%
  1947. X\fwcdef 
  1948. X\fwbeginmacronotes
  1949. X\fwseealso{This macro is defined in definitions 17, 18, 19, 20, and 21.}
  1950. X\fwusedin{This macro is NEVER invoked.}
  1951. X\fwendmacronotes
  1952. X\fwendmacro
  1953. X
  1954. X\fwbeginmacro
  1955. X\fwmacroname{Five body parts}{21}\fwzero{}\fwplusequals \fwodef \fwmacroname{Two body parts}{12}\fwcdef 
  1956. X\fwbeginmacronotes
  1957. X\fwseealso{This macro is defined in definitions 17, 18, 19, 20, and 21.}
  1958. X\fwusedin{This macro is NEVER invoked.}
  1959. X\fwendmacronotes
  1960. X\fwendmacro
  1961. X
  1962. X
  1963. X
  1964. X\bye
  1965. X
  1966. X
  1967. X%*******************************************************************************
  1968. X%*                    END OF AUTOMATICALLY GENERATED TEX FILE                  *
  1969. X%*******************************************************************************
  1970. X
  1971. END_OF_FILE
  1972. if test 20799 -ne `wc -c <'answers/wv03.tex'`; then
  1973.     echo shar: \"'answers/wv03.tex'\" unpacked with wrong size!
  1974. fi
  1975. # end of 'answers/wv03.tex'
  1976. fi
  1977. if test -f 'hackman/h_cha.tex' -a "${1}" != "-c" ; then 
  1978.   echo shar: Will not clobber existing file \"'hackman/h_cha.tex'\"
  1979. else
  1980. echo shar: Extracting \"'hackman/h_cha.tex'\" \(21460 characters\)
  1981. sed "s/^X//" >'hackman/h_cha.tex' <<'END_OF_FILE'
  1982. X%==============================================================================%
  1983. X%                               Start of Cha.tex                               %
  1984. X%==============================================================================%
  1985. X%
  1986. X% Copyright
  1987. X% ---------
  1988. X% Copyright (C) 1992 Ross N. Williams.
  1989. X% This file contains a chapter of the FunnelWeb Hacker's Manual.
  1990. X% See the main TeX file for this manual for further information.
  1991. X%
  1992. X%==============================================================================%
  1993. X
  1994. X\appendix
  1995. X
  1996. X%==============================================================================
  1997. X
  1998. X\chapter{GNU General Public License Version 2}
  1999. X\xx{GNU}{License}
  2000. X
  2001. This appendix contains a verbatim copy of Version~2 of the GNU
  2002. General Public License under which the FunnelWeb computer program is
  2003. released. Note that the \i{FunnelWeb User's Manual} and
  2004. X\i{FunnelWeb Hacker's
  2005. Manual} are released under a much simpler license that does not allow
  2006. modifications.
  2007. X
  2008. X\bigskip
  2009. X
  2010. X\hrule
  2011. X
  2012. X\bigskip
  2013. X
  2014. X\begin{verbatim}
  2015. X            GNU GENERAL PUBLIC LICENSE
  2016. X               Version 2, June 1991
  2017. X
  2018. X Copyright (C) 1989, 1991 Free Software Foundation, Inc.
  2019. X                          675 Mass Ave, Cambridge, MA 02139, USA
  2020. X Everyone is permitted to copy and distribute verbatim copies
  2021. X of this license document, but changing it is not allowed.
  2022. X
  2023. X                Preamble
  2024. X
  2025. X  The licenses for most software are designed to take away your
  2026. freedom to share and change it.  By contrast, the GNU General Public
  2027. License is intended to guarantee your freedom to share and change free
  2028. software--to make sure the software is free for all its users.  This
  2029. General Public License applies to most of the Free Software
  2030. XFoundation's software and to any other program whose authors commit to
  2031. using it.  (Some other Free Software Foundation software is covered by
  2032. the GNU Library General Public License instead.)  You can apply it to
  2033. your programs, too.
  2034. X
  2035. X  When we speak of free software, we are referring to freedom, not
  2036. price.  Our General Public Licenses are designed to make sure that you
  2037. have the freedom to distribute copies of free software (and charge for
  2038. this service if you wish), that you receive source code or can get it
  2039. if you want it, that you can change the software or use pieces of it
  2040. in new free programs; and that you know you can do these things.
  2041. X
  2042. X  To protect your rights, we need to make restrictions that forbid
  2043. anyone to deny you these rights or to ask you to surrender the rights.
  2044. These restrictions translate to certain responsibilities for you if you
  2045. distribute copies of the software, or if you modify it.
  2046. X
  2047. X  For example, if you distribute copies of such a program, whether
  2048. gratis or for a fee, you must give the recipients all the rights that
  2049. you have.  You must make sure that they, too, receive or can get the
  2050. source code.  And you must show them these terms so they know their
  2051. rights.
  2052. X
  2053. X  We protect your rights with two steps: (1) copyright the software, and
  2054. X(2) offer you this license which gives you legal permission to copy,
  2055. distribute and/or modify the software.
  2056. X
  2057. X  Also, for each author's protection and ours, we want to make certain
  2058. that everyone understands that there is no warranty for this free
  2059. software.  If the software is modified by someone else and passed on, we
  2060. want its recipients to know that what they have is not the original, so
  2061. that any problems introduced by others will not reflect on the original
  2062. authors' reputations.
  2063. X
  2064. X  Finally, any free program is threatened constantly by software
  2065. patents.  We wish to avoid the danger that redistributors of a free
  2066. program will individually obtain patent licenses, in effect making the
  2067. program proprietary.  To prevent this, we have made it clear that any
  2068. patent must be licensed for everyone's free use or not licensed at all.
  2069. X
  2070. X  The precise terms and conditions for copying, distribution and
  2071. modification follow.
  2072. X
  2073. X            GNU GENERAL PUBLIC LICENSE
  2074. X   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
  2075. X
  2076. X  0. This License applies to any program or other work which contains
  2077. a notice placed by the copyright holder saying it may be distributed
  2078. under the terms of this General Public License.  The "Program", below,
  2079. refers to any such program or work, and a "work based on the Program"
  2080. means either the Program or any derivative work under copyright law:
  2081. that is to say, a work containing the Program or a portion of it,
  2082. either verbatim or with modifications and/or translated into another
  2083. language.  (Hereinafter, translation is included without limitation in
  2084. the term "modification".)  Each licensee is addressed as "you".
  2085. X
  2086. Activities other than copying, distribution and modification are not
  2087. covered by this License; they are outside its scope.  The act of
  2088. running the Program is not restricted, and the output from the Program
  2089. is covered only if its contents constitute a work based on the
  2090. Program (independent of having been made by running the Program).
  2091. Whether that is true depends on what the Program does.
  2092. X
  2093. X  1. You may copy and distribute verbatim copies of the Program's
  2094. source code as you receive it, in any medium, provided that you
  2095. conspicuously and appropriately publish on each copy an appropriate
  2096. copyright notice and disclaimer of warranty; keep intact all the
  2097. notices that refer to this License and to the absence of any warranty;
  2098. and give any other recipients of the Program a copy of this License
  2099. along with the Program.
  2100. X
  2101. You may charge a fee for the physical act of transferring a copy, and
  2102. you may at your option offer warranty protection in exchange for a fee.
  2103. X
  2104. X  2. You may modify your copy or copies of the Program or any portion
  2105. of it, thus forming a work based on the Program, and copy and
  2106. distribute such modifications or work under the terms of Section 1
  2107. above, provided that you also meet all of these conditions:
  2108. X
  2109. X    a) You must cause the modified files to carry prominent notices
  2110. X    stating that you changed the files and the date of any change.
  2111. X
  2112. X    b) You must cause any work that you distribute or publish, that in
  2113. X    whole or in part contains or is derived from the Program or any
  2114. X    part thereof, to be licensed as a whole at no charge to all third
  2115. X    parties under the terms of this License.
  2116. X
  2117. X    c) If the modified program normally reads commands interactively
  2118. X    when run, you must cause it, when started running for such
  2119. X    interactive use in the most ordinary way, to print or display an
  2120. X    announcement including an appropriate copyright notice and a
  2121. X    notice that there is no warranty (or else, saying that you provide
  2122. X    a warranty) and that users may redistribute the program under
  2123. X    these conditions, and telling the user how to view a copy of this
  2124. X    License.  (Exception: if the Program itself is interactive but
  2125. X    does not normally print such an announcement, your work based on
  2126. X    the Program is not required to print an announcement.)
  2127. X
  2128. These requirements apply to the modified work as a whole.  If
  2129. identifiable sections of that work are not derived from the Program,
  2130. and can be reasonably considered independent and separate works in
  2131. themselves, then this License, and its terms, do not apply to those
  2132. sections when you distribute them as separate works.  But when you
  2133. distribute the same sections as part of a whole which is a work based
  2134. on the Program, the distribution of the whole must be on the terms of
  2135. this License, whose permissions for other licensees extend to the
  2136. entire whole, and thus to each and every part regardless of who wrote it.
  2137. X
  2138. Thus, it is not the intent of this section to claim rights or contest
  2139. your rights to work written entirely by you; rather, the intent is to
  2140. exercise the right to control the distribution of derivative or
  2141. collective works based on the Program.
  2142. X
  2143. In addition, mere aggregation of another work not based on the Program
  2144. with the Program (or with a work based on the Program) on a volume of
  2145. a storage or distribution medium does not bring the other work under
  2146. the scope of this License.
  2147. X
  2148. X  3. You may copy and distribute the Program (or a work based on it,
  2149. under Section 2) in object code or executable form under the terms of
  2150. Sections 1 and 2 above provided that you also do one of the following:
  2151. X
  2152. X    a) Accompany it with the complete corresponding machine-readable
  2153. X    source code, which must be distributed under the terms of Sections
  2154. X    1 and 2 above on a medium customarily used for software interchange; or,
  2155. X
  2156. X    b) Accompany it with a written offer, valid for at least three
  2157. X    years, to give any third party, for a charge no more than your
  2158. X    cost of physically performing source distribution, a complete
  2159. X    machine-readable copy of the corresponding source code, to be
  2160. X    distributed under the terms of Sections 1 and 2 above on a medium
  2161. X    customarily used for software interchange; or,
  2162. X
  2163. X    c) Accompany it with the information you received as to the offer
  2164. X    to distribute corresponding source code.  (This alternative is
  2165. X    allowed only for noncommercial distribution and only if you
  2166. X    received the program in object code or executable form with such
  2167. X    an offer, in accord with Subsection b above.)
  2168. X
  2169. The source code for a work means the preferred form of the work for
  2170. making modifications to it.  For an executable work, complete source
  2171. code means all the source code for all modules it contains, plus any
  2172. associated interface definition files, plus the scripts used to
  2173. control compilation and installation of the executable.  However, as a
  2174. special exception, the source code distributed need not include
  2175. anything that is normally distributed (in either source or binary
  2176. form) with the major components (compiler, kernel, and so on) of the
  2177. operating system on which the executable runs, unless that component
  2178. itself accompanies the executable.
  2179. X
  2180. If distribution of executable or object code is made by offering
  2181. access to copy from a designated place, then offering equivalent
  2182. access to copy the source code from the same place counts as
  2183. distribution of the source code, even though third parties are not
  2184. compelled to copy the source along with the object code.
  2185. X
  2186. X  4. You may not copy, modify, sublicense, or distribute the Program
  2187. except as expressly provided under this License.  Any attempt
  2188. otherwise to copy, modify, sublicense or distribute the Program is
  2189. void, and will automatically terminate your rights under this License.
  2190. However, parties who have received copies, or rights, from you under
  2191. this License will not have their licenses terminated so long as such
  2192. parties remain in full compliance.
  2193. X
  2194. X  5. You are not required to accept this License, since you have not
  2195. signed it.  However, nothing else grants you permission to modify or
  2196. distribute the Program or its derivative works.  These actions are
  2197. prohibited by law if you do not accept this License.  Therefore, by
  2198. modifying or distributing the Program (or any work based on the
  2199. Program), you indicate your acceptance of this License to do so, and
  2200. all its terms and conditions for copying, distributing or modifying
  2201. the Program or works based on it.
  2202. X
  2203. X  6. Each time you redistribute the Program (or any work based on the
  2204. Program), the recipient automatically receives a license from the
  2205. original licensor to copy, distribute or modify the Program subject to
  2206. these terms and conditions.  You may not impose any further
  2207. restrictions on the recipients' exercise of the rights granted herein.
  2208. You are not responsible for enforcing compliance by third parties to
  2209. this License.
  2210. X
  2211. X  7. If, as a consequence of a court judgment or allegation of patent
  2212. infringement or for any other reason (not limited to patent issues),
  2213. conditions are imposed on you (whether by court order, agreement or
  2214. otherwise) that contradict the conditions of this License, they do not
  2215. excuse you from the conditions of this License.  If you cannot
  2216. distribute so as to satisfy simultaneously your obligations under this
  2217. License and any other pertinent obligations, then as a consequence you
  2218. may not distribute the Program at all.  For example, if a patent
  2219. license would not permit royalty-free redistribution of the Program by
  2220. all those who receive copies directly or indirectly through you, then
  2221. the only way you could satisfy both it and this License would be to
  2222. refrain entirely from distribution of the Program.
  2223. X
  2224. If any portion of this section is held invalid or unenforceable under
  2225. any particular circumstance, the balance of the section is intended to
  2226. apply and the section as a whole is intended to apply in other
  2227. circumstances.
  2228. X
  2229. It is not the purpose of this section to induce you to infringe any
  2230. patents or other property right claims or to contest validity of any
  2231. such claims; this section has the sole purpose of protecting the
  2232. integrity of the free software distribution system, which is
  2233. implemented by public license practices.  Many people have made
  2234. generous contributions to the wide range of software distributed
  2235. through that system in reliance on consistent application of that
  2236. system; it is up to the author/donor to decide if he or she is willing
  2237. to distribute software through any other system and a licensee cannot
  2238. impose that choice.
  2239. X
  2240. This section is intended to make thoroughly clear what is believed to
  2241. be a consequence of the rest of this License.
  2242. X
  2243. X  8. If the distribution and/or use of the Program is restricted in
  2244. certain countries either by patents or by copyrighted interfaces, the
  2245. original copyright holder who places the Program under this License
  2246. may add an explicit geographical distribution limitation excluding
  2247. those countries, so that distribution is permitted only in or among
  2248. countries not thus excluded.  In such case, this License incorporates
  2249. the limitation as if written in the body of this License.
  2250. X
  2251. X  9. The Free Software Foundation may publish revised and/or new versions
  2252. of the General Public License from time to time.  Such new versions will
  2253. be similar in spirit to the present version, but may differ in detail to
  2254. address new problems or concerns.
  2255. X
  2256. XEach version is given a distinguishing version number.  If the Program
  2257. specifies a version number of this License which applies to it and "any
  2258. later version", you have the option of following the terms and conditions
  2259. either of that version or of any later version published by the Free
  2260. Software Foundation.  If the Program does not specify a version number of
  2261. this License, you may choose any version ever published by the Free Software
  2262. XFoundation.
  2263. X
  2264. X  10. If you wish to incorporate parts of the Program into other free
  2265. programs whose distribution conditions are different, write to the author
  2266. to ask for permission.  For software which is copyrighted by the Free
  2267. Software Foundation, write to the Free Software Foundation; we sometimes
  2268. make exceptions for this.  Our decision will be guided by the two goals
  2269. of preserving the free status of all derivatives of our free software and
  2270. of promoting the sharing and reuse of software generally.
  2271. X
  2272. X                NO WARRANTY
  2273. X
  2274. X  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
  2275. XFOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
  2276. OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
  2277. PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
  2278. OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  2279. MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
  2280. TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
  2281. PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
  2282. REPAIR OR CORRECTION.
  2283. X
  2284. X  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
  2285. WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
  2286. REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
  2287. INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
  2288. OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
  2289. TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
  2290. YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
  2291. PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
  2292. POSSIBILITY OF SUCH DAMAGES.
  2293. X
  2294. X             END OF TERMS AND CONDITIONS
  2295. X
  2296. X    Appendix: How to Apply These Terms to Your New Programs
  2297. X
  2298. X  If you develop a new program, and you want it to be of the greatest
  2299. possible use to the public, the best way to achieve this is to make it
  2300. free software which everyone can redistribute and change under these terms.
  2301. X
  2302. X  To do so, attach the following notices to the program.  It is safest
  2303. to attach them to the start of each source file to most effectively
  2304. convey the exclusion of warranty; and each file should have at least
  2305. the "copyright" line and a pointer to where the full notice is found.
  2306. X
  2307. X    <one line to give the program's name and a brief idea of what it does.>
  2308. X    Copyright (C) 19yy  <name of author>
  2309. X
  2310. X    This program is free software; you can redistribute it and/or modify
  2311. X    it under the terms of the GNU General Public License as published by
  2312. X    the Free Software Foundation; either version 2 of the License, or
  2313. X    (at your option) any later version.
  2314. X
  2315. X    This program is distributed in the hope that it will be useful,
  2316. X    but WITHOUT ANY WARRANTY; without even the implied warranty of
  2317. X    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  2318. X    GNU General Public License for more details.
  2319. X
  2320. X    You should have received a copy of the GNU General Public License
  2321. X    along with this program; if not, write to the Free Software
  2322. X    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  2323. X
  2324. Also add information on how to contact you by electronic and paper mail.
  2325. X
  2326. If the program is interactive, make it output a short notice like this
  2327. when it starts in an interactive mode:
  2328. X
  2329. X    Gnomovision version 69, Copyright (C) 19yy name of author
  2330. X    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details
  2331. X    type `show w'.
  2332. X    This is free software, and you are welcome to redistribute it
  2333. X    under certain conditions; type `show c' for details.
  2334. X
  2335. The hypothetical commands `show w' and `show c' should show the appropriate
  2336. parts of the General Public License.  Of course, the commands you use may
  2337. be called something other than `show w' and `show c'; they could even be
  2338. mouse-clicks or menu items--whatever suits your program.
  2339. X
  2340. You should also get your employer (if you work as a programmer) or your
  2341. school, if any, to sign a "copyright disclaimer" for the program, if
  2342. necessary.  Here is a sample; alter the names:
  2343. X
  2344. X  Yoyodyne, Inc., hereby disclaims all copyright interest in the program
  2345. X  `Gnomovision' (which makes passes at compilers) written by James Hacker.
  2346. X
  2347. X  <signature of Ty Coon>, 1 April 1989
  2348. X  Ty Coon, President of Vice
  2349. X
  2350. This General Public License does not permit incorporating your program into
  2351. proprietary programs.  If your program is a subroutine library, you may
  2352. consider it more useful to permit linking proprietary applications with the
  2353. library.  If this is what you want to do, use the GNU Library General
  2354. Public License instead of this License.
  2355. X\end{verbatim}
  2356. X
  2357. X\bigskip
  2358. X
  2359. X\hrule
  2360. X
  2361. X%==============================================================================
  2362. X
  2363. X\chapter{References}
  2364. X\x{references}
  2365. X
  2366. X\paper{ANSI} Australian Standard AS~3955-1991, \dq{Programming Languages --- C},
  2367. X(ISBN: 0-7262-6970-0), 12~July~1991. Identical to:
  2368. International Standard ISO/IEC 9899:
  2369. X1990 Programming Languages --- C.\checked{}
  2370. X
  2371. X\paper{Bentley86} Bentley~J., \dq{Programming Pearls: Literate Programming},
  2372. X\i{Communications of the ACM}, Vol.~29, No.~5, pp.~364--369, 1986.\checked{}
  2373. X
  2374. X\paper{Hoare80} Hoare~C.A.R., \dq{The Emperor's Old Clothes},
  2375. Turing Award Lecture, 1980, from \dq{ACM Turing Award Lectures: The
  2376. XFirst Twenty Years 1966--1985},
  2377. ACM Press, New York, (ISBN: 0-201-07794-9), 1987 (see p.~155).\checked{}
  2378. X
  2379. X\paper{Horton90} Horton~M.R., \dq{Portable C Software},
  2380. Prentice Hall, (ISBN: 0-13-868050-7), 1990.\checked{}
  2381. X
  2382. X\paper{Kernighan88} Kernighan~B.W., Ritchie~D.M., \dq{The~C Programming
  2383. Language}, (second edition,\dq{ANSI~C}), Prentice Hall,
  2384. X(ISBN: 0-13-110362-8), 1988.\checked{}
  2385. X
  2386. X\paper{Knuth83} Knuth~D.E., \dq{The WEB System of Structured
  2387. Documentation}, (Web User Manual, Version~2.5, November, 1983),
  2388. Stanford University, 1983.\checked{}
  2389. X
  2390. X\paper{Knuth84} Knuth~D.E., \dq{The \TeX{}book}, Addison-Wesley,
  2391. X(ISBN: 0-201-13448-9), 1984.
  2392. X
  2393. X\paper{Lamport86} Lamport~L., \dq{\LaTeX{}: A Document Preparation System},
  2394. Addison-Wesley, (ISBN: 0-201-15790-X),
  2395. X1986.\checked{}
  2396. X
  2397. X\paper{Rabinowitz90} Rabinowitz~H., Schaap~C., \dq{Portable~C}, Prentice Hall,
  2398. X(ISBN:0-13-685967-4) 1990.\checked{}
  2399. X
  2400. X\paper{Ramsey89} Ramsey~N., \dq{Weaving a Language-Independent WEB},
  2401. X\i{Communications of the ACM}, Vol.~32, No.~9, pp.~1051--1055, 1989.\checked{}
  2402. X
  2403. X\paper{Tarjan72} Tarjan~R.E.,
  2404. X\dq{Depth-First Search and Linear Graph Algorithms},
  2405. X\i{SIAM Journal of Computing}, Vol.~1, No.~2, pp.~146--160,
  2406. June 1972.\checked{}
  2407. X
  2408. X\paper{USDOD83} \dq{The Programming Language Ada Reference Manual},
  2409. American National Standards Institute Inc,
  2410. ANSI/MIL-STD-1815A-1983, 1983.\checked{}
  2411. X
  2412. X%==============================================================================
  2413. X
  2414. X\addcontentsline{toc}{chapter}{Index}
  2415. X\def\indexentry#1#2{\item #1~#2}
  2416. X\begin{theindex}
  2417. X\input h_manual.sin
  2418. X\end{theindex}
  2419. X
  2420. X%==============================================================================%
  2421. X%                               End of Cha.tex                                 %
  2422. X%==============================================================================%
  2423. END_OF_FILE
  2424. if test 21460 -ne `wc -c <'hackman/h_cha.tex'`; then
  2425.     echo shar: \"'hackman/h_cha.tex'\" unpacked with wrong size!
  2426. fi
  2427. # end of 'hackman/h_cha.tex'
  2428. fi
  2429. if test -f 'sources/help_gnu.ctx' -a "${1}" != "-c" ; then 
  2430.   echo shar: Will not clobber existing file \"'sources/help_gnu.ctx'\"
  2431. else
  2432. echo shar: Extracting \"'sources/help_gnu.ctx'\" \(20705 characters\)
  2433. sed "s/^X//" >'sources/help_gnu.ctx' <<'END_OF_FILE'
  2434. X WX("            GNU GENERAL PUBLIC LICENSE");
  2435. X WX("               Version 2, June 1991");
  2436. X WX("");
  2437. X WX(" Copyright (C) 1989, 1991 Free Software Foundation, Inc.");
  2438. X WX("                          675 Mass Ave, Cambridge, MA 02139, USA");
  2439. X WX(" Everyone is permitted to copy and distribute verbatim copies");
  2440. X WX(" of this license document, but changing it is not allowed.");
  2441. X WX("");
  2442. X WX("                Preamble");
  2443. X WX("");
  2444. X WX("  The licenses for most software are designed to take away your");
  2445. X WX("freedom to share and change it.  By contrast, the GNU General Public");
  2446. X WX("License is intended to guarantee your freedom to share and change free");
  2447. X WX("software--to make sure the software is free for all its users.  This");
  2448. X WX("General Public License applies to most of the Free Software");
  2449. X WX("Foundation's software and to any other program whose authors commit to");
  2450. X WX("using it.  (Some other Free Software Foundation software is covered by");
  2451. X WX("the GNU Library General Public License instead.)  You can apply it to");
  2452. X WX("your programs, too.");
  2453. X WX("");
  2454. X WX("  When we speak of free software, we are referring to freedom, not");
  2455. X WX("price.  Our General Public Licenses are designed to make sure that you");
  2456. X WX("have the freedom to distribute copies of free software (and charge for");
  2457. X WX("this service if you wish), that you receive source code or can get it");
  2458. X WX("if you want it, that you can change the software or use pieces of it");
  2459. X WX("in new free programs; and that you know you can do these things.");
  2460. X WX("");
  2461. X WX("  To protect your rights, we need to make restrictions that forbid");
  2462. X WX("anyone to deny you these rights or to ask you to surrender the rights.");
  2463. X WX("These restrictions translate to certain responsibilities for you if you");
  2464. X WX("distribute copies of the software, or if you modify it.");
  2465. X WX("");
  2466. X WX("  For example, if you distribute copies of such a program, whether");
  2467. X WX("gratis or for a fee, you must give the recipients all the rights that");
  2468. X WX("you have.  You must make sure that they, too, receive or can get the");
  2469. X WX("source code.  And you must show them these terms so they know their");
  2470. X WX("rights.");
  2471. X WX("");
  2472. X WX("  We protect your rights with two steps: (1) copyright the software, and");
  2473. X WX("(2) offer you this license which gives you legal permission to copy,");
  2474. X WX("distribute and/or modify the software.");
  2475. X WX("");
  2476. X WX("  Also, for each author's protection and ours, we want to make certain");
  2477. X WX("that everyone understands that there is no warranty for this free");
  2478. X WX("software.  If the software is modified by someone else and passed on, we");
  2479. X WX("want its recipients to know that what they have is not the original, so");
  2480. X WX("that any problems introduced by others will not reflect on the original");
  2481. X WX("authors' reputations.");
  2482. X WX("");
  2483. X WX("  Finally, any free program is threatened constantly by software");
  2484. X WX("patents.  We wish to avoid the danger that redistributors of a free");
  2485. X WX("program will individually obtain patent licenses, in effect making the");
  2486. X WX("program proprietary.  To prevent this, we have made it clear that any");
  2487. X WX("patent must be licensed for everyone's free use or not licensed at all.");
  2488. X WX("");
  2489. X WX("  The precise terms and conditions for copying, distribution and");
  2490. X WX("modification follow.");
  2491. X WX("");
  2492. X WX("            GNU GENERAL PUBLIC LICENSE");
  2493. X WX("   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION");
  2494. X WX("");
  2495. X WX("  0. This License applies to any program or other work which contains");
  2496. X WX("a notice placed by the copyright holder saying it may be distributed");
  2497. X WX("under the terms of this General Public License.  The \"Program\", below,");
  2498. X WX("refers to any such program or work, and a \"work based on the Program\"");
  2499. X WX("means either the Program or any derivative work under copyright law:");
  2500. X WX("that is to say, a work containing the Program or a portion of it,");
  2501. X WX("either verbatim or with modifications and/or translated into another");
  2502. X WX("language.  (Hereinafter, translation is included without limitation in");
  2503. X WX("the term \"modification\".)  Each licensee is addressed as \"you\".");
  2504. X WX("");
  2505. X WX("Activities other than copying, distribution and modification are not");
  2506. X WX("covered by this License; they are outside its scope.  The act of");
  2507. X WX("running the Program is not restricted, and the output from the Program");
  2508. X WX("is covered only if its contents constitute a work based on the");
  2509. X WX("Program (independent of having been made by running the Program).");
  2510. X WX("Whether that is true depends on what the Program does.");
  2511. X WX("");
  2512. X WX("  1. You may copy and distribute verbatim copies of the Program's");
  2513. X WX("source code as you receive it, in any medium, provided that you");
  2514. X WX("conspicuously and appropriately publish on each copy an appropriate");
  2515. X WX("copyright notice and disclaimer of warranty; keep intact all the");
  2516. X WX("notices that refer to this License and to the absence of any warranty;");
  2517. X WX("and give any other recipients of the Program a copy of this License");
  2518. X WX("along with the Program.");
  2519. X WX("");
  2520. X WX("You may charge a fee for the physical act of transferring a copy, and");
  2521. X WX("you may at your option offer warranty protection in exchange for a fee.");
  2522. X WX("");
  2523. X WX("  2. You may modify your copy or copies of the Program or any portion");
  2524. X WX("of it, thus forming a work based on the Program, and copy and");
  2525. X WX("distribute such modifications or work under the terms of Section 1");
  2526. X WX("above, provided that you also meet all of these conditions:");
  2527. X WX("");
  2528. X WX("    a) You must cause the modified files to carry prominent notices");
  2529. X WX("    stating that you changed the files and the date of any change.");
  2530. X WX("");
  2531. X WX("    b) You must cause any work that you distribute or publish, that in");
  2532. X WX("    whole or in part contains or is derived from the Program or any");
  2533. X WX("    part thereof, to be licensed as a whole at no charge to all third");
  2534. X WX("    parties under the terms of this License.");
  2535. X WX("");
  2536. X WX("    c) If the modified program normally reads commands interactively");
  2537. X WX("    when run, you must cause it, when started running for such");
  2538. X WX("    interactive use in the most ordinary way, to print or display an");
  2539. X WX("    announcement including an appropriate copyright notice and a");
  2540. X WX("    notice that there is no warranty (or else, saying that you provide");
  2541. X WX("    a warranty) and that users may redistribute the program under");
  2542. X WX("    these conditions, and telling the user how to view a copy of this");
  2543. X WX("    License.  (Exception: if the Program itself is interactive but");
  2544. X WX("    does not normally print such an announcement, your work based on");
  2545. X WX("    the Program is not required to print an announcement.)");
  2546. X WX("");
  2547. X WX("These requirements apply to the modified work as a whole.  If");
  2548. X WX("identifiable sections of that work are not derived from the Program,");
  2549. X WX("and can be reasonably considered independent and separate works in");
  2550. X WX("themselves, then this License, and its terms, do not apply to those");
  2551. X WX("sections when you distribute them as separate works.  But when you");
  2552. X WX("distribute the same sections as part of a whole which is a work based");
  2553. X WX("on the Program, the distribution of the whole must be on the terms of");
  2554. X WX("this License, whose permissions for other licensees extend to the");
  2555. X WX("entire whole, and thus to each and every part regardless of who wrote it.");
  2556. X WX("");
  2557. X WX("Thus, it is not the intent of this section to claim rights or contest");
  2558. X WX("your rights to work written entirely by you; rather, the intent is to");
  2559. X WX("exercise the right to control the distribution of derivative or");
  2560. X WX("collective works based on the Program.");
  2561. X WX("");
  2562. X WX("In addition, mere aggregation of another work not based on the Program");
  2563. X WX("with the Program (or with a work based on the Program) on a volume of");
  2564. X WX("a storage or distribution medium does not bring the other work under");
  2565. X WX("the scope of this License.");
  2566. X WX("");
  2567. X WX("  3. You may copy and distribute the Program (or a work based on it,");
  2568. X WX("under Section 2) in object code or executable form under the terms of");
  2569. X WX("Sections 1 and 2 above provided that you also do one of the following:");
  2570. X WX("");
  2571. X WX("    a) Accompany it with the complete corresponding machine-readable");
  2572. X WX("    source code, which must be distributed under the terms of Sections");
  2573. X WX("    1 and 2 above on a medium customarily used for software interchange; or,");
  2574. X WX("");
  2575. X WX("    b) Accompany it with a written offer, valid for at least three");
  2576. X WX("    years, to give any third party, for a charge no more than your");
  2577. X WX("    cost of physically performing source distribution, a complete");
  2578. X WX("    machine-readable copy of the corresponding source code, to be");
  2579. X WX("    distributed under the terms of Sections 1 and 2 above on a medium");
  2580. X WX("    customarily used for software interchange; or,");
  2581. X WX("");
  2582. X WX("    c) Accompany it with the information you received as to the offer");
  2583. X WX("    to distribute corresponding source code.  (This alternative is");
  2584. X WX("    allowed only for noncommercial distribution and only if you");
  2585. X WX("    received the program in object code or executable form with such");
  2586. X WX("    an offer, in accord with Subsection b above.)");
  2587. X WX("");
  2588. X WX("The source code for a work means the preferred form of the work for");
  2589. X WX("making modifications to it.  For an executable work, complete source");
  2590. X WX("code means all the source code for all modules it contains, plus any");
  2591. X WX("associated interface definition files, plus the scripts used to");
  2592. X WX("control compilation and installation of the executable.  However, as a");
  2593. X WX("special exception, the source code distributed need not include");
  2594. X WX("anything that is normally distributed (in either source or binary");
  2595. X WX("form) with the major components (compiler, kernel, and so on) of the");
  2596. X WX("operating system on which the executable runs, unless that component");
  2597. X WX("itself accompanies the executable.");
  2598. X WX("");
  2599. X WX("If distribution of executable or object code is made by offering");
  2600. X WX("access to copy from a designated place, then offering equivalent");
  2601. X WX("access to copy the source code from the same place counts as");
  2602. X WX("distribution of the source code, even though third parties are not");
  2603. X WX("compelled to copy the source along with the object code.");
  2604. X WX("");
  2605. X WX("  4. You may not copy, modify, sublicense, or distribute the Program");
  2606. X WX("except as expressly provided under this License.  Any attempt");
  2607. X WX("otherwise to copy, modify, sublicense or distribute the Program is");
  2608. X WX("void, and will automatically terminate your rights under this License.");
  2609. X WX("However, parties who have received copies, or rights, from you under");
  2610. X WX("this License will not have their licenses terminated so long as such");
  2611. X WX("parties remain in full compliance.");
  2612. X WX("");
  2613. X WX("  5. You are not required to accept this License, since you have not");
  2614. X WX("signed it.  However, nothing else grants you permission to modify or");
  2615. X WX("distribute the Program or its derivative works.  These actions are");
  2616. X WX("prohibited by law if you do not accept this License.  Therefore, by");
  2617. X WX("modifying or distributing the Program (or any work based on the");
  2618. X WX("Program), you indicate your acceptance of this License to do so, and");
  2619. X WX("all its terms and conditions for copying, distributing or modifying");
  2620. X WX("the Program or works based on it.");
  2621. X WX("");
  2622. X WX("  6. Each time you redistribute the Program (or any work based on the");
  2623. X WX("Program), the recipient automatically receives a license from the");
  2624. X WX("original licensor to copy, distribute or modify the Program subject to");
  2625. X WX("these terms and conditions.  You may not impose any further");
  2626. X WX("restrictions on the recipients' exercise of the rights granted herein.");
  2627. X WX("You are not responsible for enforcing compliance by third parties to");
  2628. X WX("this License.");
  2629. X WX("");
  2630. X WX("  7. If, as a consequence of a court judgment or allegation of patent");
  2631. X WX("infringement or for any other reason (not limited to patent issues),");
  2632. X WX("conditions are imposed on you (whether by court order, agreement or");
  2633. X WX("otherwise) that contradict the conditions of this License, they do not");
  2634. X WX("excuse you from the conditions of this License.  If you cannot");
  2635. X WX("distribute so as to satisfy simultaneously your obligations under this");
  2636. X WX("License and any other pertinent obligations, then as a consequence you");
  2637. X WX("may not distribute the Program at all.  For example, if a patent");
  2638. X WX("license would not permit royalty-free redistribution of the Program by");
  2639. X WX("all those who receive copies directly or indirectly through you, then");
  2640. X WX("the only way you could satisfy both it and this License would be to");
  2641. X WX("refrain entirely from distribution of the Program.");
  2642. X WX("");
  2643. X WX("If any portion of this section is held invalid or unenforceable under");
  2644. X WX("any particular circumstance, the balance of the section is intended to");
  2645. X WX("apply and the section as a whole is intended to apply in other");
  2646. X WX("circumstances.");
  2647. X WX("");
  2648. X WX("It is not the purpose of this section to induce you to infringe any");
  2649. X WX("patents or other property right claims or to contest validity of any");
  2650. X WX("such claims; this section has the sole purpose of protecting the");
  2651. X WX("integrity of the free software distribution system, which is");
  2652. X WX("implemented by public license practices.  Many people have made");
  2653. X WX("generous contributions to the wide range of software distributed");
  2654. X WX("through that system in reliance on consistent application of that");
  2655. X WX("system; it is up to the author/donor to decide if he or she is willing");
  2656. X WX("to distribute software through any other system and a licensee cannot");
  2657. X WX("impose that choice.");
  2658. X WX("");
  2659. X WX("This section is intended to make thoroughly clear what is believed to");
  2660. X WX("be a consequence of the rest of this License.");
  2661. X WX("");
  2662. X WX("  8. If the distribution and/or use of the Program is restricted in");
  2663. X WX("certain countries either by patents or by copyrighted interfaces, the");
  2664. X WX("original copyright holder who places the Program under this License");
  2665. X WX("may add an explicit geographical distribution limitation excluding");
  2666. X WX("those countries, so that distribution is permitted only in or among");
  2667. X WX("countries not thus excluded.  In such case, this License incorporates");
  2668. X WX("the limitation as if written in the body of this License.");
  2669. X WX("");
  2670. X WX("  9. The Free Software Foundation may publish revised and/or new versions");
  2671. X WX("of the General Public License from time to time.  Such new versions will");
  2672. X WX("be similar in spirit to the present version, but may differ in detail to");
  2673. X WX("address new problems or concerns.");
  2674. X WX("");
  2675. X WX("Each version is given a distinguishing version number.  If the Program");
  2676. X WX("specifies a version number of this License which applies to it and \"any");
  2677. X WX("later version\", you have the option of following the terms and conditions");
  2678. X WX("either of that version or of any later version published by the Free");
  2679. X WX("Software Foundation.  If the Program does not specify a version number of");
  2680. X WX("this License, you may choose any version ever published by the Free Software");
  2681. X WX("Foundation.");
  2682. X WX("");
  2683. X WX("  10. If you wish to incorporate parts of the Program into other free");
  2684. X WX("programs whose distribution conditions are different, write to the author");
  2685. X WX("to ask for permission.  For software which is copyrighted by the Free");
  2686. X WX("Software Foundation, write to the Free Software Foundation; we sometimes");
  2687. X WX("make exceptions for this.  Our decision will be guided by the two goals");
  2688. X WX("of preserving the free status of all derivatives of our free software and");
  2689. X WX("of promoting the sharing and reuse of software generally.");
  2690. X WX("");
  2691. X WX("                NO WARRANTY");
  2692. X WX("");
  2693. X WX("  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY");
  2694. X WX("FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN");
  2695. X WX("OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES");
  2696. X WX("PROVIDE THE PROGRAM \"AS IS\" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED");
  2697. X WX("OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF");
  2698. X WX("MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS");
  2699. X WX("TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE");
  2700. X WX("PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,");
  2701. X WX("REPAIR OR CORRECTION.");
  2702. X WX("");
  2703. X WX("  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING");
  2704. X WX("WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR");
  2705. X WX("REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,");
  2706. X WX("INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING");
  2707. X WX("OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED");
  2708. X WX("TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY");
  2709. X WX("YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER");
  2710. X WX("PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE");
  2711. X WX("POSSIBILITY OF SUCH DAMAGES.");
  2712. X WX("");
  2713. X WX("             END OF TERMS AND CONDITIONS");
  2714. X WX("");
  2715. X WX("    Appendix: How to Apply These Terms to Your New Programs");
  2716. X WX("");
  2717. X WX("  If you develop a new program, and you want it to be of the greatest");
  2718. X WX("possible use to the public, the best way to achieve this is to make it");
  2719. X WX("free software which everyone can redistribute and change under these terms.");
  2720. X WX("");
  2721. X WX("  To do so, attach the following notices to the program.  It is safest");
  2722. X WX("to attach them to the start of each source file to most effectively");
  2723. X WX("convey the exclusion of warranty; and each file should have at least");
  2724. X WX("the \"copyright\" line and a pointer to where the full notice is found.");
  2725. X WX("");
  2726. X WX("    <one line to give the program's name and a brief idea of what it does.>");
  2727. X WX("    Copyright (C) 19yy  <name of author>");
  2728. X WX("");
  2729. X WX("    This program is free software; you can redistribute it and/or modify");
  2730. X WX("    it under the terms of the GNU General Public License as published by");
  2731. X WX("    the Free Software Foundation; either version 2 of the License, or");
  2732. X WX("    (at your option) any later version.");
  2733. X WX("");
  2734. X WX("    This program is distributed in the hope that it will be useful,");
  2735. X WX("    but WITHOUT ANY WARRANTY; without even the implied warranty of");
  2736. X WX("    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the");
  2737. X WX("    GNU General Public License for more details.");
  2738. X WX("");
  2739. X WX("    You should have received a copy of the GNU General Public License");
  2740. X WX("    along with this program; if not, write to the Free Software");
  2741. X WX("    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.");
  2742. X WX("");
  2743. X WX("Also add information on how to contact you by electronic and paper mail.");
  2744. X WX("");
  2745. X WX("If the program is interactive, make it output a short notice like this");
  2746. X WX("when it starts in an interactive mode:");
  2747. X WX("");
  2748. X WX("    Gnomovision version 69, Copyright (C) 19yy name of author");
  2749. X WX("    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.");
  2750. X WX("    This is free software, and you are welcome to redistribute it");
  2751. X WX("    under certain conditions; type `show c' for details.");
  2752. X WX("");
  2753. X WX("The hypothetical commands `show w' and `show c' should show the appropriate");
  2754. X WX("parts of the General Public License.  Of course, the commands you use may");
  2755. X WX("be called something other than `show w' and `show c'; they could even be");
  2756. X WX("mouse-clicks or menu items--whatever suits your program.");
  2757. X WX("");
  2758. X WX("You should also get your employer (if you work as a programmer) or your");
  2759. X WX("school, if any, to sign a \"copyright disclaimer\" for the program, if");
  2760. X WX("necessary.  Here is a sample; alter the names:");
  2761. X WX("");
  2762. X WX("  Yoyodyne, Inc., hereby disclaims all copyright interest in the program");
  2763. X WX("  `Gnomovision' (which makes passes at compilers) written by James Hacker.");
  2764. X WX("");
  2765. X WX("  <signature of Ty Coon>, 1 April 1989");
  2766. X WX("  Ty Coon, President of Vice");
  2767. X WX("");
  2768. X WX("This General Public License does not permit incorporating your program into");
  2769. X WX("proprietary programs.  If your program is a subroutine library, you may");
  2770. X WX("consider it more useful to permit linking proprietary applications with the");
  2771. X WX("library.  If this is what you want to do, use the GNU Library General");
  2772. X WX("Public License instead of this License.");
  2773. END_OF_FILE
  2774. if test 20705 -ne `wc -c <'sources/help_gnu.ctx'`; then
  2775.     echo shar: \"'sources/help_gnu.ctx'\" unpacked with wrong size!
  2776. fi
  2777. # end of 'sources/help_gnu.ctx'
  2778. fi
  2779. echo shar: End of archive 11 \(of 20\).
  2780. cp /dev/null ark11isdone
  2781. MISSING=""
  2782. for I in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 ; do
  2783.     if test ! -f ark${I}isdone ; then
  2784.     MISSING="${MISSING} ${I}"
  2785.     fi
  2786. done
  2787. if test "${MISSING}" = "" ; then
  2788.     echo You have unpacked all 20 archives.
  2789.     rm -f ark[1-9]isdone ark[1-9][0-9]isdone
  2790. else
  2791.     echo You still need to unpack the following archives:
  2792.     echo "        " ${MISSING}
  2793. fi
  2794. ##  End of shell archive.
  2795. exit 0
  2796.