Class: Hocon::Impl::ConfigParser

Inherits:
Object
  • Object
show all
Defined in:
lib/hocon/impl/config_parser.rb

Defined Under Namespace

Classes: ParseContext

Constant Summary collapse

ConfigSyntax =
Hocon::ConfigSyntax
ConfigConcatenation =
Hocon::Impl::ConfigConcatenation
ConfigReference =
Hocon::Impl::ConfigReference
ConfigParseError =
Hocon::ConfigError::ConfigParseError
ConfigBugOrBrokenError =
Hocon::ConfigError::ConfigBugOrBrokenError
SimpleConfigObject =
Hocon::Impl::SimpleConfigObject
SimpleConfigList =
Hocon::Impl::SimpleConfigList
Path =
Hocon::Impl::Path
ConfigIncludeKind =
Hocon::Impl::ConfigIncludeKind
ConfigNodeInclude =
Hocon::Impl::ConfigNodeInclude
ConfigNodeComment =
Hocon::Impl::ConfigNodeComment
ConfigNodeSingleToken =
Hocon::Impl::ConfigNodeSingleToken
Tokens =
Hocon::Impl::Tokens

Class Method Summary collapse

Class Method Details

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



38
39
40
41
42
43
44
# File 'lib/hocon/impl/config_parser.rb', line 38

def self.parse(document, origin, options, include_context)
  context = Hocon::Impl::ConfigParser::ParseContext.new(
      options.syntax, origin, document,
      Hocon::Impl::SimpleIncluder.make_full(options.includer),
      include_context)
  context.parse
end