comp.lang.ada
 help / color / mirror / Atom feed
From: foo wong <crap@spellingbeewinnars.org>
Subject: Re: Ada to Ada Translator ?
Date: Sun, 19 May 2019 15:52:11 -0700 (PDT)
Date: 2019-05-19T15:52:11-07:00	[thread overview]
Message-ID: <32fa13d6-df3c-4efc-96c6-0e99ef79387f@googlegroups.com> (raw)
In-Reply-To: <64883feb-3e49-4c6a-855c-6673068e970c@googlegroups.com>

Hi again Optikos

I just wanted to comment on the top down vs bottom compiler topic...

I am 100% certain that Ada could be compiled with yacc/flex alone . This is based on COBOL.

I spent most of 2012 with Ada but I have been with GnuCOBOL from 2013 till present. I can modify the runtime pretty well but I have not spent so much time with the compiler. However, I have spent /*some*/ time with it and I can say that it is highly complex. GnuCOBOl's use of yacc/flex may be a record holder.

COBOL is much-much harder to parse than Ada. There isn't really a standard library. The 2002 revision added OO and you can use classes and methods but for most of the history of COBOL, everything that would normally be a standard library was just made part of the core language. There are hundreds of reserved words but it goes well beyond this as they are used in sentences and the same reserved word has different meanings in different sentences.

GnuCOBOL is a great piece of software and while it is a very bad idea to use to control a tank, it could be used as a basic template for an Ada compiler.

-Patrick


  parent reply	other threads:[~2019-05-19 22:52 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-17 14:21 Ada to Ada Translator ? foo wong
2019-05-17 21:00 ` Simon Wright
2019-05-18 12:05   ` foo wong
2019-05-18 12:11     ` foo wong
2019-05-18 14:47     ` Simon Wright
2019-05-18 15:26       ` foo wong
2019-05-18 16:48         ` Simon Wright
2019-05-19 16:04         ` G.B.
2019-05-19 17:08           ` Simon Wright
2019-05-19 18:27             ` Optikos
2019-05-19 21:27               ` Simon Wright
2019-05-19 21:42               ` Simon Wright
2019-05-21 20:54                 ` Optikos
2019-05-22  6:59                   ` Simon Wright
2019-05-22 12:06                     ` Optikos
2019-05-22 12:33                       ` Simon Wright
2019-05-22 12:57                         ` foo wong
2019-05-22 15:24                           ` Shark8
2019-05-22 16:34                             ` Optikos
2019-05-22 20:07                               ` Randy Brukardt
2019-05-23  7:21                           ` G. B.
2019-05-22 13:33                         ` Optikos
2019-05-20 14:11         ` Optikos
2019-05-20 16:37           ` foo wong
2019-05-18 15:44       ` foo wong
2019-05-18 16:49         ` Simon Wright
2019-05-19 15:04         ` G.B.
2019-05-19 12:41 ` Optikos
2019-05-19 17:38   ` foo wong
2019-05-19 22:52   ` foo wong [this message]
2019-05-20 23:19   ` Randy Brukardt
2019-05-21  0:13     ` Optikos
2019-05-21 22:15       ` Randy Brukardt
2019-05-22  0:16         ` Optikos
2019-05-22 20:16           ` Randy Brukardt
2019-05-22 23:27             ` foo wong
2019-05-23  7:56               ` Simon Wright
2019-05-23 12:29                 ` foo wong
2019-05-21 22:20       ` Randy Brukardt
2019-05-21  0:17     ` Optikos
2019-05-22 18:49 ` Optikos
replies disabled

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