home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / atari / 8bit / 5784 < prev    next >
Encoding:
Text File  |  1993-01-05  |  1.9 KB  |  45 lines

  1. Newsgroups: comp.sys.atari.8bit
  2. Path: sparky!uunet!paladin.american.edu!gatech!emory!swrinde!cs.utexas.edu!torn!nott!uotcsi2!news
  3. From: cbbrowne@csi.uottawa.ca (Christopher Browne)
  4. Subject: Re: FORTH-83 for Atari 8-bit; anyone interested?
  5. Message-ID: <1993Jan5.045507.22247@csi.uottawa.ca>
  6. Keywords: FORTH, infix, postfix, parser, PASCAL
  7. Sender: news@csi.uottawa.ca
  8. Nntp-Posting-Host: prge
  9. Organization: Dept. of Computer Science, University of Ottawa
  10. References: <31DEC199207582838@nssdca.gsfc.nasa.gov> <sourada.725846389@vincent1.iastate.edu> <C05tKr.4xz@merk.com>
  11. Date: Tue, 5 Jan 93 04:55:07 GMT
  12. Lines: 31
  13.  
  14.  
  15. It is most certainly possible to create an infix parser for FORTH; in
  16. the days when BYTE Magazine occasionally covered the competition
  17. between Atari, Amiga and Apple for the pre-eminent 68000-based
  18. computer (interesting... All three names start with an "A"), there was
  19. actually a column by Dick Pountain that typically presented FORTH
  20. stuff.  
  21.  
  22. One issue presented an infix converter for mathematical expressions.
  23. I seem to remember the "total converter" weighing in at under 1 screen
  24. of code.
  25.  
  26. The problem is that what you REALLY want is to be able to arbitrarily
  27. move between POST and IN-FIX entry of information.
  28.  
  29. It's easy to make a parser that will read in NUMBERS, and perform
  30. operations using the operators (, ), +, -, *, /.  It's probably nearly
  31. trivial to extend this to allow the use of CONSTANT values, and
  32. perhaps the "IMMEDIATE VARIABLES" that are often called QUANS.
  33.  
  34. To extend it to regular variables (for which you'd get the value by:
  35. MYVARIABLE @ ) is extremely nontrivial.
  36.  
  37. If you want to get more information, you might want to head over to
  38. the newsgroup Comp.lang.forth.
  39.  
  40. -- 
  41. Christopher Browne                |     PGP 2.0 key available
  42. cbbrowne@csi.uottawa.ca           |======================================
  43. University of Ottawa              | Genius may have its limitations, but
  44. Master of System Science Program  | stupidity is not thus handicapped.
  45.