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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,21a8034919747a69 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.bt.com!news.bt.com.POSTED!not-for-mail NNTP-Posting-Date: Sat, 10 Feb 2007 11:50:16 -0600 From: Stephen Sangwine Newsgroups: comp.lang.ada Date: Sat, 10 Feb 2007 17:50:16 +0000 Message-ID: <2007021017501616807-sjs@essexacuk> References: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: Splitting packages in per-procedure separate files User-Agent: Unison/1.7.8 NNTP-Posting-Host: 217.44.104.106 X-AuthenticatedUsername: NoAuthUser X-Trace: sv3-mnXUwIXuCPFF03Xh2VFR/RI632G81qMBIUcjsP6vMA5JZPNgyaO2u+Nk+fLdw+ciTmQO10X8HYYMZGE!ItvWBn8Sr1KLtZ5t05HuAFKTPs5AAGd/7m2bzUPU9cCdLbklbNVhZQPrtby3D6vfn2zX X-Complaints-To: abuse@btinternet.com X-DMCA-Complaints-To: abuse@btinternet.com X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 Xref: g2news2.google.com comp.lang.ada:9231 Date: 2007-02-10T17:50:16+00:00 List-Id: On 2007-02-10 16:23:12 +0000, Francesco Bochicchio said: > Hi all, > > due to coding standards which were not enforced when someone else coded, > I now have to split the packages of a 20000 LOC ADA program, putting a > single procedure per file (using the separate clause). You can only put procedures which are declared immediately within the declarative part of a compilation unit into a separate file. (LRM 95 10.1.3(13)). 20,000 LOC is quite a large program. If it has all the procedures declared immediately within the main program declarative part that would be quite an un-Ada way to have structured the code. Is it really written like that? Steve > While this is not a very big work. it would be nice t find some tool to > help in this task. > > Alternatively, I was tinking to prepare some script myself (Python + some > parser library ). In this case, it would help to have ADA grammar rules > written in yacc-style or similar. This could also be useful in similar > situation in the future. > > Any help/pointer is appreciated. Thakns in advance. > > Ciao > ----- > FB