comp.lang.ada
 help / color / mirror / Atom feed
From: "Norman H. Cohen" <ncohen@watson.ibm.com>
Subject: Re: Ada as 2nd Lang, p. 678
Date: 1997/05/12
Date: 1997-05-12T00:00:00+00:00	[thread overview]
Message-ID: <337723FC.706D@watson.ibm.com> (raw)
In-Reply-To: 5k92el$bs9@ultranews.duc.auburn.edu


John M. Greer wrote:
> 
> I was wondering if anyone could help for a second . . .
> Ada as a Second Language (My favorite book) 

Thank you.

> gives this listing
> for an example using Generic subprograms, but GNAT complains of end-of-line;
> it sees the declaration and stops.
> "end of file expected, file can have only one compilation unit
> gnatmake: "cyclic_successor_template.adb" compilation error"

See page 593, which says, "The GNU/NYU Ada Translator (GNAT) uses an
ordinary directory of Ada source files as an environment.  Each file
contains one compilation unit and has a file name that reflects the name
of the compilation unit.  (A file containing several compilation units
is passed through a program that chops it into smaller pieces, each
containing one compilation unit.)"

The chopping program is called gnatchop, and it is fully described in
the GNAT documentation.

-- 
Norman H. Cohen
mailto:ncohen@watson.ibm.com
http://www.research.ibm.com/people/n/ncohen




  parent reply	other threads:[~1997-05-12  0:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-05-01  0:00 Ada as 2nd Lang, p. 678 John M. Greer
1997-04-30  0:00 ` Matthew Heaney
1997-05-02  0:00 ` Robert Dewar
1997-05-09  0:00   ` nickerson
1997-05-12  0:00 ` Norman H. Cohen [this message]
  -- strict thread matches above, loose matches on Subject: below --
1997-05-12  0:00 Marin David Condic, 561.796.8997, M/S 731-93
1997-05-13  0:00 ` Robert Dewar
replies disabled

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