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

Side by Side Diff: utils/tests/peg/peg_test.dart

Issue 11358145: Update utils to new library syntax. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month 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
« no previous file with comments | « utils/tests/css/selector_literal_test.dart ('k') | utils/tests/string_encoding/dunit.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart 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 file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #library("peg_tests"); 5 library peg_tests;
6 #import('../../peg/pegparser.dart'); 6 import '../../peg/pegparser.dart';
7 7
8 testParens() { 8 testParens() {
9 Grammar g = new Grammar(); 9 Grammar g = new Grammar();
10 Symbol a = g['A']; 10 Symbol a = g['A'];
11 11
12 a.def = ['(', MANY(a, min:0), ')', (a) => a]; 12 a.def = ['(', MANY(a, min:0), ')', (a) => a];
13 13
14 check(g, a, "", null); 14 check(g, a, "", null);
15 check(g, a, "()", '[]'); 15 check(g, a, "()", '[]');
16 check(g, a, "(()())", '[[],[]]'); 16 check(g, a, "(()())", '[[],[]]');
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 } 338 }
339 339
340 main() { 340 main() {
341 testCODE(); 341 testCODE();
342 testParens(); 342 testParens();
343 testOR(); 343 testOR();
344 testTEXT(); 344 testTEXT();
345 testBlockComment(); 345 testBlockComment();
346 testC(); 346 testC();
347 } 347 }
OLDNEW
« no previous file with comments | « utils/tests/css/selector_literal_test.dart ('k') | utils/tests/string_encoding/dunit.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698