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

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

Issue 8805008: Various scanner fixes: (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased and update language.status Created 9 years 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 | « dart/frog/leg/scanner/string_scanner.dart ('k') | dart/frog/leg/tools/mini_parser.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;
11 final int HEXADECIMAL_TOKEN = $x; 11 final int HEXADECIMAL_TOKEN = $x;
12 final int STRING_TOKEN = $SQ; 12 final int STRING_TOKEN = $SQ;
13 final int STRING_INTERPOLATION_TOKEN = $SQ + 128;
13 14
14 final int AMPERSAND_TOKEN = $AMPERSAND; 15 final int AMPERSAND_TOKEN = $AMPERSAND;
15 final int BACKPING_TOKEN = $BACKPING; 16 final int BACKPING_TOKEN = $BACKPING;
16 final int BACKSLASH_TOKEN = $BACKSLASH; 17 final int BACKSLASH_TOKEN = $BACKSLASH;
17 final int BANG_TOKEN = $BANG; 18 final int BANG_TOKEN = $BANG;
18 final int BAR_TOKEN = $BAR; 19 final int BAR_TOKEN = $BAR;
19 final int COLON_TOKEN = $COLON; 20 final int COLON_TOKEN = $COLON;
20 final int COMMA_TOKEN = $COMMA; 21 final int COMMA_TOKEN = $COMMA;
21 final int EQ_TOKEN = $EQ; 22 final int EQ_TOKEN = $EQ;
22 final int GT_TOKEN = $GT; 23 final int GT_TOKEN = $GT;
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 } 112 }
112 113
113 String toString() => stringValue; 114 String toString() => stringValue;
114 } 115 }
115 116
116 class BeginGroupToken extends StringToken { 117 class BeginGroupToken extends StringToken {
117 Token endGroup; 118 Token endGroup;
118 BeginGroupToken(int kind, String value, int charOffset) 119 BeginGroupToken(int kind, String value, int charOffset)
119 : super(kind, value, charOffset); 120 : super(kind, value, charOffset);
120 } 121 }
OLDNEW
« no previous file with comments | « dart/frog/leg/scanner/string_scanner.dart ('k') | dart/frog/leg/tools/mini_parser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698