home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / forth / 3981 < prev    next >
Encoding:
Internet Message Format  |  1993-01-24  |  1.5 KB

  1. Path: sparky!uunet!destroyer!gatech!usenet.ins.cwru.edu!cleveland.Freenet.Edu!bs764
  2. From: bs764@cleveland.Freenet.Edu (Fred H Olson)
  3. Newsgroups: comp.lang.forth
  4. Subject: Forth stack checker
  5. Date: 24 Jan 1993 21:36:57 GMT
  6. Organization: Case Western Reserve University, Cleveland, Ohio (USA)
  7. Lines: 25
  8. Message-ID: <1jv25pINNobc@usenet.INS.CWRU.Edu>
  9. NNTP-Posting-Host: hela.ins.cwru.edu
  10.  
  11.  
  12. In his article Re: forth type checker" Chris Gray ponders an 
  13. "offline checker" for stack depth.
  14.  
  15. I have developed such a tool and all of his comments - and many more
  16. apply to it.  Which is to say that it is a rather "fussy" sort
  17. of program with always one more "gotcha" waiting in the wings.
  18. But that said, it does work for me and gives me a "browser tool"
  19. for target code thrown in.  It still has some limitations that
  20. I haven't eliminated yet - it doesn't yet handle new defining
  21. words , it works with source code in blocks (oh oh better duck quick),
  22. and the documentation after several reworks still could be better.
  23. I'd very much like to have someone beta test it, but even that
  24. will probably require some study of the implementation to
  25. deal with the "gotcha" 's .  
  26.  
  27. My approach is to build a special purpose interpreter/compiler and hence
  28. the source code becomes it's "input data" and it's hard to anticipate
  29. all possible data permutaions that get thrown at it.
  30.  
  31. As a consequence I have dispaired of try to get it used more widely,
  32. an am content to have a neat tool that I do use.
  33.  
  34. Fred Olson
  35. -- 
  36.