comp.lang.ada
 help / color / mirror / Atom feed
From: Stephen Sangwine <sjs@essex.ac.uk>
Subject: Re: Splitting packages  in per-procedure separate files
Date: Sat, 10 Feb 2007 17:50:16 +0000
Date: 2007-02-10T17:50:16+00:00	[thread overview]
Message-ID: <2007021017501616807-sjs@essexacuk> (raw)
In-Reply-To: pan.2007.02.10.16.23.07.43888@virgilio.it

On 2007-02-10 16:23:12 +0000, Francesco Bochicchio <bockman@virgilio.it> 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





  reply	other threads:[~2007-02-10 17:50 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-10 16:23 Splitting packages in per-procedure separate files Francesco Bochicchio
2007-02-10 17:50 ` Stephen Sangwine [this message]
2007-02-10 18:36   ` Anh Vo
2007-02-10 19:36   ` Jeffrey R. Carter
2007-02-11 12:09     ` Francesco Bochicchio
2007-02-11 14:08       ` Markus E Leypold
2007-02-11 19:29       ` Gautier
2007-02-12 10:45       ` Stephen Leake
2007-02-12 18:42         ` Francesco Bochicchio
2007-02-10 18:49 ` Simon Wright
2007-02-11 12:20   ` Francesco Bochicchio
2007-02-12  9:13   ` Jean-Pierre Rosen
2007-02-10 19:33 ` Jeffrey R. Carter
2007-02-11 13:45 ` Jeffrey Creem
replies disabled

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