class Racc::GrammarFileScanner

def atom_symbol(token)

def atom_symbol(token)
  if token == 'end'
    symbol = :END
    @in_conv_blk = false
    @in_rule_blk = false
  else
    if @line_head and not @in_conv_blk and not @in_rule_blk
      symbol = ReservedWord[token] || :SYMBOL
    else
      symbol = :SYMBOL
    end
    case symbol
    when :RULE then @in_rule_blk = true
    when :CONV then @in_conv_blk = true
    end
  end
  @line_head = false
  symbol
end