comp.lang.ada
 help / color / mirror / Atom feed
From: Stephen Leake <stephen_leake@stephe-leake.org>
Subject: Re: OpenToken version 3.1 preview
Date: Wed, 22 Jul 2009 21:41:09 -0400
Date: 2009-07-22T21:41:09-04:00	[thread overview]
Message-ID: <uab2wb2h6.fsf@stephe-leake.org> (raw)
In-Reply-To: aa18196d-e374-436d-b6c3-28426d9ea58e@a26g2000yqn.googlegroups.com

AdaMagica <christoph.grein@eurocopter.com> writes:

> There is a problem with Bracketed_Comment. If it extends over more
> than one line, the token is correctly recognized, but the lexeme
> fails.

The line feed characters are dropped from the lexeme, on Windows.

> You can take the Bracketed_Comment_Test in directory Test to verify
> the wrong behaviour.

I've added a test that shows the problem. 

I don't suppose you have an idea of how to fix it?

It will be interesting to figure out how to make that test portable
between Windows and Gnu/Linux. The easiest way to identify which line
ending to use that I know of is to look at
GNAT.Directory_Operations.Dir_Separator; it's '\' for CR LF, '/' for
LF. Don't know how to deal with Mac!

The Ada standard intended System.Name to deal with this, but in GNAT
that's always SYSTEM_NAME_GNAT, so that's no help.

Anyone have a better idea?

>> If someone could provide dates for the previous OpenToken releases,
>> that would be fun.
>
> These should be on Ted Dennisons's site.

If you mean
http://www.telepath.com/~dennison/Ted/OpenToken/OpenToken.html, there
are a couple of dates there, thanks:

8/13/00 - Version 3.0b is now available.
1/27/00 - Version 2.0 is now available. 

-- 
-- Stephe



  reply	other threads:[~2009-07-23  1:41 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-19 21:23 OpenToken version 3.1 preview Stephen Leake
2009-07-20  9:47 ` Stephen Leake
2009-07-21 13:03 ` AdaMagica
2009-07-23  1:41   ` Stephen Leake [this message]
2009-07-23  5:09     ` AdaMagica
2009-07-23  8:00       ` Dmitry A. Kazakov
2009-07-24 10:47         ` Stephen Leake
2009-07-24 11:11           ` Dmitry A. Kazakov
2009-07-24 10:54       ` Stephen Leake
2009-07-25  1:18         ` Stephen Leake
2009-07-23 15:19     ` vlc
2009-07-23 20:09     ` sjw
replies disabled

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