comp.lang.ada
 help / color / mirror / Atom feed
From: alby.gamper@gmail.com
Subject: Re: ANTLR grammar for Ada available
Date: Wed, 2 Jan 2019 00:32:16 -0800 (PST)
Date: 2019-01-02T00:32:16-08:00	[thread overview]
Message-ID: <64964707-bb32-44fa-be6e-55cab411836a@googlegroups.com> (raw)
In-Reply-To: <594af043-39aa-451a-85a1-558b9e21492d@googlegroups.com>

On Wednesday, January 2, 2019 at 7:07:18 PM UTC+11, alby....@gmail.com wrote:
> 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 version of the grammar was done a couple of years ago, So I don't recall this
> specific error as such, I do recall issues with the "name" terminals (ie section
> 4.1)
> 
> Alex

Hi Oliver

Having had a further look at your grammar, this seems to be the same area that I
had issues with. I'll post my version up later this week, so we can compare our
approaches, Note however my grammar is for Ada 2012, but also based of the
grammar found in the Ada RM. One minor diff is that my lexer rules are at the
end of the grammar file (as was/is typical in ANTLR grammars). Your approach is
however far more readable/referable back to the RM

Alex


  reply	other threads:[~2019-01-02  8:32 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 [this message]
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