Programmer's Guide to Writing Programs
Table of Contents
Index
Chapter 17: Integrated Preprocessor Interface
17.1 Overview
17.1.1 Considerations
17.2 Operation
17.2.1 Invoking a Preprocessor
17.2.1.1 Invoking Multiple Preprocessors
17.2.2 Testing a Preprocessor
17.3 Writing a Preprocessor
17.3.1 Definition of the Interface
17.3.1.1 Preprocessor Parameters
17.3.1.2 The Initial Call
17.3.1.3 Subsequent Calls
17.3.2 Preprocessor Response Codes
17.3.2.1 Inserting Source Lines
17.3.2.2 Generating Error Messages
17.3.2.3 Querying Directive Settings
17.3.2.4 Handling COPY statements
17.3.3 Source Modification
17.3.4 Multiple Preprocessors
17.3.5 Considerations When Writing a Preprocessor
17.4 The CP Preprocessor
17.4.1 Limitations
17.4.2 Copyfile Expansion
17.4.3 REPLACE Notification
17.4.4 Directives
17.5 CP Errors
17.5.1 Initialization Errors
17.5.2 Main processing errors
17.6 Sample Integrated Preprocessor
17.6.1 Specification of the Example Preprocessors
17.6.2 asmcobol.cbl and working.cbl Example Programs