1
2 package io.github.magwas.inez.parser;
3 import org.antlr.v4.runtime.Lexer;
4 import org.antlr.v4.runtime.CharStream;
5 import org.antlr.v4.runtime.Token;
6 import org.antlr.v4.runtime.TokenStream;
7 import org.antlr.v4.runtime.*;
8 import org.antlr.v4.runtime.atn.*;
9 import org.antlr.v4.runtime.dfa.DFA;
10 import org.antlr.v4.runtime.misc.*;
11
12 @SuppressWarnings({"all", "warnings", "unchecked", "unused", "cast", "CheckReturnValue", "this-escape"})
13 public class BridiLexer extends Lexer {
14 static { RuntimeMetaData.checkVersion("4.13.2", RuntimeMetaData.VERSION); }
15
16 protected static final DFA[] _decisionToDFA;
17 protected static final PredictionContextCache _sharedContextCache =
18 new PredictionContextCache();
19 public static final int
20 PRE=1, POST=2, LITERALPRE=3, LITERALPOST=4, REF=5, NEWLINE=6, TEXT=7;
21 public static String[] channelNames = {
22 "DEFAULT_TOKEN_CHANNEL", "HIDDEN"
23 };
24
25 public static String[] modeNames = {
26 "DEFAULT_MODE"
27 };
28
29 private static String[] makeRuleNames() {
30 return new String[] {
31 "LETTER", "PRE", "POST", "LITERALPRE", "LITERALPOST", "REF", "NEWLINE",
32 "TEXT"
33 };
34 }
35 public static final String[] ruleNames = makeRuleNames();
36
37 private static String[] makeLiteralNames() {
38 return new String[] {
39 null, "'{'", "'}'", "'{['", "']}'", "'@'", "'\\n'"
40 };
41 }
42 private static final String[] _LITERAL_NAMES = makeLiteralNames();
43 private static String[] makeSymbolicNames() {
44 return new String[] {
45 null, "PRE", "POST", "LITERALPRE", "LITERALPOST", "REF", "NEWLINE", "TEXT"
46 };
47 }
48 private static final String[] _SYMBOLIC_NAMES = makeSymbolicNames();
49 public static final Vocabulary VOCABULARY = new VocabularyImpl(_LITERAL_NAMES, _SYMBOLIC_NAMES);
50
51
52
53
54 @Deprecated
55 public static final String[] tokenNames;
56 static {
57 tokenNames = new String[_SYMBOLIC_NAMES.length];
58 for (int i = 0; i < tokenNames.length; i++) {
59 tokenNames[i] = VOCABULARY.getLiteralName(i);
60 if (tokenNames[i] == null) {
61 tokenNames[i] = VOCABULARY.getSymbolicName(i);
62 }
63
64 if (tokenNames[i] == null) {
65 tokenNames[i] = "<INVALID>";
66 }
67 }
68 }
69
70 @Override
71 @Deprecated
72 public String[] getTokenNames() {
73 return tokenNames;
74 }
75
76 @Override
77
78 public Vocabulary getVocabulary() {
79 return VOCABULARY;
80 }
81
82
83 public BridiLexer(CharStream input) {
84 super(input);
85 _interp = new LexerATNSimulator(this,_ATN,_decisionToDFA,_sharedContextCache);
86 }
87
88 @Override
89 public String getGrammarFileName() { return "Bridi.g4"; }
90
91 @Override
92 public String[] getRuleNames() { return ruleNames; }
93
94 @Override
95 public String getSerializedATN() { return _serializedATN; }
96
97 @Override
98 public String[] getChannelNames() { return channelNames; }
99
100 @Override
101 public String[] getModeNames() { return modeNames; }
102
103 @Override
104 public ATN getATN() { return _ATN; }
105
106 public static final String _serializedATN =
107 "\u0004\u0000\u0007&\u0006\uffff\uffff\u0002\u0000\u0007\u0000\u0002\u0001"+
108 "\u0007\u0001\u0002\u0002\u0007\u0002\u0002\u0003\u0007\u0003\u0002\u0004"+
109 "\u0007\u0004\u0002\u0005\u0007\u0005\u0002\u0006\u0007\u0006\u0002\u0007"+
110 "\u0007\u0007\u0001\u0000\u0001\u0000\u0001\u0001\u0001\u0001\u0001\u0002"+
111 "\u0001\u0002\u0001\u0003\u0001\u0003\u0001\u0003\u0001\u0004\u0001\u0004"+
112 "\u0001\u0004\u0001\u0005\u0001\u0005\u0001\u0006\u0001\u0006\u0001\u0007"+
113 "\u0004\u0007#\b\u0007\u000b\u0007\f\u0007$\u0000\u0000\b\u0001\u0000\u0003"+
114 "\u0001\u0005\u0002\u0007\u0003\t\u0004\u000b\u0005\r\u0006\u000f\u0007"+
115 "\u0001\u0000\u0001\t\u0000 $$,,..0:??AZ__az%\u0000\u0003\u0001\u0000"+
116 "\u0000\u0000\u0000\u0005\u0001\u0000\u0000\u0000\u0000\u0007\u0001\u0000"+
117 "\u0000\u0000\u0000\t\u0001\u0000\u0000\u0000\u0000\u000b\u0001\u0000\u0000"+
118 "\u0000\u0000\r\u0001\u0000\u0000\u0000\u0000\u000f\u0001\u0000\u0000\u0000"+
119 "\u0001\u0011\u0001\u0000\u0000\u0000\u0003\u0013\u0001\u0000\u0000\u0000"+
120 "\u0005\u0015\u0001\u0000\u0000\u0000\u0007\u0017\u0001\u0000\u0000\u0000"+
121 "\t\u001a\u0001\u0000\u0000\u0000\u000b\u001d\u0001\u0000\u0000\u0000\r"+
122 "\u001f\u0001\u0000\u0000\u0000\u000f\"\u0001\u0000\u0000\u0000\u0011\u0012"+
123 "\u0007\u0000\u0000\u0000\u0012\u0002\u0001\u0000\u0000\u0000\u0013\u0014"+
124 "\u0005{\u0000\u0000\u0014\u0004\u0001\u0000\u0000\u0000\u0015\u0016\u0005"+
125 "}\u0000\u0000\u0016\u0006\u0001\u0000\u0000\u0000\u0017\u0018\u0005{\u0000"+
126 "\u0000\u0018\u0019\u0005[\u0000\u0000\u0019\b\u0001\u0000\u0000\u0000"+
127 "\u001a\u001b\u0005]\u0000\u0000\u001b\u001c\u0005}\u0000\u0000\u001c\n"+
128 "\u0001\u0000\u0000\u0000\u001d\u001e\u0005@\u0000\u0000\u001e\f\u0001"+
129 "\u0000\u0000\u0000\u001f \u0005\n\u0000\u0000 \u000e\u0001\u0000\u0000"+
130 "\u0000!#\u0003\u0001\u0000\u0000\"!\u0001\u0000\u0000\u0000#$\u0001\u0000"+
131 "\u0000\u0000$\"\u0001\u0000\u0000\u0000$%\u0001\u0000\u0000\u0000%\u0010"+
132 "\u0001\u0000\u0000\u0000\u0002\u0000$\u0000";
133 public static final ATN _ATN =
134 new ATNDeserializer().deserialize(_serializedATN.toCharArray());
135 static {
136 _decisionToDFA = new DFA[_ATN.getNumberOfDecisions()];
137 for (int i = 0; i < _ATN.getNumberOfDecisions(); i++) {
138 _decisionToDFA[i] = new DFA(_ATN.getDecisionState(i), i);
139 }
140 }
141 }