comp.lang.ada
 help / color / mirror / Atom feed
From: Ted Dennison <dennison@telepath.com>
Subject: RE: very specific question on Ada syntax
Date: Mon, 29 Jan 2001 16:41:29 GMT
Date: 2001-01-29T16:41:29+00:00	[thread overview]
Message-ID: <9546fo$nl$1@nnrp1.deja.com> (raw)
In-Reply-To: 9543p4$u4u$1@nnrp1.deja.com

In article <9543p4$u4u$1@nnrp1.deja.com>,
  Ted Dennison <dennison@telepath.com> wrote:

> I just tried the test_ada_lexer from the OpenToken examples directory
> on the following input:
>
> A'L;
...
> That looks like the right output to me. Am I missing some parameter of
> the problem?

Ahhh, yes I was. I tried it on:

A'L'M;

and got:

Found IDENTIFIER_T A
Found CHARACTER_T 'L'
Found IDENTIFIER_T M
Found SEMICOLON_T ;
Found END_OF_FILE_T *

I suppose the original author of the Ada syntax (Christop, I think) was
more or less forced to do it that way because the OpenToken lexical
analyzer keeps no record of what the last token was. That can certainly
be fixed. It will add a bit of processing time on each token. But
(thanks to Robert Dewar) I now have some ideas for optimizing the
scanning that ought to speed things up significantly, so the processing
time delta in the next release ought to still be in the good direction.

Note that OpenToken is not all about analyzing Ada; its a general
lexical analysis/parsing utility along the lines of lex/yacc and ANTLR
(except that it is totally API-based). In fact, it was initially
developed to help parse configuration files, and all my commercial work
with it still centers around that. The Ada tokenizer is just one of the
many user-submitted extensions that are included in the distribution. I
won't complain if it gets to the point where most users are downloading
OpenToken just to get the the Ada analyzer. However, there's a lot more
to it than just that.

I'd like to give kudos to Christoph for investigating this issue in the
first place. Many developers I know would have just let it slide, since
it works fine with all current Ada compilers.

--
T.E.D.

http://www.telepath.com/~dennison/Ted/TED.html


Sent via Deja.com
http://www.deja.com/



  reply	other threads:[~2001-01-29 16:41 UTC|newest]

Thread overview: 48+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200101261211.NAA13016@bulgaria.otn.eurocopter.de>
2001-01-26 17:17 ` very specific question on Ada syntax Mario Amado Alves
2001-01-28  0:36   ` Robert Dewar
2001-01-29 11:11     ` Mario Amado Alves
2001-01-29 15:55       ` Ted Dennison
2001-01-29 16:41         ` Ted Dennison [this message]
2001-01-29 17:52         ` Mario Amado Alves
2001-01-30  6:26         ` Robert Dewar
2001-02-02  5:53 Christoph Grein
  -- strict thread matches above, loose matches on Subject: below --
2001-02-01 11:10 Christoph Grein
2001-02-01 17:58 ` Robert Dewar
2001-02-01  7:14 Christoph Grein
2001-02-01  5:52 Christoph Grein
2001-02-01  6:25 ` Robert Dewar
2001-02-01  9:21   ` Keith Thompson
2001-01-31  5:01 Christoph Grein
2001-01-31  6:02 ` Robert Dewar
2001-01-30  9:30 Christoph Grein
2001-01-30  7:19 Jean-Pierre Rosen
2001-01-30  6:28 Christoph Grein
2001-01-30  7:16 ` Jean-Pierre Rosen
2001-01-30 16:25   ` Mario Amado Alves
2001-01-30 17:57     ` Robert Dewar
2001-01-30 19:16       ` Ted Dennison
2001-01-31  6:16         ` Robert Dewar
2001-01-31 11:40       ` Mario Amado Alves
2001-01-31 22:09         ` Florian Weimer
2001-02-01  5:39           ` Robert Dewar
2001-02-01  5:39           ` Robert Dewar
2001-02-04 14:24             ` Florian Weimer
2001-02-01  5:38         ` Robert Dewar
2001-02-01 18:24           ` Mario Amado Alves
2001-02-02  3:52             ` Robert Dewar
2001-01-30 19:06     ` Ted Dennison
2001-01-31  6:18       ` Robert Dewar
2001-01-30 18:41 ` Robert Dewar
     [not found] <mailman.980516658.10759.comp.lang.ada@ada.eu.org>
     [not found] ` <94s4vm$qr4$1@nnrp1.deja.com>
2001-01-26 20:26   ` Florian Weimer
2001-01-28  0:28     ` Robert Dewar
2001-01-30  8:47       ` Florian Weimer
2001-01-30 18:35         ` Robert Dewar
2001-01-30 22:16           ` Florian Weimer
2001-01-31  6:10             ` Robert Dewar
2001-01-31 13:29               ` Florian Weimer
2001-01-31 14:40                 ` Marc A. Criley
2001-01-26 22:43 ` Paul Graham
2001-01-28  0:32   ` Robert Dewar
     [not found] <B6A1A9B09E52D31183ED00A0C9E0888C4699C9@nctswashxchg.nctswash.navy.mil>
     [not found] ` <mailman.980504596.2748.comp.lang.ada@ada.eu.org>
2001-01-26 16:17   ` Paul Graham
2001-01-26 16:38   ` Robert Dewar
2001-01-30 16:45   ` Tucker Taft
replies disabled

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