3 ms·
If you don't mind a video, Destroy All Software has a nice screencast on the topic: https://www.destroyallsoftware.com/screencasts/catalog/a-compiler-from-scra
by quectophoton 4y ago
If you don't mind a video, Destroy All Software has a nice screencast on the topic:
https://www.destroyallsoftware.com/screencasts/catalog/a-compiler-from-scratch https://www.destroyallsoftware.com/screencasts/catalog/a-com...
Really easy to understand, even if Ruby is not your main language. The video is about compiling from a tiny Ruby-like language[1] into real JavaScript.
[1]: It's only a single, simple function, but the concepts are well explained and it should be easy to build on top of that.