Index: pkg/analyzer_experimental/example/scanner_driver.dart |
diff --git a/pkg/analyzer_experimental/example/scanner_driver.dart b/pkg/analyzer_experimental/example/scanner_driver.dart |
deleted file mode 100644 |
index effaeff28b161bf2ff0c0e8b242dafcc2e9ddb61..0000000000000000000000000000000000000000 |
--- a/pkg/analyzer_experimental/example/scanner_driver.dart |
+++ /dev/null |
@@ -1,37 +0,0 @@ |
-#!/usr/bin/env dart |
- |
-// Copyright (c) 2013, 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 'dart:io'; |
- |
-import 'package:analyzer_experimental/src/generated/scanner.dart'; |
-import 'package:analyzer_experimental/src/generated/java_core.dart' show CharSequence; |
- |
-main() { |
- |
- print('working dir ${new File('.').fullPathSync()}'); |
- |
- var args = new Options().arguments; |
- if (args.length == 0) { |
- print('Usage: scanner_driver [files_to_scan]'); |
- exit(0); |
- } |
- |
- for (var arg in args) { |
- _scan(new File(arg)); |
- } |
- |
-} |
- |
-_scan(File file) { |
- var src = file.readAsStringSync(); |
- var reader = new CharSequenceReader(new CharSequence(src)); |
- var scanner = new Scanner(null, reader, null); |
- var token = scanner.tokenize(); |
- while (token.type != TokenType.EOF) { |
- print(token); |
- token = token.next; |
- } |
-} |