Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(339)

Side by Side Diff: pkg/analyzer-experimental/example/scanner_driver.dart

Issue 12838003: Rename analyzer-experimental to analyzer_experimental. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 #!/usr/bin/env dart
2
3 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
4 // for details. All rights reserved. Use of this source code is governed by a
5 // BSD-style license that can be found in the LICENSE file.
6
7 import 'package:analyzer-experimental/src/generated/java_core.dart';
8 import 'package:analyzer-experimental/src/generated/scanner.dart';
9
10 import 'dart:io';
11
12 main() {
13
14 print('working dir ${new File('.').fullPathSync()}');
15
16 var args = new Options().arguments;
17 if (args.length == 0) {
18 print('Usage: scanner_driver [files_to_scan]');
19 exit(0);
20 }
21
22 for (var arg in args) {
23 _scan(new File(arg));
24 }
25
26 }
27
28 _scan(File file) {
29 var src = file.readAsStringSync();
30 var scanner = new StringScanner(null, src, null);
31 var token = scanner.tokenize();
32 while (token.type != TokenType.EOF) {
33 print(token);
34 token = token.next;
35 }
36 }
OLDNEW
« no previous file with comments | « pkg/analyzer-experimental/example/parser_driver.dart ('k') | pkg/analyzer-experimental/lib/analyzer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698