5 ms·
Nice! I guess I've got to face ASTs again:)
by rodrick_setsoff 5y ago
Nice! I guess I've got to face ASTs again:)
- jhgb 5y agoWrite a Forth. ;)
- codr7 5y agoOr a Lisp and let the user face them instead.
- jhgb 5y agoForth seems easier to do over a weekend, though.
- stevekemp 5y agoThere's even a recipe posted in a couple of comments here: https://news.ycombinator.com/item?id=13082825 https://news.ycombinator.com/item?id=13082825 I followed that guide to implement a simple FORTH-like system in golang: https://github.com/skx/foth https://github.com/skx/foth As I was following the implementation recipe I broke it down into "educational steps". Although it isn't a true FORTH it is pretty easy to understand and useful enough to embed inside other applications. Now and again I consider doing it again, but using a real return-stack to remove the hardcoded control-flow words from the interpreter, but I never quite find the time.
- codr7 5y agoDefinitely easier; it has no structure at all, it's all in your head/stack. https://github.com/codr7/fipl https://github.com/codr7/fipl