version 1.17, 1997/08/03 20:21:34
|
version 1.22, 1999/10/15 23:18:19
|
Line 1
|
Line 1
|
\ documentation source to texi format converter |
\ documentation source to texi format converter |
|
|
\ Copyright (C) 1995 Free Software Foundation, Inc. |
\ Copyright (C) 1995,1996,1997,1998 Free Software Foundation, Inc. |
|
|
\ This file is part of Gforth. |
\ This file is part of Gforth. |
|
|
Line 27
|
Line 27
|
|
|
script? [IF] |
script? [IF] |
warnings off |
warnings off |
require extend.fs |
|
require search.fs |
require search.fs |
|
require extend.fs |
require glocals.fs |
require glocals.fs |
require float.fs |
require float.fs |
require struct.fs |
require struct.fs |
Line 63 create description-buffer 4096 chars all
|
Line 63 create description-buffer 4096 chars all
|
: skip-prefix ( c-addr1 u1 -- c-addr2 u2 ) |
: skip-prefix ( c-addr1 u1 -- c-addr2 u2 ) |
2dup 2 min s" --" compare 0= |
2dup 2 min s" --" compare 0= |
IF |
IF |
[char] - skip [char] - scan [char] - skip |
[char] - skip [char] - scan 1 /string |
THEN ; |
THEN ; |
|
|
: replace-_ ( c-addr u -- ) |
: replace-_ ( c-addr u -- ) |
Line 96 create description-buffer 4096 chars all
|
Line 96 create description-buffer 4096 chars all
|
create |
create |
last @ name>string skip-prefix 2, \ name |
last @ name>string skip-prefix 2, \ name |
[char] ) parse save-mem 2, \ stack-effect |
[char] ) parse save-mem 2, \ stack-effect |
bl parse-word condition-wordset 2, \ wordset |
bl sword condition-wordset 2, \ wordset |
bl parse-word dup \ pronounciation |
bl sword dup \ pronounciation |
if |
if |
condition-pronounciation |
condition-pronounciation |
else |
else |
Line 133 create description-buffer 4096 chars all
|
Line 133 create description-buffer 4096 chars all
|
." @cindex " |
." @cindex " |
." @code{" r@ doc-name 2@ typetexi ." }" |
." @code{" r@ doc-name 2@ typetexi ." }" |
cr |
cr |
|
r@ doc-name 2@ drop c@ [char] : <> if |
|
\ cut out words starting with :, info-lookup cannot handle them |
|
\ !! deal with : by replacing it here and in info-lookup? |
|
." @kindex " |
|
r@ doc-name 2@ typetexi |
|
cr |
|
endif |
." @format" cr |
." @format" cr |
." @code{" r@ doc-name 2@ typetexi ." } " |
." @code{" r@ doc-name 2@ typetexi ." } " |
." @i{" r@ doc-stack-effect 2@ type ." } " |
." @i{" r@ doc-stack-effect 2@ type ." } " |