mantsonu20.sip-parser-antlr.1.0.0.source-code.SipLexer Maven / Gradle / Ivy
The newest version!
// Generated from Sip.g4 by ANTLR 4.5.3
/**
* Copyright 2016 Pratapi Hemant Patel
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package antlr4;
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 SipLexer extends Lexer {
static { RuntimeMetaData.checkVersion("4.5.3", RuntimeMetaData.VERSION); }
protected static final DFA[] _decisionToDFA;
protected static final PredictionContextCache _sharedContextCache =
new PredictionContextCache();
public static final int
USER_INFO=1, PORT=2, HOST=3, SIP_SCHEME=4, SIPS_SCHEME=5, ESCAPED=6, CH_SEMICOLON=7;
public static String[] modeNames = {
"DEFAULT_MODE"
};
public static final String[] ruleNames = {
"USER_INFO", "PORT", "HOST", "USER", "HOST_NAME", "IPV4ADDRESS", "IPV6REFERENCE",
"IPV6ADDRESS", "DOMAIN_LABEL", "TOP_LABEL", "HEX_PART", "HEX_SEQ", "DIGIT_1_TO_3",
"HEX_DIGIT_1_TO_4", "SIP_SCHEME", "SIPS_SCHEME", "UNRESERVED_ESCAPED",
"UNRESERVED", "ESCAPED", "HEX_DIG", "ALPHA_NUM", "ALPHA", "DIGIT", "USER_UNRESERVED",
"MARK", "CH_AMPERSAND", "CH_EQUAL", "CH_PLUS", "CH_DOLLAR", "CH_COMMA",
"CH_SEMICOLON", "CH_QUESTION", "CH_ATTHERATE", "CH_COLON", "CH_DOT", "CH_RIGHTBRACKET",
"CH_LEFTBRACKET", "CH_FWDSLASH", "CH_PERCENT", "CH_RIGHTBRACE", "CH_LEFTBRACE",
"CH_HYPHEN", "CH_NOT", "CH_STAR", "CH_UNDERSCORE", "CH_CURLYQUOTE", "CH_SINGLEQUOTE",
"CH_TILDE"
};
private static final String[] _LITERAL_NAMES = {
null, null, null, null, "'sip:'", "'sips:'", null, "';'"
};
private static final String[] _SYMBOLIC_NAMES = {
null, "USER_INFO", "PORT", "HOST", "SIP_SCHEME", "SIPS_SCHEME", "ESCAPED",
"CH_SEMICOLON"
};
public static final Vocabulary VOCABULARY = new VocabularyImpl(_LITERAL_NAMES, _SYMBOLIC_NAMES);
/**
* @deprecated Use {@link #VOCABULARY} instead.
*/
@Deprecated
public static final String[] tokenNames;
static {
tokenNames = new String[_SYMBOLIC_NAMES.length];
for (int i = 0; i < tokenNames.length; i++) {
tokenNames[i] = VOCABULARY.getLiteralName(i);
if (tokenNames[i] == null) {
tokenNames[i] = VOCABULARY.getSymbolicName(i);
}
if (tokenNames[i] == null) {
tokenNames[i] = "";
}
}
}
@Override
@Deprecated
public String[] getTokenNames() {
return tokenNames;
}
@Override
public Vocabulary getVocabulary() {
return VOCABULARY;
}
public SipLexer(CharStream input) {
super(input);
_interp = new LexerATNSimulator(this,_ATN,_decisionToDFA,_sharedContextCache);
}
@Override
public String getGrammarFileName() { return "Sip.g4"; }
@Override
public String[] getRuleNames() { return ruleNames; }
@Override
public String getSerializedATN() { return _serializedATN; }
@Override
public String[] getModeNames() { return modeNames; }
@Override
public ATN getATN() { return _ATN; }
public static final String _serializedATN =
"\3\u0430\ud6d1\u8206\uad2d\u4417\uaef1\u8d80\uaadd\2\t\u0145\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\4\b\t\b\4\t\t\t\4\n\t\n\4\13"+
"\t\13\4\f\t\f\4\r\t\r\4\16\t\16\4\17\t\17\4\20\t\20\4\21\t\21\4\22\t\22"+
"\4\23\t\23\4\24\t\24\4\25\t\25\4\26\t\26\4\27\t\27\4\30\t\30\4\31\t\31"+
"\4\32\t\32\4\33\t\33\4\34\t\34\4\35\t\35\4\36\t\36\4\37\t\37\4 \t \4!"+
"\t!\4\"\t\"\4#\t#\4$\t$\4%\t%\4&\t&\4\'\t\'\4(\t(\4)\t)\4*\t*\4+\t+\4"+
",\t,\4-\t-\4.\t.\4/\t/\4\60\t\60\4\61\t\61\3\2\3\2\3\2\3\3\3\3\6\3i\n"+
"\3\r\3\16\3j\3\4\3\4\3\4\5\4p\n\4\3\5\3\5\6\5t\n\5\r\5\16\5u\3\6\3\6\3"+
"\6\7\6{\n\6\f\6\16\6~\13\6\3\6\3\6\5\6\u0082\n\6\3\7\3\7\3\7\3\7\3\7\3"+
"\7\3\7\3\7\3\b\3\b\3\b\3\b\3\t\3\t\3\t\3\t\5\t\u0094\n\t\3\n\3\n\3\n\3"+
"\n\7\n\u009a\n\n\f\n\16\n\u009d\13\n\3\n\3\n\5\n\u00a1\n\n\3\13\3\13\3"+
"\13\3\13\7\13\u00a7\n\13\f\13\16\13\u00aa\13\13\3\13\3\13\5\13\u00ae\n"+
"\13\3\f\3\f\3\f\3\f\3\f\5\f\u00b5\n\f\3\f\3\f\3\f\5\f\u00ba\n\f\5\f\u00bc"+
"\n\f\3\r\3\r\3\r\3\r\7\r\u00c2\n\r\f\r\16\r\u00c5\13\r\3\16\3\16\3\16"+
"\3\16\3\16\3\16\3\16\3\16\5\16\u00cf\n\16\3\17\3\17\3\17\3\17\3\17\3\17"+
"\3\17\3\17\3\17\3\17\3\17\3\17\3\17\5\17\u00de\n\17\3\20\3\20\3\20\3\20"+
"\3\20\3\21\3\21\3\21\3\21\3\21\3\21\3\22\3\22\5\22\u00ed\n\22\3\23\3\23"+
"\5\23\u00f1\n\23\3\24\3\24\3\24\3\24\3\25\3\25\5\25\u00f9\n\25\3\26\3"+
"\26\5\26\u00fd\n\26\3\27\3\27\3\30\3\30\3\31\3\31\3\31\3\31\3\31\3\31"+
"\3\31\3\31\5\31\u010b\n\31\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32"+
"\5\32\u0116\n\32\3\33\3\33\3\34\3\34\3\35\3\35\3\36\3\36\3\37\3\37\3 "+
"\3 \3!\3!\3\"\3\"\3#\3#\3$\3$\3%\3%\3&\3&\3\'\3\'\3(\3(\3)\3)\3*\3*\3"+
"+\3+\3,\3,\3-\3-\3.\3.\3/\3/\3\60\3\60\3\61\3\61\2\2\62\3\3\5\4\7\5\t"+
"\2\13\2\r\2\17\2\21\2\23\2\25\2\27\2\31\2\33\2\35\2\37\6!\7#\2%\2\'\b"+
")\2+\2-\2/\2\61\2\63\2\65\2\67\29\2;\2=\2?\tA\2C\2E\2G\2I\2K\2M\2O\2Q"+
"\2S\2U\2W\2Y\2[\2]\2_\2a\2\3\2\3\4\2C\\c|\u0146\2\3\3\2\2\2\2\5\3\2\2"+
"\2\2\7\3\2\2\2\2\37\3\2\2\2\2!\3\2\2\2\2\'\3\2\2\2\2?\3\2\2\2\3c\3\2\2"+
"\2\5f\3\2\2\2\7o\3\2\2\2\ts\3\2\2\2\13|\3\2\2\2\r\u0083\3\2\2\2\17\u008b"+
"\3\2\2\2\21\u008f\3\2\2\2\23\u00a0\3\2\2\2\25\u00ad\3\2\2\2\27\u00bb\3"+
"\2\2\2\31\u00bd\3\2\2\2\33\u00ce\3\2\2\2\35\u00dd\3\2\2\2\37\u00df\3\2"+
"\2\2!\u00e4\3\2\2\2#\u00ec\3\2\2\2%\u00f0\3\2\2\2\'\u00f2\3\2\2\2)\u00f8"+
"\3\2\2\2+\u00fc\3\2\2\2-\u00fe\3\2\2\2/\u0100\3\2\2\2\61\u010a\3\2\2\2"+
"\63\u0115\3\2\2\2\65\u0117\3\2\2\2\67\u0119\3\2\2\29\u011b\3\2\2\2;\u011d"+
"\3\2\2\2=\u011f\3\2\2\2?\u0121\3\2\2\2A\u0123\3\2\2\2C\u0125\3\2\2\2E"+
"\u0127\3\2\2\2G\u0129\3\2\2\2I\u012b\3\2\2\2K\u012d\3\2\2\2M\u012f\3\2"+
"\2\2O\u0131\3\2\2\2Q\u0133\3\2\2\2S\u0135\3\2\2\2U\u0137\3\2\2\2W\u0139"+
"\3\2\2\2Y\u013b\3\2\2\2[\u013d\3\2\2\2]\u013f\3\2\2\2_\u0141\3\2\2\2a"+
"\u0143\3\2\2\2cd\5\t\5\2de\5C\"\2e\4\3\2\2\2fh\5E#\2gi\5/\30\2hg\3\2\2"+
"\2ij\3\2\2\2jh\3\2\2\2jk\3\2\2\2k\6\3\2\2\2lp\5\13\6\2mp\5\r\7\2np\5\17"+
"\b\2ol\3\2\2\2om\3\2\2\2on\3\2\2\2p\b\3\2\2\2qt\5#\22\2rt\5\61\31\2sq"+
"\3\2\2\2sr\3\2\2\2tu\3\2\2\2us\3\2\2\2uv\3\2\2\2v\n\3\2\2\2wx\5\23\n\2"+
"xy\5G$\2y{\3\2\2\2zw\3\2\2\2{~\3\2\2\2|z\3\2\2\2|}\3\2\2\2}\177\3\2\2"+
"\2~|\3\2\2\2\177\u0081\5\25\13\2\u0080\u0082\5G$\2\u0081\u0080\3\2\2\2"+
"\u0081\u0082\3\2\2\2\u0082\f\3\2\2\2\u0083\u0084\5\33\16\2\u0084\u0085"+
"\5G$\2\u0085\u0086\5\33\16\2\u0086\u0087\5G$\2\u0087\u0088\5\33\16\2\u0088"+
"\u0089\5G$\2\u0089\u008a\5\33\16\2\u008a\16\3\2\2\2\u008b\u008c\5K&\2"+
"\u008c\u008d\5\21\t\2\u008d\u008e\5I%\2\u008e\20\3\2\2\2\u008f\u0093\5"+
"\27\f\2\u0090\u0091\5E#\2\u0091\u0092\5\r\7\2\u0092\u0094\3\2\2\2\u0093"+
"\u0090\3\2\2\2\u0093\u0094\3\2\2\2\u0094\22\3\2\2\2\u0095\u00a1\5+\26"+
"\2\u0096\u009b\5+\26\2\u0097\u009a\5+\26\2\u0098\u009a\5U+\2\u0099\u0097"+
"\3\2\2\2\u0099\u0098\3\2\2\2\u009a\u009d\3\2\2\2\u009b\u0099\3\2\2\2\u009b"+
"\u009c\3\2\2\2\u009c\u009e\3\2\2\2\u009d\u009b\3\2\2\2\u009e\u009f\5+"+
"\26\2\u009f\u00a1\3\2\2\2\u00a0\u0095\3\2\2\2\u00a0\u0096\3\2\2\2\u00a1"+
"\24\3\2\2\2\u00a2\u00ae\5-\27\2\u00a3\u00a8\5-\27\2\u00a4\u00a7\5+\26"+
"\2\u00a5\u00a7\5U+\2\u00a6\u00a4\3\2\2\2\u00a6\u00a5\3\2\2\2\u00a7\u00aa"+
"\3\2\2\2\u00a8\u00a6\3\2\2\2\u00a8\u00a9\3\2\2\2\u00a9\u00ab\3\2\2\2\u00aa"+
"\u00a8\3\2\2\2\u00ab\u00ac\5+\26\2\u00ac\u00ae\3\2\2\2\u00ad\u00a2\3\2"+
"\2\2\u00ad\u00a3\3\2\2\2\u00ae\26\3\2\2\2\u00af\u00bc\5\31\r\2\u00b0\u00b1"+
"\5\31\r\2\u00b1\u00b2\5E#\2\u00b2\u00b4\5E#\2\u00b3\u00b5\5\31\r\2\u00b4"+
"\u00b3\3\2\2\2\u00b4\u00b5\3\2\2\2\u00b5\u00bc\3\2\2\2\u00b6\u00b7\5E"+
"#\2\u00b7\u00b9\5E#\2\u00b8\u00ba\5\31\r\2\u00b9\u00b8\3\2\2\2\u00b9\u00ba"+
"\3\2\2\2\u00ba\u00bc\3\2\2\2\u00bb\u00af\3\2\2\2\u00bb\u00b0\3\2\2\2\u00bb"+
"\u00b6\3\2\2\2\u00bc\30\3\2\2\2\u00bd\u00c3\5\35\17\2\u00be\u00bf\5E#"+
"\2\u00bf\u00c0\5\35\17\2\u00c0\u00c2\3\2\2\2\u00c1\u00be\3\2\2\2\u00c2"+
"\u00c5\3\2\2\2\u00c3\u00c1\3\2\2\2\u00c3\u00c4\3\2\2\2\u00c4\32\3\2\2"+
"\2\u00c5\u00c3\3\2\2\2\u00c6\u00cf\5/\30\2\u00c7\u00c8\5/\30\2\u00c8\u00c9"+
"\5/\30\2\u00c9\u00cf\3\2\2\2\u00ca\u00cb\5/\30\2\u00cb\u00cc\5/\30\2\u00cc"+
"\u00cd\5/\30\2\u00cd\u00cf\3\2\2\2\u00ce\u00c6\3\2\2\2\u00ce\u00c7\3\2"+
"\2\2\u00ce\u00ca\3\2\2\2\u00cf\34\3\2\2\2\u00d0\u00de\5)\25\2\u00d1\u00d2"+
"\5)\25\2\u00d2\u00d3\5)\25\2\u00d3\u00de\3\2\2\2\u00d4\u00d5\5)\25\2\u00d5"+
"\u00d6\5)\25\2\u00d6\u00d7\5)\25\2\u00d7\u00de\3\2\2\2\u00d8\u00d9\5)"+
"\25\2\u00d9\u00da\5)\25\2\u00da\u00db\5)\25\2\u00db\u00dc\5)\25\2\u00dc"+
"\u00de\3\2\2\2\u00dd\u00d0\3\2\2\2\u00dd\u00d1\3\2\2\2\u00dd\u00d4\3\2"+
"\2\2\u00dd\u00d8\3\2\2\2\u00de\36\3\2\2\2\u00df\u00e0\7u\2\2\u00e0\u00e1"+
"\7k\2\2\u00e1\u00e2\7r\2\2\u00e2\u00e3\7<\2\2\u00e3 \3\2\2\2\u00e4\u00e5"+
"\7u\2\2\u00e5\u00e6\7k\2\2\u00e6\u00e7\7r\2\2\u00e7\u00e8\7u\2\2\u00e8"+
"\u00e9\7<\2\2\u00e9\"\3\2\2\2\u00ea\u00ed\5%\23\2\u00eb\u00ed\5\'\24\2"+
"\u00ec\u00ea\3\2\2\2\u00ec\u00eb\3\2\2\2\u00ed$\3\2\2\2\u00ee\u00f1\5"+
"+\26\2\u00ef\u00f1\5\63\32\2\u00f0\u00ee\3\2\2\2\u00f0\u00ef\3\2\2\2\u00f1"+
"&\3\2\2\2\u00f2\u00f3\5O(\2\u00f3\u00f4\5)\25\2\u00f4\u00f5\5)\25\2\u00f5"+
"(\3\2\2\2\u00f6\u00f9\5/\30\2\u00f7\u00f9\4CH\2\u00f8\u00f6\3\2\2\2\u00f8"+
"\u00f7\3\2\2\2\u00f9*\3\2\2\2\u00fa\u00fd\5-\27\2\u00fb\u00fd\5/\30\2"+
"\u00fc\u00fa\3\2\2\2\u00fc\u00fb\3\2\2\2\u00fd,\3\2\2\2\u00fe\u00ff\t"+
"\2\2\2\u00ff.\3\2\2\2\u0100\u0101\4\62;\2\u0101\60\3\2\2\2\u0102\u010b"+
"\5\65\33\2\u0103\u010b\5\67\34\2\u0104\u010b\59\35\2\u0105\u010b\5;\36"+
"\2\u0106\u010b\5=\37\2\u0107\u010b\5? \2\u0108\u010b\5A!\2\u0109\u010b"+
"\5M\'\2\u010a\u0102\3\2\2\2\u010a\u0103\3\2\2\2\u010a\u0104\3\2\2\2\u010a"+
"\u0105\3\2\2\2\u010a\u0106\3\2\2\2\u010a\u0107\3\2\2\2\u010a\u0108\3\2"+
"\2\2\u010a\u0109\3\2\2\2\u010b\62\3\2\2\2\u010c\u0116\5U+\2\u010d\u0116"+
"\5[.\2\u010e\u0116\5G$\2\u010f\u0116\5W,\2\u0110\u0116\5a\61\2\u0111\u0116"+
"\5Y-\2\u0112\u0116\5_\60\2\u0113\u0116\5S*\2\u0114\u0116\5Q)\2\u0115\u010c"+
"\3\2\2\2\u0115\u010d\3\2\2\2\u0115\u010e\3\2\2\2\u0115\u010f\3\2\2\2\u0115"+
"\u0110\3\2\2\2\u0115\u0111\3\2\2\2\u0115\u0112\3\2\2\2\u0115\u0113\3\2"+
"\2\2\u0115\u0114\3\2\2\2\u0116\64\3\2\2\2\u0117\u0118\7(\2\2\u0118\66"+
"\3\2\2\2\u0119\u011a\7?\2\2\u011a8\3\2\2\2\u011b\u011c\7-\2\2\u011c:\3"+
"\2\2\2\u011d\u011e\7&\2\2\u011e<\3\2\2\2\u011f\u0120\7.\2\2\u0120>\3\2"+
"\2\2\u0121\u0122\7=\2\2\u0122@\3\2\2\2\u0123\u0124\7A\2\2\u0124B\3\2\2"+
"\2\u0125\u0126\7B\2\2\u0126D\3\2\2\2\u0127\u0128\7<\2\2\u0128F\3\2\2\2"+
"\u0129\u012a\7\60\2\2\u012aH\3\2\2\2\u012b\u012c\7_\2\2\u012cJ\3\2\2\2"+
"\u012d\u012e\7]\2\2\u012eL\3\2\2\2\u012f\u0130\7\61\2\2\u0130N\3\2\2\2"+
"\u0131\u0132\7\'\2\2\u0132P\3\2\2\2\u0133\u0134\7+\2\2\u0134R\3\2\2\2"+
"\u0135\u0136\7*\2\2\u0136T\3\2\2\2\u0137\u0138\7/\2\2\u0138V\3\2\2\2\u0139"+
"\u013a\7#\2\2\u013aX\3\2\2\2\u013b\u013c\7,\2\2\u013cZ\3\2\2\2\u013d\u013e"+
"\7a\2\2\u013e\\\3\2\2\2\u013f\u0140\7b\2\2\u0140^\3\2\2\2\u0141\u0142"+
"\7)\2\2\u0142`\3\2\2\2\u0143\u0144\7\u0080\2\2\u0144b\3\2\2\2\34\2jos"+
"u|\u0081\u0093\u0099\u009b\u00a0\u00a6\u00a8\u00ad\u00b4\u00b9\u00bb\u00c3"+
"\u00ce\u00dd\u00ec\u00f0\u00f8\u00fc\u010a\u0115\2";
public static final ATN _ATN =
new ATNDeserializer().deserialize(_serializedATN.toCharArray());
static {
_decisionToDFA = new DFA[_ATN.getNumberOfDecisions()];
for (int i = 0; i < _ATN.getNumberOfDecisions(); i++) {
_decisionToDFA[i] = new DFA(_ATN.getDecisionState(i), i);
}
}
}