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.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Received: by 2002:a6b:5a02:: with SMTP id o2mr1541687iob.17.1546512916936; Thu, 03 Jan 2019 02:55:16 -0800 (PST) X-Received: by 2002:a9d:da3:: with SMTP id 32mr993371ots.3.1546512916814; Thu, 03 Jan 2019 02:55:16 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.gegeweb.eu!gegeweb.org!usenet-fr.net!proxad.net!feeder1-2.proxad.net!209.85.166.215.MISMATCH!k10no38994itk.0!news-out.google.com!v71ni71ita.0!nntp.google.com!q69no38962itb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 3 Jan 2019 02:55:16 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=101.164.108.182; posting-account=wavAeAoAAAAZF_sXSZepBukuPCBO0Zqt NNTP-Posting-Host: 101.164.108.182 References: <73eb9d07-b3cf-4d3b-9802-eeb148a0c2e0@googlegroups.com> <0d16f930-33ce-4e62-bc63-4719199b4e02@googlegroups.com> <697312a4-5b96-472e-ae50-3ae33232c4de@googlegroups.com> <87wonq5dao.fsf@nightsong.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <429e35cf-3853-485f-8d9e-5385a3ca4b84@googlegroups.com> Subject: Re: ANTLR grammar for Ada available From: alby.gamper@gmail.com Injection-Date: Thu, 03 Jan 2019 10:55:16 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader01.eternal-september.org comp.lang.ada:55174 Date: 2019-01-03T02:55:16-08:00 List-Id: On Wednesday, January 2, 2019 at 9:20:22 AM UTC+11, oliverm...@gmail.com wrote: > On Monday, December 31, 2018 at 11:08:52 AM UTC+1, alby....@gmail.com wrote: > > [...] > > Thanks for the feedback!, Let me wait for some further feedback from the > > Ada community, so I can ascertain the extent of the interest in this piece > > of work. > > Sure, I'd be interested too, to compare with > https://github.com/okellogg/ada_antlr_grammar/blob/master/antlr4/ada.g4 > > On this grammar, I am getting the following message from org.antlr.v4.Tool : > > > error(119): ada.g4::: The following sets of rules are mutually > left-recursive > > [name, explicit_dereference, prefix, implicit_dereference, > > subtype_mark, function_call, generalized_reference, type_conversion, > > qualified_expression, indexed_component, slice, selected_component, > > attribute_reference, generalized_indexing] > > Have you encountered a similar problem in your version? > > - Oliver Hi Oliver My Antlr grammar can be found at https://github.com/Alex-Gamper/Ada-Grammar.git You can use it standalone or open the visual studio solution and run/debug the test console application as is. Feel free to raise issues / PR's on GitHub ! Alex