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=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 2002:a6b:b086:: with SMTP id z128-v6mr7908613ioe.38.1529483583908; Wed, 20 Jun 2018 01:33:03 -0700 (PDT) X-Received: by 2002:a9d:63d4:: with SMTP id e20-v6mr118461otl.5.1529483583668; Wed, 20 Jun 2018 01:33:03 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!news.uzoreto.com!weretis.net!feeder6.news.weretis.net!feeder.usenetexpress.com!feeder-in1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!d7-v6no884508itj.0!news-out.google.com!z3-v6ni1169iti.0!nntp.google.com!d7-v6no884503itj.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Wed, 20 Jun 2018 01:33:03 -0700 (PDT) In-Reply-To: <584564c2-9f64-4965-b045-535cdaf899c0@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=57.79.21.10; posting-account=gRqrnQkAAAAC_02ynnhqGk1VRQlve6ZG NNTP-Posting-Host: 57.79.21.10 References: <584564c2-9f64-4965-b045-535cdaf899c0@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <786f4eec-5f1e-4bf2-b08a-18e8c1a1ba74@googlegroups.com> Subject: Re: Why are Ada compilers difficult to write ? From: gautier_niouzes@hotmail.com Injection-Date: Wed, 20 Jun 2018 08:33:03 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader02.eternal-september.org comp.lang.ada:53192 Date: 2018-06-20T01:33:03-07:00 List-Id: The challenges are roughly the features that make the programmer's life easier: the burden is moved to the compiler writers. You can begin with unconstrained types whose sizes are not known at compile-time. Then variables of unconstrained types which are sized on initialization. Then add exceptions. Add packages. Then generics (not just macros). For the fun of it, you find a full Pascal-in-Pascal here: http://www.moorecad.com/standardpascal/pascals.pas ...and a remote descendant here (HAC, +/- a Pascal with Ada syntax): https://sourceforge.net/projects/hacadacompiler/ - none of the mentioned goodies like unconstrained types are present in HAC so far...