Repository navigation
Expand file tree
/
Copy pathkdgramaticaLexer.js
More file actions
81 lines (69 loc) · 3.74 KB
/
Copy pathkdgramaticaLexer.js
File metadata and controls
81 lines (69 loc) · 3.74 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
// Generated from kdgramatica.g4 by ANTLR 4.13.2
// jshint ignore: start
import antlr4 from 'antlr4';
const serializedATN = [4,0,17,93,6,-1,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,
4,7,4,2,5,7,5,2,6,7,6,2,7,7,7,2,8,7,8,2,9,7,9,2,10,7,10,2,11,7,11,2,12,7,
12,2,13,7,13,2,14,7,14,2,15,7,15,2,16,7,16,1,0,1,0,1,1,1,1,1,2,1,2,1,3,1,
3,1,4,1,4,1,4,1,4,1,5,1,5,1,5,1,5,1,5,1,5,1,6,1,6,1,6,1,6,1,6,1,7,1,7,1,
8,1,8,1,8,1,8,1,8,1,8,1,8,1,9,1,9,1,10,1,10,1,11,1,11,1,12,1,12,1,13,1,13,
1,14,1,14,5,14,80,8,14,10,14,12,14,83,9,14,1,15,1,15,1,16,4,16,88,8,16,11,
16,12,16,89,1,16,1,16,0,0,17,1,1,3,2,5,3,7,4,9,5,11,6,13,7,15,8,17,9,19,
10,21,11,23,12,25,13,27,14,29,15,31,16,33,17,1,0,4,2,0,65,90,97,122,3,0,
48,57,65,90,97,122,1,0,48,57,3,0,9,10,13,13,32,32,94,0,1,1,0,0,0,0,3,1,0,
0,0,0,5,1,0,0,0,0,7,1,0,0,0,0,9,1,0,0,0,0,11,1,0,0,0,0,13,1,0,0,0,0,15,1,
0,0,0,0,17,1,0,0,0,0,19,1,0,0,0,0,21,1,0,0,0,0,23,1,0,0,0,0,25,1,0,0,0,0,
27,1,0,0,0,0,29,1,0,0,0,0,31,1,0,0,0,0,33,1,0,0,0,1,35,1,0,0,0,3,37,1,0,
0,0,5,39,1,0,0,0,7,41,1,0,0,0,9,43,1,0,0,0,11,47,1,0,0,0,13,53,1,0,0,0,15,
58,1,0,0,0,17,60,1,0,0,0,19,67,1,0,0,0,21,69,1,0,0,0,23,71,1,0,0,0,25,73,
1,0,0,0,27,75,1,0,0,0,29,77,1,0,0,0,31,84,1,0,0,0,33,87,1,0,0,0,35,36,5,
40,0,0,36,2,1,0,0,0,37,38,5,41,0,0,38,4,1,0,0,0,39,40,5,123,0,0,40,6,1,0,
0,0,41,42,5,125,0,0,42,8,1,0,0,0,43,44,5,105,0,0,44,45,5,110,0,0,45,46,5,
116,0,0,46,10,1,0,0,0,47,48,5,102,0,0,48,49,5,108,0,0,49,50,5,111,0,0,50,
51,5,97,0,0,51,52,5,116,0,0,52,12,1,0,0,0,53,54,5,99,0,0,54,55,5,104,0,0,
55,56,5,97,0,0,56,57,5,114,0,0,57,14,1,0,0,0,58,59,5,44,0,0,59,16,1,0,0,
0,60,61,5,114,0,0,61,62,5,101,0,0,62,63,5,116,0,0,63,64,5,117,0,0,64,65,
5,114,0,0,65,66,5,110,0,0,66,18,1,0,0,0,67,68,5,59,0,0,68,20,1,0,0,0,69,
70,5,43,0,0,70,22,1,0,0,0,71,72,5,45,0,0,72,24,1,0,0,0,73,74,5,42,0,0,74,
26,1,0,0,0,75,76,5,47,0,0,76,28,1,0,0,0,77,81,7,0,0,0,78,80,7,1,0,0,79,78,
1,0,0,0,80,83,1,0,0,0,81,79,1,0,0,0,81,82,1,0,0,0,82,30,1,0,0,0,83,81,1,
0,0,0,84,85,7,2,0,0,85,32,1,0,0,0,86,88,7,3,0,0,87,86,1,0,0,0,88,89,1,0,
0,0,89,87,1,0,0,0,89,90,1,0,0,0,90,91,1,0,0,0,91,92,6,16,0,0,92,34,1,0,0,
0,3,0,81,89,1,6,0,0];
const atn = new antlr4.atn.ATNDeserializer().deserialize(serializedATN);
const decisionsToDFA = atn.decisionToState.map( (ds, index) => new antlr4.dfa.DFA(ds, index) );
export default class kdgramaticaLexer extends antlr4.Lexer {
static grammarFileName = "kdgramatica.g4";
static channelNames = [ "DEFAULT_TOKEN_CHANNEL", "HIDDEN" ];
static modeNames = [ "DEFAULT_MODE" ];
static literalNames = [ null, "'('", "')'", "'{'", "'}'", "'int'", "'float'",
"'char'", "','", "'return'", "';'", "'+'", "'-'",
"'*'", "'/'" ];
static symbolicNames = [ null, null, null, null, null, null, null, null,
null, null, null, null, null, null, null, "IDENTIFICADOR",
"DIGITO", "WS" ];
static ruleNames = [ "T__0", "T__1", "T__2", "T__3", "T__4", "T__5", "T__6",
"T__7", "T__8", "T__9", "T__10", "T__11", "T__12",
"T__13", "IDENTIFICADOR", "DIGITO", "WS" ];
constructor(input) {
super(input)
this._interp = new antlr4.atn.LexerATNSimulator(this, atn, decisionsToDFA, new antlr4.atn.PredictionContextCache());
}
}
kdgramaticaLexer.EOF = antlr4.Token.EOF;
kdgramaticaLexer.T__0 = 1;
kdgramaticaLexer.T__1 = 2;
kdgramaticaLexer.T__2 = 3;
kdgramaticaLexer.T__3 = 4;
kdgramaticaLexer.T__4 = 5;
kdgramaticaLexer.T__5 = 6;
kdgramaticaLexer.T__6 = 7;
kdgramaticaLexer.T__7 = 8;
kdgramaticaLexer.T__8 = 9;
kdgramaticaLexer.T__9 = 10;
kdgramaticaLexer.T__10 = 11;
kdgramaticaLexer.T__11 = 12;
kdgramaticaLexer.T__12 = 13;
kdgramaticaLexer.T__13 = 14;
kdgramaticaLexer.IDENTIFICADOR = 15;
kdgramaticaLexer.DIGITO = 16;
kdgramaticaLexer.WS = 17;