Code parser for UMass CS 121