home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.ada
- Path: sparky!uunet!munnari.oz.au!manuel!csc.canberra.edu.au!ash!tp923021
- From: tp923021@ash.canberra.edu.au (Ben Elliston)
- Subject: Case errors
- Message-ID: <tp923021.715674752@ash>
- Sender: news@csc.canberra.edu.au
- Organization: Info Sci & Eng, University of Canberra, AUSTRALIA
- Date: 5 Sep 92 06:32:32 GMT
- Lines: 43
-
- Hiya.
-
- I'm trying to compile a program using Meridian ACE and it's generating
- an error which is a little hard to work out based on its description:
-
- "Incomplete case in middle of range"
-
- The portion of code generating this error is:
-
- CASE Symbol IS
- WHEN "(" | "[" | "{" => Push(Symbol,S); -- Push the symbol onto stack
- WHEN ")" | "]" | "}" =>
- IF Empty(S) THEN -- The stack is empty?
- Valid := False;
- ELSIF Match(Top(S),Symbol) THEN -- The closing symbol matches
- -- the opening symbol on the stack
- Pop(S);
- ELSE
- Valid := False;
- END IF;
- Text_IO.Get(Item => Symbol);
- END CASE;
-
- .. the package using the Pop, Push and Match, etc. functions compiles
- okay.
-
- If anything here is noticably wrong, I'd appreciate hearing about it!
- :-)
-
- Many thanks.
-
- Cheers,
- %Ben%
- ------------------------------------------------------------------------------
- Ben Elliston | This message
- Bachelor of Engineering (Computer Engineering) | brought to you
- University of Canberra | by the machine
- Internet: tp923021@fir.canberra.edu.au | that goes
- FidoNet: 3:620/262 | 'ping'!
- -------------------------------------------------------+----------------------
- Some people make champagne out of water.
- ------------------------------------------------------------------------------
-
-