comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Status of ayacc and aflex?
Date: Fri, 22 Aug 2008 14:56:18 +0200
Date: 2008-08-22T14:56:22+02:00	[thread overview]
Message-ID: <11ciowcodituu$.y2sm9rev63ug.dlg@40tude.net> (raw)
In-Reply-To: 9ceb2207-6a3d-407c-84dc-885bfaa07ec1@j22g2000hsf.googlegroups.com

On Fri, 22 Aug 2008 05:02:43 -0700 (PDT), Ludovic Brenta wrote:

> Speaking of lexical analysis and recursive descent parsers, I'd like
> to know whether anyone here has tried OpenToken[1] and would like to
> comment on it.
> 
> [1] http://www.telepath.com/~dennison/Ted/OpenToken/OpenToken.html

I studied it some time ago and found it interesting. In particular, I
borrowed the idea of generation of a table from an Ada enumeration type. If
a table contains only legal Ada identifiers, it is a very quick way to
create it.

To the critique of OpenToken. One problem is that it really concentrates on
tokens, nothing else. A recursive descent parser should also support
higher-level constructs, like user-defined blank/comment, identifier,
literals, and more generally expressions. So that, when you see the token
"declare", you could tell the parser get me a name, and then after the
colon, the declaration expression etc.

It also pays too little attention to abstracting the sources being parsed
and links to the sources (needed for error messages and integration into
IDE).

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



  reply	other threads:[~2008-08-22 12:56 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-21  2:35 Status of ayacc and aflex? Peter C. Chapin
2008-08-21  4:39 ` J. David Bryan
2008-08-21 10:35   ` Peter C. Chapin
2008-08-21  6:27 ` ficorax
2008-08-21 10:36   ` Peter C. Chapin
2008-08-21  8:36 ` Dmitry A. Kazakov
2008-08-21  9:56 ` Stephen Leake
2008-08-21 10:34   ` Peter C. Chapin
2008-08-21 14:55 ` gautier_niouzes
2008-08-21 23:00   ` Peter C. Chapin
2008-08-22 11:02 ` Colin Paul Gloster
2008-08-22 12:02   ` Ludovic Brenta
2008-08-22 12:56     ` Dmitry A. Kazakov [this message]
2008-08-22 13:29     ` Niklas Holsti
2008-08-22 14:17       ` Ludovic Brenta
2008-08-22 17:17         ` Niklas Holsti
2008-08-24 15:02     ` Stephen Leake
2008-08-28 13:38       ` OpenToken (was: Status of ayacc and aflex?) Ludovic Brenta
2008-08-29 22:51         ` OpenToken Stephen Leake
2008-08-30 10:43           ` OpenToken Ludovic Brenta
2008-08-31 13:27             ` OpenToken Stephen Leake
2008-08-31 14:03               ` OpenToken Ludovic Brenta
2008-09-01 12:40                 ` OpenToken Stephen Leake
2008-09-12 18:40                   ` OpenToken Ludovic Brenta
2023-05-31 20:42 ` Status of ayacc and aflex? Gautier write-only address
replies disabled

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