class Hocon::Impl::ConfigDocumentParser
Constants
- ArrayIterator
- ConfigBugOrBrokenError
- ConfigImplUtil
- ConfigIncludeKind
- ConfigNodeArray
- ConfigNodeField
- ConfigNodeInclude
- ConfigNodeObject
- ConfigNodeRoot
- ConfigNodeSimpleValue
- ConfigNodeSingleToken
- ConfigParseError
- ConfigSyntax
- ConfigValueType
The type of a configuration value (following the <a href=“JSONjson.org”>JSON> type schema).
- PathParser
- Tokens
Public Class Methods
parse(tokens, origin, options)
click to toggle source
# File lib/hocon/impl/config_document_parser.rb, line 34 def self.parse(tokens, origin, options) syntax = options.syntax.nil? ? ConfigSyntax::CONF : options.syntax context = Hocon::Impl::ConfigDocumentParser::ParseContext.new(syntax, origin, tokens) context.parse end
parse_value(tokens, origin, options)
click to toggle source
# File lib/hocon/impl/config_document_parser.rb, line 40 def self.parse_value(tokens, origin, options) syntax = options.syntax.nil? ? ConfigSyntax::CONF : options.syntax context = Hocon::Impl::ConfigDocumentParser::ParseContext.new(syntax, origin, tokens) context.parse_single_value end