'Initialize character table.
# Arguments
chars: Characters that can appear in the input.'

def __init__(self, chars):

    self.chars = sorted(set(chars))
    self.char_indices = dict(((c, i) for (i, c) in enumerate(self.chars)))
    self.indices_char = dict(((i, c) for (i, c) in enumerate(self.chars)))
