comp.lang.ada
 help / color / mirror / Atom feed
From: roderick.chapman@googlemail.com
Subject: Re: SPARK Examiner -- visibility of Ada.Strings.Unbounded (and probably lots of other packages)
Date: Fri, 27 Mar 2009 01:34:08 -0700 (PDT)
Date: 2009-03-27T01:34:08-07:00	[thread overview]
Message-ID: <92db8dce-c32b-4938-9c00-f8a98261edef@q9g2000yqc.googlegroups.com> (raw)
In-Reply-To: 7VPFzoBF4IzJJwYX@diphi.demon.co.uk

Yeah - to process Bar, the Examiner needs to have previously seen
(or at least know where to find) the specification of Foo.

There's no "default" way to do this, since the Examiner is
designed to deal with the program-library structure and naming
scheme of _any_ Ada compiler - we can't just assume that people
name their compilation units and files like GNAT prefers to, for
example.

So...you either need to specify both files on the command line - this
works for small example but rapidly becomes tedious!  e.g.

 spark bar.ads foo.ads

The better solution is to add Bar and Foo to the Examiner's
"Index file" - this establishes a mapping from compilation
unit to filenames that the Examiner can use to automatically
find the specifications of other units.

The index file is set by the -index option so if it
says -index=spark, then you need to add the following
two lines to the spark.idx file

 foo spec is in foo.ads
 bar spec is in bar.ads

OR...you can use the "sparkmake" tool to generate the index file
for you automatically from a group of files.

More details in the book chapter 9 and section 4 of
the Examiner User Manual (which you should have - Examiner_UM.pdf).

I strongly recommend that you read through at least the first
4 chapters of the Examiner User Manual - full of useful info
I promise! :-)

All the best,
 Rod




  reply	other threads:[~2009-03-27  8:34 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-26 14:50 SPARK Examiner -- visibility of Ada.Strings.Unbounded (and probably lots of other packages) Tim Rowe
2009-03-26 15:13 ` Ludovic Brenta
2009-03-26 15:18   ` Georg Bauhaus
2009-03-26 15:35     ` roderick.chapman
2009-03-26 17:06       ` Tim Rowe
2009-03-26 19:13         ` Tim Rowe
2009-03-27  8:27           ` JP Thornley
2009-03-27  8:34             ` roderick.chapman [this message]
2009-03-27 16:03               ` Tim Rowe
2009-03-26 15:40     ` roderick.chapman
2009-03-26 16:15   ` Tim Rowe
2009-03-26 16:26     ` roderick.chapman
2009-03-26 16:30     ` JP Thornley
2009-03-26 16:51     ` roderick.chapman
replies disabled

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