parser property

Parser<TomlInlineTable> parser
final

Parser for a TOML inline-table.

Trailing commas are currently not allowed. See https://github.com/toml-lang/toml/pull/235#issuecomment-73578529

Implementation

static final Parser<TomlInlineTable> parser = TomlKeyValuePair.parser
    .starSeparated(tomlWhitespace & char(separator) & tomlWhitespace)
    .trim(tomlWhitespaceChar)
    .skip(before: char(openingDelimiter), after: char(closingDelimiter))
    .map(discardSeparators)
    .map(TomlInlineTable.new);