blob: 7edfefa82100c16a11db2773e18b4f3211e34ffd [file] [log] [blame]
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001// Copyright 2006-2008 the V8 project authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include <stdint.h>
6
7#include "src/parsing/token.h"
8
9namespace v8 {
10namespace internal {
11
12#define T(name, string, precedence) #name,
13const char* const Token::name_[NUM_TOKENS] = {
14 TOKEN_LIST(T, T)
15};
16#undef T
17
18
19#define T(name, string, precedence) string,
20const char* const Token::string_[NUM_TOKENS] = {
21 TOKEN_LIST(T, T)
22};
23#undef T
24
25
26#define T(name, string, precedence) precedence,
27const int8_t Token::precedence_[NUM_TOKENS] = {
28 TOKEN_LIST(T, T)
29};
30#undef T
31
32
33#define KT(a, b, c) 'T',
34#define KK(a, b, c) 'K',
35const char Token::token_type[] = {
36 TOKEN_LIST(KT, KK)
37};
38#undef KT
39#undef KK
40
41} // namespace internal
42} // namespace v8