mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-08 23:18:04 +11:00
80ab395823
Change the mainloop so that words are executed immediately after they're read. This greatly simplifies execution model and allow the "DEFINE" word to become an IMMEDIATE and stop its "copy from compiled words" scheme. The downside to this is that flow control words no longer work when being used directly in the input buffer. They only work as part of a definition. It also broke "RECURSE", but I've replaced it with "BEGIN" and "AGAIN". Another effect of this change is that definitions can now span multiple lines. All in all, it feels good to get rid of that COMPBUF... |
||
---|---|---|
.. | ||
core.fth | ||
dict.asm | ||
dictionary.txt | ||
glue.asm | ||
main.asm | ||
README.md | ||
stack.asm | ||
util.asm |
Forth
WIP A Forth interpreter. Far from complete, but you can do stuff like
KEY EMIT KEY EMIT
See dictionary.txt for a word reference.