UCL::Parser
Low-level wrapper around a libucl parser handle. It turns a string into the
raw UCL::LibUCL::UclObject* tree consumed by Decoder and Validator.
This is an internal building block that exposes raw C pointers: it is not
part of the public, semver-covered API and may change. Use UCL.load /
UCL.load_file instead.
Constants
Flags applied by default: parse time values as strings
(UCL_PARSER_NO_TIME) and produce explicit rather than implicit arrays
(UCL_PARSER_NO_IMPLICIT_ARRAYS). See UCL::LibUCL::ParserFlags.
Constructors
Class methods
Parses string with a fresh parser and returns the raw libucl object.
Instance methods
Feeds string to the parser and returns the resulting UclObject*.
The returned object is a NEW owned reference (see LibUCL#get_object); the
caller is responsible for object_unref-ing it. The parser itself is freed
here — ensure runs even on a parse error, so no parser handle leaks.
Raises UCL::Error::DecoderError if libucl reports a parse error.