Parser for HDL code as used in the TECS course at nand2tetris.org