Re:Wisp: A light Lisp written in C++
by mumblemumble on Monday December 28, 2020 @12:35PM
(#25561126)
Lisp and Forth might be the only languages out there where writing a basic interpreter is a reasonable weekend project and a decent way to get your feet wet with some new language you want to learn.
Ok wow. Any few-weekends length resources you know about?
Re:Wisp: A light Lisp written in C++
by mumblemumble on Monday December 28, 2020 @12:46PM
(#25561254)
I actually hacked up a simple forth-like system, after reading a brief howto here on hackernews:
Here's the thread which has the barebones overview which inspired me:
https://news.ycombinator.com/item?id=13082825
I could have taken it further, but the implementation there is not "real" in the sense that there is no real return-stack, so you can't implement IF-statements using the lower-level primitives.
That said it is a good starting point, and I had some fun doing it. I'd guesstimate it is more of a single weekend project though, rather than longer.
This is one of my favourites [0] that goes a lot further than most, but fits the timeframe. Error handling, macros, standard library all included.
Jonesforth is pretty amazing: https://github.com/nornagon/jonesforth/blob/master/jonesfort...
Go to any open source project hosting site, and perform a search for the term Lisp Interpreter. You'll likely get a cyclopean mountain of results from this seemingly innocuous term.