comp.lang.ada
 help / color / mirror / Atom feed
From: sdl@herbrand.Inference.Com (Daniel Lee)
Subject: Re: Dave Emery's proposal for Ada preprocessor
Date: 12 Dec 89 20:30:19 GMT	[thread overview]
Message-ID: <8912122030.AA05794@Herbrand.Inference.Com> (raw)

We are developing a commercial Ada-based tool (expert system tool in
particular) which has to run on multiple platforms possibly on
multiple compilers on the same hardware.  We found that the lack
of Ada tool similar to cpp makes it very hard to maintain portable Ada code
across multiple platforms, and yet Ada is designed for portability.

Currently, we are using cpp on a Sun to preprocess the master Ada
source with cpp macros embedded (e.g. #if, #endif, etc.).  Then, we preprocess
it using cpp.  First, we defined app as follows:

/lib/cpp $1 $2 $3 $4 $5 $6 $7 $8 $9 | grep -v "^#"

Then, we do the following:

app -DVERDIX foo.a.master > foo.a   or
app -DVMS foo.a.master > foo.ada

The problem with this is that foo.a.master is still not a compilable
Ada file and has to be preprocessed manually while its C equivalent
is a direct input to a C compiler.  I agree with Dave that if such
thing as cpp is added to Ada, it should be part of STANDARD Ada
so that only a single source file has to be maintained.

				Danile Lee
				Inference Corporation
				sdl@inference.com

             reply	other threads:[~1989-12-12 20:30 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1989-12-12 20:30 Daniel Lee [this message]
1989-12-13 14:31 ` Dave Emery's proposal for Ada preprocessor arny.b.engelson
1989-12-13 22:23   ` Michael Schwartz
1989-12-14 14:47   ` William Thomas Wolfe, 2847 
1989-12-14 15:11     ` Steve Tynor
1989-12-14 20:40       ` William Thomas Wolfe, 2847 
1989-12-22 23:51     ` ending a language war (was "proposal for Ada preprocessor") Dick Dunn
1989-12-23 13:04       ` Markku Sakkinen
1989-12-26 21:59       ` Preprocessors & the "spirit of Ada" William Thomas Wolfe, 2847 
replies disabled

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