Class: Typesafe::Config::Impl::Parser

Inherits:
Object
  • Object
show all
Defined in:
lib/typesafe/config/impl/parser.rb

Defined Under Namespace

Classes: ParseContext, TokenWithComments

Constant Summary collapse

Tokens =
Typesafe::Config::Impl::Tokens
ConfigSyntax =
Typesafe::Config::ConfigSyntax
ConfigValueType =
Typesafe::Config::ConfigValueType
ConfigConcatenation =
Typesafe::Config::Impl::ConfigConcatenation
ConfigParseError =
Typesafe::Config::ConfigError::ConfigParseError
SimpleConfigObject =
Typesafe::Config::Impl::SimpleConfigObject
SimpleConfigList =
Typesafe::Config::Impl::SimpleConfigList

Class Method Summary collapse

Class Method Details

.parse(tokens, origin, options, include_context) ⇒ Object



875
876
877
878
879
880
881
# File 'lib/typesafe/config/impl/parser.rb', line 875

def self.parse(tokens, origin, options, include_context)
  context = Typesafe::Config::Impl::Parser::ParseContext.new(
      options.syntax, origin, tokens,
      Typesafe::Config::Impl::SimpleIncluder.make_full(options.includer),
      include_context)
  context.parse
end