From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,fb9cb88204b780c2 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!postnews.google.com!d1g2000hsg.googlegroups.com!not-for-mail From: Lucretia Newsgroups: comp.lang.ada Subject: Re: simple programs -> one file with gps 2008 (gpl)? Date: Mon, 11 Aug 2008 01:44:06 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <6g3k63Fe28ukU1@mid.individual.net> NNTP-Posting-Host: 90.194.162.242 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1218444247 29543 127.0.0.1 (11 Aug 2008 08:44:07 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 11 Aug 2008 08:44:07 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: d1g2000hsg.googlegroups.com; posting-host=90.194.162.242; posting-account=L2-UcQkAAAAfd_BqbeNHs3XeM0jTXloS User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-GB; rv:1.9.0.1) Gecko/2008072820 Firefox/3.0.1,gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:1597 Date: 2008-08-11T01:44:06-07:00 List-Id: On Aug 8, 9:25=A0pm, "Jeffrey R. Carter" wrote: > Marcus Lauster wrote: > > > I'm new to Ada and therefore I'm digging through the book "Programming > > in Ada 2005". In Chapter 4 on Page 57 the autor states: "Complete simpl= e > > Programms might be presented in a single file." Furthermore he outlines > > the structure of how such a simple program might look. > > The operative word here is "might". There's not much in the ARM about sou= rce > files or the relationship of compilation units to source files. There's n= othing > in the ARM to prevent a compiler from accepting multiple compilation unit= s in a > single file, but there's also nothing to require it. While the AARM does not state anything about how a compilation unit and a file relate to each other, it does state that a compiler should take a number of compilation units (see 10.1), this is even specified in the EBNF (appendix P): 10.1.1: compilation::=3D {compilation_unit} GNAT provides this using gnatchop, there are messages from Robert Dewar on this group about this. Thanks, Luke.