Show HN: I wrote a VM and Compiler for a small language in Go(github.com)37 points·by madrafi·6 lat temu·2 commentsgithub.comShow HN: I wrote a VM and Compiler for a small language in Gohttps://github.com/actuallyachraf/monkey-giggle2 commentsPost comment[–]stevekemp·6 lat temureplyLooks good, you might compare to this implementation of Monkey with a bunch of extensions (such as "objects", regular expressions, and a standard-library written in the language itself):https://github.com/skx/monkey/A similar idea allows embedded usage of a scripting language, as a filter:https://github.com/skx/evalfilter/Of course it gets addictive writing little languages, so you'll probably want to have fun and try making more! I went with BASIC:https://github.com/skx/gobasicBut then you start thinking about assembly language:https://github.com/skx/math-compiler[–]madrafi·6 lat temureplyI recently took time to dive into compilers and programming languages by reading Thorsten Bell's excellent books, and this is what came out !
https://github.com/skx/monkey/
A similar idea allows embedded usage of a scripting language, as a filter:
https://github.com/skx/evalfilter/
Of course it gets addictive writing little languages, so you'll probably want to have fun and try making more! I went with BASIC:
https://github.com/skx/gobasic
But then you start thinking about assembly language:
https://github.com/skx/math-compiler