Added bulk of Parser and Cmd code from previous compiler iteration.