A Forth Interpreter in Rust

51 points cstrainge

Hey all, I've been working on an interpreter for Forth that I've called Strange Forth. https://github.com/cstrainge/sorth

I've been wanting to learn Rust for a while now, so I have built a new implementation of it in Rust: https://github.com/cstrainge/rsorth

The language features arrays, hash-tables, and structs as first class features. I have the beginning of a FFI implemented. JSON support is also built-in. There is a VS Code language server written in Forth built atop all of these features. The REPL is also written in Forth and supports both single and multi-line editing.

There's still lots to do, the FFI needs fleshing out. The language server needs stabilization work and to be updated to use the new threading system recently added. The REPL has known bugs to be fixed. The APIs need to be fleshed out and unified. There is an include capability, but everything is imported into the global namespace so perhaps a module system should be added.

Being new to Rust I could definitely use some help on the project.

Check it out and let me know if you're interested!