GENERATE-COBSTOR-INTERFACE (FILES-LIST &KEY PACKAGE (COMPILE T) FORCE)
Generate all the proxy stubs and agent in FILES-LIST. If PACKAGE is specified the generated Lisp code will be part of it. If COMPILE is true (the default) the generated code is compiled as well. If FORCE is true the generation takes place even if the module looks to be up to date.
MAKE-COBOL-AGENT (DATA-FILE-NAME RECORDS KEYS OUTPUT-PROGRAM-PATHNAME)
Generate the agent programs for the remote access to the Cobol field.
MAKE-COBOL-PROXY-STUB (OUTPUT-FILE RECORDS KEYS &KEY PACKAGE RECORD-NAME)
Compile a Cobol record declaration from records into a Lisp record declaration written into OUTPUT-FILE. If PACKAGE is specified the Lisp code will be populated in that package. If RECORD-NAME is not specified, the output record name will be the name of the first INPUT-FILE with "-RECORD" appended to it.
Return the list of field declarations layed in a hyerarchical form, found in Cobol file at PATHNAME.
Up/down-case STRING according to the value of *PRINT-CASE*.
Compile a proxy stub. Thi is at the moment just a wrapper for compile-file.
Given a copy file NAME (possibly a pathname) return an absolute pathname. The defaults are relative to COBSTOR-DYNAMIC logial pathname host.
Return a new picture string where all repeated characters in a PICTURE have been expanded. Pictures of the form "9(5)" are expanded to "99999".
KEYS-DECLARATION (KEYS &OPTIONAL PREFIX)
Return a string for the Cobol keys declaration of KEYS. Optionally add PREFIX to each key name. This declaration is normally part of a SELECT Cobol statement.
Get a parsed field and return a FIELD-DECLARATION object. Guess from the picture string (property :PICTURE) of FIELD the missing parameters such as the type, length, decimals, and so on and so forth. The input FIELD is a list of at least two elements: (LEVEL NAME . PROPERTIES) where NAME can be NIL for fillers.
Parse a Cobol file containing a data record description (and only that) and return a list of its fields.
Interprete the meaning of a Cobol picture returning useful facts like: the type, the total length of the field, the decimals and the presence of the sign.
PPRINT-COBOL-FIELD (STREAM DEFINITION)
Pretty print on *STANDARD-OUTPUT* a cobol field as Lisp code.
PPRINT-DEFINE-COBOL-RECORD (STREAM NAME FIELDS &KEY ALTERNATES)
Pretty print on *STANDARD-OUTPUT* a Cobol record definition in Lisp language. FIELDS are composing the record.
Create FIELD-DECLARATION object from a sexp of the form found in a DEFINE-COBOL-RECORD macro. See FIELD-DECLARATION->SEXP for further details.
Structure a list of fields into a list of trees according to the level number which appears in front of each cbfield. If in FIELDS there is only one record (just one level 01) the returned list will contain just one tree. The PARSED-FIELDS list is made up of elements of the kind: (LEVEL NAME TYPE . PROPERTIES-LIST) TYPE can be NIL if field is a composite field (with subfields).
WRITE-PROCEDURE-DIVISION (STREAM DATA-FILE-NAME KEYS)
Write a standard procedure division body to STREAM. All the agents have this code in common.
Write a constant working-storage section to STREAM.
MAKE-AGENT-AND-PROXY-STUB (NAME KEYS INPUT-FILES PACKAGE COMPILE FORCE)
MAKE-PARSER-STREAM (PATHNAME-OR-STREAM GRAMMAR)
OPEN (FILENAME &REST OPTIONS &KEY STATEFUL &ALLOW-OTHER-KEYS)
PPRINT-COBOL-SUBFIELDS (STREAM SUBFIELDS)
PPRINT-PLIST (STREAM PROPERTIES)
READ-INTEGER (STREAM FIRST-DIGIT)
READ-NUMBER (STREAM FIRST-DIGIT)
READ-WORD (STREAM FIRST-CHARS)
WRITE-DATA-DIVISION (STREAM RECORDS)
WRITE-ENVIRONMENT-DIVISION (STREAM KEYS)
WRITE-FILE-SECTION (STREAM RECORDS)
WRITE-IDENTIFICATION-DIVISION (STREAM FILE-NAME PROGRAM)
WRITE-READ-PARAGRAPH (STREAM KEYS)
WRITE-START-PARAGRAPHS (STREAM KEYS)
WITH-PARSER-STREAM ((VAR PATHNAME-OR-STREAM GRAMMAR) &BODY BODY)
Return the size in bytes occupied by the binary encoding of field. This doesn't take in count repetitions as for TIMES.
Return a sexp of a FIELD-DECLARATION object suitable to be used in a DEFINE-COBOL-RECORD macro. The sexp has the form: (name ToS . properties) where ToS is a storage type in the case leaf fields, and it's a list of subfields (same sexp format) in case of container fields.
Return a list of all field names at all level of nesting.
WRITE-FIELD-DECLARATION-AS-COBOL (FIELD-DECLARATION STREAM)
Write to STREAM a FIELD-DECLARATION in Cobol syntax.
The number of decimals places in a numeric field. These are included in length.
The size in charcater positions the field occupies. This is not its size in bytes.
Name of the field or NIL if it's a filler.
SETFFIELD-NAME (NEW-VALUE OBJECT)
Name of the field or NIL if it's a filler.
True if field is a signed numeric field.
The size of the field in bytes. This is not multiplied by times (below).
Cardinality of this field.
SETFFIELD-ALTERNATES (NEW-VALUE OBJECT)
SETFFIELD-SUBFIELDS (NEW-VALUE OBJECT)
The character used to represent a decimal point in numbers. This can be changes any time according to local national conventions.
Class for container objects; those made up of subfields.
Abstract base class for field declarations. This is not the kind of objects instantiated at run-time in the proxy library.
Class for Cobol simple field declarations; those without subfields.
Type of objects returned by GET-POSITION applied to PARSER-STREAMs.
Type of stream used by cobstor parser.