retroforth/make-book.retro
crc cd2fdba202 some more work on the book; add a retro program to assemble the final copy from the chapters
FossilOrigin-Name: 976bc55c045947765682eae42a43c23f3cf38415b9246f38b0cf7ca8007ec786
2019-03-15 18:35:34 +00:00

44 lines
1.2 KiB
Text
Executable file

#!/usr/bin/env retro
~~~
'book/ 'BOOK-BASE s:const
'Out var
:import here swap BOOK-BASE s:prepend file:slurp ;
:\n ASCII:CR @Out file:write ;
:add-to-book here [ @Out file:write ] s:for-each \n ;
:process [ import add-to-book ] array:for-each ;
'RETRO-Book-BSD.md file:open<for-writing> !Out
{
'Overview
'Building-BSD
'Starting-BSD
'Basic-Interactions
'Quick-Tutorial
'Programming-Techniques
'Programming-Techniques-Naming-Conventions
'Programming-Techniques-Stack-Diagrams
'Programming-Techniques-Word-Classes
'Programming-Techniques-Using-Combinators
'Programming-Techniques-Working-With
'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
'Internals
'Internals-Interface-Layers
'Internals-Nga
'Internals-Retro-Image
'Additional-Tools
'Advanced-Builds
} process
@Out file:close
~~~