#--
# BibTeX-Ruby
# Copyright (C) 2010  Sylvester Keil <sylvester.keil.or.at>
# 
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# 
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# 
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
#++
#
# = BibTeX
#
# This module encompasses a parser for BibTeX files and
# auxiliary classes to model the individual
# BibTeX objects: +String+, +Preamble+, +Comment+, and
# +Entry+.
#
# Author:: {Sylvester Keil}[http://sylvester.keil.or.at]
# Copyright:: Copyright (c) 2010 Sylvester Keil
# License:: GNU GPL 3.0
#
module BibTeX
  require 'logger'

  # The current library version.
  VERSION = '0.0.1'

  #
  # An instance of the Ruby core class +Logger+.
  # Used for logging by BibTeX-Ruby.
  #
  Log = Logger.new(STDERR)
  Log.level = ENV.has_key?('DEBUG') ? Logger::DEBUG : Logger::WARN
  Log.datetime_format = "%Y-%m-%d %H:%M:%S"

end

require File.expand_path(File.dirname(__FILE__)) + '/bibtex/string_replacement'
require File.expand_path(File.dirname(__FILE__)) + '/bibtex/elements'
require File.expand_path(File.dirname(__FILE__)) + '/bibtex/entry'
require File.expand_path(File.dirname(__FILE__)) + '/bibtex/error'
require File.expand_path(File.dirname(__FILE__)) + '/bibtex/parser'
require File.expand_path(File.dirname(__FILE__)) + '/bibtex/bibliography'
