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:1c5:: with SMTP id 188mr11892026itk.12.1547806769394; Fri, 18 Jan 2019 02:19:29 -0800 (PST) X-Received: by 2002:a9d:6f14:: with SMTP id n20mr297884otq.2.1547806769122; Fri, 18 Jan 2019 02:19:29 -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.216.MISMATCH!q69no40894itb.0!news-out.google.com!v71ni78ita.0!nntp.google.com!q69no40890itb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 18 Jan 2019 02:19:28 -0800 (PST) In-Reply-To: <4b915158-0120-4083-90b0-87043aca1381@googlegroups.com> 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> <429e35cf-3853-485f-8d9e-5385a3ca4b84@googlegroups.com> <4b915158-0120-4083-90b0-87043aca1381@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <950a736c-3cce-450c-9cb2-408ea1f64c58@googlegroups.com> Subject: Re: ANTLR grammar for Ada available From: alby.gamper@gmail.com Injection-Date: Fri, 18 Jan 2019 10:19:29 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader01.eternal-september.org comp.lang.ada:55300 Date: 2019-01-18T02:19:28-08:00 List-Id: On Friday, January 18, 2019 at 8:13:51 AM UTC+11, oliverm...@gmail.com wrote: > On Thursday, January 3, 2019 at 11:55:18 AM UTC+1, alby....@gmail.com wrote: > > [...] > > 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 > > Hello Alex, > > Thanks for publishing your grammar. > > The port of my ANTLR-2 Ada grammar to ANTLR-3 [1] is starting to be usable. > Once that is fully functioning I will look at merging you work on `name' into my ada.g4 [2]. > > Cheers, > > Oliver > > [1] https://github.com/okellogg/ada_antlr_grammar/blob/master/antlr3/target_java/Ada.g > [2] https://github.com/okellogg/ada_antlr_grammar/blob/master/antlr4/ada.g4 Hi Oliver Glad to help in any way I can with my limited expertise in this area of lexical and parsing analysis, and yes I agree that the 'name' rule needs some work to resolve some ambiguities, and may require ANTLR's 'semantic predicates' to resolve (as you have probably already envisaged) and thought about. Alex