From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-0.9 required=3.0 tests=BAYES_00,TO_NO_BRKTS_PCNT autolearn=no autolearn_force=no version=3.4.5-pre1 Date: 2 Jul 93 15:53:40 GMT From: eachus@mitre-bedford.arpa (Robert I. Eachus) Subject: Re: case sensitivity Message-ID: List-Id: In article pat@nmsu.edu (Pat Gioannini) wri tes: > Do any of the pretty printers out there use the capitalization > of the first reference of an identifier? I have a probem with > the pretty printer we use will either leave all identifiers alone, > capitalize the first letter ( and the letter after each underscore ), > make all identifiers uppercase or make all identifiers lower case. This is in the "tough problem" category. Since finding the correct declaration requires parsing the file and doing overload resolution, it is only possible to do this for source files which are correct compilable Ada. (And, of course, with reference to a particular program library.) The rule I have used for formatters which accept non-legal programs is either to use the first appearance of an identifier in the file OR to use a particular rule and have a file of personal exceptions. What I keep intending to do is build a tool that takes a file of starname style exceptions: *_IO ADAR_* SPARC_* ... hmmm...an easier case might be to treat underscores as separators: IO ADAR SPARC that would make a fairly simple standalone tool. My plate is fairly full right now, but if anyone wants to work on this, I'll be glad to help supply the easy 75%. (The pieces already done of course. :-) Robert I. Eachus with Standard_Disclaimer; use Standard_Disclaimer; function Message (Text: in Clever_Ideas) return Better_Ideas is... -- Robert I. Eachus with Standard_Disclaimer; use Standard_Disclaimer; function Message (Text: in Clever_Ideas) return Better_Ideas is...