def parse_text(self,text):
try:<EOL><INDENT>return self.rProgram.ignore(cStyleComment).parseString(text, parseAll=True)<EOL><DEDENT>except SemanticException as err:<EOL><INDENT>print(err)<EOL>exit(<NUM_LIT:3>)<EOL><DEDENT>except ParseException as err:<EOL><INDENT>print(err)<EOL>exit(<NUM_LIT:3>)<EOL><DEDENT>
Parse string (helper function)