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

Unified Diff: pkg/analyzer2dart/bin/analyzer2dart.dart

Issue 489943004: Sketch for the new frontend dart2dart prototype. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer2dart/bin/analyzer2dart.dart
diff --git a/pkg/analyzer2dart/bin/analyzer2dart.dart b/pkg/analyzer2dart/bin/analyzer2dart.dart
new file mode 100644
index 0000000000000000000000000000000000000000..52d167482da33495f7a33630f515da24e797f1cd
--- /dev/null
+++ b/pkg/analyzer2dart/bin/analyzer2dart.dart
@@ -0,0 +1,26 @@
+// Copyright (c) 2014, 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.
+
+/** The entry point for the command-line version analyzer2dart. */
+library analyzer2dart.cmdline;
+
+import 'package:analyzer/analyzer.dart';
+import 'package:compiler/implementation/compiler.dart';
+
+void main(List<String> args) {
+ // TODO(brianwilkerson,paulberry): Run the analyzer `args[0]` and provide
+ // access to the element model/ast of the `main` method.
+
+ // TODO(brianwilkerson,paulberry,johnniwinther): Perform tree-growing by
+ // visiting the ast and feeding the dependencies into a work queue (enqueuer).
+
+ // TODO(brianwilkerson,paulberry,johnniwinther): Convert the ast into cps by
+ // visiting the ast and invoking the ir builder.
+
+ // TODO(johnniwinther): Convert the analyzer element model into the dart2js
+ // element model to fit the needs of the cps encoding above.
+
+ // TODO(johnniwinther): Feed the cps ir into the new dart2dart backend to
+ // generate dart file(s).
+}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698