Skip to main content

Module ast

Module ast 

Source

Structs§

Arg
One CALL argument; value is None for OMITTED.
Arith
One arithmetic statement: targets each receive expr, which is written in terms of the statement’s operands and, for the forms without GIVING, the target itself (Operand::Ref of the target, placed by the parser).
Bound
BEFORE or AFTER INITIAL value: where in the inspected item a phrase applies.
Call
ClassDef
ClassEntry
CLASS name [IS "external"] in a REPOSITORY paragraph.
ClassPart
A FACTORY or OBJECT paragraph: its data, which the methods share, and its methods.
Corresponding
from is the sending group and to the receiving one; rounded and size_error are ADD’s and SUBTRACT’s.
CurrencySign
A CURRENCY SIGN clause: the currency sign value, and the PICTURE symbol that stands for it.
DataEntry
Declaratives
USE AFTER EXCEPTION/ERROR and USE FOR DEBUGGING sections; USE BEFORE REPORTING ones are the Report Writer’s.
Environment
ENVIRONMENT DIVISION clauses beyond SELECT that the program’s meaning depends on.
ExecBlock
An EXEC … END-EXEC block, read but not translated.
FileDecl
FunctionCall
Handlers
The statements of an ON phrase (AT END, INVALID KEY, …) and of its NOT ON phrase.
Inspect
target is a data item or, for TALLYING alone, a function’s value.
InspectPhrase
One TALLYING or REPLACING phrase. pattern is None for CHARACTERS; by is None for TALLYING.
Invoke
INVOKE: the object, class-name, SELF or SUPER in target, then what to run.
JsonGenerate
JSON GENERATE (Language Reference SC27-8713-03, pp. 369-382).
JsonParse
JSON PARSE (Language Reference SC27-8713-03, pp. 382-396).
Linage
LINAGE IS lines [WITH FOOTING AT footing] [LINES AT TOP top] [LINES AT BOTTOM bottom].
MethodOf
A method: the class that defines it, whether it is a factory method, and its name as written.
NullIndicator
INDICATING item IS JSON NULL USING a condition-name of the indicator, or a literal IN it.
Oo
What a program, class or method knows of classes.
Paragraph
A paragraph, or a section header holding the statements before the section’s first paragraph.
Param
ProcName
A procedure name as written, with the section that qualifies it.
Program
ReadStmt
Ref
RefMod
Search
SignClause
SizeError
SortStmt
SORT or MERGE of an SD file, or SORT of a table (no input or output then).
StringStmt
Target
Unstring
UnstringInto
UseAfterError
A USE AFTER STANDARD EXCEPTION/ERROR PROCEDURE section.
UseForDebugging
A USE FOR DEBUGGING section, which runs before each procedure it names.
Varying
When
One WHEN group: any of its alternatives, each with an object per subject, selects the body.
XmlGenerate
XML GENERATE (Language Reference SC27-8713-03, pp. 484-494).
XmlParse
XML PARSE under XMLPARSE(XMLSS) (Language Reference SC27-8713-03, pp. 489-494).

Enums§

AcceptFrom
Access
Advancing
Alphabet
What an ALPHABET clause relates its alphabet-name to.
AlphabetEntry
One literal of an ALPHABET clause: its characters in successive positions, a THROUGH range of characters in successive positions, or characters that ALSO share one position.
ArgMode
ArithVerb
BinOp
Class
Closing
The phrases CLOSE can write after a file-name.
Cond
CorrespondingVerb
Delimiter
Encoding
ErrorUse
The files an EXCEPTION/ERROR procedure serves: those it names, or those open in one mode.
ExecArg
ExecKind
ExitKind
Expr
Figurative
Flag
What a USING phrase of JSON PARSE sets for true, or for null, and for false, or not null: a condition-name set to true or to its WHEN SET TO FALSE value, one of two condition-names set to true, or one of two literals moved in.
InspectMode
InvokeMethod
JsonConversion
LinageValue
Literal
Loop
Marker
A value that stands for true (CONVERTING … TO JSON BOOLEAN) or for null (INDICATING): a condition-name, or a one-character literal.
Object
OoUnit
OpenMode
Operand
Organization
ParseConversion
RelOp
SetStmt
SignPosition
SortIo
USING or GIVING files, or an input or output procedure.
Sorting
Stmt
Subject
Suppression
A SUPPRESS phrase: an item, or EVERY item of a class (Some(true) NUMERIC, Some(false) NONNUMERIC, None both) and, for XML GENERATE, of a form, suppressed always or only WHEN it equals one of the figurative constants.
Usage
XmlForm
How XML GENERATE expresses an item: as an attribute or an element, or as its parent’s content.

Functions§

external_class_name
The external class-name IBM forms from a class-name with no literal: uppercase, hyphens as zeros, a leading digit 1-9 as A-I and 0 as J.