Building you own Programming Lanuage

How is a compiler working under the hood, learn by building your own programming language