Sujet : Re: Gforth manual PDF?
De : the.beez.speaks (at) *nospam* gmail.com (Hans Bezemer)
Groupes : comp.lang.forthDate : 17. Feb 2025, 14:53:51
Autres entêtes
Organisation : KPN B.V.
Message-ID : <nnd$7f21f477$04f43c34@2f245d3cb0e75a80>
References : 1 2 3 4 5 6
User-Agent : Mozilla Thunderbird
On 17-02-2025 10:55, dxf wrote:
I didn't need anything fancy - hyperlinks for existing references and a word
index. It came together easier than I expected. There were some false hits
requiring minor tweaks to the source file. Anyway, here's the result:
https://pastebin.com/8xpT6gj1
I wrote a program that takes a plain ASCII version of the 4tH manual and generates a table of entries like this:
TAG info-4th "MOVE"
c" MOVE CORE" 10 c,
c" Compiles to: CMOVE (0)" 10 c,
c" Stack effects: addr1 addr2 n —" 10 c,
c" Move the specified quantity of bytes (n) beginning at address" 10 c,
c" addr1 to addr2 in the Character Segment." 10 c,
0 c,
Then it also creates an index table like this:
create .info-4th
<snip>
," N>R" "N>R" ,
," MS" "MS" ,
," MOVE" "MOVE" ,
," MOD" "MOD" ,
," MIN" "MIN" ,
<snip>
does> [: info-4th ;] is info-entry info ;
Usage - just provide the keyword as a parameter.
$ pp4th -x glossary.4th move
MOVE CORE
Compiles to: CMOVE (0)
Stack effects: addr1 addr2 n
Move the specified quantity of bytes (n) beginning at address
addr1 to addr2 in the Character Segment.
$
Works for me.
Hans Bezemer