code: def parse_file(self,filename):
          
          try:
              return self.rProgram.ignore(cStyleComment).parseFile(filename, parseAll=True)
          except SemanticException as err:
              print(err)
              exit(3)
          except ParseException as err:
              print(err)
              exit(3)
docs: Parse file (helper function)