From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 5b1e799cdb,3ef3e78eacf6f938 X-Google-Attributes: gid5b1e799cdb,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!feeder.news-service.com!news.albasani.net!not-for-mail From: "Frank J. Lhota" Newsgroups: comp.lang.eiffel,comp.lang.ada,comp.lang.modula3,comp.lang.pascal.misc,comp.programming Subject: Re: Alternatives to C: ObjectPascal, Eiffel, Ada or Modula-3? Date: Sat, 25 Jul 2009 13:39:49 -0400 Organization: albasani.net Message-ID: References: Reply-To: FrankLho.NOSPAM@rcn.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.albasani.net NQjt72tjE66mP2/MRtM+D+J5oEXriIJO8FqBOsI6Dii9To5JxTgmKIaS5ReiyIIs/lmTmSG4sqUXbI7eqYltiD1J566NPfaBswKT59Ujj5AtIQtKwYqj/nM5nrI8VJmR X-Complaints-To: abuse@albasani.net NNTP-Posting-Date: Sat, 25 Jul 2009 17:39:54 +0000 (UTC) X-User-ID: DXHCblsaAZQm8VDlyoSXPtn0LMZ+cJzQ8HJr722kSIE= In-Reply-To: Cancel-Lock: sha1:N/n4pYQ14SxisNiU8xXr+5zRuvo= User-Agent: Thunderbird 2.0.0.22 (Windows/20090605) X-NNTP-Posting-Host: /8fE3TfLAH4b3KqQYx9F1fWnsBGsVnecbBnFB7sgcFQ= Xref: g2news1.google.com comp.lang.eiffel:374 comp.lang.ada:6379 comp.lang.modula3:107 comp.lang.pascal.misc:238 comp.programming:10234 Date: 2009-07-25T13:39:49-04:00 List-Id: Dmitry A. Kazakov wrote: > On Fri, 24 Jul 2009 00:26:11 -0700 (PDT), tm wrote: > >> On 20 Jul., 17:14, Jean-Pierre Rosen wrote: >>> Parsing is not the difficult part of an Ada compiler. >> I once met somebody, who wrote the front end of an Ada compiler, and >> he told me a different story. E.g.: He said that a special function >> needs to read ahead just to find out the semantic of a parenthesis. > > There is no need to know the semantics of parenthesis in order to parse > them. Semantic analysis is anther compilation phase. > > The only moderately difficult part of Ada that requires short look ahead > are digraphs like "and then" (overloaded with "and"). There can be comments > and new lines between "and" and "then" in the digraph. However it does not > require any roll backs. IIRC "and then" is not that big an issue. The bigger issue is the two uses of single quotes: they delimit character constants, and they are used for qualified expressions. Consider an expression such as Foo'(',',',',',' ... ) Even with this complication, Ada is not a hard language to parse. C++ poses a considerably greater challenge, due to the dual use of < and > for both comparisons and for bracketing template parameters. >> Another friend told me >> stories about a buggy early Ada compiler where it was necessary to >> "code around" compiler bugs. > > This problem still exist. (:-() This is not language specific, Delphi, > Borland C++, MSVC are no less buggy. > -- "All things extant in this world, Gods of Heaven, gods of Earth, Let everything be as it should be; Thus shall it be!" - Magical chant from "Magical Shopping Arcade Abenobashi" "Drizzle, Drazzle, Drozzle, Drome, Time for this one to come home!" - Mr. Wizard from "Tooter Turtle"