You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
709 B
36 lines
709 B
4 months ago
|
/**
|
||
|
* An exported enum describing the different kinds of tokens that the
|
||
|
* lexer emits.
|
||
|
*/
|
||
|
declare enum TokenKind {
|
||
|
SOF = '<SOF>',
|
||
|
EOF = '<EOF>',
|
||
|
BANG = '!',
|
||
|
DOLLAR = '$',
|
||
|
AMP = '&',
|
||
|
PAREN_L = '(',
|
||
|
PAREN_R = ')',
|
||
|
SPREAD = '...',
|
||
|
COLON = ':',
|
||
|
EQUALS = '=',
|
||
|
AT = '@',
|
||
|
BRACKET_L = '[',
|
||
|
BRACKET_R = ']',
|
||
|
BRACE_L = '{',
|
||
|
PIPE = '|',
|
||
|
BRACE_R = '}',
|
||
|
NAME = 'Name',
|
||
|
INT = 'Int',
|
||
|
FLOAT = 'Float',
|
||
|
STRING = 'String',
|
||
|
BLOCK_STRING = 'BlockString',
|
||
|
COMMENT = 'Comment',
|
||
|
}
|
||
|
export { TokenKind };
|
||
|
/**
|
||
|
* The enum type representing the token kinds values.
|
||
|
*
|
||
|
* @deprecated Please use `TokenKind`. Will be remove in v17.
|
||
|
*/
|
||
|
export declare type TokenKindEnum = typeof TokenKind;
|