Index: pkg/fasta/bin/kompile.dart |
diff --git a/pkg/fasta/bin/kompile.dart b/pkg/fasta/bin/kompile.dart |
new file mode 100644 |
index 0000000000000000000000000000000000000000..04afff10012b3aca777cfad720b3aa100939e44d |
--- /dev/null |
+++ b/pkg/fasta/bin/kompile.dart |
@@ -0,0 +1,16 @@ |
+// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file |
+// for details. All rights reserved. Use of this source code is governed by a |
+// BSD-style license that can be found in the LICENSE file. |
+ |
+import 'package:fasta/src/outline.dart' as outline; |
+ |
+const int iterations = const int.fromEnvironment("iterations", defaultValue: 1); |
+ |
+main(List<String> arguments) async { |
+ for (int i = 0; i < iterations; i++) { |
+ if (i > 0) { |
+ print("\n"); |
+ } |
+ await outline.kompile(arguments); |
+ } |
+} |