parseValue

Parses a single Hjson value (object, array, string, number, bool or null).

void
parseValue
(
Consumer
)
(
ref string hjson
,
ref size_t collumn
,
ref Consumer consumer
)

Parameters

hjson string

string being parsed. May contain leading whitespace. The beginning of the string until the end of the parsed Hjson value is consumed.

collumn size_t

How many dchars were popped from the front of hjson since last line feed. Will be updated by the function. Needed to properly parse multiline strings.

consumer Consumer

Object responsible for processing the parsed tokens.

Throws

HjsonException if hjson starts with an invalid Hjson value. Invalid Hjson past the first valid value is not detected.

Meta