comp.lang.ada
 help / color / mirror / Atom feed
* Re: C/C++ to Ada Translators ?
       [not found] ` <3id1cb$1j3c@watnews1.watson.ibm.com>
@ 1995-02-28  4:30   ` Rohan LENARD
  1995-02-28 20:33     ` Norman H. Cohen
  0 siblings, 1 reply; 4+ messages in thread
From: Rohan LENARD @ 1995-02-28  4:30 UTC (permalink / raw)


In article <3id1cb$1j3c@watnews1.watson.ibm.com>,
Norman H. Cohen <ncohen@watson.ibm.com> wrote:
:In article <alevinso-2002952316290001@minnow.pond.com>,
:alevinso@wanda.pond.com (Alex Levinson) writes: 
:
:|>                                                    It does a fairly decent
:|> job of translating 99.9% of CMS-2 into perfectly readable and executable
:|> C/C++ code.
:
:Gee, that's better than a lot of humans can do! ;-)

Well CMS-2 is not a very difficult language to translate.  When it
was designed compiler technology wasn't that advanced and it was used
heavily in safety critical military systems.  I'd be very surprised if
an automated tool couldn't do a good job.

Regards,
	Rohan
-- 
----------------------------------------------------------------------------
rjl@iassf.easams.com.au	| All quotes can be attributed to my automated quote
Rohan Lenard            | writing tool.  Yours for just $19.95; and if you
+61-2-367-4555          | call now you'll get a free set of steak knives ...



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

* Re: C/C++ to Ada Translators ?
  1995-02-28  4:30   ` C/C++ to Ada Translators ? Rohan LENARD
@ 1995-02-28 20:33     ` Norman H. Cohen
  1995-03-04 21:19       ` Rohan LENARD
  0 siblings, 1 reply; 4+ messages in thread
From: Norman H. Cohen @ 1995-02-28 20:33 UTC (permalink / raw)


In article <3iu8tv$qip@f111.iassf.easams.com.au>,
rjl@f111.iassf.easams.com.au (Rohan LENARD) writes: 

|> In article <3id1cb$1j3c@watnews1.watson.ibm.com>,
|> Norman H. Cohen <ncohen@watson.ibm.com> wrote: 
|> :In article <alevinso-2002952316290001@minnow.pond.com>,
|> :alevinso@wanda.pond.com (Alex Levinson) writes: 
|> : 
|> :|>                                                    It does a fairly decent
|> :|> job of translating 99.9% of CMS-2 into perfectly readable and executable
|> :|> C/C++ code.
|> : 
|> :Gee, that's better than a lot of humans can do! ;-)
|>
|> Well CMS-2 is not a very difficult language to translate.

Ah, but I was referring (without regard to the source) to the part about
the "perfectly readable ... C/C++ code".

--
Norman H. Cohen    ncohen@watson.ibm.com



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

* Re: C/C++ to Ada Translators ?
  1995-02-28 20:33     ` Norman H. Cohen
@ 1995-03-04 21:19       ` Rohan LENARD
  0 siblings, 0 replies; 4+ messages in thread
From: Rohan LENARD @ 1995-03-04 21:19 UTC (permalink / raw)


In article <3j01at$1nue@watnews1.watson.ibm.com>,
Norman H. Cohen <ncohen@watson.ibm.com> wrote:
:In article <3iu8tv$qip@f111.iassf.easams.com.au>,
:rjl@f111.iassf.easams.com.au (Rohan LENARD) writes: 
:
:|> In article <3id1cb$1j3c@watnews1.watson.ibm.com>,
:|> Norman H. Cohen <ncohen@watson.ibm.com> wrote: 
:|> :In article <alevinso-2002952316290001@minnow.pond.com>,
:|> :alevinso@wanda.pond.com (Alex Levinson) writes: 
:|> : 
:|> :|>                                                    It does a fairly decent
:|> :|> job of translating 99.9% of CMS-2 into perfectly readable and executable
:|> :|> C/C++ code.
:|> : 
:|> :Gee, that's better than a lot of humans can do! ;-)
:|>
:|> Well CMS-2 is not a very difficult language to translate.
:
:Ah, but I was referring (without regard to the source) to the part about
:the "perfectly readable ... C/C++ code".
:

Well apart from the problem with meaningful variable names (aren't they
limited to 8 characters ) it should be possible to convert CMS-2 to just
about any block structured sequential execution language (providing the
original CMS-2 was well structured).  Of course, you're not likely to
get any classes....

Now where's that pascal compiler gone :-).

Later,
	Rohan
-- 
----------------------------------------------------------------------------
rjl@iassf.easams.com.au	| All quotes can be attributed to my automated quote
Rohan Lenard            | writing tool.  Yours for just $19.95; and if you
+61-2-367-4555          | call now you'll get a free set of steak knives ...



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

* Re: C/C++ to Ada Translators ?
       [not found] <alevinso-2002952316290001@minnow.pond.com>
       [not found] ` <3id1cb$1j3c@watnews1.watson.ibm.com>
@ 1995-03-13 15:54 ` herter
  1 sibling, 0 replies; 4+ messages in thread
From: herter @ 1995-03-13 15:54 UTC (permalink / raw)


Alex Levinson (alevinso@wanda.pond.com) wrote:

: However, I was wondering if I could just take the C/C++ code and convert
: it to Ada83 without touching the existing cms2c. So, is there a C/C++ to
: Ada translator out there?

Hallo Alex, 

since the grammar of C++ is a non-deterministic grammar, there are only a
few free grammars for c++ able to recognize correctly the current c++.
The popular roskind-grammar is totally outdated. I wrote a C++ grammar
using lark, a bottom-up tool from J.Grosch with trial-parsing and
predicates and local multipass facility. So to recognize C++ correctly is
a real hard task and almost everyone is trying to sell the existing
grammars. Our grammar is also not free (I have asked the boss to make the
grammar free because we finally bought a ready front-end for C++. I got a
clear and loud NOOO- Answer!) Hm...

So I fear, you must wait a moment. But Terrence Parr got after a hard work
finally his C++-grammar for ANTLR LL(K) parser generator ready. This
grammar will now be beta-tested and will be made public in the end of this
month.

By the way: I wish I could work on ADA tools, C++ is a horror language, 
but this currently a winner on the market! That's reality.

Thomas.



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

end of thread, other threads:[~1995-03-13 15:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <alevinso-2002952316290001@minnow.pond.com>
     [not found] ` <3id1cb$1j3c@watnews1.watson.ibm.com>
1995-02-28  4:30   ` C/C++ to Ada Translators ? Rohan LENARD
1995-02-28 20:33     ` Norman H. Cohen
1995-03-04 21:19       ` Rohan LENARD
1995-03-13 15:54 ` herter

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