This was a well written post! It makes me want to create my own forth-like language
Quitschquat 30 minutes ago [-]
I don’t think a tokenizer like that is a good idea for Forth. You’ve got to read the next space separated thing, find out if it’s supposed to be compiled or run.
Eg the naive tokenizer would probably not work for .” for example.
A while ago I tried to put together a kit to make it easier to get started writing interpreters:
https://github.com/codr7/shi
Eg the naive tokenizer would probably not work for .” for example.