home *** CD-ROM | disk | FTP | other *** search
/ Programmer's ROM - The Computer Language Library / programmersrom.iso / ada / misc / abstract.cmm next >
Encoding:
Text File  |  1988-05-03  |  2.2 KB  |  58 lines

  1.  7-Apr-87 06:15:13-MDT,2598;000000000001
  2. Return-Path: <ADA-SW-REQUEST@SIMTEL20.ARPA>
  3. Return-Path: <rutgers!petsd!joe@beaver.cs.washington.edu>
  4. Received: from beaver.cs.washington.edu by SIMTEL20.ARPA with TCP; Mon, 6 Apr 87 19:36:01 MDT
  5. Received: by beaver.cs.washington.edu (5.52.1/6.3)
  6.     id AA17687; Mon, 6 Apr 87 16:59:16 PST
  7. Return-Path: <rutgers!petsd!joe>
  8. Received: by rutgers.edu; Mon, 6 Apr 87 20:46:25 EDT
  9. Date: 6 Apr 1987 2034-EST (Monday)
  10. From: rutgers!petsd!joe@beaver.cs.washington.edu (Joe Orost)
  11. Message-Id: <26979.85.544757678@petsd.UUCP>
  12. To: rutgers!uw-beaver!simtel20.arpa!ada-sw-request@beaver.cs.washington.edu
  13. Cc: joe@beaver.cs.washington.edu, BING!bob@beaver.cs.washington.edu
  14. Subject: Limitation/Bug in tools that Parse Ada code (like COMPORD)
  15. ReSent-Date: Tue, 7 Apr 87 05:28:48 MDT
  16. ReSent-From: Rick Conn <RCONN@SIMTEL20.ARPA>
  17. ReSent-To: ada-sw@SIMTEL20.ARPA
  18. ReSent-Message-ID: <12292581839.20.RCONN@SIMTEL20.ARPA>
  19.  
  20. I found/fixed a problem I had with COMPORD.  The problem is that a message:
  21.         Compile_Order internal error
  22. is generated when I try to run compord on its own source (including the
  23. abstractions).  The bug is with STATESTK.BDY, in procedure InitCopy there is
  24. no check for stack overflow, and if so, a CONSTRAINT_ERROR is raised.  So,
  25. insert the following code as the first lines of procedure InitCopy:
  26.  
  27.         if Index = StateParseStacksIndex'last then
  28.            raise OverFlow;
  29.         end if;
  30.  
  31. Now for the real bug.  The parse stack is too small!  In file PDECLS.SPC,
  32. change:
  33.  
  34.         subtype StateParseStacksIndex is
  35.             GC.ParserInteger range 0..200;
  36.  
  37. to
  38.         subtype StateParseStacksIndex is
  39.             GC.ParserInteger range 0..2_000;
  40.  
  41. With this fix, COMPORD will now properly process its own source!
  42. (BTW, PTBLS.BDY is the parser-killer.)
  43.  
  44. STATESTK.BDY and PDECLS.SPC can both be found in ABSTRACT.SRC.
  45. Remember, this bug affects all repository software that uses the parser
  46. included in ABSTRACT.SRC.
  47.  
  48.  
  49. --
  50.  
  51.  Full-Name:  Joseph M. Orost
  52.  UUCP:       ihnp4!vax135!petsd!joe
  53.  ARPA:         vax135!petsd!joe@BERKELEY
  54.  Phone:      (201) 758-7284
  55.  US Mail:    MS 313; Concurrent Computer Corporation; 106 Apple St
  56.              Tinton Falls, NJ 07724
  57.  
  58.