@@ -0,0 +1,1091 @@
+package com.squareup.protoparser;%0A%0Aimport java.io.File;%0Aimport java.util.ArrayDeque;%0Aimport java.util.Collections;%0Aimport java.util.Deque;%0A%0A/** Recursively traverse a directory and attempt to parse all of its proto files. */%0Apublic class ParsingTester %7B%0A  /** Directory under which to search for protos. Change as needed. */%0A  private static final File ROOT = new File(%22/path/to/protos%22);%0A%0A  public static void main(String... args) %7B%0A    int total = 0;%0A    int failed = 0;%0A%0A    Deque%3CFile%3E fileQueue = new ArrayDeque%3CFile%3E();%0A    fileQueue.add(ROOT);%0A    while (!fileQueue.isEmpty()) %7B%0A      File file = fileQueue.removeFirst();%0A      if (file.isDirectory()) %7B%0A        Collections.addAll(fileQueue, file.listFiles());%0A      %7D else if (file.getName().endsWith(%22.proto%22)) %7B%0A        System.out.println(%22Parsing %22 + file.getPath());%0A        total += 1;%0A%0A        try %7B%0A          ProtoSchemaParser.parse(file);%0A        %7D catch (Exception e) %7B%0A          e.printStackTrace();%0A          failed += 1;%0A        %7D%0A      %7D%0A    %7D%0A%0A    System.out.println(%22%5CnTotal: %22 + total + %22  Failed: %22 + failed);%0A  %7D%0A%7D%0A

Add simple directory-traversing parser for quickly testing the parser.