diff view
color-brad1.f color-dirk1.f
end of diff view
1. \ Forth to HTML converter
2. \ Brad Eckert
1. \ Forth to HTML converter
2. \ Brad Eckert
3. \ Revision 1. See bottom for revision history.
3. \ Revision 2. See bottom for revision history.
4. 
5. \ This ANS Forth program is public domain. It translates ANS Forth to colorized
6. \ HTML. Hyperlinks to the ANS Forth draft standard are inserted for all ANS
7. \ standard words. Hyperlinks to user definitions are included.
8. 
9. \ Usage: HTML FileName       Generates HTML file from Forth source
10. \                            output file is Filename with .HTM extension
11. \        Q [forth code]      Outputs HTML for 1 line to screen
12. 
13. \ Q is used for debugging. You can use "linenum ?" to show the line number if an
14. \ ABORT occurs. The HTML is about 10 times as big as the Forth source because of
15. \ all the links, color changes and whitespace.
16. 
17. \ INCLUDEd files produce corresponding HTML pages. Most browsers get severely
18. \ bogged down with large files. If you're converting a large Forth program to
19. \ HTML, try to keep the source files under 500 lines each by splitting long
20. \ source into multiple INCLUDE files. HTML pages are best viewed with Internet
4. 
5. \ This ANS Forth program is public domain. It translates ANS Forth to colorized
6. \ HTML. Hyperlinks to the ANS Forth draft standard are inserted for all ANS
7. \ standard words. Hyperlinks to user definitions are included.
8. 
9. \ Usage: HTML FileName       Generates HTML file from Forth source
10. \                            output file is Filename with .HTM extension
11. \        Q [forth code]      Outputs HTML for 1 line to screen
12. 
13. \ Q is used for debugging. You can use "linenum ?" to show the line number if an
14. \ ABORT occurs. The HTML is about 10 times as big as the Forth source because of
15. \ all the links, color changes and whitespace.
16. 
17. \ INCLUDEd files produce corresponding HTML pages. Most browsers get severely
18. \ bogged down with large files. If you're converting a large Forth program to
19. \ HTML, try to keep the source files under 500 lines each by splitting long
20. \ source into multiple INCLUDE files. HTML pages are best viewed with Internet
21. \ Explorer. Netscape ignores the <code> attribute and is more sluggish with
22. \ large files.
21. \ Explorer or Netscape 4.7. Netscape 6 is more sluggish with large files.
23. 
24. ONLY FORTH ALSO DEFINITIONS
25. 
22. 
23. ONLY FORTH ALSO DEFINITIONS
24. 
 
25. \ path to the ANS-Files
26. \ create dpans-path ," ./"
27. create dpans-path ," C:\Programme\Win32For\V609xx - CVS\htm\"
28. 
26. : undefined ( <name> -- f ) BL WORD FIND NIP 0= ;
27. undefined +PLACE [IF] : +PLACE 2DUP 2>R COUNT CHARS + SWAP MOVE 2R> C+! ; [THEN]
28. undefined PLACE  [IF] : PLACE  0 OVER C! +PLACE ;                         [THEN]
29. undefined FDROP  [IF] : FDROP ;                                           [THEN]
30. undefined >FLOAT [IF] : >FLOAT DROP C@ [CHAR] 0 [CHAR] 9 1+ WITHIN ;      [THEN]
31. 
32. 0 VALUE outf                                    \ output to file
33. 1 VALUE screen-only                             \ screen is for testing
34. : werr  abort" Error writing file" ;
35. : out   screen-only IF type    ELSE outf WRITE-FILE werr THEN ;
36. : outln screen-only IF type cr ELSE outf WRITE-LINE werr THEN ;
37. 
38. WORDLIST CONSTANT hyperlinks
39. VARIABLE attrib
40. : /a      ( -- )         attrib @ IF S" </a>" out THEN 0 attrib ! ;
41. : ,$      ( a len -- )   DUP C, BOUNDS ?DO I C@ C, LOOP ; \ text to dictionary
42. : text    ( <text> -- )  -1 WORD COUNT -TRAILING ,$ ;
43. : line    ( a line# -- ) 0 ?DO COUNT + LOOP COUNT out ;   \ output one string
44. : boiler  ( addr -- )    BEGIN COUNT DUP WHILE 2DUP + >R outln R> REPEAT 2DROP ;
45. 
46. CREATE misctext                                 \ various attribute strings
47.    text <a style="text-decoration:none" href=
48.    text <a name="
49.    text ">
50.    text <a href="#
51.    text " style="text-decoration:none">
52.    text <font color="#
53.    text <font color="#000000"><hr><h1>
54.    text </h1><hr>
29. : undefined ( <name> -- f ) BL WORD FIND NIP 0= ;
30. undefined +PLACE [IF] : +PLACE 2DUP 2>R COUNT CHARS + SWAP MOVE 2R> C+! ; [THEN]
31. undefined PLACE  [IF] : PLACE  0 OVER C! +PLACE ;                         [THEN]
32. undefined FDROP  [IF] : FDROP ;                                           [THEN]
33. undefined >FLOAT [IF] : >FLOAT DROP C@ [CHAR] 0 [CHAR] 9 1+ WITHIN ;      [THEN]
34. 
35. 0 VALUE outf                                    \ output to file
36. 1 VALUE screen-only                             \ screen is for testing
37. : werr  abort" Error writing file" ;
38. : out   screen-only IF type    ELSE outf WRITE-FILE werr THEN ;
39. : outln screen-only IF type cr ELSE outf WRITE-LINE werr THEN ;
40. 
41. WORDLIST CONSTANT hyperlinks
42. VARIABLE attrib
43. : /a      ( -- )         attrib @ IF S" </a>" out THEN 0 attrib ! ;
44. : ,$      ( a len -- )   DUP C, BOUNDS ?DO I C@ C, LOOP ; \ text to dictionary
45. : text    ( <text> -- )  -1 WORD COUNT -TRAILING ,$ ;
46. : line    ( a line# -- ) 0 ?DO COUNT + LOOP COUNT out ;   \ output one string
47. : boiler  ( addr -- )    BEGIN COUNT DUP WHILE 2DUP + >R outln R> REPEAT 2DROP ;
48. 
49. CREATE misctext                                 \ various attribute strings
50.    text <a style="text-decoration:none" href=
51.    text <a name="
52.    text ">
53.    text <a href="#
54.    text " style="text-decoration:none">
55.    text <font color="#
56.    text <font color="#000000"><hr><h1>
57.    text </h1><hr>
 
58.    text "
55.    0 c,
56. 
57. VARIABLE color                                  \ current color
58. 
59. : fontcolor ( color -- ) BASE @ >R              \ change font color
60.    misctext 5 line 0 HEX <# # # # # # # #> out
61.    misctext 2 line       R> BASE ! ;
62. 
63. : col ( color <name> -- )                       \ define a font color
64.    CREATE , DOES> @ color ! ;
65. 
66. HEX
67. 808080 col unknown
68. 008000 col commentary
69. CC0000 col numeric
70. 990080 col values
71. 000000 col userwords
72. 009999 col userdefiner
73. CC00CC col variables
74. 0000FF col core_ws
75. 0000FF col core_ext_ws
76. 0000FF col block_ws
77. 0000FF col double_ws
78. 0000FF col exception_ws
79. 0000FF col facilities_ws
80. 0000FF col file_ws
81. 0000FF col fp_ws
82. 0000FF col local_ws
83. 0000FF col malloc_ws
84. 0000FF col progtools_ws
85. 0000FF col searchord_ws
86. 0000FF col string_ws
87. DECIMAL
88. 
89. CREATE begin_header                             \ begin of HTML file part 1
90.    text <html> <head>
91.    text <meta http-equiv="Content-Type" content="text/html;">
92.    text <meta name="GENERATOR" content="Forth2HTML 0.0">
93.    text <title>
94.    0 C,
95. 
96. \ body defaults: the most common link color (blue) is made the default color
97. \ the most common plain text color (green) is made default.
98. 
99. CREATE mid_header                               \ begin of HTML file part 2
100.    text </title></head>
101.    text <body bgcolor="#FFFFEE" link="0000FF" vlink="0000FF" alink="0000FF">
59.    0 c,
60. 
61. VARIABLE color                                  \ current color
62. 
63. : fontcolor ( color -- ) BASE @ >R              \ change font color
64.    misctext 5 line 0 HEX <# # # # # # # #> out
65.    misctext 2 line       R> BASE ! ;
66. 
67. : col ( color <name> -- )                       \ define a font color
68.    CREATE , DOES> @ color ! ;
69. 
70. HEX
71. 808080 col unknown
72. 008000 col commentary
73. CC0000 col numeric
74. 990080 col values
75. 000000 col userwords
76. 009999 col userdefiner
77. CC00CC col variables
78. 0000FF col core_ws
79. 0000FF col core_ext_ws
80. 0000FF col block_ws
81. 0000FF col double_ws
82. 0000FF col exception_ws
83. 0000FF col facilities_ws
84. 0000FF col file_ws
85. 0000FF col fp_ws
86. 0000FF col local_ws
87. 0000FF col malloc_ws
88. 0000FF col progtools_ws
89. 0000FF col searchord_ws
90. 0000FF col string_ws
91. DECIMAL
92. 
93. CREATE begin_header                             \ begin of HTML file part 1
94.    text <html> <head>
95.    text <meta http-equiv="Content-Type" content="text/html;">
96.    text <meta name="GENERATOR" content="Forth2HTML 0.0">
97.    text <title>
98.    0 C,
99. 
100. \ body defaults: the most common link color (blue) is made the default color
101. \ the most common plain text color (green) is made default.
102. 
103. CREATE mid_header                               \ begin of HTML file part 2
104.    text </title></head>
105.    text <body bgcolor="#FFFFEE" link="0000FF" vlink="0000FF" alink="0000FF">
102.    text <code>
106.    text <pre>
103.    0 C,
104. 
105. CREATE end_header                               \ end of HTML file
107.    0 C,
108. 
109. CREATE end_header                               \ end of HTML file
106.    text </code></body>
110.    text </pre></body>
107.    text </html>
108.    0 C,
109. 
110. HEX
111. : setcolor ( -- )                               \ select next color
112.    attrib @ 1 = color @ 0000FF = AND 0=         \ blue link: don't color
113.    IF color @ fontcolor THEN ;
114. DECIMAL
115. 
116. VARIABLE bltally
117. : outh    ( a n -- )                            \ HTMLized text output
118.    999 bltally !
119.    BOUNDS ?DO I C@ CASE
120.       [CHAR] & OF S" &amp;"  out ENDOF
121.       [CHAR] < OF S" &lt;"   out ENDOF
122.       [CHAR] > OF S" &gt;"   out ENDOF
123.       [CHAR] " OF S" &quot;" out ENDOF
124.       BL       OF bltally @ 0= IF S"  " ELSE S" &nbsp;" THEN out
125.                 1 bltally +!     ENDOF
126.       I 1 out   0 bltally !
127.    ENDCASE LOOP ;
128. 
129. : label ( addr len -- ) /a                      \ associate a label with a word
130.    misctext 1 line outh
131.    misctext 2 line 1 attrib ! ;
132. 
111.    text </html>
112.    0 C,
113. 
114. HEX
115. : setcolor ( -- )                               \ select next color
116.    attrib @ 1 = color @ 0000FF = AND 0=         \ blue link: don't color
117.    IF color @ fontcolor THEN ;
118. DECIMAL
119. 
120. VARIABLE bltally
121. : outh    ( a n -- )                            \ HTMLized text output
122.    999 bltally !
123.    BOUNDS ?DO I C@ CASE
124.       [CHAR] & OF S" &amp;"  out ENDOF
125.       [CHAR] < OF S" &lt;"   out ENDOF
126.       [CHAR] > OF S" &gt;"   out ENDOF
127.       [CHAR] " OF S" &quot;" out ENDOF
128.       BL       OF bltally @ 0= IF S"  " ELSE S" &nbsp;" THEN out
129.                 1 bltally +!     ENDOF
130.       I 1 out   0 bltally !
131.    ENDCASE LOOP ;
132. 
133. : label ( addr len -- ) /a                      \ associate a label with a word
134.    misctext 1 line outh
135.    misctext 2 line 1 attrib ! ;
136. 
 
137. : "out   ( -- )                                 \ output a "
138.    misctext 8 line
139. ;
140. 
141. : new-line ( -- )                               \ start a new line (December 30th, 2003 - dbu)
142. \   S" <br>" outln
143.     13 here dup>r C! 10 r@ char+ C! r> 2 out
144. ;
145. 
133. : std    ( word color <string> -- )
134.    CREATE ' , ' , BL WORD COUNT ,$
135.    DOES> /a DUP >R  2 CELLS +
136.    misctext 0 line                              \ begin hyperlink
137.    BASE @ >R DECIMAL
138.    COUNT 0 0 2OVER >NUMBER 2DROP D>S
146. : std    ( word color <string> -- )
147.    CREATE ' , ' , BL WORD COUNT ,$
148.    DOES> /a DUP >R  2 CELLS +
149.    misctext 0 line                              \ begin hyperlink
150.    BASE @ >R DECIMAL
151.    COUNT 0 0 2OVER >NUMBER 2DROP D>S
139.    R> BASE ! CASE                               \ choose file name
152.    R> BASE !
153.    "out dpans-path count out \ write path to ANS-Files (December 30th, 2003 - dbu)
154.    CASE                               \ choose file name
140.        6 OF S" dpans6.htm#"  out ENDOF
141.        7 OF S" dpans7.htm#"  out ENDOF
142.        8 OF S" dpans8.htm#"  out ENDOF
143.        9 OF S" dpans9.htm#"  out ENDOF
144.       10 OF S" dpans10.htm#" out ENDOF
145.       11 OF S" dpans11.htm#" out ENDOF
146.       12 OF S" dpans12.htm#" out ENDOF
147.       13 OF S" dpans13.htm#" out ENDOF
148.       14 OF S" dpans14.htm#" out ENDOF
149.       15 OF S" dpans15.htm#" out ENDOF
150.       16 OF S" dpans16.htm#" out ENDOF
151.       17 OF S" dpans17.htm#" out ENDOF
152.       ABORT" Undefined source file"
155.        6 OF S" dpans6.htm#"  out ENDOF
156.        7 OF S" dpans7.htm#"  out ENDOF
157.        8 OF S" dpans8.htm#"  out ENDOF
158.        9 OF S" dpans9.htm#"  out ENDOF
159.       10 OF S" dpans10.htm#" out ENDOF
160.       11 OF S" dpans11.htm#" out ENDOF
161.       12 OF S" dpans12.htm#" out ENDOF
162.       13 OF S" dpans13.htm#" out ENDOF
163.       14 OF S" dpans14.htm#" out ENDOF
164.       15 OF S" dpans15.htm#" out ENDOF
165.       16 OF S" dpans16.htm#" out ENDOF
166.       17 OF S" dpans17.htm#" out ENDOF
167.       ABORT" Undefined source file"
153.    ENDCASE  out s" >" out
168.    ENDCASE  out "out s" >" out
154.    1 attrib !
155.    R> 2@ SWAP EXECUTE EXECUTE ;                 \ extra attributes
156. 
157. : genHTML ( -- )                                \ generate pending HTML
158.    PAD COUNT DUP IF setcolor THEN outh /a  0 PAD ! ;
159. 
160. : isnumber? ( addr len -- f )                   \ string converts to number?
161.    0 0 2SWAP >NUMBER NIP NIP NIP 0= ;
162. 
163. : hparse ( a len char -- a' len' )
164.    >R 2DUP R@ SKIP R> SCAN BL SCAN
165.    2SWAP 2 PICK - PAD +PLACE ;
166. 
169.    1 attrib !
170.    R> 2@ SWAP EXECUTE EXECUTE ;                 \ extra attributes
171. 
172. : genHTML ( -- )                                \ generate pending HTML
173.    PAD COUNT DUP IF setcolor THEN outh /a  0 PAD ! ;
174. 
175. : isnumber? ( addr len -- f )                   \ string converts to number?
176.    0 0 2SWAP >NUMBER NIP NIP NIP 0= ;
177. 
178. : hparse ( a len char -- a' len' )
179.    >R 2DUP R@ SKIP R> SCAN BL SCAN
180.    2SWAP 2 PICK - PAD +PLACE ;
181. 
167. CREATE XPAD 260 CHARS ALLOT                     \ temporary pad for word storage
168. CREATE EPAD  80 CHARS ALLOT                     \ temporary pad for evaluation
182. \ size for XPAD and EPAD increased to avoid crashes in
183. \ files with long lines December 30th, 2003 - dbu
184. CREATE XPAD 1024 CHARS ALLOT                     \ temporary pad for word storage
185. CREATE EPAD 1024 CHARS ALLOT                     \ temporary pad for evaluation
169. 
170. : >XPAD ( -- ) PAD COUNT BL SKIP XPAD PLACE ;   \ move to temporary pad
171. 
172. : hint  ( addr len -- )                         \ interpret one line...
173.    BEGIN
174.       0 PAD !  BL hparse PAD C@
175.    WHILE unknown                                \ default color
176.       >XPAD XPAD COUNT hyperlinks SEARCH-WORDLIST \ got a hyperlink for this?
177.       IF DEPTH >R EXECUTE
178.          R> DEPTH <> ABORT" stack depth change in HTML generator"
179.       ELSE
180.          XPAD COUNT BASE @ 10 = IF
181.             >FLOAT IF FDROP numeric THEN        \ valid float or integer
182.          ELSE
183.             isnumber? IF numeric THEN
184.          THEN
185.       THEN genHTML
186.    REPEAT 2DROP
186. 
187. : >XPAD ( -- ) PAD COUNT BL SKIP XPAD PLACE ;   \ move to temporary pad
188. 
189. : hint  ( addr len -- )                         \ interpret one line...
190.    BEGIN
191.       0 PAD !  BL hparse PAD C@
192.    WHILE unknown                                \ default color
193.       >XPAD XPAD COUNT hyperlinks SEARCH-WORDLIST \ got a hyperlink for this?
194.       IF DEPTH >R EXECUTE
195.          R> DEPTH <> ABORT" stack depth change in HTML generator"
196.       ELSE
197.          XPAD COUNT BASE @ 10 = IF
198.             >FLOAT IF FDROP numeric THEN        \ valid float or integer
199.          ELSE
200.             isnumber? IF numeric THEN
201.          THEN
202.       THEN genHTML
203.    REPEAT 2DROP
187.    S" <br>" outln ;                             \ new line
204.    new-line ;                             \ new line
188. 
189. CREATE inbuf 260 CHARS ALLOT
190. CREATE fn    128 CHARS ALLOT                    \ file name
191. CREATE fn1   128 CHARS ALLOT                    \ file name backup
192. CREATE pstr  128 CHARS ALLOT                    \ parsed string storage
193. CREATE uname  64 CHARS ALLOT                    \ : definition name
194. 0 VALUE inf
195. VARIABLE nufile                                 \ T if nesting a file
196. VARIABLE utype                                  \ type of defined word
197. VARIABLE hstate
198. VARIABLE linenum
199. VARIABLE special                                \ special action, 0=none
200. 
201. : ofn   ( -- addr len )                         \ output file name
202.    fn COUNT 2DUP [CHAR] . SCAN NIP - EPAD PLACE
203.    S" .htm" EPAD +PLACE   EPAD COUNT ;
204. 
205. : hcreate ( addr len -- )
206.    S" CREATE " EPAD PLACE  EPAD +PLACE
207.    GET-CURRENT >R hyperlinks SET-CURRENT
208.    EPAD COUNT EVALUATE    R> SET-CURRENT ;      \ create a hyperlink generator
209. 
210. \ The user defined words use the following data structure:
211. \ CELL   xt of coloring word
212. \ STRING name of reference word
213. \ STRING name of file
214. 
215. : deflink ( addr -- )                           \ make hyperlink from data structure
216.    DUP @ EXECUTE CELL+                          \ set color
217.    DUP COUNT + COUNT ofn COMPARE                \ in an external file?
218.    IF   misctext 0 line DUP COUNT + COUNT out   \ yes, put file name
219.         S" #" out COUNT outh S" >" out
220.    ELSE misctext 3 line COUNT outh              \ no, just use the name
221.         misctext 4 line
222.    THEN 1 attrib ! ;
223. 
224. : defx  ( a len xt -- a' len' )
225.    >R genHTML BL hparse >XPAD                   \ output defining word
226.    XPAD COUNT 2DUP hcreate R> , ,$ ofn ,$
227.    DOES> deflink ;
228. 
229. : labelnow   genHTML XPAD COUNT label ;
230. : defdat ['] numeric   defx numeric   labelnow ;
231. : defvar ['] variables defx variables labelnow ;
232. : defusr ['] userwords defx userwords labelnow ;
233. : defval ['] values    defx values    labelnow ;
234. : defdef ['] userdefiner defx userdefiner labelnow ;
235. 
236. : hstate=0 ( -- )             0 hstate ! ;
237. : hstate=1 ( -- )             1 hstate ! ;
238. : spec=zero ( -- )            1 special ! ;
239. : skip)  ( a len -- a' len' ) [CHAR] ) hparse ;
240. : skipw  ( a len -- a' len' ) BL hparse ;
241. : skipc  ( a len -- a len )   hstate @ 0= IF numeric skipw THEN ;
242. : skip"  ( a len -- a' len' )                   \ copy string to pstr
243.    genHTML [CHAR] " hparse PAD COUNT 1- pstr PLACE ;
244. 
245. \ ------------------------------------------------------------------------------
246. \ ":" definitions might be defining words, so they can't be assumed to be defusr
247. \ types. ":" makes a label and saves the name for later use by ";" which makes
248. \ a hyperlink or a hyperlink defining word.
249. 
250. :NONAME                                         \ normal : definition
251.    uname COUNT ['] userwords defx 2DROP  0 PAD !
252. ; CONSTANT normal_def
253. 
254. :NONAME
255.    uname COUNT 2DUP hcreate ['] userwords , ,$ ofn ,$
256.    DOES> deflink defdef
257. ; CONSTANT defining_def
258. 
259. : defunk ( a len -- a' len' )                   \ starting unknown definition
260.    hstate=1  normal_def utype !                 \ save name of : definition
261.    genHTML skipw userwords PAD COUNT BL SKIP 2DUP uname PLACE label ;
262. 
263. : resunk ( -- )                                 \ resolve unknown defined word
264.    genHTML utype @ EXECUTE hstate=0 ;
265. 
266. : created ( -- ) hstate @
267.    IF   defining_def utype !                    \ make ; create a defining word
268.    ELSE defdat                                  \ not compiling
269.    THEN ;
270. 
271. \ ------------------------------------------------------------------------------
272. 
273. : header  ( addr len -- )                       \ output big header text
274.    misctext 6 line outln misctext 7 line ;
275. 
276. : _incfil ( addr -- )                           \ trigger file nesting
277.    fn COUNT fn1 PLACE COUNT BL SKIP fn place 1 nufile ! ;
278. 
279. : incfile ( a len -- a' len' )                  \ include a file
280.    genHTML skipw PAD _incfil ;
281. 
282. : "incfil ( a len -- a' len' )                  \ include file from S" filename"
283.    skipw pstr _incfil ;
284. 
285. : hfill  ( -- len )                             \ read next line of file
286.    inbuf 256 inf READ-LINE ABORT" Error reading file" ;
287. 
288. : open  ( -- ) cr ." Reading " fn COUNT type ."  at line " linenum @ .
289.    0 linenum !
290.    fn COUNT R/O OPEN-FILE ABORT" Error opening source file" to inf ;
291. 
292. : close  ( -- ) cr ." closing " fn COUNT type
293.    inf CLOSE-FILE ABORT" Error closing file" ;
294. 
295. : oopen  ( -- )
296.    ofn W/O CREATE-FILE ABORT" Error creating file" to outf
297.    begin_header boiler                          \ begin boilerplate
298.    fn COUNT outln  mid_header boiler            \ title and end boilerplate
299.    fn COUNT header ;
300. 
301. : HTML  ( <infile> -- )
302.    0 TO screen-only  0 nufile !                 \ force usage of file
205. 
206. CREATE inbuf 260 CHARS ALLOT
207. CREATE fn    128 CHARS ALLOT                    \ file name
208. CREATE fn1   128 CHARS ALLOT                    \ file name backup
209. CREATE pstr  128 CHARS ALLOT                    \ parsed string storage
210. CREATE uname  64 CHARS ALLOT                    \ : definition name
211. 0 VALUE inf
212. VARIABLE nufile                                 \ T if nesting a file
213. VARIABLE utype                                  \ type of defined word
214. VARIABLE hstate
215. VARIABLE linenum
216. VARIABLE special                                \ special action, 0=none
217. 
218. : ofn   ( -- addr len )                         \ output file name
219.    fn COUNT 2DUP [CHAR] . SCAN NIP - EPAD PLACE
220.    S" .htm" EPAD +PLACE   EPAD COUNT ;
221. 
222. : hcreate ( addr len -- )
223.    S" CREATE " EPAD PLACE  EPAD +PLACE
224.    GET-CURRENT >R hyperlinks SET-CURRENT
225.    EPAD COUNT EVALUATE    R> SET-CURRENT ;      \ create a hyperlink generator
226. 
227. \ The user defined words use the following data structure:
228. \ CELL   xt of coloring word
229. \ STRING name of reference word
230. \ STRING name of file
231. 
232. : deflink ( addr -- )                           \ make hyperlink from data structure
233.    DUP @ EXECUTE CELL+                          \ set color
234.    DUP COUNT + COUNT ofn COMPARE                \ in an external file?
235.    IF   misctext 0 line DUP COUNT + COUNT out   \ yes, put file name
236.         S" #" out COUNT outh S" >" out
237.    ELSE misctext 3 line COUNT outh              \ no, just use the name
238.         misctext 4 line
239.    THEN 1 attrib ! ;
240. 
241. : defx  ( a len xt -- a' len' )
242.    >R genHTML BL hparse >XPAD                   \ output defining word
243.    XPAD COUNT 2DUP hcreate R> , ,$ ofn ,$
244.    DOES> deflink ;
245. 
246. : labelnow   genHTML XPAD COUNT label ;
247. : defdat ['] numeric   defx numeric   labelnow ;
248. : defvar ['] variables defx variables labelnow ;
249. : defusr ['] userwords defx userwords labelnow ;
250. : defval ['] values    defx values    labelnow ;
251. : defdef ['] userdefiner defx userdefiner labelnow ;
252. 
253. : hstate=0 ( -- )             0 hstate ! ;
254. : hstate=1 ( -- )             1 hstate ! ;
255. : spec=zero ( -- )            1 special ! ;
256. : skip)  ( a len -- a' len' ) [CHAR] ) hparse ;
257. : skipw  ( a len -- a' len' ) BL hparse ;
258. : skipc  ( a len -- a len )   hstate @ 0= IF numeric skipw THEN ;
259. : skip"  ( a len -- a' len' )                   \ copy string to pstr
260.    genHTML [CHAR] " hparse PAD COUNT 1- pstr PLACE ;
261. 
262. \ ------------------------------------------------------------------------------
263. \ ":" definitions might be defining words, so they can't be assumed to be defusr
264. \ types. ":" makes a label and saves the name for later use by ";" which makes
265. \ a hyperlink or a hyperlink defining word.
266. 
267. :NONAME                                         \ normal : definition
268.    uname COUNT ['] userwords defx 2DROP  0 PAD !
269. ; CONSTANT normal_def
270. 
271. :NONAME
272.    uname COUNT 2DUP hcreate ['] userwords , ,$ ofn ,$
273.    DOES> deflink defdef
274. ; CONSTANT defining_def
275. 
276. : defunk ( a len -- a' len' )                   \ starting unknown definition
277.    hstate=1  normal_def utype !                 \ save name of : definition
278.    genHTML skipw userwords PAD COUNT BL SKIP 2DUP uname PLACE label ;
279. 
280. : resunk ( -- )                                 \ resolve unknown defined word
281.    genHTML utype @ EXECUTE hstate=0 ;
282. 
283. : created ( -- ) hstate @
284.    IF   defining_def utype !                    \ make ; create a defining word
285.    ELSE defdat                                  \ not compiling
286.    THEN ;
287. 
288. \ ------------------------------------------------------------------------------
289. 
290. : header  ( addr len -- )                       \ output big header text
291.    misctext 6 line outln misctext 7 line ;
292. 
293. : _incfil ( addr -- )                           \ trigger file nesting
294.    fn COUNT fn1 PLACE COUNT BL SKIP fn place 1 nufile ! ;
295. 
296. : incfile ( a len -- a' len' )                  \ include a file
297.    genHTML skipw PAD _incfil ;
298. 
299. : "incfil ( a len -- a' len' )                  \ include file from S" filename"
300.    skipw pstr _incfil ;
301. 
302. : hfill  ( -- len )                             \ read next line of file
303.    inbuf 256 inf READ-LINE ABORT" Error reading file" ;
304. 
305. : open  ( -- ) cr ." Reading " fn COUNT type ."  at line " linenum @ .
306.    0 linenum !
307.    fn COUNT R/O OPEN-FILE ABORT" Error opening source file" to inf ;
308. 
309. : close  ( -- ) cr ." closing " fn COUNT type
310.    inf CLOSE-FILE ABORT" Error closing file" ;
311. 
312. : oopen  ( -- )
313.    ofn W/O CREATE-FILE ABORT" Error creating file" to outf
314.    begin_header boiler                          \ begin boilerplate
315.    fn COUNT outln  mid_header boiler            \ title and end boilerplate
316.    fn COUNT header ;
317. 
318. : HTML  ( <infile> -- )
319.    0 TO screen-only  0 nufile !                 \ force usage of file
 
320. \ 1 TO screen-only
303.    BL WORD COUNT fn PLACE open oopen            \ open input and output files
304.    -1 DUP >R outf >R                            \ file nest uses stacks
305.    hstate=0
306.    BEGIN
307.       BEGIN 0 special !                         \ process line
308.          nufile @                               \ nest a file?
309.          IF   inf outf
310.               open oopen  outf >R               \ open new files
311.               0 nufile !
312.          THEN hfill
313.       WHILE inbuf SWAP hint 1 linenum +!
314.       REPEAT DROP
315.       close fn1 COUNT fn PLACE                  \ restore file name
316.       DUP -1 <>
317.       IF   TO outf TO inf FALSE                 \ unnest files
318.       ELSE TRUE
319.       THEN
320.    UNTIL DROP
321.    BEGIN R> DUP -1 <>                           \ close all output files
322.    WHILE end_header boiler                      \ finish up HTML
323.       close-file ABORT" Error closing file"
324.    REPEAT DROP ;
325. 
326. : q  ( -- ) 1 TO screen-only                    \ single line test
327.    -1 word count inbuf place inbuf count hint ;
328. 
329. \ 0 [IF] is often used as a comment. If it is used as a comment, scan the file
330. \ for a [THEN]. [THEN] must be on the next line or beyond.
331. 
332. : upp ( an--) BOUNDS ?DO I C@ [CHAR] a > IF I C@ 32 - I C! THEN LOOP \ uppercase
333. ;
334. 
335. : bigif  ( a len -- a len )  special @ 1 =
336.    IF    genHTML commentary setcolor outh       \ finish up this line
321.    BL WORD COUNT fn PLACE open oopen            \ open input and output files
322.    -1 DUP >R outf >R                            \ file nest uses stacks
323.    hstate=0
324.    BEGIN
325.       BEGIN 0 special !                         \ process line
326.          nufile @                               \ nest a file?
327.          IF   inf outf
328.               open oopen  outf >R               \ open new files
329.               0 nufile !
330.          THEN hfill
331.       WHILE inbuf SWAP hint 1 linenum +!
332.       REPEAT DROP
333.       close fn1 COUNT fn PLACE                  \ restore file name
334.       DUP -1 <>
335.       IF   TO outf TO inf FALSE                 \ unnest files
336.       ELSE TRUE
337.       THEN
338.    UNTIL DROP
339.    BEGIN R> DUP -1 <>                           \ close all output files
340.    WHILE end_header boiler                      \ finish up HTML
341.       close-file ABORT" Error closing file"
342.    REPEAT DROP ;
343. 
344. : q  ( -- ) 1 TO screen-only                    \ single line test
345.    -1 word count inbuf place inbuf count hint ;
346. 
347. \ 0 [IF] is often used as a comment. If it is used as a comment, scan the file
348. \ for a [THEN]. [THEN] must be on the next line or beyond.
349. 
350. : upp ( an--) BOUNDS ?DO I C@ [CHAR] a > IF I C@ 32 - I C! THEN LOOP \ uppercase
351. ;
352. 
353. : bigif  ( a len -- a len )  special @ 1 =
354.    IF    genHTML commentary setcolor outh       \ finish up this line
337.       BEGIN hfill      S" <br>" outln
355.       BEGIN hfill      new-line
338.       WHILE >R inbuf EPAD R@ MOVE
339.          EPAD R@ upp                            \ uppercase for search
340.          EPAD R@ S" [THEN]" SEARCH
341.          IF   DROP EPAD - inbuf OVER PAD PLACE  \ before [THEN] is comment
342.               genHTML
343.               inbuf R> ROT /STRING EXIT
344.          ELSE 2DROP inbuf R> outh               \ whole line is comment
345.          THEN
346.       REPEAT DROP -1 ABORT" Missing [THEN]"
347.    THEN ;
348. 
356.       WHILE >R inbuf EPAD R@ MOVE
357.          EPAD R@ upp                            \ uppercase for search
358.          EPAD R@ S" [THEN]" SEARCH
359.          IF   DROP EPAD - inbuf OVER PAD PLACE  \ before [THEN] is comment
360.               genHTML
361.               inbuf R> ROT /STRING EXIT
362.          ELSE 2DROP inbuf R> outh               \ whole line is comment
363.          THEN
364.       REPEAT DROP -1 ABORT" Missing [THEN]"
365.    THEN ;
366. 
 
367. \ handle multi-line comments
368. \ (( )) and comment: comment; are often used as multi-line comments in win32forth.
369. \ )) or comment; must be on the next line or beyond.
370. variable mlc-stop
371. 
372. : (mlc) ( a -- )
373.       mlc-stop !
374.       commentary setcolor genHTML outh       \ finish up this line
375.       BEGIN hfill    new-line
376.       WHILE >R inbuf EPAD R@ MOVE
377.          EPAD R@ upp                            \ uppercase for search
378.          EPAD R@ mlc-stop @ count SEARCH
379.          IF   DROP mlc-stop @ count nip + EPAD - inbuf OVER PAD PLACE  \ before )) and )) is comment
380.               genHTML
381.               inbuf R> ROT /STRING EXIT
382.          ELSE 2DROP inbuf R> outh               \ whole line is comment
383.          THEN
384.       REPEAT DROP ." Missing " mlc-stop @ count type ABORT
385. ;
386. 
387. : mlc ( <string> -- ) \ handle a multi line comment
388.    CREATE BL WORD COUNT ,$
389.    DOES>  (mlc) ;
390. 
349. \ =============================================================================
350. 
351. : _DEFINITIONS DEFINITIONS ;
352. 
353. hyperlinks SET-CURRENT
354. \ The following words are not in the ANS standard but are very common.
355. : VOCABULARY    defusr ;
356. : DEFER         defusr ;
357. : INCLUDE       hstate @ 0= IF incfile THEN ;
358. : FLOAD         hstate @ 0= IF incfile THEN ;
359. : BINARY        2 BASE ! ;
360. : OCTAL         8 BASE ! ;
361. : 0             numeric spec=zero ;
362. : 1             numeric  ;
363. : -1            numeric  ;
364. 
391. \ =============================================================================
392. 
393. : _DEFINITIONS DEFINITIONS ;
394. 
395. hyperlinks SET-CURRENT
396. \ The following words are not in the ANS standard but are very common.
397. : VOCABULARY    defusr ;
398. : DEFER         defusr ;
399. : INCLUDE       hstate @ 0= IF incfile THEN ;
400. : FLOAD         hstate @ 0= IF incfile THEN ;
401. : BINARY        2 BASE ! ;
402. : OCTAL         8 BASE ! ;
403. : 0             numeric spec=zero ;
404. : 1             numeric  ;
405. : -1            numeric  ;
406. 
 
407. \ The following words are not in the ANS standard but are used in Win32Forth
408. : ANEW          skipw ;
409. mlc ((          ))
410. mlc COMMENT:    COMMENT;
411. 
365. \ The rest is ANS Forth standard
366. 
367. : \             commentary genHTML PAD PLACE  PAD 0 ;
368. 
369. (   NAME                ACTION  COLOR           REFERENCE   )
370. (   ------------------  ------  --------------  ----------- )
371. std !                   NOOP    core_ws         6.1.0010
372. std #                   NOOP    core_ws         6.1.0030
373. std #>                  NOOP    core_ws         6.1.0040
374. std #S                  NOOP    core_ws         6.1.0050
375. std '                   NOOP    core_ws         6.1.0070
376. std (                   skip)   commentary      6.1.0080
377. std *                   NOOP    core_ws         6.1.0090
378. std */                  NOOP    core_ws         6.1.0100
379. std */MOD               NOOP    core_ws         6.1.0110
380. std +                   NOOP    core_ws         6.1.0120
381. std +!                  NOOP    core_ws         6.1.0130
382. std +LOOP               NOOP    core_ws         6.1.0140
383. std ,                   NOOP    core_ws         6.1.0150
384. std -                   NOOP    core_ws         6.1.0160
385. std .                   NOOP    core_ws         6.1.0180
386. std ."                  skip"   numeric         6.1.0190
387. std /                   NOOP    core_ws         6.1.0230
388. std /MOD                NOOP    core_ws         6.1.0240
389. std 0<                  NOOP    core_ws         6.1.0250
390. std 0=                  NOOP    core_ws         6.1.0270
391. std 1+                  NOOP    core_ws         6.1.0290
392. std 1-                  NOOP    core_ws         6.1.0300
393. std 2!                  NOOP    core_ws         6.1.0310
394. std 2*                  NOOP    core_ws         6.1.0320
395. std 2/                  NOOP    core_ws         6.1.0330
396. std 2@                  NOOP    core_ws         6.1.0350
397. std 2DROP               NOOP    core_ws         6.1.0370
398. std 2DUP                NOOP    core_ws         6.1.0380
399. std 2OVER               NOOP    core_ws         6.1.0400
400. std 2SWAP               NOOP    core_ws         6.1.0430
401. std :                   defunk  core_ws         6.1.0450
402. std ;                   resunk  core_ws         6.1.0460
403. std <                   NOOP    core_ws         6.1.0480
404. std <#                  NOOP    core_ws         6.1.0490
405. std =                   NOOP    core_ws         6.1.0530
406. std >                   NOOP    core_ws         6.1.0540
407. std >BODY               NOOP    core_ws         6.1.0550
408. std >IN                 NOOP    core_ws         6.1.0560
409. std >NUMBER             NOOP    core_ws         6.1.0570
410. std >R                  NOOP    core_ws         6.1.0580
411. std ?DUP                NOOP    core_ws         6.1.0630
412. std @                   NOOP    core_ws         6.1.0650
413. std ABORT               NOOP    core_ws         6.1.0670
414. std ABORT"              skip"   numeric         6.1.0680
415. std ABS                 NOOP    core_ws         6.1.0690
416. std ACCEPT              NOOP    core_ws         6.1.0695
417. std ALIGN               NOOP    core_ws         6.1.0705
418. std ALIGNED             NOOP    core_ws         6.1.0706
419. std ALLOT               NOOP    core_ws         6.1.0710
420. std AND                 NOOP    core_ws         6.1.0720
421. std BASE                NOOP    core_ws         6.1.0750
422. std BEGIN               NOOP    core_ws         6.1.0760
423. std BL                  NOOP    numeric         6.1.0770
424. std C!                  NOOP    core_ws         6.1.0850
425. std C,                  NOOP    core_ws         6.1.0860
426. std C@                  NOOP    core_ws         6.1.0870
427. std CELL+               NOOP    core_ws         6.1.0880
428. std CELLS               NOOP    core_ws         6.1.0890
429. std CHAR                skipc   core_ws         6.1.0895
430. std CHAR+               NOOP    core_ws         6.1.0897
431. std CHARS               NOOP    core_ws         6.1.0898
432. std CONSTANT            defdat  core_ws         6.1.0950
433. std COUNT               NOOP    core_ws         6.1.0980
434. std CR                  NOOP    core_ws         6.1.0990
435. std CREATE              created core_ws         6.1.1000
436. std DECIMAL             DECIMAL core_ws         6.1.1170
437. std DEPTH               NOOP    core_ws         6.1.1200
438. std DO                  NOOP    core_ws         6.1.1240
439. std DOES>               NOOP    core_ws         6.1.1250
440. std DROP                NOOP    core_ws         6.1.1260
441. std DUP                 NOOP    core_ws         6.1.1290
442. std ELSE                NOOP    core_ws         6.1.1310
443. std EMIT                NOOP    core_ws         6.1.1320
444. std ENVIRONMENT?        NOOP    core_ws         6.1.1345
445. std EVALUATE            NOOP    core_ws         6.1.1360
446. std EXECUTE             NOOP    core_ws         6.1.1370
447. std EXIT                NOOP    core_ws         6.1.1380
448. std FILL                NOOP    core_ws         6.1.1540
449. std FIND                NOOP    core_ws         6.1.1550
450. std FM/MOD              NOOP    core_ws         6.1.1561
451. std HERE                NOOP    core_ws         6.1.1650
452. std HOLD                NOOP    core_ws         6.1.1670
453. std I                   NOOP    core_ws         6.1.1680
454. std IF                  NOOP    core_ws         6.1.1700
455. std IMMEDIATE           NOOP    core_ws         6.1.1710
456. std INVERT              NOOP    core_ws         6.1.1720
457. std J                   NOOP    core_ws         6.1.1730
458. std KEY                 NOOP    core_ws         6.1.1750
459. std LEAVE               NOOP    core_ws         6.1.1760
460. std LITERAL             NOOP    core_ws         6.1.1780
461. std LOOP                NOOP    core_ws         6.1.1800
462. std LSHIFT              NOOP    core_ws         6.1.1805
463. std M*                  NOOP    core_ws         6.1.1810
464. std MAX                 NOOP    core_ws         6.1.1870
465. std MIN                 NOOP    core_ws         6.1.1880
466. std MOD                 NOOP    core_ws         6.1.1890
467. std MOVE                NOOP    core_ws         6.1.1900
468. std NEGATE              NOOP    core_ws         6.1.1910
469. std OR                  NOOP    core_ws         6.1.1980
470. std OVER                NOOP    core_ws         6.1.1990
471. std POSTPONE            NOOP    core_ws         6.1.2033
472. std QUIT                NOOP    core_ws         6.1.2050
473. std R>                  NOOP    core_ws         6.1.2060
474. std R@                  NOOP    core_ws         6.1.2070
475. std RECURSE             NOOP    core_ws         6.1.2120
476. std REPEAT              NOOP    core_ws         6.1.2140
477. std ROT                 NOOP    core_ws         6.1.2160
478. std RSHIFT              NOOP    core_ws         6.1.2162
479. std S"                  skip"   numeric         6.1.2165
480. std S>D                 NOOP    core_ws         6.1.2170
481. std SIGN                NOOP    core_ws         6.1.2210
482. std SM/REM              NOOP    core_ws         6.1.2214
483. std SOURCE              NOOP    core_ws         6.1.2216
484. std SPACE               NOOP    core_ws         6.1.2220
485. std SPACES              NOOP    core_ws         6.1.2230
486. std STATE               NOOP    core_ws         6.1.2250
487. std SWAP                NOOP    core_ws         6.1.2260
488. std THEN                NOOP    core_ws         6.1.2270
489. std TYPE                NOOP    core_ws         6.1.2310
490. std U.                  NOOP    core_ws         6.1.2320
491. std U<                  NOOP    core_ws         6.1.2340
492. std UM*                 NOOP    core_ws         6.1.2360
493. std UM/MOD              NOOP    core_ws         6.1.2370
494. std UNLOOP              NOOP    core_ws         6.1.2380
495. std UNTIL               NOOP    core_ws         6.1.2390
496. std VARIABLE            defvar  core_ws         6.1.2410
497. std WHILE               NOOP    core_ws         6.1.2430
498. std WORD                NOOP    core_ws         6.1.2450
499. std XOR                 NOOP    core_ws         6.1.2490
500. std [                  hstate=0 core_ws         6.1.2500
501. std [']                 skipw   numeric         6.1.2510
502. std [CHAR]              skipw   numeric         6.1.2520
503. std ]                  hstate=1 core_ws         6.1.2540
504. std #TIB                NOOP    core_ext_ws     6.2.0060
505. std .(                  skip)   commentary      6.2.0200
506. std .R                  NOOP    core_ext_ws     6.2.0210
507. std 0<>                 NOOP    core_ext_ws     6.2.0260
508. std 0>                  NOOP    core_ext_ws     6.2.0280
509. std 2>R                 NOOP    core_ext_ws     6.2.0340
510. std 2R>                 NOOP    core_ext_ws     6.2.0410
511. std 2R@                 NOOP    core_ext_ws     6.2.0415
512. std :NONAME             NOOP    core_ext_ws     6.2.0455
513. std <>                  NOOP    core_ext_ws     6.2.0500
514. std ?DO                 NOOP    core_ext_ws     6.2.0620
515. std AGAIN               NOOP    core_ext_ws     6.2.0700
516. std C"                  skip"   numeric         6.2.0855
517. std CASE                NOOP    core_ext_ws     6.2.0873
518. std COMPILE,            NOOP    core_ext_ws     6.2.0945
519. std CONVERT             NOOP    core_ext_ws     6.2.0970
520. std ENDCASE             NOOP    core_ext_ws     6.2.1342
521. std ENDOF               NOOP    core_ext_ws     6.2.1343
522. std ERASE               NOOP    core_ext_ws     6.2.1350
523. std EXPECT              NOOP    core_ext_ws     6.2.1390
524. std FALSE             spec=zero numeric         6.2.1485
525. std HEX                 HEX     core_ext_ws     6.2.1660
526. std MARKER              defusr  core_ext_ws     6.2.1850
527. std NIP                 NOOP    core_ext_ws     6.2.1930
528. std OF                  NOOP    core_ext_ws     6.2.1950
529. std PAD                 NOOP    core_ext_ws     6.2.2000
530. std PARSE               NOOP    core_ext_ws     6.2.2008
531. std PICK                NOOP    core_ext_ws     6.2.2030
532. std QUERY               NOOP    core_ext_ws     6.2.2040
533. std REFILL              NOOP    core_ext_ws     6.2.2125
534. std RESTORE-INPUT       NOOP    core_ext_ws     6.2.2148
535. std ROLL                NOOP    core_ext_ws     6.2.2150
536. std SAVE-INPUT          NOOP    core_ext_ws     6.2.2182
537. std SOURCE-ID           NOOP    core_ext_ws     6.2.2218
538. std SPAN                NOOP    core_ext_ws     6.2.2240
539. std TIB                 NOOP    core_ext_ws     6.2.2290
540. std TO                  NOOP    core_ext_ws     6.2.2295
541. std TRUE                NOOP    numeric         6.2.2298
542. std TUCK                NOOP    core_ext_ws     6.2.2300
543. std U.R                 NOOP    core_ext_ws     6.2.2330
544. std U>                  NOOP    core_ext_ws     6.2.2350
545. std UNUSED              NOOP    core_ext_ws     6.2.2395
546. std VALUE               defval  core_ext_ws     6.2.2405
547. std WITHIN              NOOP    core_ext_ws     6.2.2440
548. std [COMPILE]           NOOP    core_ext_ws     6.2.2530
549. std BLK                 NOOP    block_ws        7.6.1.0790
550. std BLOCK               NOOP    block_ws        7.6.1.0800
551. std BUFFER              NOOP    block_ws        7.6.1.0820
552. std FLUSH               NOOP    block_ws        7.6.1.1559
553. std LOAD                NOOP    block_ws        7.6.1.1790
554. std SAVE-BUFFERS        NOOP    block_ws        7.6.1.2180
555. std UPDATE              NOOP    block_ws        7.6.1.2400
556. std EMPTY-BUFFERS       NOOP    block_ws        7.6.2.1330
557. std LIST                NOOP    block_ws        7.6.2.1770
558. std SCR                 NOOP    block_ws        7.6.2.2190
559. std THRU                NOOP    block_ws        7.6.2.2280
560. std 2CONSTANT           defdat  double_ws       8.6.1.0360
561. std 2LITERAL            NOOP    double_ws       8.6.1.0390
562. std 2VARIABLE           defvar  double_ws       8.6.1.0440
563. std D+                  NOOP    double_ws       8.6.1.1040
564. std D-                  NOOP    double_ws       8.6.1.1050
565. std D.                  NOOP    double_ws       8.6.1.1060
566. std D.R                 NOOP    double_ws       8.6.1.1070
567. std D0<                 NOOP    double_ws       8.6.1.1075
568. std D0=                 NOOP    double_ws       8.6.1.1080
569. std D2*                 NOOP    double_ws       8.6.1.1090
570. std D2/                 NOOP    double_ws       8.6.1.1100
571. std D<                  NOOP    double_ws       8.6.1.1110
572. std D=                  NOOP    double_ws       8.6.1.1120
573. std D>S                 NOOP    double_ws       8.6.1.1140
574. std DABS                NOOP    double_ws       8.6.1.1160
575. std DMAX                NOOP    double_ws       8.6.1.1210
576. std DMIN                NOOP    double_ws       8.6.1.1220
577. std DNEGATE             NOOP    double_ws       8.6.1.1230
578. std M*/                 NOOP    double_ws       8.6.1.1820
579. std M+                  NOOP    double_ws       8.6.1.1830
580. std 2ROT                NOOP    double_ws       8.6.2.0420
581. std DU<                 NOOP    double_ws       8.6.2.1270
582. std CATCH               NOOP    exception_ws    9.6.1.0875
583. std THROW               NOOP    exception_ws    9.6.1.2275
584. std AT-XY               NOOP    facilities_ws   10.6.1.0742
585. std KEY?                NOOP    facilities_ws   10.6.1.1755
586. std PAGE                NOOP    facilities_ws   10.6.1.2005
587. std EKEY                NOOP    facilities_ws   10.6.2.1305
588. std EKEY<CHAR           NOOP    facilities_ws   10.6.2.1306
589. std EKEY?               NOOP    facilities_ws   10.6.2.1307
590. std EMIT?               NOOP    facilities_ws   10.6.2.1325
591. std MS                  NOOP    facilities_ws   10.6.2.1905
592. std TIME&DATE           NOOP    facilities_ws   10.6.2.2292
593. std BIN                 NOOP    file_ws         11.6.1.0765
594. std CLOSE-FILE          NOOP    file_ws         11.6.1.0900
595. std CREATE-FILE         NOOP    file_ws         11.6.1.1010
596. std DELETE-FILE         NOOP    file_ws         11.6.1.1190
597. std FILE-POSITION       NOOP    file_ws         11.6.1.1520
598. std FILE-SIZE           NOOP    file_ws         11.6.1.1522
599. std INCLUDE-FILE        NOOP    file_ws         11.6.1.1717
600. std INCLUDED            "incfil file_ws         11.6.1.1718
601. std OPEN-FILE           NOOP    file_ws         11.6.1.1970
602. std R/O                 NOOP    file_ws         11.6.1.2054
603. std R/W                 NOOP    file_ws         11.6.1.2056
604. std READ-FILE           NOOP    file_ws         11.6.1.2080
605. std READ-LINE           NOOP    file_ws         11.6.1.2090
606. std REPOSITION-FILE     NOOP    file_ws         11.6.1.2142
607. std RESIZE-FILE         NOOP    file_ws         11.6.1.2147
608. std W/O                 NOOP    file_ws         11.6.1.2425
609. std WRITE-FILE          NOOP    file_ws         11.6.1.2480
610. std WRITE-LINE          NOOP    file_ws         11.6.1.2485
611. std FILE-STATUS         NOOP    file_ws         11.6.2.1524
612. std FLUSH-FILE          NOOP    file_ws         11.6.2.1560
613. std RENAME-FILE         NOOP    file_ws         11.6.2.2130
614. std >FLOAT              NOOP    fp_ws           12.6.1.0558
615. std D>F                 NOOP    fp_ws           12.6.1.1130
616. std F!                  NOOP    fp_ws           12.6.1.1400
617. std F*                  NOOP    fp_ws           12.6.1.1410
618. std F+                  NOOP    fp_ws           12.6.1.1420
619. std F-                  NOOP    fp_ws           12.6.1.1425
620. std F/                  NOOP    fp_ws           12.6.1.1430
621. std F0<                 NOOP    fp_ws           12.6.1.1440
622. std F0=                 NOOP    fp_ws           12.6.1.1450
623. std F<                  NOOP    fp_ws           12.6.1.1460
624. std F>D                 NOOP    fp_ws           12.6.1.1460
625. std F@                  NOOP    fp_ws           12.6.1.1472
626. std FALIGN              NOOP    fp_ws           12.6.1.1479
627. std FALIGNED            NOOP    fp_ws           12.6.1.1483
628. std FCONSTANT           defdat  fp_ws           12.6.1.1492
629. std FDEPTH              NOOP    fp_ws           12.6.1.1497
630. std FDROP               NOOP    fp_ws           12.6.1.1500
631. std FDUP                NOOP    fp_ws           12.6.1.1510
632. std FLITERAL            NOOP    fp_ws           12.6.1.1552
633. std FLOAT+              NOOP    fp_ws           12.6.1.1555
634. std FLOATS              NOOP    fp_ws           12.6.1.1556
635. std FLOOR               NOOP    fp_ws           12.6.1.1558
636. std FMAX                NOOP    fp_ws           12.6.1.1562
637. std FMIN                NOOP    fp_ws           12.6.1.1565
638. std FNEGATE             NOOP    fp_ws           12.6.1.1567
639. std FOVER               NOOP    fp_ws           12.6.1.1600
640. std FROT                NOOP    fp_ws           12.6.1.1610
641. std FROUND              NOOP    fp_ws           12.6.1.1612
642. std FSWAP               NOOP    fp_ws           12.6.1.1620
643. std FVARIABLE           defvar  fp_ws           12.6.1.1630
644. std REPRESENT           NOOP    fp_ws           12.6.1.2143
645. std DF!                 NOOP    fp_ws           12.6.2.1203
646. std DF@                 NOOP    fp_ws           12.6.2.1204
647. std DFALIGN             NOOP    fp_ws           12.6.2.1205
648. std DFALIGNED           NOOP    fp_ws           12.6.2.1207
649. std DFLOAT+             NOOP    fp_ws           12.6.2.1208
650. std DFLOATS             NOOP    fp_ws           12.6.2.1209
651. std F**                 NOOP    fp_ws           12.6.2.1415
652. std F.                  NOOP    fp_ws           12.6.2.1427
653. std FABS                NOOP    fp_ws           12.6.2.1474
654. std FACOS               NOOP    fp_ws           12.6.2.1476
655. std FACOSH              NOOP    fp_ws           12.6.2.1477
656. std FALOG               NOOP    fp_ws           12.6.2.1484
657. std FASIN               NOOP    fp_ws           12.6.2.1486
658. std FASINH              NOOP    fp_ws           12.6.2.1487
659. std FATAN               NOOP    fp_ws           12.6.2.1488
660. std FATAN2              NOOP    fp_ws           12.6.2.1489
661. std FATANH              NOOP    fp_ws           12.6.2.1491
662. std FCOS                NOOP    fp_ws           12.6.2.1493
663. std FCOSH               NOOP    fp_ws           12.6.2.1494
664. std FE.                 NOOP    fp_ws           12.6.2.1513
665. std FEXP                NOOP    fp_ws           12.6.2.1515
666. std FEXPM1              NOOP    fp_ws           12.6.2.1516
667. std FLN                 NOOP    fp_ws           12.6.2.1553
668. std FLNP1               NOOP    fp_ws           12.6.2.1554
669. std FLOG                NOOP    fp_ws           12.6.2.1557
670. std FS.                 NOOP    fp_ws           12.6.2.1613
671. std FSIN                NOOP    fp_ws           12.6.2.1614
672. std FSINCOS             NOOP    fp_ws           12.6.2.1616
673. std FSINH               NOOP    fp_ws           12.6.2.1617
674. std FSQRT               NOOP    fp_ws           12.6.2.1618
675. std FTAN                NOOP    fp_ws           12.6.2.1625
676. std FTANH               NOOP    fp_ws           12.6.2.1626
677. std F~                  NOOP    fp_ws           12.6.2.1640
678. std PRECISION           NOOP    fp_ws           12.6.2.2035
679. std SET-PRECISION       NOOP    fp_ws           12.6.2.2200
680. std SF!                 NOOP    fp_ws           12.6.2.2202
681. std SF@                 NOOP    fp_ws           12.6.2.2203
682. std SFALIGN             NOOP    fp_ws           12.6.2.2204
683. std SFALIGNED           NOOP    fp_ws           12.6.2.2206
684. std SFLOAT+             NOOP    fp_ws           12.6.2.2207
685. std SFLOATS             NOOP    fp_ws           12.6.2.2208
686. std (LOCAL)             NOOP    local_ws        13.6.1.0086
687. std LOCALS|             NOOP    local_ws        13.6.2.1795
688. std ALLOCATE            NOOP    malloc_ws       14.6.1.0707
689. std FREE                NOOP    malloc_ws       14.6.1.1605
690. std RESIZE              NOOP    malloc_ws       14.6.1.2145
691. std .S                  NOOP    progtools_ws    15.6.1.0220
692. std ?                   NOOP    progtools_ws    15.6.1.0600
693. std DUMP                NOOP    progtools_ws    15.6.1.1280
694. std SEE                 NOOP    progtools_ws    15.6.1.2194
695. std WORDS               NOOP    progtools_ws    15.6.1.2465
696. std ;CODE               resunk  progtools_ws    15.6.2.0470
697. std AHEAD               NOOP    progtools_ws    15.6.2.0702
698. std ASSEMBLER           NOOP    progtools_ws    15.6.2.0740
699. std BYE                 NOOP    progtools_ws    15.6.2.0830
700. std CODE                defusr  progtools_ws    15.6.2.0930
701. std CS-PICK             NOOP    progtools_ws    15.6.2.1015
702. std CS-ROLL             NOOP    progtools_ws    15.6.2.1020
703. std EDITOR              NOOP    progtools_ws    15.6.2.1300
704. std FORGET              NOOP    progtools_ws    15.6.2.1580
705. std [ELSE]              NOOP    progtools_ws    15.6.2.2531
706. std [IF]                bigif   progtools_ws    15.6.2.2532
707. std [THEN]              NOOP    progtools_ws    15.6.2.2533
708. std DEFINITIONS         NOOP    searchord_ws    16.6.1.1180
709. std FORTH-WORDLIST      NOOP    searchord_ws    16.6.1.1595
710. std GET-CURRENT         NOOP    searchord_ws    16.6.1.1643
711. std GET-ORDER           NOOP    searchord_ws    16.6.1.1647
712. std SEARCH-WORDLIST     NOOP    searchord_ws    16.6.1.2192
713. std SET-CURRENT         NOOP    searchord_ws    16.6.1.2195
714. std SET-ORDER           NOOP    searchord_ws    16.6.1.2197
715. std WORDLIST            NOOP    searchord_ws    16.6.1.2460
716. std ALSO                NOOP    searchord_ws    16.6.2.0715
717. std FORTH               NOOP    searchord_ws    16.6.2.1590
718. std ONLY                NOOP    searchord_ws    16.6.2.1965
719. std ORDER               NOOP    searchord_ws    16.6.2.1985
720. std PREVIOUS            NOOP    searchord_ws    16.6.2.2037
721. std -TRAILING           NOOP    string_ws       17.6.1.0170
722. std /STRING             NOOP    string_ws       17.6.1.0245
723. std BLANK               NOOP    string_ws       17.6.1.0780
724. std CMOVE               NOOP    string_ws       17.6.1.0910
725. std CMOVE>              NOOP    string_ws       17.6.1.0920
726. std COMPARE             NOOP    string_ws       17.6.1.0935
727. std SEARCH              NOOP    string_ws       17.6.1.2191
728. std SLITERAL            NOOP    string_ws       17.6.1.2212
729. 
730. _DEFINITIONS
731. 
732. \ Revision history
733. \ 0. 1st release to guinea pigs via comp.lang.forth
734. \ 1. Added multi-line comment 0 [IF]. Colored CHAR outside definitions.
412. \ The rest is ANS Forth standard
413. 
414. : \             commentary genHTML PAD PLACE  PAD 0 ;
415. 
416. (   NAME                ACTION  COLOR           REFERENCE   )
417. (   ------------------  ------  --------------  ----------- )
418. std !                   NOOP    core_ws         6.1.0010
419. std #                   NOOP    core_ws         6.1.0030
420. std #>                  NOOP    core_ws         6.1.0040
421. std #S                  NOOP    core_ws         6.1.0050
422. std '                   NOOP    core_ws         6.1.0070
423. std (                   skip)   commentary      6.1.0080
424. std *                   NOOP    core_ws         6.1.0090
425. std */                  NOOP    core_ws         6.1.0100
426. std */MOD               NOOP    core_ws         6.1.0110
427. std +                   NOOP    core_ws         6.1.0120
428. std +!                  NOOP    core_ws         6.1.0130
429. std +LOOP               NOOP    core_ws         6.1.0140
430. std ,                   NOOP    core_ws         6.1.0150
431. std -                   NOOP    core_ws         6.1.0160
432. std .                   NOOP    core_ws         6.1.0180
433. std ."                  skip"   numeric         6.1.0190
434. std /                   NOOP    core_ws         6.1.0230
435. std /MOD                NOOP    core_ws         6.1.0240
436. std 0<                  NOOP    core_ws         6.1.0250
437. std 0=                  NOOP    core_ws         6.1.0270
438. std 1+                  NOOP    core_ws         6.1.0290
439. std 1-                  NOOP    core_ws         6.1.0300
440. std 2!                  NOOP    core_ws         6.1.0310
441. std 2*                  NOOP    core_ws         6.1.0320
442. std 2/                  NOOP    core_ws         6.1.0330
443. std 2@                  NOOP    core_ws         6.1.0350
444. std 2DROP               NOOP    core_ws         6.1.0370
445. std 2DUP                NOOP    core_ws         6.1.0380
446. std 2OVER               NOOP    core_ws         6.1.0400
447. std 2SWAP               NOOP    core_ws         6.1.0430
448. std :                   defunk  core_ws         6.1.0450
449. std ;                   resunk  core_ws         6.1.0460
450. std <                   NOOP    core_ws         6.1.0480
451. std <#                  NOOP    core_ws         6.1.0490
452. std =                   NOOP    core_ws         6.1.0530
453. std >                   NOOP    core_ws         6.1.0540
454. std >BODY               NOOP    core_ws         6.1.0550
455. std >IN                 NOOP    core_ws         6.1.0560
456. std >NUMBER             NOOP    core_ws         6.1.0570
457. std >R                  NOOP    core_ws         6.1.0580
458. std ?DUP                NOOP    core_ws         6.1.0630
459. std @                   NOOP    core_ws         6.1.0650
460. std ABORT               NOOP    core_ws         6.1.0670
461. std ABORT"              skip"   numeric         6.1.0680
462. std ABS                 NOOP    core_ws         6.1.0690
463. std ACCEPT              NOOP    core_ws         6.1.0695
464. std ALIGN               NOOP    core_ws         6.1.0705
465. std ALIGNED             NOOP    core_ws         6.1.0706
466. std ALLOT               NOOP    core_ws         6.1.0710
467. std AND                 NOOP    core_ws         6.1.0720
468. std BASE                NOOP    core_ws         6.1.0750
469. std BEGIN               NOOP    core_ws         6.1.0760
470. std BL                  NOOP    numeric         6.1.0770
471. std C!                  NOOP    core_ws         6.1.0850
472. std C,                  NOOP    core_ws         6.1.0860
473. std C@                  NOOP    core_ws         6.1.0870
474. std CELL+               NOOP    core_ws         6.1.0880
475. std CELLS               NOOP    core_ws         6.1.0890
476. std CHAR                skipc   core_ws         6.1.0895
477. std CHAR+               NOOP    core_ws         6.1.0897
478. std CHARS               NOOP    core_ws         6.1.0898
479. std CONSTANT            defdat  core_ws         6.1.0950
480. std COUNT               NOOP    core_ws         6.1.0980
481. std CR                  NOOP    core_ws         6.1.0990
482. std CREATE              created core_ws         6.1.1000
483. std DECIMAL             DECIMAL core_ws         6.1.1170
484. std DEPTH               NOOP    core_ws         6.1.1200
485. std DO                  NOOP    core_ws         6.1.1240
486. std DOES>               NOOP    core_ws         6.1.1250
487. std DROP                NOOP    core_ws         6.1.1260
488. std DUP                 NOOP    core_ws         6.1.1290
489. std ELSE                NOOP    core_ws         6.1.1310
490. std EMIT                NOOP    core_ws         6.1.1320
491. std ENVIRONMENT?        NOOP    core_ws         6.1.1345
492. std EVALUATE            NOOP    core_ws         6.1.1360
493. std EXECUTE             NOOP    core_ws         6.1.1370
494. std EXIT                NOOP    core_ws         6.1.1380
495. std FILL                NOOP    core_ws         6.1.1540
496. std FIND                NOOP    core_ws         6.1.1550
497. std FM/MOD              NOOP    core_ws         6.1.1561
498. std HERE                NOOP    core_ws         6.1.1650
499. std HOLD                NOOP    core_ws         6.1.1670
500. std I                   NOOP    core_ws         6.1.1680
501. std IF                  NOOP    core_ws         6.1.1700
502. std IMMEDIATE           NOOP    core_ws         6.1.1710
503. std INVERT              NOOP    core_ws         6.1.1720
504. std J                   NOOP    core_ws         6.1.1730
505. std KEY                 NOOP    core_ws         6.1.1750
506. std LEAVE               NOOP    core_ws         6.1.1760
507. std LITERAL             NOOP    core_ws         6.1.1780
508. std LOOP                NOOP    core_ws         6.1.1800
509. std LSHIFT              NOOP    core_ws         6.1.1805
510. std M*                  NOOP    core_ws         6.1.1810
511. std MAX                 NOOP    core_ws         6.1.1870
512. std MIN                 NOOP    core_ws         6.1.1880
513. std MOD                 NOOP    core_ws         6.1.1890
514. std MOVE                NOOP    core_ws         6.1.1900
515. std NEGATE              NOOP    core_ws         6.1.1910
516. std OR                  NOOP    core_ws         6.1.1980
517. std OVER                NOOP    core_ws         6.1.1990
518. std POSTPONE            NOOP    core_ws         6.1.2033
519. std QUIT                NOOP    core_ws         6.1.2050
520. std R>                  NOOP    core_ws         6.1.2060
521. std R@                  NOOP    core_ws         6.1.2070
522. std RECURSE             NOOP    core_ws         6.1.2120
523. std REPEAT              NOOP    core_ws         6.1.2140
524. std ROT                 NOOP    core_ws         6.1.2160
525. std RSHIFT              NOOP    core_ws         6.1.2162
526. std S"                  skip"   numeric         6.1.2165
527. std S>D                 NOOP    core_ws         6.1.2170
528. std SIGN                NOOP    core_ws         6.1.2210
529. std SM/REM              NOOP    core_ws         6.1.2214
530. std SOURCE              NOOP    core_ws         6.1.2216
531. std SPACE               NOOP    core_ws         6.1.2220
532. std SPACES              NOOP    core_ws         6.1.2230
533. std STATE               NOOP    core_ws         6.1.2250
534. std SWAP                NOOP    core_ws         6.1.2260
535. std THEN                NOOP    core_ws         6.1.2270
536. std TYPE                NOOP    core_ws         6.1.2310
537. std U.                  NOOP    core_ws         6.1.2320
538. std U<                  NOOP    core_ws         6.1.2340
539. std UM*                 NOOP    core_ws         6.1.2360
540. std UM/MOD              NOOP    core_ws         6.1.2370
541. std UNLOOP              NOOP    core_ws         6.1.2380
542. std UNTIL               NOOP    core_ws         6.1.2390
543. std VARIABLE            defvar  core_ws         6.1.2410
544. std WHILE               NOOP    core_ws         6.1.2430
545. std WORD                NOOP    core_ws         6.1.2450
546. std XOR                 NOOP    core_ws         6.1.2490
547. std [                  hstate=0 core_ws         6.1.2500
548. std [']                 skipw   numeric         6.1.2510
549. std [CHAR]              skipw   numeric         6.1.2520
550. std ]                  hstate=1 core_ws         6.1.2540
551. std #TIB                NOOP    core_ext_ws     6.2.0060
552. std .(                  skip)   commentary      6.2.0200
553. std .R                  NOOP    core_ext_ws     6.2.0210
554. std 0<>                 NOOP    core_ext_ws     6.2.0260
555. std 0>                  NOOP    core_ext_ws     6.2.0280
556. std 2>R                 NOOP    core_ext_ws     6.2.0340
557. std 2R>                 NOOP    core_ext_ws     6.2.0410
558. std 2R@                 NOOP    core_ext_ws     6.2.0415
559. std :NONAME             NOOP    core_ext_ws     6.2.0455
560. std <>                  NOOP    core_ext_ws     6.2.0500
561. std ?DO                 NOOP    core_ext_ws     6.2.0620
562. std AGAIN               NOOP    core_ext_ws     6.2.0700
563. std C"                  skip"   numeric         6.2.0855
564. std CASE                NOOP    core_ext_ws     6.2.0873
565. std COMPILE,            NOOP    core_ext_ws     6.2.0945
566. std CONVERT             NOOP    core_ext_ws     6.2.0970
567. std ENDCASE             NOOP    core_ext_ws     6.2.1342
568. std ENDOF               NOOP    core_ext_ws     6.2.1343
569. std ERASE               NOOP    core_ext_ws     6.2.1350
570. std EXPECT              NOOP    core_ext_ws     6.2.1390
571. std FALSE             spec=zero numeric         6.2.1485
572. std HEX                 HEX     core_ext_ws     6.2.1660
573. std MARKER              defusr  core_ext_ws     6.2.1850
574. std NIP                 NOOP    core_ext_ws     6.2.1930
575. std OF                  NOOP    core_ext_ws     6.2.1950
576. std PAD                 NOOP    core_ext_ws     6.2.2000
577. std PARSE               NOOP    core_ext_ws     6.2.2008
578. std PICK                NOOP    core_ext_ws     6.2.2030
579. std QUERY               NOOP    core_ext_ws     6.2.2040
580. std REFILL              NOOP    core_ext_ws     6.2.2125
581. std RESTORE-INPUT       NOOP    core_ext_ws     6.2.2148
582. std ROLL                NOOP    core_ext_ws     6.2.2150
583. std SAVE-INPUT          NOOP    core_ext_ws     6.2.2182
584. std SOURCE-ID           NOOP    core_ext_ws     6.2.2218
585. std SPAN                NOOP    core_ext_ws     6.2.2240
586. std TIB                 NOOP    core_ext_ws     6.2.2290
587. std TO                  NOOP    core_ext_ws     6.2.2295
588. std TRUE                NOOP    numeric         6.2.2298
589. std TUCK                NOOP    core_ext_ws     6.2.2300
590. std U.R                 NOOP    core_ext_ws     6.2.2330
591. std U>                  NOOP    core_ext_ws     6.2.2350
592. std UNUSED              NOOP    core_ext_ws     6.2.2395
593. std VALUE               defval  core_ext_ws     6.2.2405
594. std WITHIN              NOOP    core_ext_ws     6.2.2440
595. std [COMPILE]           NOOP    core_ext_ws     6.2.2530
596. std BLK                 NOOP    block_ws        7.6.1.0790
597. std BLOCK               NOOP    block_ws        7.6.1.0800
598. std BUFFER              NOOP    block_ws        7.6.1.0820
599. std FLUSH               NOOP    block_ws        7.6.1.1559
600. std LOAD                NOOP    block_ws        7.6.1.1790
601. std SAVE-BUFFERS        NOOP    block_ws        7.6.1.2180
602. std UPDATE              NOOP    block_ws        7.6.1.2400
603. std EMPTY-BUFFERS       NOOP    block_ws        7.6.2.1330
604. std LIST                NOOP    block_ws        7.6.2.1770
605. std SCR                 NOOP    block_ws        7.6.2.2190
606. std THRU                NOOP    block_ws        7.6.2.2280
607. std 2CONSTANT           defdat  double_ws       8.6.1.0360
608. std 2LITERAL            NOOP    double_ws       8.6.1.0390
609. std 2VARIABLE           defvar  double_ws       8.6.1.0440
610. std D+                  NOOP    double_ws       8.6.1.1040
611. std D-                  NOOP    double_ws       8.6.1.1050
612. std D.                  NOOP    double_ws       8.6.1.1060
613. std D.R                 NOOP    double_ws       8.6.1.1070
614. std D0<                 NOOP    double_ws       8.6.1.1075
615. std D0=                 NOOP    double_ws       8.6.1.1080
616. std D2*                 NOOP    double_ws       8.6.1.1090
617. std D2/                 NOOP    double_ws       8.6.1.1100
618. std D<                  NOOP    double_ws       8.6.1.1110
619. std D=                  NOOP    double_ws       8.6.1.1120
620. std D>S                 NOOP    double_ws       8.6.1.1140
621. std DABS                NOOP    double_ws       8.6.1.1160
622. std DMAX                NOOP    double_ws       8.6.1.1210
623. std DMIN                NOOP    double_ws       8.6.1.1220
624. std DNEGATE             NOOP    double_ws       8.6.1.1230
625. std M*/                 NOOP    double_ws       8.6.1.1820
626. std M+                  NOOP    double_ws       8.6.1.1830
627. std 2ROT                NOOP    double_ws       8.6.2.0420
628. std DU<                 NOOP    double_ws       8.6.2.1270
629. std CATCH               NOOP    exception_ws    9.6.1.0875
630. std THROW               NOOP    exception_ws    9.6.1.2275
631. std AT-XY               NOOP    facilities_ws   10.6.1.0742
632. std KEY?                NOOP    facilities_ws   10.6.1.1755
633. std PAGE                NOOP    facilities_ws   10.6.1.2005
634. std EKEY                NOOP    facilities_ws   10.6.2.1305
635. std EKEY<CHAR           NOOP    facilities_ws   10.6.2.1306
636. std EKEY?               NOOP    facilities_ws   10.6.2.1307
637. std EMIT?               NOOP    facilities_ws   10.6.2.1325
638. std MS                  NOOP    facilities_ws   10.6.2.1905
639. std TIME&DATE           NOOP    facilities_ws   10.6.2.2292
640. std BIN                 NOOP    file_ws         11.6.1.0765
641. std CLOSE-FILE          NOOP    file_ws         11.6.1.0900
642. std CREATE-FILE         NOOP    file_ws         11.6.1.1010
643. std DELETE-FILE         NOOP    file_ws         11.6.1.1190
644. std FILE-POSITION       NOOP    file_ws         11.6.1.1520
645. std FILE-SIZE           NOOP    file_ws         11.6.1.1522
646. std INCLUDE-FILE        NOOP    file_ws         11.6.1.1717
647. std INCLUDED            "incfil file_ws         11.6.1.1718
648. std OPEN-FILE           NOOP    file_ws         11.6.1.1970
649. std R/O                 NOOP    file_ws         11.6.1.2054
650. std R/W                 NOOP    file_ws         11.6.1.2056
651. std READ-FILE           NOOP    file_ws         11.6.1.2080
652. std READ-LINE           NOOP    file_ws         11.6.1.2090
653. std REPOSITION-FILE     NOOP    file_ws         11.6.1.2142
654. std RESIZE-FILE         NOOP    file_ws         11.6.1.2147
655. std W/O                 NOOP    file_ws         11.6.1.2425
656. std WRITE-FILE          NOOP    file_ws         11.6.1.2480
657. std WRITE-LINE          NOOP    file_ws         11.6.1.2485
658. std FILE-STATUS         NOOP    file_ws         11.6.2.1524
659. std FLUSH-FILE          NOOP    file_ws         11.6.2.1560
660. std RENAME-FILE         NOOP    file_ws         11.6.2.2130
661. std >FLOAT              NOOP    fp_ws           12.6.1.0558
662. std D>F                 NOOP    fp_ws           12.6.1.1130
663. std F!                  NOOP    fp_ws           12.6.1.1400
664. std F*                  NOOP    fp_ws           12.6.1.1410
665. std F+                  NOOP    fp_ws           12.6.1.1420
666. std F-                  NOOP    fp_ws           12.6.1.1425
667. std F/                  NOOP    fp_ws           12.6.1.1430
668. std F0<                 NOOP    fp_ws           12.6.1.1440
669. std F0=                 NOOP    fp_ws           12.6.1.1450
670. std F<                  NOOP    fp_ws           12.6.1.1460
671. std F>D                 NOOP    fp_ws           12.6.1.1460
672. std F@                  NOOP    fp_ws           12.6.1.1472
673. std FALIGN              NOOP    fp_ws           12.6.1.1479
674. std FALIGNED            NOOP    fp_ws           12.6.1.1483
675. std FCONSTANT           defdat  fp_ws           12.6.1.1492
676. std FDEPTH              NOOP    fp_ws           12.6.1.1497
677. std FDROP               NOOP    fp_ws           12.6.1.1500
678. std FDUP                NOOP    fp_ws           12.6.1.1510
679. std FLITERAL            NOOP    fp_ws           12.6.1.1552
680. std FLOAT+              NOOP    fp_ws           12.6.1.1555
681. std FLOATS              NOOP    fp_ws           12.6.1.1556
682. std FLOOR               NOOP    fp_ws           12.6.1.1558
683. std FMAX                NOOP    fp_ws           12.6.1.1562
684. std FMIN                NOOP    fp_ws           12.6.1.1565
685. std FNEGATE             NOOP    fp_ws           12.6.1.1567
686. std FOVER               NOOP    fp_ws           12.6.1.1600
687. std FROT                NOOP    fp_ws           12.6.1.1610
688. std FROUND              NOOP    fp_ws           12.6.1.1612
689. std FSWAP               NOOP    fp_ws           12.6.1.1620
690. std FVARIABLE           defvar  fp_ws           12.6.1.1630
691. std REPRESENT           NOOP    fp_ws           12.6.1.2143
692. std DF!                 NOOP    fp_ws           12.6.2.1203
693. std DF@                 NOOP    fp_ws           12.6.2.1204
694. std DFALIGN             NOOP    fp_ws           12.6.2.1205
695. std DFALIGNED           NOOP    fp_ws           12.6.2.1207
696. std DFLOAT+             NOOP    fp_ws           12.6.2.1208
697. std DFLOATS             NOOP    fp_ws           12.6.2.1209
698. std F**                 NOOP    fp_ws           12.6.2.1415
699. std F.                  NOOP    fp_ws           12.6.2.1427
700. std FABS                NOOP    fp_ws           12.6.2.1474
701. std FACOS               NOOP    fp_ws           12.6.2.1476
702. std FACOSH              NOOP    fp_ws           12.6.2.1477
703. std FALOG               NOOP    fp_ws           12.6.2.1484
704. std FASIN               NOOP    fp_ws           12.6.2.1486
705. std FASINH              NOOP    fp_ws           12.6.2.1487
706. std FATAN               NOOP    fp_ws           12.6.2.1488
707. std FATAN2              NOOP    fp_ws           12.6.2.1489
708. std FATANH              NOOP    fp_ws           12.6.2.1491
709. std FCOS                NOOP    fp_ws           12.6.2.1493
710. std FCOSH               NOOP    fp_ws           12.6.2.1494
711. std FE.                 NOOP    fp_ws           12.6.2.1513
712. std FEXP                NOOP    fp_ws           12.6.2.1515
713. std FEXPM1              NOOP    fp_ws           12.6.2.1516
714. std FLN                 NOOP    fp_ws           12.6.2.1553
715. std FLNP1               NOOP    fp_ws           12.6.2.1554
716. std FLOG                NOOP    fp_ws           12.6.2.1557
717. std FS.                 NOOP    fp_ws           12.6.2.1613
718. std FSIN                NOOP    fp_ws           12.6.2.1614
719. std FSINCOS             NOOP    fp_ws           12.6.2.1616
720. std FSINH               NOOP    fp_ws           12.6.2.1617
721. std FSQRT               NOOP    fp_ws           12.6.2.1618
722. std FTAN                NOOP    fp_ws           12.6.2.1625
723. std FTANH               NOOP    fp_ws           12.6.2.1626
724. std F~                  NOOP    fp_ws           12.6.2.1640
725. std PRECISION           NOOP    fp_ws           12.6.2.2035
726. std SET-PRECISION       NOOP    fp_ws           12.6.2.2200
727. std SF!                 NOOP    fp_ws           12.6.2.2202
728. std SF@                 NOOP    fp_ws           12.6.2.2203
729. std SFALIGN             NOOP    fp_ws           12.6.2.2204
730. std SFALIGNED           NOOP    fp_ws           12.6.2.2206
731. std SFLOAT+             NOOP    fp_ws           12.6.2.2207
732. std SFLOATS             NOOP    fp_ws           12.6.2.2208
733. std (LOCAL)             NOOP    local_ws        13.6.1.0086
734. std LOCALS|             NOOP    local_ws        13.6.2.1795
735. std ALLOCATE            NOOP    malloc_ws       14.6.1.0707
736. std FREE                NOOP    malloc_ws       14.6.1.1605
737. std RESIZE              NOOP    malloc_ws       14.6.1.2145
738. std .S                  NOOP    progtools_ws    15.6.1.0220
739. std ?                   NOOP    progtools_ws    15.6.1.0600
740. std DUMP                NOOP    progtools_ws    15.6.1.1280
741. std SEE                 NOOP    progtools_ws    15.6.1.2194
742. std WORDS               NOOP    progtools_ws    15.6.1.2465
743. std ;CODE               resunk  progtools_ws    15.6.2.0470
744. std AHEAD               NOOP    progtools_ws    15.6.2.0702
745. std ASSEMBLER           NOOP    progtools_ws    15.6.2.0740
746. std BYE                 NOOP    progtools_ws    15.6.2.0830
747. std CODE                defusr  progtools_ws    15.6.2.0930
748. std CS-PICK             NOOP    progtools_ws    15.6.2.1015
749. std CS-ROLL             NOOP    progtools_ws    15.6.2.1020
750. std EDITOR              NOOP    progtools_ws    15.6.2.1300
751. std FORGET              NOOP    progtools_ws    15.6.2.1580
752. std [ELSE]              NOOP    progtools_ws    15.6.2.2531
753. std [IF]                bigif   progtools_ws    15.6.2.2532
754. std [THEN]              NOOP    progtools_ws    15.6.2.2533
755. std DEFINITIONS         NOOP    searchord_ws    16.6.1.1180
756. std FORTH-WORDLIST      NOOP    searchord_ws    16.6.1.1595
757. std GET-CURRENT         NOOP    searchord_ws    16.6.1.1643
758. std GET-ORDER           NOOP    searchord_ws    16.6.1.1647
759. std SEARCH-WORDLIST     NOOP    searchord_ws    16.6.1.2192
760. std SET-CURRENT         NOOP    searchord_ws    16.6.1.2195
761. std SET-ORDER           NOOP    searchord_ws    16.6.1.2197
762. std WORDLIST            NOOP    searchord_ws    16.6.1.2460
763. std ALSO                NOOP    searchord_ws    16.6.2.0715
764. std FORTH               NOOP    searchord_ws    16.6.2.1590
765. std ONLY                NOOP    searchord_ws    16.6.2.1965
766. std ORDER               NOOP    searchord_ws    16.6.2.1985
767. std PREVIOUS            NOOP    searchord_ws    16.6.2.2037
768. std -TRAILING           NOOP    string_ws       17.6.1.0170
769. std /STRING             NOOP    string_ws       17.6.1.0245
770. std BLANK               NOOP    string_ws       17.6.1.0780
771. std CMOVE               NOOP    string_ws       17.6.1.0910
772. std CMOVE>              NOOP    string_ws       17.6.1.0920
773. std COMPARE             NOOP    string_ws       17.6.1.0935
774. std SEARCH              NOOP    string_ws       17.6.1.2191
775. std SLITERAL            NOOP    string_ws       17.6.1.2212
776. 
777. _DEFINITIONS
778. 
779. \ Revision history
780. \ 0. 1st release to guinea pigs via comp.lang.forth
781. \ 1. Added multi-line comment 0 [IF]. Colored CHAR outside definitions.
735. 
736. 
782. \ 2. December 30th, 2003 - 12:55 Dirk Busch (dbu)
783. \    - Added dpans-path to configure the path to the dpans-files
784. \    - Added multi-line comments (( )) and comment: comment; as used in Win32Forth
785. \    - HTML crashed on files with long lines (more than 80 char's) - fixed
786. \    - replaced <code> tag with <pre> (work's better with Netscape 6)