finished parser except for bar repeat validation

fixed parser to pass all tests except for repeat validation @fmmoret