User Tools

Site Tools


sd:star_forth

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
sd:star_forth [2026/04/21 11:44] appledogsd:star_forth [2026/04/21 11:49] (current) appledog
Line 1: Line 1:
 = Star Forth = Star Forth
- 
-== What's forth? 
-Starting Forth is available online at [[https://www.forth.com/starting-forth/0-starting-forth/|Starting Forth Online Edition]]. 
- 
-Another book: [[https://sinclairql.speccy.org/archivo/docs/books/Threaded_interpretive_languages.pdf|Threaded Interpretive Languages]]. 
  
 == Welcome to Star Forth == Welcome to Star Forth
Line 13: Line 8:
 * 87 native words: BYE, ., .S, CR, DUP, DROP, SWAP, OVER, +, -, *, /, MOD, EMIT, DEPTH, WORDS, ... * 87 native words: BYE, ., .S, CR, DUP, DROP, SWAP, OVER, +, -, *, /, MOD, EMIT, DEPTH, WORDS, ...
 * 26 defined words: MIN, MAX, ABS, NEGATE, RAND, SPACES, TYPE, ROT, NIP, TUCK, ... * 26 defined words: MIN, MAX, ABS, NEGATE, RAND, SPACES, TYPE, ROT, NIP, TUCK, ...
-* Outer interpreter with TIB (Terminal Input Buffer), word parser, dictionary search, number parsing 
 * Control flow (IF/THEN/ELSE, BEGIN/UNTIL, DO/LOOP) and Memory words (pointers, peek, poke) * Control flow (IF/THEN/ELSE, BEGIN/UNTIL, DO/LOOP) and Memory words (pointers, peek, poke)
-* Stack primitives with underflow protection 
-* Optional binary and hexadecimal input and output 
-* : and ; (colon definitions) 
-* Paste-friendly '> ' stripping 
-* AND, OR, XOR, NOT bitwise operations 
 * to-r, r-from, and r-at return stack manipulators * to-r, r-from, and r-at return stack manipulators
-VARIABLE, CONSTANT and CREATE +REPL (interpreter with terminal)
-* EXECUTE and ' (tick-- find and run word from address +
-* Native U. (unsigned decimal 32 bit number, vs. HEX mode which is unsigned already) +
- +
-Star Forth has some words from Forth-83, such as LSHIFT and RSHIFT, and is missing some from FORTH-79. That's because you can define the remaining words inside forth itself and I think that's cool. Therefore, at start, more than 30 new words are autoloaded into the dictionary; they're defined in FORTH itself and are not native. Included are great new words like RAND (100 1 RAND gives a number from 1 to 100) and ENSEED which adds entropy to the RNG.+
  
 For more information see: For more information see:
 +* [[Star Forth Dictionary]]
 * [[Star Forth Test Suite]] * [[Star Forth Test Suite]]
-* [[Star Forth Dictionary]] 
  
-For a comprehensive reference to each of these commands see [[Star Forth Dictionary]].+* Starting Forth is available online at [[https://www.forth.com/starting-forth/0-starting-forth/|Starting Forth Online Edition]]. 
 +* Another book: [[https://sinclairql.speccy.org/archivo/docs/books/Threaded_interpretive_languages.pdf|Threaded Interpretive Languages]].
  
 == Why Forth? == Why Forth?
sd/star_forth.1776771884.txt.gz · Last modified: by appledog

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki