| 1 |
<HTML> |
| 2 |
|
| 3 |
<!-----------------------------------------------------------------------------> |
| 4 |
<!-- START OF AUTOMATICALLY GENERATED HTML FILE --> |
| 5 |
<!-----------------------------------------------------------------------------> |
| 6 |
<!-- --> |
| 7 |
<!-- This HTML file was generated by the FunnelWeb literate programming --> |
| 8 |
<!-- preprocessor. You can display this file using popular web browsers --> |
| 9 |
<!-- such as Netscape Navigator and Microsoft Internet Explorer. --> |
| 10 |
<!-- --> |
| 11 |
<!-- FunnelWeb is a preprocessor that allows programmers to weave programs --> |
| 12 |
<!-- and their documentation together in a single document. The FunnelWeb --> |
| 13 |
<!-- program analyses such documents producing both program files and --> |
| 14 |
<!-- typeset documentation such as this HTML file. --> |
| 15 |
<!-- --> |
| 16 |
<!-- FunnelWeb was created by Ross N. Williams (www.ross.net) and is --> |
| 17 |
<!-- available free of charge under a GNU General Public Licence. --> |
| 18 |
<!-- The FunnelWeb website can be found at http://www.ross.net/funnelweb/ --> |
| 19 |
<!-- --> |
| 20 |
<!-----------------------------------------------------------------------------> |
| 21 |
|
| 22 |
<HEAD> |
| 23 |
|
| 24 |
<TITLE>Package wv03</TITLE> |
| 25 |
|
| 26 |
<STYLE TYPE="text/css"> |
| 27 |
<!-- |
| 28 |
A {text-decoration: none} |
| 29 |
H1 { font-family: sans-serif; font-size: large } |
| 30 |
H2 { font-family: sans-serif; font-size: medium; font-weight: bold } |
| 31 |
H3 { font-family: sans-serif; font-size: medium } |
| 32 |
H4 { font-family: sans-serif; font-size: small } |
| 33 |
H5 { font-family: sans-serif; font-size: small } |
| 34 |
// --> |
| 35 |
</STYLE> |
| 36 |
|
| 37 |
</HEAD> |
| 38 |
<BODY BGCOLOR=#FFFFFF TEXT=#000000 LINK=#CC0033 VLINK=#CC0033 ALINK=#CC0000> |
| 39 |
|
| 40 |
<P><TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0><TR><TD WIDTH=400> |
| 41 |
WV03: Test the typesetting of various kinds of macros. |
| 42 |
|
| 43 |
<P>First create an output file to keep the analyser happy. |
| 44 |
</TD></TR></TABLE> |
| 45 |
<FONT COLOR=#CC0033> |
| 46 |
<P><A NAME="1"></A><B>1. File:</B> wv03.out={<FONT COLOR=#000033></FONT>}<BR> |
| 47 |
</FONT> |
| 48 |
<FONT SIZE=1>This macro is attached to an output file.</FONT> |
| 49 |
<P><TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0><TR><TD WIDTH=400> |
| 50 |
|
| 51 |
|
| 52 |
<P>1. Test macro never used. |
| 53 |
</TD></TR></TABLE> |
| 54 |
<FONT COLOR=#CC0033> |
| 55 |
<P><A NAME="2"></A>2. Never Used[<B>Z</B>]={<FONT COLOR=#000033></FONT>}<BR> |
| 56 |
</FONT> |
| 57 |
<FONT SIZE=1>This macro is NEVER invoked.</FONT> |
| 58 |
<P><TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0><TR><TD WIDTH=400> |
| 59 |
|
| 60 |
|
| 61 |
<P>2. Test a macro used once. |
| 62 |
</TD></TR></TABLE> |
| 63 |
<FONT COLOR=#CC0033> |
| 64 |
<P><A NAME="3"></A>3. <A HREF="#7">Used Once</A>={<FONT COLOR=#000033></FONT>}<BR> |
| 65 |
</FONT> |
| 66 |
<FONT SIZE=1>This macro is invoked in definition <A HREF="#7">7</A>.</FONT><BR> |
| 67 |
<P><TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0><TR><TD WIDTH=400> |
| 68 |
|
| 69 |
|
| 70 |
<P>3. Test a macro used twice. |
| 71 |
</TD></TR></TABLE> |
| 72 |
<FONT COLOR=#CC0033> |
| 73 |
<P><A NAME="4"></A>4. <A HREF="#7">Used Twice</A>[<B>M</B>]={<FONT COLOR=#000033></FONT>}<BR> |
| 74 |
</FONT> |
| 75 |
<FONT SIZE=1>This macro is invoked in definitions <A HREF="#7">7</A> and <A HREF="#8">8</A>.</FONT><BR> |
| 76 |
<P><TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0><TR><TD WIDTH=400> |
| 77 |
|
| 78 |
|
| 79 |
<P>4. Test a macro used three times. |
| 80 |
</TD></TR></TABLE> |
| 81 |
<FONT COLOR=#CC0033> |
| 82 |
<P><A NAME="5"></A>5. <A HREF="#7">Used Thrice</A>[<B>M</B>]={<FONT COLOR=#000033></FONT>}<BR> |
| 83 |
</FONT> |
| 84 |
<FONT SIZE=1>This macro is invoked in definitions <A HREF="#7">7</A>, <A HREF="#8">8</A> and <A HREF="#9">9</A>.</FONT><BR> |
| 85 |
<P><TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0><TR><TD WIDTH=400> |
| 86 |
|
| 87 |
|
| 88 |
<P>5. Test a macro used five times. |
| 89 |
</TD></TR></TABLE> |
| 90 |
<FONT COLOR=#CC0033> |
| 91 |
<P><A NAME="6"></A>6. <A HREF="#7">Used Quice</A>[<B>M</B>]={<FONT COLOR=#000033></FONT>}<BR> |
| 92 |
</FONT> |
| 93 |
<FONT SIZE=1>This macro is invoked in definitions <A HREF="#7">7</A>, <A HREF="#8">8</A>, <A HREF="#9">9</A>, <A HREF="#10">10</A> and <A HREF="#11">11</A>.</FONT><BR> |
| 94 |
<P><TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0><TR><TD WIDTH=400> |
| 95 |
|
| 96 |
|
| 97 |
<P>Here is the macro that does all the calling for the above. |
| 98 |
</TD></TR></TABLE> |
| 99 |
<FONT COLOR=#CC0033> |
| 100 |
<P><A NAME="7"></A>7. Dummy1[<B>Z</B>]={<FONT COLOR=#000033><A HREF="#3">Used Once</A><TT><BR> |
| 101 |
</TT> |
| 102 |
<A HREF="#4">Used Twice</A><TT><BR> |
| 103 |
</TT> |
| 104 |
<A HREF="#5">Used Thrice</A><TT><BR> |
| 105 |
</TT> |
| 106 |
<A HREF="#6">Used Quice</A><TT><BR> |
| 107 |
</TT> |
| 108 |
</FONT>}<BR> |
| 109 |
</FONT> |
| 110 |
<FONT SIZE=1>This macro is NEVER invoked.</FONT> |
| 111 |
<FONT COLOR=#CC0033> |
| 112 |
<P><A NAME="8"></A>8. Dummy2[<B>Z</B>]={<FONT COLOR=#000033><A HREF="#4">Used Twice</A><TT><BR> |
| 113 |
</TT> |
| 114 |
<A HREF="#5">Used Thrice</A><TT><BR> |
| 115 |
</TT> |
| 116 |
<A HREF="#6">Used Quice</A><TT><BR> |
| 117 |
</TT> |
| 118 |
</FONT>}<BR> |
| 119 |
</FONT> |
| 120 |
<FONT SIZE=1>This macro is NEVER invoked.</FONT> |
| 121 |
<FONT COLOR=#CC0033> |
| 122 |
<P><A NAME="9"></A>9. Dummy3[<B>Z</B>]={<FONT COLOR=#000033><A HREF="#5">Used Thrice</A><TT><BR> |
| 123 |
</TT> |
| 124 |
<A HREF="#6">Used Quice</A><TT><BR> |
| 125 |
</TT> |
| 126 |
</FONT>}<BR> |
| 127 |
</FONT> |
| 128 |
<FONT SIZE=1>This macro is NEVER invoked.</FONT> |
| 129 |
<FONT COLOR=#CC0033> |
| 130 |
<P><A NAME="10"></A>10. Dummy4[<B>Z</B>]={<FONT COLOR=#000033><A HREF="#6">Used Quice</A><TT><BR> |
| 131 |
</TT> |
| 132 |
</FONT>}<BR> |
| 133 |
</FONT> |
| 134 |
<FONT SIZE=1>This macro is NEVER invoked.</FONT> |
| 135 |
<FONT COLOR=#CC0033> |
| 136 |
<P><A NAME="11"></A>11. Dummy5[<B>Z</B>]={<FONT COLOR=#000033><A HREF="#6">Used Quice</A><TT><BR> |
| 137 |
</TT> |
| 138 |
</FONT>}<BR> |
| 139 |
</FONT> |
| 140 |
<FONT SIZE=1>This macro is NEVER invoked.</FONT> |
| 141 |
<P><TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0><TR><TD WIDTH=400> |
| 142 |
|
| 143 |
|
| 144 |
<P>6. Test a macro with two body parts. |
| 145 |
</TD></TR></TABLE> |
| 146 |
<FONT COLOR=#CC0033> |
| 147 |
<P><A NAME="12"></A>12. <A HREF="#21">Two body parts</A>[<B>Z</B>]+={<FONT COLOR=#000033><TT>Sloth</TT> |
| 148 |
</FONT>}<BR> |
| 149 |
</FONT> |
| 150 |
<FONT SIZE=1>This macro is defined in definitions <A HREF="#12">12</A> and <A HREF="#13">13</A>.</FONT><BR> |
| 151 |
<FONT SIZE=1>This macro is invoked in definition <A HREF="#21">21</A>.</FONT><BR> |
| 152 |
<FONT COLOR=#CC0033> |
| 153 |
<P><A NAME="13"></A>13. <A HREF="#21">Two body parts</A>[<B>Z</B>]+={<FONT COLOR=#000033><TT>Walrus</TT> |
| 154 |
</FONT>}<BR> |
| 155 |
</FONT> |
| 156 |
<FONT SIZE=1>This macro is defined in definitions <A HREF="#12">12</A> and <A HREF="#13">13</A>.</FONT><BR> |
| 157 |
<FONT SIZE=1>This macro is invoked in definition <A HREF="#21">21</A>.</FONT><BR> |
| 158 |
<P><TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0><TR><TD WIDTH=400> |
| 159 |
|
| 160 |
|
| 161 |
<P>7. Test a macro with three body parts. |
| 162 |
</TD></TR></TABLE> |
| 163 |
<FONT COLOR=#CC0033> |
| 164 |
<P><A NAME="14"></A>14. <A HREF="#19">Three body parts</A>[<B>Z</B>]+={<FONT COLOR=#000033><TT>Sloth</TT> |
| 165 |
</FONT>}<BR> |
| 166 |
</FONT> |
| 167 |
<FONT SIZE=1>This macro is defined in definitions <A HREF="#14">14</A>, <A HREF="#15">15</A> and <A HREF="#16">16</A>.</FONT><BR> |
| 168 |
<FONT SIZE=1>This macro is invoked in definition <A HREF="#19">19</A>.</FONT><BR> |
| 169 |
<FONT COLOR=#CC0033> |
| 170 |
<P><A NAME="15"></A>15. <A HREF="#19">Three body parts</A>[<B>Z</B>]+={<FONT COLOR=#000033><TT>Walrus</TT> |
| 171 |
</FONT>}<BR> |
| 172 |
</FONT> |
| 173 |
<FONT SIZE=1>This macro is defined in definitions <A HREF="#14">14</A>, <A HREF="#15">15</A> and <A HREF="#16">16</A>.</FONT><BR> |
| 174 |
<FONT SIZE=1>This macro is invoked in definition <A HREF="#19">19</A>.</FONT><BR> |
| 175 |
<FONT COLOR=#CC0033> |
| 176 |
<P><A NAME="16"></A>16. <A HREF="#19">Three body parts</A>[<B>Z</B>]+={<FONT COLOR=#000033><TT>Aardvaark</TT> |
| 177 |
</FONT>}<BR> |
| 178 |
</FONT> |
| 179 |
<FONT SIZE=1>This macro is defined in definitions <A HREF="#14">14</A>, <A HREF="#15">15</A> and <A HREF="#16">16</A>.</FONT><BR> |
| 180 |
<FONT SIZE=1>This macro is invoked in definition <A HREF="#19">19</A>.</FONT><BR> |
| 181 |
<P><TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0><TR><TD WIDTH=400> |
| 182 |
|
| 183 |
|
| 184 |
<P>8. Test a macro with five body parts. |
| 185 |
</TD></TR></TABLE> |
| 186 |
<FONT COLOR=#CC0033> |
| 187 |
<P><A NAME="17"></A>17. Five body parts[<B>Z</B>]+={<FONT COLOR=#000033><TT>Sloth</TT> |
| 188 |
</FONT>}<BR> |
| 189 |
</FONT> |
| 190 |
<FONT SIZE=1>This macro is defined in definitions <A HREF="#17">17</A>, <A HREF="#18">18</A>, <A HREF="#19">19</A>, <A HREF="#20">20</A> and <A HREF="#21">21</A>.</FONT><BR> |
| 191 |
<FONT SIZE=1>This macro is NEVER invoked.</FONT> |
| 192 |
<FONT COLOR=#CC0033> |
| 193 |
<P><A NAME="18"></A>18. Five body parts[<B>Z</B>]+={<FONT COLOR=#000033><TT>Walrus</TT> |
| 194 |
</FONT>}<BR> |
| 195 |
</FONT> |
| 196 |
<FONT SIZE=1>This macro is defined in definitions <A HREF="#17">17</A>, <A HREF="#18">18</A>, <A HREF="#19">19</A>, <A HREF="#20">20</A> and <A HREF="#21">21</A>.</FONT><BR> |
| 197 |
<FONT SIZE=1>This macro is NEVER invoked.</FONT> |
| 198 |
<FONT COLOR=#CC0033> |
| 199 |
<P><A NAME="19"></A>19. Five body parts[<B>Z</B>]+={<FONT COLOR=#000033><A HREF="#14">Three body parts</A></FONT>}<BR> |
| 200 |
</FONT> |
| 201 |
<FONT SIZE=1>This macro is defined in definitions <A HREF="#17">17</A>, <A HREF="#18">18</A>, <A HREF="#19">19</A>, <A HREF="#20">20</A> and <A HREF="#21">21</A>.</FONT><BR> |
| 202 |
<FONT SIZE=1>This macro is NEVER invoked.</FONT> |
| 203 |
<FONT COLOR=#CC0033> |
| 204 |
<P><A NAME="20"></A>20. Five body parts[<B>Z</B>]+={<FONT COLOR=#000033><TT>Aardvaark</TT> |
| 205 |
</FONT>}<BR> |
| 206 |
</FONT> |
| 207 |
<FONT SIZE=1>This macro is defined in definitions <A HREF="#17">17</A>, <A HREF="#18">18</A>, <A HREF="#19">19</A>, <A HREF="#20">20</A> and <A HREF="#21">21</A>.</FONT><BR> |
| 208 |
<FONT SIZE=1>This macro is NEVER invoked.</FONT> |
| 209 |
<FONT COLOR=#CC0033> |
| 210 |
<P><A NAME="21"></A>21. Five body parts[<B>Z</B>]+={<FONT COLOR=#000033><A HREF="#12">Two body parts</A></FONT>}<BR> |
| 211 |
</FONT> |
| 212 |
<FONT SIZE=1>This macro is defined in definitions <A HREF="#17">17</A>, <A HREF="#18">18</A>, <A HREF="#19">19</A>, <A HREF="#20">20</A> and <A HREF="#21">21</A>.</FONT><BR> |
| 213 |
<FONT SIZE=1>This macro is NEVER invoked.</FONT> |
| 214 |
<P> |
| 215 |
<HR SIZE=4 NOSHADE> |
| 216 |
<CENTER><B>End Of File</B></CENTER> |
| 217 |
<HR SIZE=4 NOSHADE> |
| 218 |
</BODY> |
| 219 |
|
| 220 |
<!-----------------------------------------------------------------------------> |
| 221 |
<!-- END OF AUTOMATICALLY GENERATED HTML FILE --> |
| 222 |
<!-----------------------------------------------------------------------------> |
| 223 |
</HTML> |