Skip to main content

Module source

Module source 

Source
Expand description

Fixed-format reference format: columns 1-6 sequence, 7 indicator, 8-72 program text, 73 on ignored. The result is one logical text with continuation lines joined, and the options of any CBL or PROCESS cards ahead of the program. Under --compliance extended a file may be read in free form instead (docs/compliance.md).

Structs§

FreeSpan
Lines first to last of file file, read in free form, and the warning that says so; a COPY member read in free form as the line that copies it was has none of its own.
Source

Constants§

FREE_FORM
The stable identifier and text of the warning for free-form source.

Functions§

read
read_copied
Reads a COPY member’s text as read_under does, starting in free form when the line that copies it is free form, as GnuCOBOL and Micro Focus carry the source format into a member.
read_file
Reads one file’s text; file indexes its name in the program’s file table. A comment-entry is left out of the text, so neither COPY nor the lexer sees it (LR pp. 117, 700).
read_file_debugging
Reads one file’s text with its debugging lines as program text.
read_under
Reads one file’s text under compliance, with its debugging lines as program text when debugging is set.