Code Your Own Forth - Set Rules on Word Declarations

Опубликовано: 10 Август 2026
на канале: Code and Crux
414
17

In this video, we configure our Forth system to not allow user-defined words to be named integers. For example, a word cannot be named "19". This prevents an issue in which every time the user enters a certain number, a different number is added to the stack in its place. Adding this rule demonstrates how rules can be added to word declarations in general.

Write Yourself a Forth: http://beza1e1.tuxen.de/articles/fort...

Forth Standard: https://forth-standard.org

cruxForth on GitHub: https://github.com/josephkreydt/cruxF...

https://www.forth.com/