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.
38 lines
990 B
38 lines
990 B
5 months ago
|
/**
|
||
|
* An exported enum describing the different kinds of tokens that the
|
||
|
* lexer emits.
|
||
|
*/
|
||
|
var TokenKind;
|
||
|
|
||
|
(function (TokenKind) {
|
||
|
TokenKind['SOF'] = '<SOF>';
|
||
|
TokenKind['EOF'] = '<EOF>';
|
||
|
TokenKind['BANG'] = '!';
|
||
|
TokenKind['DOLLAR'] = '$';
|
||
|
TokenKind['AMP'] = '&';
|
||
|
TokenKind['PAREN_L'] = '(';
|
||
|
TokenKind['PAREN_R'] = ')';
|
||
|
TokenKind['SPREAD'] = '...';
|
||
|
TokenKind['COLON'] = ':';
|
||
|
TokenKind['EQUALS'] = '=';
|
||
|
TokenKind['AT'] = '@';
|
||
|
TokenKind['BRACKET_L'] = '[';
|
||
|
TokenKind['BRACKET_R'] = ']';
|
||
|
TokenKind['BRACE_L'] = '{';
|
||
|
TokenKind['PIPE'] = '|';
|
||
|
TokenKind['BRACE_R'] = '}';
|
||
|
TokenKind['NAME'] = 'Name';
|
||
|
TokenKind['INT'] = 'Int';
|
||
|
TokenKind['FLOAT'] = 'Float';
|
||
|
TokenKind['STRING'] = 'String';
|
||
|
TokenKind['BLOCK_STRING'] = 'BlockString';
|
||
|
TokenKind['COMMENT'] = 'Comment';
|
||
|
})(TokenKind || (TokenKind = {}));
|
||
|
|
||
|
export { TokenKind };
|
||
|
/**
|
||
|
* The enum type representing the token kinds values.
|
||
|
*
|
||
|
* @deprecated Please use `TokenKind`. Will be remove in v17.
|
||
|
*/
|