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:a24:7a4a:: with SMTP id a71mr28214253itc.6.1546259568915; Mon, 31 Dec 2018 04:32:48 -0800 (PST) X-Received: by 2002:aca:c703:: with SMTP id x3mr455652oif.5.1546259568784; Mon, 31 Dec 2018 04:32:48 -0800 (PST) Path: eternal-september.org!reader01.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!q69no18600itb.0!news-out.google.com!v71ni59ita.0!nntp.google.com!q69no18597itb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 31 Dec 2018 04:32:48 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=80.214.67.246; posting-account=hya6vwoAAADTA0O27Aq3u6Su3lQKpSMz NNTP-Posting-Host: 80.214.67.246 References: <73eb9d07-b3cf-4d3b-9802-eeb148a0c2e0@googlegroups.com> <0d16f930-33ce-4e62-bc63-4719199b4e02@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <3d2749b5-dea5-47b3-9521-688f4f846e0d@googlegroups.com> Subject: Re: ANTLR grammar for Ada available From: Vincent DIEMUNSCH Injection-Date: Mon, 31 Dec 2018 12:32:48 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader01.eternal-september.org comp.lang.ada:55139 Date: 2018-12-31T04:32:48-08:00 List-Id: Le lundi 31 d=C3=A9cembre 2018 06:38:20 UTC+1, alby....@gmail.com a =C3=A9c= rit=C2=A0: > Hi Vincent >=20 > I would be very interested in your reasoning in saying that ANTLR v4 is m= ore > complex than V3. In my experience v4 capabilities in auto generating a AS= T and > being able to visit/listen to specific nodes in the AST far surpasses the= V3 > capabilities and make it easier to parse Ada Syntactically at a rudimenta= ry level. Hi Alex, You are certainly right about the quality of the generated AST, superior in= V4. My point was simply that, from a pure parser perspective, the ability = of backtracking and memorizing previous attempts, as it is done in V4, alth= ough more powerful, is not necessary for parsing the Ada language. Hence it= seemed to me perfectly reasonable to stay in V3 for Ada, if the runtime su= pport already exists. But if the advantage of a better AST is really big, then developing an Ada = runtime for ANTLR V4 may be the best choice :-). Regards, Vincent