Skip to main content

Crate ironwork_syntax

Crate ironwork_syntax 

Source
Expand description

ironwork for COBOL: from fixed-format source text to a syntax tree. Nothing here knows about storage or execution.

Modules§

ast
bms
BMS map source (the DFHMSD, DFHMDI and DFHMDF assembler macros) as a mapset model, and the COBOL symbolic map a program COPYs for it.
copy
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.
lexer
parser
source
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.
system
The copy members IBM’s translators and products supply, as ironwork’s own declarations of the layouts and names IBM documents: Db2 13 for z/OS SQL Reference (“The included SQLCA”, “The included SQLDA”), CICS TS Data Areas (“EIB - EXEC interface block”) and CICS TS Application Programming Reference, “BMS-related constants” (DFHAID, DFHBMSCA). A library member of the same name is found first, as it would be ahead of the system library on z/OS.

Structs§

Error
Pos
Where a diagnostic points: 1-based source line and column.

Functions§

parse
The first program in the source.
parse_all_with
Every program in the source, in order, nested programs after the one that contains them.
parse_with
The first program in the source, with COPY members resolved from libraries.