token method

Parser token(
  1. Object input
)

Implementation

Parser token(Object input) {
  if (input is Parser) {
    return input.token().trim(ref0(hiddenStuffWhitespace));
  } else if (input is String) {
    return token(input.toParser());
  }
  throw ArgumentError.value(input, 'Invalid token parser');
}