escapedChar method
Matches an escaped ASCII punctuation character, returning the unescaped character.
Implementation
Parser<String> escapedChar() => seq2(
char(r'\'),
pattern('!"#\$%&\'()*+,-./:;<=>?@[\\]^_`{|}~'),
).map2((_, c) => c);
Matches an escaped ASCII punctuation character, returning the unescaped character.
Parser<String> escapedChar() => seq2(
char(r'\'),
pattern('!"#\$%&\'()*+,-./:;<=>?@[\\]^_`{|}~'),
).map2((_, c) => c);