collapseos/apps/forth
Virgil Dupras a8e573c84a forth: add bin dict compilation stage!
Big one.

This allows us to write higher order words directly in Forth, which is much
more convenient than writing post-immediate (see "NOT" structure in diff if
you want to see what I mean) structures in ASM.

These structures can then be written to ROM (rather than loaded in RAM for
definitions loaded at run-time).

That's quite a bit of tooling that was added, 2 compilations stages, but I
think it's well worth it.
2020-03-12 00:14:44 -04:00
..
core.fth forth: add bin dict compilation stage! 2020-03-12 00:14:44 -04:00
dict.asm forth: add bin dict compilation stage! 2020-03-12 00:14:44 -04:00
dictionary.txt forth: add words "C@" and "C!" 2020-03-11 22:11:54 -04:00
glue.asm forth: add number literals support 2020-03-07 19:25:55 -05:00
main.asm forth: add bin dict compilation stage! 2020-03-12 00:14:44 -04:00
README.md apps/forth: new (WIP) application 2020-03-07 12:13:15 -05:00
stack.asm forth: change the whole execution model again 2020-03-10 21:37:06 -04:00
util.asm forth: make branching offsets 1 byte 2020-03-11 19:52:49 -04:00

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.