HDL parser and simulator for the NAND to Tetris book