~vdupras/duskos

ddd1c942532bb6bb73e4da7433853a3d98d606c7 — binarycat a month ago c020600
add documentation for loading files
1 files changed, 20 insertions(+), 0 deletions(-)

A fs/doc/loading.txt
A fs/doc/loading.txt => fs/doc/loading.txt +20 -0
@@ 0,0 1,20 @@
# loading files
most of these words are defined in lib/file.fs and boot.fs

## parsing words
these words all parse a filename from the input stream.

* unconditionally load file: f<<
* load file if not already loaded: ?f<<
* throw error if file is not loaded: require

## string words
these all accept a filename as a string

* unconditionally load file: fload
* test if a file is loaded: floaded?

## other

* print a list of all loaded files: .floaded