def except_token(source, start, token, throw=True):
 start = pass_white(source, start)
 if ((start < len(source)) and (source[start] == token)):
  return (start + 1)
 if throw:
  raise SyntaxError(('Missing token. Expected %s' % token))
 return None

def except_token ( source , start , token , throw = True ) : start = pass_white ( source , start ) if ( ( start < len ( source ) ) and ( source [ start ] == token ) ) : return ( start + 1 ) if throw : raise SyntaxError ( ( 'Missing token. Expected %s' % token ) ) return None
token can be only a single char .