io.rivulet.BasicJavaScriptLexer Maven / Gradle / Ivy
The newest version!
// Generated from io/rivulet/BasicJavaScript.g4 by ANTLR 4.0
package io.rivulet;
import java.util.LinkedList;
import org.antlr.v4.runtime.Lexer;
import org.antlr.v4.runtime.CharStream;
import org.antlr.v4.runtime.Token;
import org.antlr.v4.runtime.TokenStream;
import org.antlr.v4.runtime.*;
import org.antlr.v4.runtime.atn.*;
import org.antlr.v4.runtime.dfa.DFA;
import org.antlr.v4.runtime.misc.*;
@SuppressWarnings({"all", "warnings", "unchecked", "unused", "cast"})
public class BasicJavaScriptLexer extends Lexer {
protected static final DFA[] _decisionToDFA;
protected static final PredictionContextCache _sharedContextCache =
new PredictionContextCache();
public static final int
MULTILINE_COMMENT=1, SINGLE_LINE_COMMENT=2, DOUBLE_QUOTE_STRING=3, SINGLE_QUOTE_STRING=4,
BACKTICK_STRING=5, OTHER=6;
public static String[] modeNames = {
"DEFAULT_MODE"
};
public static final String[] tokenNames = {
"",
"MULTILINE_COMMENT", "SINGLE_LINE_COMMENT", "DOUBLE_QUOTE_STRING", "SINGLE_QUOTE_STRING",
"BACKTICK_STRING", "OTHER"
};
public static final String[] ruleNames = {
"MULTILINE_COMMENT", "SINGLE_LINE_COMMENT", "DOUBLE_QUOTE_STRING", "SINGLE_QUOTE_STRING",
"BACKTICK_STRING", "OTHER"
};
public BasicJavaScriptLexer(CharStream input) {
super(input);
_interp = new LexerATNSimulator(this,_ATN,_decisionToDFA,_sharedContextCache);
}
@Override
public String getGrammarFileName() { return "BasicJavaScript.g4"; }
@Override
public String[] getTokenNames() { return tokenNames; }
@Override
public String[] getRuleNames() { return ruleNames; }
@Override
public String[] getModeNames() { return modeNames; }
@Override
public ATN getATN() { return _ATN; }
public static final String _serializedATN =
"\2\4\bS\b\1\4\2\t\2\4\3\t\3\4\4\t\4\4\5\t\5\4\6\t\6\4\7\t\7\3\2\3\2\3"+
"\2\3\2\7\2\24\n\2\f\2\16\2\27\13\2\3\2\3\2\3\2\5\2\34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2\2\2\65\63\3"+
"\2\2\2\668\t\4\2\2\67\66\3\2\2\28\b\3\2\2\29?\7)\2\2:;\7^\2\2;>\13\2\2"+
"\2<>\n\5\2\2=:\3\2\2\2=<\3\2\2\2>A\3\2\2\2?=\3\2\2\2?@\3\2\2\2@C\3\2\2"+
"\2A?\3\2\2\2BD\t\6\2\2CB\3\2\2\2D\n\3\2\2\2EK\7b\2\2FG\7^\2\2GJ\13\2\2"+
"\2HJ\n\7\2\2IF\3\2\2\2IH\3\2\2\2JM\3\2\2\2KI\3\2\2\2KL\3\2\2\2LO\3\2\2"+
"\2MK\3\2\2\2NP\t\b\2\2ON\3\2\2\2P\f\3\2\2\2QR\13\2\2\2R\16\3\2\2\2\21"+
"\2\25\33#\'+\61\63\67=?CIKO";
public static final ATN _ATN =
ATNSimulator.deserialize(_serializedATN.toCharArray());
static {
_decisionToDFA = new DFA[_ATN.getNumberOfDecisions()];
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy