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.
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
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.
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.
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.

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
Cond
Delimiter
ErrorUse
The files an EXCEPTION/ERROR procedure serves: those it names, or those open in one mode.
ExecArg
ExecKind
ExitKind
Expr
Figurative
InspectMode
InvokeMethod
LinageValue
Literal
Loop
Object
OoUnit
OpenMode
Operand
Organization
RelOp
SetStmt
SignPosition
SortIo
USING or GIVING files, or an input or output procedure.
Sorting
Stmt
Subject
Usage

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.