en:pfw:library
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:pfw:library [2024-11-16 15:19] – [The idea] willem | en:pfw:library [2025-02-06 17:59] (current) – [A library for Forth] willem | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== A library for Forth ====== | ====== A library for Forth ====== | ||
+ | |||
+ | *W.O.* | ||
Line 66: | Line 68: | ||
They act as separators and are not part of the text itself. | They act as separators and are not part of the text itself. | ||
- | The '' | + | The '' |
- | Note that: The library starts with a dummy '' | + | |
- | * '' | + | * chapter-1 '' |
The '' | The '' | ||
* line-1 '' | * line-1 '' | ||
- | The first line of each library chapter starts with case insensitive keyword(s) separated by spaces. The word '' | + | The first line of each library chapter starts with a case insensitive keyword. The word '' |
backslash to prevent the keywords for being executed while loading a chapter. Then it adds all source code until the ''< | backslash to prevent the keywords for being executed while loading a chapter. Then it adds all source code until the ''< | ||
The end of the library is kept in a pointer that is updated when we extend the library.\\ | The end of the library is kept in a pointer that is updated when we extend the library.\\ | ||
Line 426: | Line 428: | ||
==== A little extra ==== | ==== A little extra ==== | ||
- | Loading a lot of library code in one go. it is used like this: '' | + | Loading a lot of library code in one go. It must be used like this: '' |
Note that '' | Note that '' | ||
en/pfw/library.1731766768.txt.gz · Last modified: 2024-11-16 15:19 by willem