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

Side by Side Diff: frog/leg/scanner/token.dart

Issue 9190038: Handle escapes in string literals. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Removed validation from scanner Created 8 years, 11 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
« no previous file with comments | « frog/leg/scanner/scannerlib.dart ('k') | frog/leg/scanner/vm_scanner_bench.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 final int EOF_TOKEN = 0; 5 final int EOF_TOKEN = 0;
6 6
7 final int KEYWORD_TOKEN = $k; 7 final int KEYWORD_TOKEN = $k;
8 final int IDENTIFIER_TOKEN = $a; 8 final int IDENTIFIER_TOKEN = $a;
9 final int DOUBLE_TOKEN = $d; 9 final int DOUBLE_TOKEN = $d;
10 final int INT_TOKEN = $i; 10 final int INT_TOKEN = $i;
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after
393 393
394 final PrecedenceInfo DOUBLE_INFO = 394 final PrecedenceInfo DOUBLE_INFO =
395 const PrecedenceInfo(const SourceString('double'), 0, DOUBLE_TOKEN); 395 const PrecedenceInfo(const SourceString('double'), 0, DOUBLE_TOKEN);
396 396
397 final PrecedenceInfo STRING_INTERPOLATION_INFO = 397 final PrecedenceInfo STRING_INTERPOLATION_INFO =
398 const PrecedenceInfo(const SourceString('\${'), 0, 398 const PrecedenceInfo(const SourceString('\${'), 0,
399 STRING_INTERPOLATION_TOKEN); 399 STRING_INTERPOLATION_TOKEN);
400 400
401 final PrecedenceInfo HEXADECIMAL_INFO = 401 final PrecedenceInfo HEXADECIMAL_INFO =
402 const PrecedenceInfo(const SourceString('hexadecimal'), 0, HEXADECIMAL_TOKEN); 402 const PrecedenceInfo(const SourceString('hexadecimal'), 0, HEXADECIMAL_TOKEN);
403
404 // For reporting lexical errors.
405 final PrecedenceInfo ERROR_INFO =
406 const PrecedenceInfo(const SourceString('?'), 0, UNKNOWN_TOKEN);
OLDNEW
« no previous file with comments | « frog/leg/scanner/scannerlib.dart ('k') | frog/leg/scanner/vm_scanner_bench.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698