OLD | NEW |
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 // Scanner class for the Dart language. The scanner reads source text | 5 // Scanner class for the Dart language. The scanner reads source text |
6 // and produces a stream of tokens which is used by the parser. | 6 // and produces a stream of tokens which is used by the parser. |
7 // | 7 // |
8 | 8 |
9 #ifndef VM_SCANNER_H_ | 9 #ifndef RUNTIME_VM_SCANNER_H_ |
10 #define VM_SCANNER_H_ | 10 #define RUNTIME_VM_SCANNER_H_ |
11 | 11 |
12 #include "vm/growable_array.h" | 12 #include "vm/growable_array.h" |
13 #include "vm/token.h" | 13 #include "vm/token.h" |
14 | 14 |
15 namespace dart { | 15 namespace dart { |
16 | 16 |
17 // Forward declarations. | 17 // Forward declarations. |
18 class Array; | 18 class Array; |
19 class Library; | 19 class Library; |
20 class RawString; | 20 class RawString; |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 Thread* thread_; | 211 Thread* thread_; |
212 Zone* zone_; | 212 Zone* zone_; |
213 | 213 |
214 static KeywordTable keywords_[Token::kNumKeywords]; | 214 static KeywordTable keywords_[Token::kNumKeywords]; |
215 static int keywords_char_offset_[kNumLowercaseChars]; | 215 static int keywords_char_offset_[kNumLowercaseChars]; |
216 }; | 216 }; |
217 | 217 |
218 | 218 |
219 } // namespace dart | 219 } // namespace dart |
220 | 220 |
221 #endif // VM_SCANNER_H_ | 221 #endif // RUNTIME_VM_SCANNER_H_ |
OLD | NEW |