1 | ;
|
2 | /*!
|
3 | * Copyright 2016 The ANTLR Project. All rights reserved.
|
4 | * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information.
|
5 | */
|
6 | Object.defineProperty(exports, "__esModule", { value: true });
|
7 | exports.Token = void 0;
|
8 | const IntStream_1 = require("./IntStream");
|
9 | var Token;
|
10 | (function (Token) {
|
11 | Token.INVALID_TYPE = 0;
|
12 | /** During lookahead operations, this "token" signifies we hit rule end ATN state
|
13 | * and did not follow it despite needing to.
|
14 | */
|
15 | Token.EPSILON = -2;
|
16 | Token.MIN_USER_TOKEN_TYPE = 1;
|
17 | Token.EOF = IntStream_1.IntStream.EOF;
|
18 | /** All tokens go to the parser (unless skip() is called in that rule)
|
19 | * on a particular "channel". The parser tunes to a particular channel
|
20 | * so that whitespace etc... can go to the parser on a "hidden" channel.
|
21 | */
|
22 | Token.DEFAULT_CHANNEL = 0;
|
23 | /** Anything on different channel than DEFAULT_CHANNEL is not parsed
|
24 | * by parser.
|
25 | */
|
26 | Token.HIDDEN_CHANNEL = 1;
|
27 | /**
|
28 | * This is the minimum constant value which can be assigned to a
|
29 | * user-defined token channel.
|
30 | *
|
31 | * The non-negative numbers less than {@link #MIN_USER_CHANNEL_VALUE} are
|
32 | * assigned to the predefined channels {@link #DEFAULT_CHANNEL} and
|
33 | * {@link #HIDDEN_CHANNEL}.
|
34 | *
|
35 | * @see `Token.channel`
|
36 | */
|
37 | Token.MIN_USER_CHANNEL_VALUE = 2;
|
38 | })(Token = exports.Token || (exports.Token = {}));
|
39 | //# sourceMappingURL=Token.js.map |
\ | No newline at end of file |