From: alby.gamper@gmail.com
Subject: Re: ANTLR grammar for Ada available
Date: Sun, 30 Dec 2018 21:38:18 -0800 (PST)
Date: 2018-12-30T21:38:18-08:00 [thread overview]
Message-ID: <dabb58f2-594e-4e2b-82cb-e7b20178821b@googlegroups.com> (raw)
In-Reply-To: <0d16f930-33ce-4e62-bc63-4719199b4e02@googlegroups.com>
On Saturday, December 29, 2018 at 12:38:33 AM UTC+11, Vincent DIEMUNSCH wrote:
> Le vendredi 28 décembre 2018 10:32:49 UTC+1, oliverm...@gmail.com a écrit :
> > 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
> >
> > I plan to update the grammar to Ada 202x and ANTLR version 3.
> > (Going to ANTLR v4 straight away looks too earth shaking).
> >
> > - Oliver
>
> Great Idea Oliver !
>
> ANTLR v3 is, in my opinion, the way to go, since ANTLR v4 is unduly complex for a regular language like Ada.
>
> But the target language of the ANTLR generator in the GitHub repository is C++... Why not generate an AST for Ada in Ada ? Many Ada compilers are written in Ada, in fact.
>
> Kind regards,
>
> Vincent
Hi Vincent
I would be very interested in your reasoning in saying that ANTLR v4 is more
complex than V3. In my experience v4 capabilities in auto generating a AST 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 rudimentary level.
Note I am in no way a ANTLR/Ada expert in this area, but I have used ANTLR v4
with my ADA 2012 grammar and used it in "VisualAda" to implement Intellisense
outlining and other intelisense features (albeit very limited at the moment).
Feature wise, I believe a well constructed ANTLR v4 grammar is on par with
libadalang (BUT NOT performant with libadalang ?)
Alex
next prev parent reply other threads:[~2018-12-31 5:38 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 [this message]
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
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox