OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. |
| 4 |
| 5 import java.util.Scanner; |
| 6 import java.util.List; |
| 7 import java.util.ArrayList; |
| 8 |
| 9 /// Class for `main` which will parse files given as lines on stdio. |
| 10 public class SpecParserRunner { |
| 11 public static void main(String[] args) throws Exception { |
| 12 if (args.length != 0) { |
| 13 System.err.println("No command line arguments expected."); |
| 14 System.err.println("Files to parse are accepted on the standard input."); |
| 15 System.exit(1); |
| 16 } |
| 17 |
| 18 Scanner scanner = new Scanner(System.in); |
| 19 String[] filenames = new String[1]; |
| 20 while (scanner.hasNextLine()) { |
| 21 String filename = scanner.nextLine().trim(); |
| 22 filenames[0] = filename; |
| 23 System.out.println("---------- " + filename + " ----------"); |
| 24 SpecParser.main(filenames); |
| 25 } |
| 26 } |
| 27 } |
OLD | NEW |