Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
SpecParserRunner.java
Go to the documentation of this file.
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
5import java.util.Scanner;
6import java.util.List;
7import java.util.ArrayList;
8
9/// Class for `main` which will parse files given as lines on stdio.
10public 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}
Class for main which will parse files given as lines on stdio.
static void main(String[] args)
Class for main which will parse files given as command line arguments.
static void main(String[] args)
G_BEGIN_DECLS G_MODULE_EXPORT FlValue * args