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

  1. Path: sparky!uunet!ukma!usenet.ins.cwru.edu!cleveland.Freenet.Edu!cq184
  2. From: cq184@cleveland.Freenet.Edu (Spencer W. Hunter)
  3. Newsgroups: comp.lang.forth
  4. Subject: Re: CASE tools
  5. Date: 28 Jan 1993 10:29:21 GMT
  6. Organization: Case Western Reserve University, Cleveland, Ohio (USA)
  7. Lines: 29
  8. Message-ID: <1k8ci2INNa7f@usenet.INS.CWRU.Edu>
  9. NNTP-Posting-Host: hela.ins.cwru.edu
  10.  
  11.  
  12. mikeh@starnine.com (Mike Haas) writes:
  13.  
  14. >Yes, one of the strong advantages I remember when I first came
  15. >to know Forth was that is was touted as promoting top-down
  16. >programming techniques due to it's extremely modular
  17. >architecture.
  18.  
  19. : _THIS ." This " ;
  20. : _IS ." is  " ;
  21. : _BOTTOM ." bottom-" ;
  22. : _UP ." up." ;
  23.  
  24. : MAIN_PROGRAM  _THIS _IS _BOTTOM _UP ;
  25. \ Main program is constructed from previously-defined words.
  26.  
  27. Forth may be _designed_ top-down, but it's usually
  28. _constructed_ bottom-up.  My implementation of the HOS compiler
  29. _begins_ with the main program declaration, and then proceeds
  30. to define what it will do through a successive breaking-down of
  31. functions which the compiler checks for correctness.  By
  32. correctness, I mean that the control stuctures used are
  33. logically correct (yes, I know Forthies never make logic errors,
  34. but _I_ do, and they're often the trickiest bugs to track down).
  35. -- 
  36. +-------------------------------------+----------------------------------+
  37. | Spencer W. Hunter  Tucson, Arizona  |  Veni, Vidi, Vamos.              |
  38. | Internet: shunter@ccit.arizona.edu  |  They came, They saw, They left. |
  39. +-------------------------------------+----------------------------------+
  40.