sd:star_forth
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| sd:star_forth [2026/04/21 11:44] – appledog | sd: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:// | ||
| - | |||
| - | Another book: [[https:// | ||
| == 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/ | * Control flow (IF/ | ||
| - | * 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 ' | + | |
| - | * 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' | + | |
| 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:// |
| + | * Another book: [[https:// | ||
| == Why Forth? | == Why Forth? | ||
sd/star_forth.1776771884.txt.gz · Last modified: by appledog
