From: Ted Dennison <dennison@telepath.com>
Subject: Re: help on Ada project
Date: 1999/12/01
Date: 1999-12-01T00:00:00+00:00 [thread overview]
Message-ID: <823c66$d5q$1@nnrp1.deja.com> (raw)
In-Reply-To: 82204n$f3n$1@nnrp1.deja.com
In article <82204n$f3n$1@nnrp1.deja.com>,
phantom119@my-deja.com wrote:
> it's giving us some problems on string comparison,
> we are using a case statement to compare strings,
I suspect you are having trouble becuase you are trying to use a string
in a case statement. Case statements can only be used on discrete types,
not compound types like strings, arrays, or records. To get the same
effect on a string, you would need to use an "if...elsif...elsif.."
construct.
Another possibility would be to use nested case statements on individual
characters in the string. That would probably make for a faster lexer,
but its a lot more work.
--
T.E.D.
Sent via Deja.com http://www.deja.com/
Before you buy.
next prev parent reply other threads:[~1999-12-01 0:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-12-01 0:00 help on Ada project phantom119
1999-12-01 0:00 ` Geoff Bull
1999-12-01 0:00 ` Ted Dennison [this message]
1999-12-01 0:00 ` Peter Milliken
1999-12-02 0:00 ` John McCabe
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox