charParser property
Parser for a single character of a basic TOML string.
literal-char = %x09 / %x20-26 / %x28-7E / non-ascii
Literal strings can contain tabs (i.e., %x09
) but no apostrophe
s
(i.e., %x27
).
Implementation
static final Parser<String> charParser = ChoiceParser([
char('\x09'),
range('\x20', '\x26'),
range('\x28', '\x7E'),
tomlNonAscii,
]).flatten('Literal string character expected');