comp.lang.ada
 help / color / mirror / Atom feed
From: eachus@mitre-bedford.arpa  (Robert I. Eachus)
Subject: Re: case sensitivity
Date: 2 Jul 93 15:53:40 GMT	[thread overview]
Message-ID: <EACHUS.93Jul2105340@spectre.mitre.org> (raw)

In article <PAT.93Jul1160332@crl-sc2.nmsu.edu> 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...

             reply	other threads:[~1993-07-02 15:53 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-07-02 15:53 Robert I. Eachus [this message]
  -- strict thread matches above, loose matches on Subject: below --
2000-05-11  0:00 Case Sensitivity Cameron McShane
2000-05-11  0:00 ` Ted Dennison
2000-05-11  0:00 ` Alfred Hilscher
2000-05-11  0:00 ` Florian Weimer
2000-05-11  0:00 ` Gautier
2000-05-12  0:00 ` John English
2000-05-12  0:00   ` David C. Hoos, Sr.
2000-05-15  0:00     ` John English
1993-07-04  9:12 case sensitivity Erik Magnuson
1993-07-01 23:03 cis.ohio-state.edu!pacific.mps.ohio-state.edu!math.ohio-state.edu!darwin.
1989-02-20 19:45 pse_papay
1989-02-21  8:18 ` Bruce Anderson
1989-02-22 22:28 ` Steven D. Litvintchouk
1989-02-27 14:45 ` Dennis M. O'Connor
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox