OLD | NEW |
| (Empty) |
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 | |
3 // BSD-style license that can be found in the LICENSE file. | |
4 | |
5 library dart2js.tokens.constants; | |
6 | |
7 import '../util/characters.dart'; | |
8 | |
9 const int EOF_TOKEN = 0; | |
10 | |
11 const int KEYWORD_TOKEN = $k; | |
12 const int IDENTIFIER_TOKEN = $a; | |
13 const int BAD_INPUT_TOKEN = $X; | |
14 const int DOUBLE_TOKEN = $d; | |
15 const int INT_TOKEN = $i; | |
16 const int HEXADECIMAL_TOKEN = $x; | |
17 const int STRING_TOKEN = $SQ; | |
18 | |
19 const int AMPERSAND_TOKEN = $AMPERSAND; | |
20 const int BACKPING_TOKEN = $BACKPING; | |
21 const int BACKSLASH_TOKEN = $BACKSLASH; | |
22 const int BANG_TOKEN = $BANG; | |
23 const int BAR_TOKEN = $BAR; | |
24 const int COLON_TOKEN = $COLON; | |
25 const int COMMA_TOKEN = $COMMA; | |
26 const int EQ_TOKEN = $EQ; | |
27 const int GT_TOKEN = $GT; | |
28 const int HASH_TOKEN = $HASH; | |
29 const int OPEN_CURLY_BRACKET_TOKEN = $OPEN_CURLY_BRACKET; | |
30 const int OPEN_SQUARE_BRACKET_TOKEN = $OPEN_SQUARE_BRACKET; | |
31 const int OPEN_PAREN_TOKEN = $OPEN_PAREN; | |
32 const int LT_TOKEN = $LT; | |
33 const int MINUS_TOKEN = $MINUS; | |
34 const int PERIOD_TOKEN = $PERIOD; | |
35 const int PLUS_TOKEN = $PLUS; | |
36 const int QUESTION_TOKEN = $QUESTION; | |
37 const int AT_TOKEN = $AT; | |
38 const int CLOSE_CURLY_BRACKET_TOKEN = $CLOSE_CURLY_BRACKET; | |
39 const int CLOSE_SQUARE_BRACKET_TOKEN = $CLOSE_SQUARE_BRACKET; | |
40 const int CLOSE_PAREN_TOKEN = $CLOSE_PAREN; | |
41 const int SEMICOLON_TOKEN = $SEMICOLON; | |
42 const int SLASH_TOKEN = $SLASH; | |
43 const int TILDE_TOKEN = $TILDE; | |
44 const int STAR_TOKEN = $STAR; | |
45 const int PERCENT_TOKEN = $PERCENT; | |
46 const int CARET_TOKEN = $CARET; | |
47 | |
48 const int STRING_INTERPOLATION_TOKEN = 128; | |
49 const int LT_EQ_TOKEN = STRING_INTERPOLATION_TOKEN + 1; | |
50 const int FUNCTION_TOKEN = LT_EQ_TOKEN + 1; | |
51 const int SLASH_EQ_TOKEN = FUNCTION_TOKEN + 1; | |
52 const int PERIOD_PERIOD_PERIOD_TOKEN = SLASH_EQ_TOKEN + 1; | |
53 const int PERIOD_PERIOD_TOKEN = PERIOD_PERIOD_PERIOD_TOKEN + 1; | |
54 const int EQ_EQ_EQ_TOKEN = PERIOD_PERIOD_TOKEN + 1; | |
55 const int EQ_EQ_TOKEN = EQ_EQ_EQ_TOKEN + 1; | |
56 const int LT_LT_EQ_TOKEN = EQ_EQ_TOKEN + 1; | |
57 const int LT_LT_TOKEN = LT_LT_EQ_TOKEN + 1; | |
58 const int GT_EQ_TOKEN = LT_LT_TOKEN + 1; | |
59 const int GT_GT_EQ_TOKEN = GT_EQ_TOKEN + 1; | |
60 const int INDEX_EQ_TOKEN = GT_GT_EQ_TOKEN + 1; | |
61 const int INDEX_TOKEN = INDEX_EQ_TOKEN + 1; | |
62 const int BANG_EQ_EQ_TOKEN = INDEX_TOKEN + 1; | |
63 const int BANG_EQ_TOKEN = BANG_EQ_EQ_TOKEN + 1; | |
64 const int AMPERSAND_AMPERSAND_TOKEN = BANG_EQ_TOKEN + 1; | |
65 const int AMPERSAND_EQ_TOKEN = AMPERSAND_AMPERSAND_TOKEN + 1; | |
66 const int BAR_BAR_TOKEN = AMPERSAND_EQ_TOKEN + 1; | |
67 const int BAR_EQ_TOKEN = BAR_BAR_TOKEN + 1; | |
68 const int STAR_EQ_TOKEN = BAR_EQ_TOKEN + 1; | |
69 const int PLUS_PLUS_TOKEN = STAR_EQ_TOKEN + 1; | |
70 const int PLUS_EQ_TOKEN = PLUS_PLUS_TOKEN + 1; | |
71 const int MINUS_MINUS_TOKEN = PLUS_EQ_TOKEN + 1; | |
72 const int MINUS_EQ_TOKEN = MINUS_MINUS_TOKEN + 1; | |
73 const int TILDE_SLASH_EQ_TOKEN = MINUS_EQ_TOKEN + 1; | |
74 const int TILDE_SLASH_TOKEN = TILDE_SLASH_EQ_TOKEN + 1; | |
75 const int PERCENT_EQ_TOKEN = TILDE_SLASH_TOKEN + 1; | |
76 const int GT_GT_TOKEN = PERCENT_EQ_TOKEN + 1; | |
77 const int CARET_EQ_TOKEN = GT_GT_TOKEN + 1; | |
78 const int COMMENT_TOKEN = CARET_EQ_TOKEN + 1; | |
79 const int STRING_INTERPOLATION_IDENTIFIER_TOKEN = COMMENT_TOKEN + 1; | |
80 const int QUESTION_PERIOD_TOKEN = STRING_INTERPOLATION_IDENTIFIER_TOKEN + 1; | |
81 const int QUESTION_QUESTION_TOKEN = QUESTION_PERIOD_TOKEN + 1; | |
82 const int QUESTION_QUESTION_EQ_TOKEN = QUESTION_QUESTION_TOKEN + 1; | |
OLD | NEW |