UNPKG

561 BJavaScriptView Raw
1/**
2 * An exported enum describing the different kinds of tokens that the
3 * lexer emits.
4 */
5export var TokenKind = Object.freeze({
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});
29/**
30 * The enum type representing the token kinds values.
31 */