Can you share the name of the book? Is it "Compiler Construction" by Niklaus Wirth?
They are all available on the ETH website and his homepage (in various revisions). Basically everything you need to know about imperative programming on CS bachelor level for free.