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

Side by Side Diff: pkg/front_end/lib/src/fasta/scanner/token_constants.dart

Issue 2744843003: Create a special PrecedenceInfo for use during parser recovery. (Closed)
Patch Set: 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 | « pkg/front_end/lib/src/fasta/scanner/precedence.dart ('k') | no next file » | 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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 fasta.scanner.token_constants; 5 library fasta.scanner.token_constants;
6 6
7 import 'characters.dart'; 7 import 'characters.dart';
8 8
9 const int EOF_TOKEN = 0; 9 const int EOF_TOKEN = 0;
10 10
11 const int KEYWORD_TOKEN = $k; 11 const int KEYWORD_TOKEN = $k;
12 const int IDENTIFIER_TOKEN = $a; 12 const int IDENTIFIER_TOKEN = $a;
13 const int SCRIPT_TOKEN = $b; 13 const int SCRIPT_TOKEN = $b;
14 const int BAD_INPUT_TOKEN = $X; 14 const int BAD_INPUT_TOKEN = $X;
15 const int DOUBLE_TOKEN = $d; 15 const int DOUBLE_TOKEN = $d;
16 const int INT_TOKEN = $i; 16 const int INT_TOKEN = $i;
17 const int RECOVERY_TOKEN = $r;
17 const int HEXADECIMAL_TOKEN = $x; 18 const int HEXADECIMAL_TOKEN = $x;
18 const int STRING_TOKEN = $SQ; 19 const int STRING_TOKEN = $SQ;
19 20
20 const int AMPERSAND_TOKEN = $AMPERSAND; 21 const int AMPERSAND_TOKEN = $AMPERSAND;
21 const int BACKPING_TOKEN = $BACKPING; 22 const int BACKPING_TOKEN = $BACKPING;
22 const int BACKSLASH_TOKEN = $BACKSLASH; 23 const int BACKSLASH_TOKEN = $BACKSLASH;
23 const int BANG_TOKEN = $BANG; 24 const int BANG_TOKEN = $BANG;
24 const int BAR_TOKEN = $BAR; 25 const int BAR_TOKEN = $BAR;
25 const int COLON_TOKEN = $COLON; 26 const int COLON_TOKEN = $COLON;
26 const int COMMA_TOKEN = $COMMA; 27 const int COMMA_TOKEN = $COMMA;
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 const int TILDE_SLASH_EQ_TOKEN = MINUS_EQ_TOKEN + 1; 75 const int TILDE_SLASH_EQ_TOKEN = MINUS_EQ_TOKEN + 1;
75 const int TILDE_SLASH_TOKEN = TILDE_SLASH_EQ_TOKEN + 1; 76 const int TILDE_SLASH_TOKEN = TILDE_SLASH_EQ_TOKEN + 1;
76 const int PERCENT_EQ_TOKEN = TILDE_SLASH_TOKEN + 1; 77 const int PERCENT_EQ_TOKEN = TILDE_SLASH_TOKEN + 1;
77 const int GT_GT_TOKEN = PERCENT_EQ_TOKEN + 1; 78 const int GT_GT_TOKEN = PERCENT_EQ_TOKEN + 1;
78 const int CARET_EQ_TOKEN = GT_GT_TOKEN + 1; 79 const int CARET_EQ_TOKEN = GT_GT_TOKEN + 1;
79 const int COMMENT_TOKEN = CARET_EQ_TOKEN + 1; 80 const int COMMENT_TOKEN = CARET_EQ_TOKEN + 1;
80 const int STRING_INTERPOLATION_IDENTIFIER_TOKEN = COMMENT_TOKEN + 1; 81 const int STRING_INTERPOLATION_IDENTIFIER_TOKEN = COMMENT_TOKEN + 1;
81 const int QUESTION_PERIOD_TOKEN = STRING_INTERPOLATION_IDENTIFIER_TOKEN + 1; 82 const int QUESTION_PERIOD_TOKEN = STRING_INTERPOLATION_IDENTIFIER_TOKEN + 1;
82 const int QUESTION_QUESTION_TOKEN = QUESTION_PERIOD_TOKEN + 1; 83 const int QUESTION_QUESTION_TOKEN = QUESTION_PERIOD_TOKEN + 1;
83 const int QUESTION_QUESTION_EQ_TOKEN = QUESTION_QUESTION_TOKEN + 1; 84 const int QUESTION_QUESTION_EQ_TOKEN = QUESTION_QUESTION_TOKEN + 1;
OLDNEW
« no previous file with comments | « pkg/front_end/lib/src/fasta/scanner/precedence.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698