Re: [dev] Tiny VMs and parsers

2021-10-15 Thread an2qzavok
buzzard.2 is a classic: https://www.ioccc.org/years.html#1992 Despite being an entry to a competition, the code itself is actually barely obfuscated, just very terse, and it comes with pretty good design docs. Stack machines and forth are rather good in general. I started by reading https://users.

[dev] Tiny VMs and parsers

2021-10-14 Thread ribal
Hi all, I've been following the book "Crafting Interpreters [1]" to learn how to write my own VM and parser in C and now I'm searching for some tiny/suckless implementations of both VMs and parsers in C, so I can see some other approaches to this question. At this moment I've found this guid