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

Side by Side Diff: pkg/front_end/lib/src/fasta/README.md

Issue 2737403002: Document how to test after making changes to Fasta. (Closed)
Patch Set: Document how to test after making changes to Fasta. Created 3 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
« no previous file with comments | « no previous file | pkg/front_end/lib/src/fasta/TESTING.md » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!-- 1 <!--
2 Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 2 Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
3 for details. All rights reserved. Use of this source code is governed by a 3 for details. All rights reserved. Use of this source code is governed by a
4 BSD-style license that can be found in the LICENSE file. 4 BSD-style license that can be found in the LICENSE file.
5 --> 5 -->
6 # Fasta -- Fully-resolved AST, Accelerated. 6 # Fasta -- Fully-resolved AST, Accelerated.
7 7
8 Fasta is a compiler framework for compiling Dart sources to Kernel IR. When Fast a works well, you won't even know you're using it, as it will be transparently i ntegrated in tools like *dart*, *dartanalyzer*, *dart2js*, etc. 8 Fasta is a compiler framework for compiling Dart sources to Kernel IR. When Fast a works well, you won't even know you're using it, as it will be transparently i ntegrated in tools like *dart*, *dartanalyzer*, *dart2js*, etc.
9 9
10 Hopefully, you'll notice that Fasta-based tools are fast, with good error messag es. If not, please let us [know](https://github.com/dart-lang/sdk/issues/new). 10 Hopefully, you'll notice that Fasta-based tools are fast, with good error messag es. If not, please let us [know](https://github.com/dart-lang/sdk/issues/new).
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 This will generate `pkg/front_end/test/fasta/hello.dart.dill` which can be run t his way: 79 This will generate `pkg/front_end/test/fasta/hello.dart.dill` which can be run t his way:
80 80
81 ```bash 81 ```bash
82 $DART_AOT_VM pkg/front_end/test/fasta/hello.dart.dill 82 $DART_AOT_VM pkg/front_end/test/fasta/hello.dart.dill
83 ``` 83 ```
84 84
85 Where `$DART_AOT_VM` is defined as described [above](#Building-The-Dart-SDK). 85 Where `$DART_AOT_VM` is defined as described [above](#Building-The-Dart-SDK).
86 86
87 ## Running Tests 87 ## Running Tests
88 88
89 Run: 89 See [How to test Fasta](TESTING.md)
90
91 ```bash
92 dart -c pkg/testing/bin/testing.dart --config=pkg/front_end/test/fasta/testing.j son
93 ```
94 90
95 ## Running dart2js 91 ## Running dart2js
96 92
97 ```bash 93 ```bash
98 dart pkg/front_end/lib/src/fasta/bin/compile.dart pkg/compiler/lib/src/dart2js.d art 94 dart pkg/front_end/lib/src/fasta/bin/compile.dart pkg/compiler/lib/src/dart2js.d art
99 $DART_AOT_VM pkg/compiler/lib/src/dart2js.dart.dill pkg/front_end/test/fasta/hel lo.dart 95 $DART_AOT_VM pkg/compiler/lib/src/dart2js.dart.dill pkg/front_end/test/fasta/hel lo.dart
100 ``` 96 ```
101 97
102 The output of dart2js will be `out.js`, and it can be run on any Javascript engi ne, for example, d8 which is included with the Dart SDK sources: 98 The output of dart2js will be `out.js`, and it can be run on any Javascript engi ne, for example, d8 which is included with the Dart SDK sources:
103 99
104 ``` 100 ```
105 ./third_party/d8/<OS>/d8 out.js 101 ./third_party/d8/<OS>/d8 out.js
106 ``` 102 ```
107 103
108 Where `<OS>` is one of `linux`, `macos`, or `windows`. 104 Where `<OS>` is one of `linux`, `macos`, or `windows`.
OLDNEW
« no previous file with comments | « no previous file | pkg/front_end/lib/src/fasta/TESTING.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698