pub struct Environment {
pub alphabets: Vec<(String, Alphabet)>,
pub collating_sequence: Option<String>,
pub same_record_areas: Vec<Vec<String>>,
pub same_areas: Vec<Vec<String>>,
pub mnemonics: Vec<(String, String)>,
pub debugging_mode: bool,
pub decimal_point_comma: bool,
pub currency: Vec<CurrencySign>,
}Expand description
ENVIRONMENT DIVISION clauses beyond SELECT that the program’s meaning depends on.
Fields§
§alphabets: Vec<(String, Alphabet)>SPECIAL-NAMES ALPHABET: each alphabet-name and what it is.
collating_sequence: Option<String>OBJECT-COMPUTER PROGRAM COLLATING SEQUENCE.
same_record_areas: Vec<Vec<String>>I-O-CONTROL SAME RECORD AREA and SAME AREA clauses, each with the files it names.
same_areas: Vec<Vec<String>>§mnemonics: Vec<(String, String)>SPECIAL-NAMES entries naming a printer channel, space suppression, a punch pocket, AFP, or a device ACCEPT or DISPLAY takes: each mnemonic-name and its environment-name.
debugging_mode: boolSOURCE-COMPUTER … WITH DEBUGGING MODE: debugging lines and USE FOR DEBUGGING sections are compiled rather than read as comments.
decimal_point_comma: boolSPECIAL-NAMES DECIMAL-POINT IS COMMA: the comma and the period exchange roles in PICTURE character-strings, numeric literals and the arguments of NUMVAL and NUMVAL-C.
currency: Vec<CurrencySign>SPECIAL-NAMES CURRENCY SIGN clauses in order; none means the symbol and value $.