× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I have a utility that I've used for some time that parses CL program sources
for various purposes. Only recently I have run into the following question
'cuz I accidentally happened to write the program to work correctly under
most circumstances. The anomaly is related to comments, and how to
determine, from a dumb text-formatting program's standpoint, where a comment
actually begins.



The case in question is like these two:

DSPOBJD MYLIB/*ALL /* HERE IS A COMMENT */ +

MYCMD MYPARM(*PART2/*PART1) /* Another comment */



Until I actually thought about this statement, I took for granted the magic
(or the rule) that IBM has to employ to make this work. In other words,
what keeps the command parser from seeing /*ALL or *PART1 as the beginning
of a comment? I read in the CL reference (or some other official IBM
document) that a /* comment may start wherever a space is allowed. And a
space is certainly allowed after MYLIB in the above (albeit with incorrect
result). Is it special programming, or is there a rule that would help here?




Thanks for any insight.



Dennis E. Lovelady
AIM/Skype: delovelady MSN: fastcounter@xxxxxxxxxxxx
<http://www.linkedin.com/in/dennislovelady>
www.linkedin.com/in/dennislovelady --
"We're proud of our restaurant. The public is invited to inspect at any
time. KEEP OUT!"
- sign on kitchen door of a New Your City restaurant




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.