comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Parsing Ada?
Date: Thu, 4 Jun 2015 09:45:32 +0200
Date: 2015-06-04T09:45:32+02:00	[thread overview]
Message-ID: <19o2f2rsij73e.19w7vlz9w1jfm$.dlg@40tude.net> (raw)
In-Reply-To: mknvnd$j0k$1@loke.gir.dk

On Wed, 3 Jun 2015 17:39:40 -0500, Randy Brukardt wrote:

> "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> wrote in message 
> news:7cpxfz18lg2r$.ymcopru7qn8x.dlg@40tude.net...
>> On Tue, 02 Jun 2015 13:33:07 +0200, Jacob Sparre Andersen wrote:
>>
>>> I would prefer to compile the grammar to Ada source text,
>>> which I then could compile into the program.
>>
>> That is the core of the problem, then. Why would you do such thing? To
>> parse Ada you only need a recursive descent parser which is a couple of
>> hours to write.
> 
> There's a lot more to the equation than a parse, though. And if you can 
> write a correct recursive descent parser for all of Ada in a "couple of 
> hours", you're a genius *and* can type at an inhuman rate.

No for all Ada of course, only for the things which are neither expressions
(including fully qualified names) nor comments. It would be insane to use a
recursive descent parser for expressions. But the result would be a full
Ada parser.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de


  reply	other threads:[~2015-06-04  7:45 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 [this message]
2015-06-03  7:58 ` Stephen Leake
2015-06-03  8:36   ` J-P. Rosen
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