code: def _read_accept_states(self):
          
          states = []
          i = 0
          regex = re.compile('[ \t\n\r:,]+')
          found = 0  # For maintaining the state of yy_accept declaration
          state = 0  # For maintaining the state of opening and closing tag of yy_accept
          mapping = [] # For writing each set of yy_accept
          cur_line = None
          with open(self.outfile) as flex_file:
              for cur_line in flex_file:
                  if cur_line[0:37] == "static yyconst flex_int16_t yy_accept" or cur_line[0:35] == "static const flex_int16_t yy_accept":
                      found = 1
                      continue
                  if found == 1:
                      # print x
                      if state == 0 and cur_line[0:5] == "    {":
                          mapping.append(0)  # there is always a zero there
                          state = 1
                          continue
  
                      if state == 1:
                          if cur_line[0:7] != "    } ;":
                              cur_line = "".join(cur_line.split())
                              if cur_line == '':
                                  continue
                              if cur_line[cur_line.__len__() - 1] == ',':
                                  splitted_line = regex.split(
                                      cur_line[:cur_line.__len__() - 1])
                              else:
                                  splitted_line = regex.split(cur_line)
                              mapping = mapping + splitted_line
                              continue
                          else:
                              cleared = []
                              for j in mapping:
                                  cleared.append(int(j))
                              max_value = max(cleared)
                              for i in range(0, len(cleared)):
                                  if cleared[i] > 0 and cleared[
                                          i] < (max_value - 1):
                                      states.append(i)
                              return states
          return []
docs: Read DFA accepted states from flex compiled file
          Args:
              None
          Returns:
              list: The list of accepted states