escapedChar method

Parser<String> escapedChar()
inherited

Matches an escaped ASCII punctuation character, returning the unescaped character.

Implementation

Parser<String> escapedChar() => seq2(
  char(r'\'),
  pattern('!"#\$%&\'()*+,-./:;<=>?@[\\]^_`{|}~'),
).map2((_, c) => c);