2 ms·
Tutorial: Metacompilers Part 1 (Featuring META II)
- peter_d_sherman 6y agoI recently found this web page: StackOverflow: "What's the smallest subset of language features you need to bootstrap it's compiler?" https://stackoverflow.com/questions/47356651/whats-the-smallest-subset-of-language-features-you-need-to-bootstrap-its-compi https://stackoverflow.com/questions/47356651/whats-the-small... Which led me to META II: https://en.wikipedia.org/wiki/META_II https://en.wikipedia.org/wiki/META_II Which led me to this paper: http://www.hcs64.com/files/pd1-3-schorre.pdf http://www.hcs64.com/files/pd1-3-schorre.pdf Which led me to the "Tutorial: Metacompilers Part 1" web page, above... Also, if someone is new to all of this, they'll want to first familiarize themselves with how a generic stack machine works as a prerequisite (META II, at least in bootstrap form, is apparently written for a stack machine), and for that, here is a great interactive online Forth / Stack Machine tutorial: https://skilldrick.github.io/easyforth/ https://skilldrick.github.io/easyforth/