2019-03-15 19:35:34 +01:00
|
|
|
#!/usr/bin/env retro
|
|
|
|
|
|
|
|
~~~
|
|
|
|
'book/ 'BOOK-BASE s:const
|
|
|
|
'Out var
|
|
|
|
|
2019-03-18 15:52:49 +01:00
|
|
|
:import here swap BOOK-BASE s:prepend file:slurp ;
|
|
|
|
:\n ASCII:LF @Out file:write ;
|
|
|
|
:add-to-book here [ @Out file:write ] s:for-each \n ;
|
|
|
|
:process-files [ import add-to-book ] array:for-each ;
|
2019-03-18 17:20:42 +01:00
|
|
|
:open 'RETRO-Book.md file:open<for-writing> !Out ;
|
2019-03-18 15:52:49 +01:00
|
|
|
:close @Out file:close ;
|
2019-03-20 21:33:26 +01:00
|
|
|
:assemble open process-files close ;
|
|
|
|
|
|
|
|
:open 'gophermap file:open<for-writing> !Out ;
|
|
|
|
:close @Out file:close ;
|
|
|
|
:ENTRY '0%s\t/book/%s\tforth.works\t70\n ;
|
|
|
|
:process-files [ dup ENTRY s:format [ @Out file:write ] s:for-each ] array:for-each ;
|
|
|
|
:gophermap open process-files close ;
|
|
|
|
|
|
|
|
:process dup assemble gophermap ;
|
2019-03-15 19:35:34 +01:00
|
|
|
|
|
|
|
{
|
2019-03-21 12:23:15 +01:00
|
|
|
'Overview
|
|
|
|
'Obtaining-Retro
|
|
|
|
'Building-BSD
|
|
|
|
'Building-Linux
|
|
|
|
'Building-macOS
|
|
|
|
'Building-Windows
|
|
|
|
'Starting-BSD
|
|
|
|
'Starting-Linux
|
|
|
|
'Starting-macOS
|
|
|
|
'Starting-Windows
|
|
|
|
'Basic-Interactions
|
|
|
|
'Syntax
|
|
|
|
'Quick-Tutorial
|
|
|
|
'Using-the-Glossary
|
|
|
|
'Programming-Techniques
|
|
|
|
'Programming-Techniques-Unu
|
|
|
|
'Programming-Techniques-Naming-Conventions
|
|
|
|
'Programming-Techniques-Stack-Diagrams
|
|
|
|
'Programming-Techniques-Word-Classes
|
|
|
|
'Programming-Techniques-Using-Combinators
|
|
|
|
'Programming-Techniques-Working-With
|
2019-03-21 21:04:51 +01:00
|
|
|
'The-Stacks
|
2019-03-21 12:23:15 +01:00
|
|
|
'Programming-Techniques-Working-With-Arrays
|
|
|
|
'Programming-Techniques-Working-With-Buffer
|
|
|
|
'Programming-Techniques-Working-With-Characters
|
|
|
|
'Programming-Techniques-Working-With-Dictionary
|
|
|
|
'Programming-Techniques-Working-With-Floating-Point
|
|
|
|
'Programming-Techniques-Working-With-Numbers
|
|
|
|
'Programming-Techniques-Working-With-Pointers
|
|
|
|
'Programming-Techniques-Working-With-Strings
|
|
|
|
'Programming-Techniques-Writing-Combinators
|
|
|
|
'Programming-Techniques-Return-Stack
|
|
|
|
'Programming-Techniques-Working-With-Assembly
|
|
|
|
'Internals
|
|
|
|
'Internals-Nga
|
|
|
|
'Internals-Interface-Layers
|
|
|
|
'Internals-Retro-Image
|
|
|
|
'Additional-Tools
|
|
|
|
'Advanced-Builds
|
|
|
|
'Retro-Compiler
|
|
|
|
'Errors
|
2019-03-21 13:51:36 +01:00
|
|
|
'Tech-Notes
|
|
|
|
'Historical-Papers
|
2019-03-15 19:35:34 +01:00
|
|
|
} process
|
|
|
|
~~~
|