parameters: (self, event, new_state,
              TupleType=tuple)
docstring: Add transition to |new_state| on |event|.
docstring_summary: Add transition to |new_state| on |event|.
docstring_tokens: Add transition to |new_state| on |event| .
function: def add(self, event, new_state,
              TupleType=tuple):
          """
          Add transition to |new_state| on |event|.
          """
          if type(event) is TupleType:
              code0, code1 = event
              i = self.split(code0)
              j = self.split(code1)
              map = self.map
              while i < j:
                  map[i + 1][new_state] = 1
                  i += 2
          else:
              self.get_special(event)[new_state] = 1
function_tokens: def add ( self , event , new_state , TupleType = tuple ) : if type ( event ) is TupleType : code0 , code1 = event i = self . split ( code0 ) j = self . split ( code1 ) map = self . map while i < j : map [ i + 1 ] [ new_state ] = 1 i += 2 else : self . get_special ( event ) [ new_state ] = 1