Subject: | |
From: | |
Reply To: | Robert W.Mills |
Date: | Tue, 27 Sep 2016 23:17:31 +0100 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Greetings to the -L,
I'm looking for information on the sequence of events performed by the HP COBOL II/iX compiler.
1) Specifically, when does the compiler evaluate the following and in what order:
- COPY Statement
- COPY ... REPLACING Statement
- REPLACE Statement
- $ Preprocessor Commands
- Macro Evaluation
2) Is the above performed in a single or multiple passes of the source.
Reason for questions:
Somebody contacted the GnuCOBOL project regarding the CobolMac preprocessor that I wrote. It seems that in some of their programs they have redefined macros and were asking how CobolMac could be changed to implement this feature.
I have been looking at how this could be done but realised that I needed to increase my understanding on how the HP compiler worked. Any information on the above, and anything else you think might be relevant, would be appreciated.
regards,
Robert W.Mills
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|
|
|