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