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 autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 2002:a5d:9858:: with SMTP id p24mr18990969ios.38.1546371035861; Tue, 01 Jan 2019 11:30:35 -0800 (PST) X-Received: by 2002:aca:4c97:: with SMTP id z145mr506232oia.2.1546371035468; Tue, 01 Jan 2019 11:30:35 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.unit0.net!newsreader4.netcologne.de!news.netcologne.de!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!peer01.am4!peer.am4.highwinds-media.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!k10no61576itk.0!news-out.google.com!v141ni196ita.0!nntp.google.com!q69no61610itb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 1 Jan 2019 11:30:35 -0800 (PST) In-Reply-To: <73eb9d07-b3cf-4d3b-9802-eeb148a0c2e0@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=76.77.182.20; posting-account=W2gdXQoAAADxIuhBWhPFjUps3wUp4RhQ NNTP-Posting-Host: 76.77.182.20 References: <73eb9d07-b3cf-4d3b-9802-eeb148a0c2e0@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <057faae6-09b8-4fad-9d9f-9313da41ab68@googlegroups.com> Subject: Re: ANTLR grammar for Ada available From: Stephen Leake Injection-Date: Tue, 01 Jan 2019 19:30:35 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Received-Bytes: 2542 X-Received-Body-CRC: 3066451566 Xref: reader01.eternal-september.org comp.lang.ada:55152 Date: 2019-01-01T11:30:35-08:00 List-Id: On Friday, December 28, 2018 at 1:32:49 AM UTC-8, oliverm...@gmail.com wrot= e: > Since ANTLR version 2 is very outdated and the links to v2 grammars are m= ostly dead, I have resurrected the project on GitHub: >=20 > https://github.com/okellogg/ada_antlr_grammar=20 On the topic of Ada parsers, I recently released WisiToken (http://stephe-l= eake.org/ada/wisitoken.html), which is a parser generator for generalized L= R parsers with error correction. An Ada grammar for it is in the Emacs Ada = mode package http://www.nongnu.org/ada-mode/.=20 WisiToken is specifically designed to handle the syntax typically encounter= ed IDE indentation. It would be interesting to compare its error-handling a= bility to ANTLR; I could not find much about ANTLR error handling on the we= b. WisiToken parsers generate an AST, and provides simple AST traversal; I'd b= e interested in what additional features people would like in that area. WisiToken grammar files are currently BNF with some declarations; I'm worki= ng on adding support for EBNF features like repeating and optional tokens (= by translating them to BNF), with the goal of being able to read the publis= hed Java and Python grammars.