UNPKG

709 BTypeScriptView Raw
1/**
2 * An exported enum describing the different kinds of tokens that the
3 * lexer emits.
4 */
5declare enum TokenKind {
6 SOF = '<SOF>',
7 EOF = '<EOF>',
8 BANG = '!',
9 DOLLAR = '$',
10 AMP = '&',
11 PAREN_L = '(',
12 PAREN_R = ')',
13 SPREAD = '...',
14 COLON = ':',
15 EQUALS = '=',
16 AT = '@',
17 BRACKET_L = '[',
18 BRACKET_R = ']',
19 BRACE_L = '{',
20 PIPE = '|',
21 BRACE_R = '}',
22 NAME = 'Name',
23 INT = 'Int',
24 FLOAT = 'Float',
25 STRING = 'String',
26 BLOCK_STRING = 'BlockString',
27 COMMENT = 'Comment',
28}
29export { TokenKind };
30/**
31 * The enum type representing the token kinds values.
32 *
33 * @deprecated Please use `TokenKind`. Will be remove in v17.
34 */
35export declare type TokenKindEnum = typeof TokenKind;