parser property

Parser<TomlArray> parser
final

Parser for a TOML array value.

Implementation

static final Parser<TomlArray> parser = TomlValue.parser
    .skip(
      before: tomlWhitespaceCommentNewline,
      after: tomlWhitespaceCommentNewline,
    )
    .plusSeparated(char(separator))
    .skip(after: char(separator).optional())
    .map(discardSeparators)
    .optionalWith(<TomlValue>[])
    .skip(after: tomlWhitespaceCommentNewline)
    .skip(before: char(openingDelimiter), after: char(closingDelimiter))
    .map(TomlArray.new);