maybeParenthesized method

Parser<T> maybeParenthesized()

Parses this, either as-is or wrapped in parentheses.

Implementation

Parser<T> maybeParenthesized() {
  return any([parenthesized(), this]);
}