Sample for the book. It’s not bad. It creates a pascal like language that has some qualities of Python that we would recognize how the indent creates a new block without a BEGIN or { but does close off blocks with and END terminal.
Also. If you are compiler curious and want to get your hand s dirty.
it’s not so rigorous or dry as say the Dragon book which might discourage a hobbyist from building or writing an actual compiler.
http://t3x.org/t3x/0/retro-compiler-sample.pdf