# File lib/saikuro.rb, line 477
  def create_def_name(token)
    case token
    when TkSPACE
      # mark first space so we can stop at next space
      if @first_space
        @first_space = false
      else
        @looking_for_name = false
      end
    when TkNL,TkLPAREN,TkfLPAREN,TkSEMICOLON
      # we can also stop at a new line or left parenthesis
      @looking_for_name = false
    when TkDOT
      @name<< "."
    when TkCOLON2
      @name<< "::"
    when TkASSIGN
      @name<< "="
    when TkfLBRACK
      @name<< "["
    when TkRBRACK
      @name<< "]"
    else
      begin
        @name<< token.name.to_s
      rescue Exception => err
        #what is this?
        STDOUT.puts @@token_counter.current_file
        STDOUT.puts @name
        STDOUT.puts token.inspect
        STDOUT.puts err.message
        exit 1
      end
    end
  end