Lines Matching defs:tok
180 static const char* Name(Value tok) {
181 DCHECK(tok < NUM_TOKENS); // tok is unsigned
182 return name_[tok];
186 static bool IsKeyword(Value tok) {
187 return token_type[tok] == 'K';
190 static bool IsAssignmentOp(Value tok) {
191 return INIT_VAR <= tok && tok <= ASSIGN_MOD;
276 static const char* String(Value tok) {
277 DCHECK(tok < NUM_TOKENS); // tok is unsigned.
278 return string_[tok];
283 static int Precedence(Value tok) {
284 DCHECK(tok < NUM_TOKENS); // tok is unsigned.
285 return precedence_[tok];