comp.lang.ada
 help / color / mirror / Atom feed
* Re: Dave Emery's proposal for Ada preprocessor
@ 1989-12-12 20:30 Daniel Lee
  1989-12-13 14:31 ` arny.b.engelson
  0 siblings, 1 reply; 9+ messages in thread
From: Daniel Lee @ 1989-12-12 20:30 UTC (permalink / 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

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~1989-12-26 21:59 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1989-12-12 20:30 Dave Emery's proposal for Ada preprocessor Daniel Lee
1989-12-13 14:31 ` 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 

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