Code Your Own Forth - Add Compiled Word Nesting

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

This video is a quick one. We are adding a simple, yet important, feature to our cruxForth; the ability to nest compiled words. Meaning, the ability to run a compiled word from within the definition of another compiled word. Forth is often considered a useless language, especially in this day and age, but without the ability to nest words, it is REALLY useless. So we fix that with some simple Swift code.

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/

Shout out to the Swift programming language: https://swift.org/