public static Parser<Void> lineComment(String begin) {
    return Patterns.lineComment(begin).toScanner(begin);
  }
public static Parser < Void > lineComment ( String begin ) { return Patterns . lineComment ( begin ) . toScanner ( begin ) ; }
A scanner that succeeds and consumes all the characters until the {@code '\n'} character
if the current input starts with the string literal {@code begin}. The {@code '\n'} character
isn't consumed.