Skip to main content

Module copy

Module copy 

Source
Expand description

COPY and COPY REPLACING, applied to the logical text before it is lexed. Matching is by text-words, as the standard defines them, and replacement edits the text itself, so a pseudo-text such as ==:TAG:== can replace part of a word like :TAG:-RECORD.

Structs§

Libraries
Directories searched for COPY members, in order. A COPY X OF LIB looks in <dir>/LIB first.

Functions§

decode
Reads a source file’s bytes: UTF-8 when valid, otherwise one character per byte (Latin-1).
expand
Replaces every COPY statement in source with its member’s text, recursively. files names each source file; a position’s file indexes it.