OLD | NEW |
1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 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.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
4 | 4 |
5 /// Command-line utility for helping testing fletch_test_suite.dart outside | 5 /// Command-line utility for helping testing fletch_test_suite.dart outside |
6 /// test.py. | 6 /// test.py. |
7 /// | 7 /// |
8 /// Example usage: | 8 /// Example usage: |
9 /// | 9 /// |
10 /// Create a file with messages, for example, messages.txt: | 10 /// Create a file with messages, for example, messages.txt: |
11 /// | 11 /// |
(...skipping 18 matching lines...) Expand all Loading... |
30 | 30 |
31 import 'messages.dart' show | 31 import 'messages.dart' show |
32 Message, | 32 Message, |
33 messageTransformer; | 33 messageTransformer; |
34 | 34 |
35 main() async { | 35 main() async { |
36 await for(Message message in utf8Lines(stdin).transform(messageTransformer)) { | 36 await for(Message message in utf8Lines(stdin).transform(messageTransformer)) { |
37 print(message); | 37 print(message); |
38 } | 38 } |
39 } | 39 } |
OLD | NEW |