def parse_file(self,filename):
try:<EOL><INDENT>return self.rProgram.ignore(cStyleComment).parseFile(filename, 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 file (helper function)