HP3000-L Archives

September 2016, Week 4

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
"Robert W.Mills" <[log in to unmask]>
Reply To:
Robert W.Mills
Date:
Tue, 27 Sep 2016 23:17:31 +0100
Content-Type:
text/plain
Parts/Attachments:
text/plain (26 lines)
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 *

ATOM RSS1 RSS2