Class: Hocon::Impl::ConfigDocumentParser
- Inherits:
-
Object
- Object
- Hocon::Impl::ConfigDocumentParser
- Defined in:
- lib/hocon/impl/config_document_parser.rb
Defined Under Namespace
Classes: ParseContext
Constant Summary collapse
- ConfigSyntax =
Hocon::ConfigSyntax
- ConfigParseError =
Hocon::ConfigError::ConfigParseError
- ConfigBugOrBrokenError =
Hocon::ConfigError::ConfigBugOrBrokenError
- ConfigValueType =
Hocon::ConfigValueType
- Tokens =
Hocon::Impl::Tokens
- PathParser =
Hocon::Impl::PathParser
- ArrayIterator =
Hocon::Impl::ArrayIterator
- ConfigImplUtil =
Hocon::Impl::ConfigImplUtil
- ConfigIncludeKind =
Hocon::Impl::ConfigIncludeKind
- ConfigNodeSingleToken =
Hocon::Impl::ConfigNodeSingleToken
- ConfigNodeSimpleValue =
Hocon::Impl::ConfigNodeSimpleValue
- ConfigNodeInclude =
Hocon::Impl::ConfigNodeInclude
- ConfigNodeField =
Hocon::Impl::ConfigNodeField
- ConfigNodeObject =
Hocon::Impl::ConfigNodeObject
- ConfigNodeArray =
Hocon::Impl::ConfigNodeArray
- ConfigNodeRoot =
Hocon::Impl::ConfigNodeRoot
Class Method Summary collapse
Class Method Details
.parse(tokens, origin, options) ⇒ Object
35 36 37 38 39 |
# File 'lib/hocon/impl/config_document_parser.rb', line 35 def self.parse(tokens, origin, ) syntax = .syntax.nil? ? ConfigSyntax::CONF : .syntax context = Hocon::Impl::ConfigDocumentParser::ParseContext.new(syntax, origin, tokens) context.parse end |
.parse_value(tokens, origin, options) ⇒ Object
41 42 43 44 45 |
# File 'lib/hocon/impl/config_document_parser.rb', line 41 def self.parse_value(tokens, origin, ) syntax = .syntax.nil? ? ConfigSyntax::CONF : .syntax context = Hocon::Impl::ConfigDocumentParser::ParseContext.new(syntax, origin, tokens) context.parse_single_value end |