refactor
fix bug: parser will still fail if \n\37\n is not satisfied