| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_TOKEN_H_ | 5 #ifndef V8_TOKEN_H_ |
| 6 #define V8_TOKEN_H_ | 6 #define V8_TOKEN_H_ |
| 7 | 7 |
| 8 #include "src/checks.h" | 8 #include "src/base/logging.h" |
| 9 | 9 |
| 10 namespace v8 { | 10 namespace v8 { |
| 11 namespace internal { | 11 namespace internal { |
| 12 | 12 |
| 13 // TOKEN_LIST takes a list of 3 macros M, all of which satisfy the | 13 // TOKEN_LIST takes a list of 3 macros M, all of which satisfy the |
| 14 // same signature M(name, string, precedence), where name is the | 14 // same signature M(name, string, precedence), where name is the |
| 15 // symbolic token name, string is the corresponding syntactic symbol | 15 // symbolic token name, string is the corresponding syntactic symbol |
| 16 // (or NULL, for literals), and precedence is the precedence (or 0). | 16 // (or NULL, for literals), and precedence is the precedence (or 0). |
| 17 // The parameters are invoked for token categories as follows: | 17 // The parameters are invoked for token categories as follows: |
| 18 // | 18 // |
| (...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 private: | 283 private: |
| 284 static const char* const name_[NUM_TOKENS]; | 284 static const char* const name_[NUM_TOKENS]; |
| 285 static const char* const string_[NUM_TOKENS]; | 285 static const char* const string_[NUM_TOKENS]; |
| 286 static const int8_t precedence_[NUM_TOKENS]; | 286 static const int8_t precedence_[NUM_TOKENS]; |
| 287 static const char token_type[NUM_TOKENS]; | 287 static const char token_type[NUM_TOKENS]; |
| 288 }; | 288 }; |
| 289 | 289 |
| 290 } } // namespace v8::internal | 290 } } // namespace v8::internal |
| 291 | 291 |
| 292 #endif // V8_TOKEN_H_ | 292 #endif // V8_TOKEN_H_ |
| OLD | NEW |