private static bool matchSymbol(Scanner s) { if (!s.isInitial()) return false; s.readChar(); while (s.isSubsequent()) s.readChar(); return true; }