UNPKG

695 BJavaScriptView Raw
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.TokenKind = void 0;
7
8/**
9 * An exported enum describing the different kinds of tokens that the
10 * lexer emits.
11 */
12var TokenKind = Object.freeze({
13 SOF: '<SOF>',
14 EOF: '<EOF>',
15 BANG: '!',
16 DOLLAR: '$',
17 AMP: '&',
18 PAREN_L: '(',
19 PAREN_R: ')',
20 SPREAD: '...',
21 COLON: ':',
22 EQUALS: '=',
23 AT: '@',
24 BRACKET_L: '[',
25 BRACKET_R: ']',
26 BRACE_L: '{',
27 PIPE: '|',
28 BRACE_R: '}',
29 NAME: 'Name',
30 INT: 'Int',
31 FLOAT: 'Float',
32 STRING: 'String',
33 BLOCK_STRING: 'BlockString',
34 COMMENT: 'Comment'
35});
36/**
37 * The enum type representing the token kinds values.
38 */
39
40exports.TokenKind = TokenKind;