comp.lang.ada
 help / color / mirror / Atom feed
From: "J-P. Rosen" <rosen@adalog.fr>
Subject: Re: Parsing Ada?
Date: Wed, 03 Jun 2015 10:36:36 +0200
Date: 2015-06-03T10:36:36+02:00	[thread overview]
Message-ID: <mkme8d$q95$1@dont-email.me> (raw)
In-Reply-To: <85mw0hte8w.fsf@stephe-leake.org>

Le 03/06/2015 09:58, Stephen Leake a écrit :
> As Dmitry points out, writing a recursive descent parser for a subset of
> Ada should not be hard.
But there is a lot more than parsing if you want to do any serious
analysis of Ada code. Consider:

A(B)

This could be a function call, an array indexing, an indexing of an
implicit dereference, an indexing of the result of a (parameterless)
function call... Sorting that out requires full overloading resolution -
a lot harder than parsing.

-- 
J-P. Rosen
Adalog
2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX
Tel: +33 1 45 29 21 52, Fax: +33 1 45 29 25 00
http://www.adalog.fr

  reply	other threads:[~2015-06-03  8:36 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-02 11:33 Parsing Ada? Jacob Sparre Andersen
2015-06-02 12:09 ` G.B.
2015-06-02 12:36   ` Jacob Sparre Andersen
2015-06-02 14:47   ` Luke A. Guest
2015-06-02 16:36 ` Dmitry A. Kazakov
2015-06-03 22:39   ` Randy Brukardt
2015-06-04  7:45     ` Dmitry A. Kazakov
2015-06-03  7:58 ` Stephen Leake
2015-06-03  8:36   ` J-P. Rosen [this message]
2015-06-03 11:04   ` Simon Wright
2015-06-04  6:59   ` Jacob Sparre Andersen
2015-06-04 10:24     ` J-P. Rosen
2015-06-04 12:15     ` jan.de.kruyf
2015-06-04 12:30       ` jan.de.kruyf
2015-06-05  8:02     ` Simon Wright
2015-06-08  7:53       ` Jacob Sparre Andersen
2015-06-05  9:34     ` Stephen Leake
2015-06-08  8:34       ` Jacob Sparre Andersen
2015-06-08 22:45 ` wowwomenonwheels205
replies disabled

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