comp.lang.ada
 help / color / mirror / Atom feed
From: Stephen Leake <stephen_leake@stephe-leake.org>
Subject: Re: ANTLR grammar for Ada available
Date: Tue, 1 Jan 2019 11:30:35 -0800 (PST)
Date: 2019-01-01T11:30:35-08:00	[thread overview]
Message-ID: <057faae6-09b8-4fad-9d9f-9313da41ab68@googlegroups.com> (raw)
In-Reply-To: <73eb9d07-b3cf-4d3b-9802-eeb148a0c2e0@googlegroups.com>

On Friday, December 28, 2018 at 1:32:49 AM UTC-8, oliverm...@gmail.com wrote:
> Since ANTLR version 2 is very outdated and the links to v2 grammars are mostly dead, I have resurrected the project on GitHub:
> 
> https://github.com/okellogg/ada_antlr_grammar 

On the topic of Ada parsers, I recently released WisiToken (http://stephe-leake.org/ada/wisitoken.html), which is a parser generator for generalized LR parsers with error correction. An Ada grammar for it is in the Emacs Ada mode package http://www.nongnu.org/ada-mode/. 

WisiToken is specifically designed to handle the syntax typically encountered IDE indentation. It would be interesting to compare its error-handling ability to ANTLR; I could not find much about ANTLR error handling on the web.

WisiToken parsers generate an AST, and provides simple AST traversal; I'd be interested in what additional features people would like in that area.

WisiToken grammar files are currently BNF with some declarations; I'm working 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 published Java and Python grammars.


      parent reply	other threads:[~2019-01-01 19:30 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-02 19:28 ANTLR grammar for Ada available Oliver Kellogg
2003-03-03 10:35 ` Oliver Kellogg
2003-03-23 22:21 ` Oliver Kellogg
2003-03-24  1:32   ` John R. Strohm
2018-12-28  9:32 ` olivermkellogg
2018-12-28 13:38   ` Vincent DIEMUNSCH
2018-12-28 14:50     ` olivermkellogg
2018-12-31  5:38     ` alby.gamper
2018-12-31  7:02       ` alby.gamper
2018-12-31  8:08         ` Paul Rubin
2018-12-31 10:08           ` alby.gamper
2018-12-31 10:22             ` Paul Rubin
2018-12-31 10:42               ` alby.gamper
2019-01-01 22:20             ` olivermkellogg
2019-01-02  8:07               ` alby.gamper
2019-01-02  8:32                 ` alby.gamper
2019-01-03 10:55               ` alby.gamper
2019-01-17 21:13                 ` olivermkellogg
2019-01-18 10:19                   ` alby.gamper
2019-01-01  4:29         ` Shark8
2019-01-01  6:58           ` Lucretia
2019-01-02  8:13             ` alby.gamper
2018-12-31 12:32       ` Vincent DIEMUNSCH
2018-12-31 17:05         ` olivermkellogg
2018-12-31 17:31           ` Lucretia
2019-01-01 19:30   ` Stephen Leake [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox