User Tools

Site Tools


tutorials:forth

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
tutorials:forth [2022/01/08 12:42]
papa
tutorials:forth [2022/03/07 16:39]
lars Update to reflect this is mostly for FORTH-10.
Line 1: Line 1:
 [[http://forth.org/whatis.html|Forth]] is a stack-based, RPN-format programming language created by [[https://colorforth.github.io/|Charles H. Moore]] and first released in 1970.  [[http://forth.org/whatis.html|Forth]] is a stack-based, RPN-format programming language created by [[https://colorforth.github.io/|Charles H. Moore]] and first released in 1970. 
 +
 +There are two Forth implementation available.
  
 **FORTH-10** is a Forth language interpreter included in the Panda TOPS-20 distribution. The anonymous programmer describes the implementation as "NOT totally standard". MIDAS assembly language source is available in file ''TOPS20:<UTILITIES>FORTH.MID''. **FORTH-10** is a Forth language interpreter included in the Panda TOPS-20 distribution. The anonymous programmer describes the implementation as "NOT totally standard". MIDAS assembly language source is available in file ''TOPS20:<UTILITIES>FORTH.MID''.
 +
 +**FORTH** is another interpreter originally written on the MIT AI lab DEC-20 called OZ, by John Wilson.
  
 ====== Survival Guide ====== ====== Survival Guide ======
  
-Start the interpreter on TWENEX with the command ''FORTH''. If you have not created an [[#start-up_file|auto-load file]], FORTH-10 will respond with the default greeting and prompt.+Start the interpreter on TWENEX with the command ''FORTH-10''. If you have not created an [[#start-up_file|auto-load file]], FORTH-10 will respond with the default greeting and prompt.
  
-  @FORTH+  @FORTH-10
   FORTH-10   Type QUIT to exit.   FORTH-10   Type QUIT to exit.
    Ok    Ok
Line 47: Line 51:
 Forth source files can be prepared with any editor. Load and interpret source files in FORTH-10 with the command ''LOAD "//file//"''. Forth source files can be prepared with any editor. Load and interpret source files in FORTH-10 with the command ''LOAD "//file//"''.
  
-===== Hello, World! =====+====== Hello, World! ======
  
   : HELLO CR ." "HELLO, WORLD!" CR ; Ok   : HELLO CR ." "HELLO, WORLD!" CR ; Ok
Line 75: Line 79:
  
 At start-up, FORTH-10 searches the user's log-in directory for a file named ''AUTO-LOAD.4TH''. If such a file exists, it is loaded automatically. If the file does not exist, FORTH-10 displays a standard greeting message. At start-up, FORTH-10 searches the user's log-in directory for a file named ''AUTO-LOAD.4TH''. If such a file exists, it is loaded automatically. If the file does not exist, FORTH-10 displays a standard greeting message.
 +
 +====== Reference ======
 +
 +//Starting FORTH// is the standard introductory text for the Forth language.
 +
 +* Leo Brody, //Starting FORTH//. Forth, Inc. https://www.forth.com/starting-forth/. [Accessed January 8, 2022.]
 +
tutorials/forth.txt ยท Last modified: 2022/06/07 02:10 by rcs