'Check if the token info belongs to the dictionary. If so, take the
appropriate action.'

def __preamble_func(self, line):

    action = self.__state_dict.get(self.__token_info)
    if action:
        action(line)
