This repository was archived by the owner on Aug 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJSONLexer.js
More file actions
138 lines (120 loc) · 7.88 KB
/
JSONLexer.js
File metadata and controls
138 lines (120 loc) · 7.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
// Generated from JSON.g4 by ANTLR 4.7
// jshint ignore: start
var antlr4 = require('antlr4/index');
var serializedATN = ["\u0003\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964",
"\u0002\u000e\u0088\b\u0001\u0004\u0002\t\u0002\u0004\u0003\t\u0003\u0004",
"\u0004\t\u0004\u0004\u0005\t\u0005\u0004\u0006\t\u0006\u0004\u0007\t",
"\u0007\u0004\b\t\b\u0004\t\t\t\u0004\n\t\n\u0004\u000b\t\u000b\u0004",
"\f\t\f\u0004\r\t\r\u0004\u000e\t\u000e\u0004\u000f\t\u000f\u0004\u0010",
"\t\u0010\u0004\u0011\t\u0011\u0004\u0012\t\u0012\u0003\u0002\u0003\u0002",
"\u0003\u0003\u0003\u0003\u0003\u0004\u0003\u0004\u0003\u0005\u0003\u0005",
"\u0003\u0006\u0003\u0006\u0003\u0007\u0003\u0007\u0003\b\u0003\b\u0003",
"\b\u0003\b\u0003\b\u0003\t\u0003\t\u0003\t\u0003\t\u0003\t\u0003\t\u0003",
"\n\u0003\n\u0003\n\u0003\n\u0003\n\u0003\u000b\u0003\u000b\u0003\u000b",
"\u0007\u000bE\n\u000b\f\u000b\u000e\u000bH\u000b\u000b\u0003\u000b\u0003",
"\u000b\u0003\f\u0003\f\u0003\f\u0005\fO\n\f\u0003\r\u0003\r\u0003\r",
"\u0003\r\u0003\r\u0003\r\u0003\u000e\u0003\u000e\u0003\u000f\u0005\u000f",
"Z\n\u000f\u0003\u000f\u0003\u000f\u0003\u000f\u0006\u000f_\n\u000f\r",
"\u000f\u000e\u000f`\u0003\u000f\u0005\u000fd\n\u000f\u0003\u000f\u0005",
"\u000fg\n\u000f\u0003\u000f\u0003\u000f\u0003\u000f\u0003\u000f\u0005",
"\u000fm\n\u000f\u0003\u000f\u0005\u000fp\n\u000f\u0003\u0010\u0003\u0010",
"\u0003\u0010\u0007\u0010u\n\u0010\f\u0010\u000e\u0010x\u000b\u0010\u0005",
"\u0010z\n\u0010\u0003\u0011\u0003\u0011\u0005\u0011~\n\u0011\u0003\u0011",
"\u0003\u0011\u0003\u0012\u0006\u0012\u0083\n\u0012\r\u0012\u000e\u0012",
"\u0084\u0003\u0012\u0003\u0012\u0002\u0002\u0013\u0003\u0003\u0005\u0004",
"\u0007\u0005\t\u0006\u000b\u0007\r\b\u000f\t\u0011\n\u0013\u000b\u0015",
"\f\u0017\u0002\u0019\u0002\u001b\u0002\u001d\r\u001f\u0002!\u0002#\u000e",
"\u0003\u0002\n\u0004\u0002$$^^\n\u0002$$11^^ddhhppttvv\u0005\u00022",
";CHch\u0003\u00022;\u0003\u00023;\u0004\u0002GGgg\u0004\u0002--//\u0005",
"\u0002\u000b\f\u000f\u000f\"\"\u0002\u0090\u0002\u0003\u0003\u0002\u0002",
"\u0002\u0002\u0005\u0003\u0002\u0002\u0002\u0002\u0007\u0003\u0002\u0002",
"\u0002\u0002\t\u0003\u0002\u0002\u0002\u0002\u000b\u0003\u0002\u0002",
"\u0002\u0002\r\u0003\u0002\u0002\u0002\u0002\u000f\u0003\u0002\u0002",
"\u0002\u0002\u0011\u0003\u0002\u0002\u0002\u0002\u0013\u0003\u0002\u0002",
"\u0002\u0002\u0015\u0003\u0002\u0002\u0002\u0002\u001d\u0003\u0002\u0002",
"\u0002\u0002#\u0003\u0002\u0002\u0002\u0003%\u0003\u0002\u0002\u0002",
"\u0005\'\u0003\u0002\u0002\u0002\u0007)\u0003\u0002\u0002\u0002\t+\u0003",
"\u0002\u0002\u0002\u000b-\u0003\u0002\u0002\u0002\r/\u0003\u0002\u0002",
"\u0002\u000f1\u0003\u0002\u0002\u0002\u00116\u0003\u0002\u0002\u0002",
"\u0013<\u0003\u0002\u0002\u0002\u0015A\u0003\u0002\u0002\u0002\u0017",
"K\u0003\u0002\u0002\u0002\u0019P\u0003\u0002\u0002\u0002\u001bV\u0003",
"\u0002\u0002\u0002\u001do\u0003\u0002\u0002\u0002\u001fy\u0003\u0002",
"\u0002\u0002!{\u0003\u0002\u0002\u0002#\u0082\u0003\u0002\u0002\u0002",
"%&\u0007}\u0002\u0002&\u0004\u0003\u0002\u0002\u0002\'(\u0007.\u0002",
"\u0002(\u0006\u0003\u0002\u0002\u0002)*\u0007\u007f\u0002\u0002*\b\u0003",
"\u0002\u0002\u0002+,\u0007<\u0002\u0002,\n\u0003\u0002\u0002\u0002-",
".\u0007]\u0002\u0002.\f\u0003\u0002\u0002\u0002/0\u0007_\u0002\u0002",
"0\u000e\u0003\u0002\u0002\u000212\u0007v\u0002\u000223\u0007t\u0002",
"\u000234\u0007w\u0002\u000245\u0007g\u0002\u00025\u0010\u0003\u0002",
"\u0002\u000267\u0007h\u0002\u000278\u0007c\u0002\u000289\u0007n\u0002",
"\u00029:\u0007u\u0002\u0002:;\u0007g\u0002\u0002;\u0012\u0003\u0002",
"\u0002\u0002<=\u0007p\u0002\u0002=>\u0007w\u0002\u0002>?\u0007n\u0002",
"\u0002?@\u0007n\u0002\u0002@\u0014\u0003\u0002\u0002\u0002AF\u0007$",
"\u0002\u0002BE\u0005\u0017\f\u0002CE\n\u0002\u0002\u0002DB\u0003\u0002",
"\u0002\u0002DC\u0003\u0002\u0002\u0002EH\u0003\u0002\u0002\u0002FD\u0003",
"\u0002\u0002\u0002FG\u0003\u0002\u0002\u0002GI\u0003\u0002\u0002\u0002",
"HF\u0003\u0002\u0002\u0002IJ\u0007$\u0002\u0002J\u0016\u0003\u0002\u0002",
"\u0002KN\u0007^\u0002\u0002LO\t\u0003\u0002\u0002MO\u0005\u0019\r\u0002",
"NL\u0003\u0002\u0002\u0002NM\u0003\u0002\u0002\u0002O\u0018\u0003\u0002",
"\u0002\u0002PQ\u0007w\u0002\u0002QR\u0005\u001b\u000e\u0002RS\u0005",
"\u001b\u000e\u0002ST\u0005\u001b\u000e\u0002TU\u0005\u001b\u000e\u0002",
"U\u001a\u0003\u0002\u0002\u0002VW\t\u0004\u0002\u0002W\u001c\u0003\u0002",
"\u0002\u0002XZ\u0007/\u0002\u0002YX\u0003\u0002\u0002\u0002YZ\u0003",
"\u0002\u0002\u0002Z[\u0003\u0002\u0002\u0002[\\\u0005\u001f\u0010\u0002",
"\\^\u00070\u0002\u0002]_\t\u0005\u0002\u0002^]\u0003\u0002\u0002\u0002",
"_`\u0003\u0002\u0002\u0002`^\u0003\u0002\u0002\u0002`a\u0003\u0002\u0002",
"\u0002ac\u0003\u0002\u0002\u0002bd\u0005!\u0011\u0002cb\u0003\u0002",
"\u0002\u0002cd\u0003\u0002\u0002\u0002dp\u0003\u0002\u0002\u0002eg\u0007",
"/\u0002\u0002fe\u0003\u0002\u0002\u0002fg\u0003\u0002\u0002\u0002gh",
"\u0003\u0002\u0002\u0002hi\u0005\u001f\u0010\u0002ij\u0005!\u0011\u0002",
"jp\u0003\u0002\u0002\u0002km\u0007/\u0002\u0002lk\u0003\u0002\u0002",
"\u0002lm\u0003\u0002\u0002\u0002mn\u0003\u0002\u0002\u0002np\u0005\u001f",
"\u0010\u0002oY\u0003\u0002\u0002\u0002of\u0003\u0002\u0002\u0002ol\u0003",
"\u0002\u0002\u0002p\u001e\u0003\u0002\u0002\u0002qz\u00072\u0002\u0002",
"rv\t\u0006\u0002\u0002su\t\u0005\u0002\u0002ts\u0003\u0002\u0002\u0002",
"ux\u0003\u0002\u0002\u0002vt\u0003\u0002\u0002\u0002vw\u0003\u0002\u0002",
"\u0002wz\u0003\u0002\u0002\u0002xv\u0003\u0002\u0002\u0002yq\u0003\u0002",
"\u0002\u0002yr\u0003\u0002\u0002\u0002z \u0003\u0002\u0002\u0002{}\t",
"\u0007\u0002\u0002|~\t\b\u0002\u0002}|\u0003\u0002\u0002\u0002}~\u0003",
"\u0002\u0002\u0002~\u007f\u0003\u0002\u0002\u0002\u007f\u0080\u0005",
"\u001f\u0010\u0002\u0080\"\u0003\u0002\u0002\u0002\u0081\u0083\t\t\u0002",
"\u0002\u0082\u0081\u0003\u0002\u0002\u0002\u0083\u0084\u0003\u0002\u0002",
"\u0002\u0084\u0082\u0003\u0002\u0002\u0002\u0084\u0085\u0003\u0002\u0002",
"\u0002\u0085\u0086\u0003\u0002\u0002\u0002\u0086\u0087\b\u0012\u0002",
"\u0002\u0087$\u0003\u0002\u0002\u0002\u0010\u0002DFNY`cflovy}\u0084",
"\u0003\b\u0002\u0002"].join("");
var atn = new antlr4.atn.ATNDeserializer().deserialize(serializedATN);
var decisionsToDFA = atn.decisionToState.map( function(ds, index) { return new antlr4.dfa.DFA(ds, index); });
function JSONLexer(input) {
antlr4.Lexer.call(this, input);
this._interp = new antlr4.atn.LexerATNSimulator(this, atn, decisionsToDFA, new antlr4.PredictionContextCache());
return this;
}
JSONLexer.prototype = Object.create(antlr4.Lexer.prototype);
JSONLexer.prototype.constructor = JSONLexer;
JSONLexer.EOF = antlr4.Token.EOF;
JSONLexer.T__0 = 1;
JSONLexer.T__1 = 2;
JSONLexer.T__2 = 3;
JSONLexer.T__3 = 4;
JSONLexer.T__4 = 5;
JSONLexer.T__5 = 6;
JSONLexer.T__6 = 7;
JSONLexer.T__7 = 8;
JSONLexer.T__8 = 9;
JSONLexer.STRING = 10;
JSONLexer.NUMBER = 11;
JSONLexer.WS = 12;
JSONLexer.prototype.channelNames = [ "DEFAULT_TOKEN_CHANNEL", "HIDDEN" ];
JSONLexer.prototype.modeNames = [ "DEFAULT_MODE" ];
JSONLexer.prototype.literalNames = [ null, "'{'", "','", "'}'", "':'", "'['",
"']'", "'true'", "'false'", "'null'" ];
JSONLexer.prototype.symbolicNames = [ null, null, null, null, null, null,
null, null, null, null, "STRING",
"NUMBER", "WS" ];
JSONLexer.prototype.ruleNames = [ "T__0", "T__1", "T__2", "T__3", "T__4",
"T__5", "T__6", "T__7", "T__8", "STRING",
"ESC", "UNICODE", "HEX", "NUMBER", "INT",
"EXP", "WS" ];
JSONLexer.prototype.grammarFileName = "JSON.g4";
exports.JSONLexer = JSONLexer;