Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
net.sourceforge.pmd.lang.gherkin.ast.GherkinLexer Maven / Gradle / Ivy
// Generated from net/sourceforge/pmd/lang/gherkin/ast/Gherkin.g4 by ANTLR 4.9.3
package net.sourceforge.pmd.lang.gherkin.ast;
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 GherkinLexer extends Lexer {
static { RuntimeMetaData.checkVersion("4.9.3", RuntimeMetaData.VERSION); }
protected static final DFA[] _decisionToDFA;
protected static final PredictionContextCache _sharedContextCache =
new PredictionContextCache();
public static final int
BOMUTF8=1, BOMUTF16=2, WHITESPACE=3, COMMENT=4, STARTCOMMENT=5, DOCSTRING1=6,
DOCSTRING2=7, BACKGROUND=8, EXAMPLES=9, FEATURE=10, RULEX=11, SCENARIO=12,
SCENARIOOUTLINE=13, AND=14, ANYSTEP=15, BUT=16, DATATABLE=17, GIVEN=18,
THEN=19, WHEN=20, TAG=21, PARAMETER=22, NL=23, TOKEN=24;
public static String[] channelNames = {
"DEFAULT_TOKEN_CHANNEL", "HIDDEN"
};
public static String[] modeNames = {
"DEFAULT_MODE"
};
private static String[] makeRuleNames() {
return new String[] {
"BOMUTF8", "BOMUTF16", "WHITESPACE", "COMMENT", "STARTCOMMENT", "DOCSTRING1",
"DOCSTRING2", "BACKGROUND", "EXAMPLES", "FEATURE", "RULEX", "SCENARIO",
"SCENARIOOUTLINE", "AND", "ANYSTEP", "BUT", "DATATABLE", "GIVEN", "THEN",
"WHEN", "TAG", "PARAMETER", "PARID", "ID", "DATATABLEID", "DATATABLEELEMENT",
"IDELEMENT", "ELEMENT", "NL", "TOKEN"
};
}
public static final String[] ruleNames = makeRuleNames();
private static String[] makeLiteralNames() {
return new String[] {
null, "'\u00EF\u00BB\u00BF'", "'\uFEFF'", null, null, null, null, null,
"'Background:'", null, "'Feature:'", "'Rule:'", null, null, "'And'",
"'*'", "'But'", null, "'Given'", "'Then'", "'When'"
};
}
private static final String[] _LITERAL_NAMES = makeLiteralNames();
private static String[] makeSymbolicNames() {
return new String[] {
null, "BOMUTF8", "BOMUTF16", "WHITESPACE", "COMMENT", "STARTCOMMENT",
"DOCSTRING1", "DOCSTRING2", "BACKGROUND", "EXAMPLES", "FEATURE", "RULEX",
"SCENARIO", "SCENARIOOUTLINE", "AND", "ANYSTEP", "BUT", "DATATABLE",
"GIVEN", "THEN", "WHEN", "TAG", "PARAMETER", "NL", "TOKEN"
};
}
private static final String[] _SYMBOLIC_NAMES = makeSymbolicNames();
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 GherkinLexer(CharStream input) {
super(input);
_interp = new LexerATNSimulator(this,_ATN,_decisionToDFA,_sharedContextCache);
}
@Override
public String getGrammarFileName() { return "Gherkin.g4"; }
@Override
public String[] getRuleNames() { return ruleNames; }
@Override
public String getSerializedATN() { return _serializedATN; }
@Override
public String[] getChannelNames() { return channelNames; }
@Override
public String[] getModeNames() { return modeNames; }
@Override
public ATN getATN() { return _ATN; }
public static final String _serializedATN =
"\3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3\16\3\16\3\16\5\16\u00e5\n\16\3\17\3\17\3\17"+
"\3\17\3\20\3\20\3\21\3\21\3\21\3\21\3\22\3\22\5\22\u00f3\n\22\3\23\3\23"+
"\3\23\3\23\3\23\3\23\3\24\3\24\3\24\3\24\3\24\3\25\3\25\3\25\3\25\3\25"+
"\3\26\3\26\6\26\u0107\n\26\r\26\16\26\u0108\3\27\3\27\3\27\3\27\3\27\3"+
"\27\3\27\3\27\3\27\3\27\3\27\3\27\3\27\3\27\3\27\3\27\5\27\u011b\n\27"+
"\3\30\3\30\7\30\u011f\n\30\f\30\16\30\u0122\13\30\3\30\5\30\u0125\n\30"+
"\3\31\3\31\7\31\u0129\n\31\f\31\16\31\u012c\13\31\3\31\3\31\3\31\7\31"+
"\u0131\n\31\f\31\16\31\u0134\13\31\3\32\3\32\7\32\u0138\n\32\f\32\16\32"+
"\u013b\13\32\3\32\3\32\3\32\7\32\u0140\n\32\f\32\16\32\u0143\13\32\3\33"+
"\3\33\3\33\3\33\5\33\u0149\n\33\3\34\3\34\5\34\u014d\n\34\3\35\3\35\3"+
"\36\5\36\u0152\n\36\3\36\3\36\3\37\6\37\u0157\n\37\r\37\16\37\u0158\4"+
"q\177\2 \3\3\5\4\7\5\t\6\13\7\r\b\17\t\21\n\23\13\25\f\27\r\31\16\33\17"+
"\35\20\37\21!\22#\23%\24\'\25)\26+\27-\30/\2\61\2\63\2\65\2\67\29\2;\31"+
"=\32\3\2\n\4\2\13\13\"\"\4\2\f\f\17\17\5\2\62;C\\c|\4\2\"?A\u0080\4\2"+
"#?A\u0080\6\2$$))>>@@\b\2#(*=??A}\177\u0080\u00a2\1\5\2#}\177\u0080\u00a2"+
"\1\2\u0170\2\3\3\2\2\2\2\5\3\2\2\2\2\7\3\2\2\2\2\t\3\2\2\2\2\13\3\2\2"+
"\2\2\r\3\2\2\2\2\17\3\2\2\2\2\21\3\2\2\2\2\23\3\2\2\2\2\25\3\2\2\2\2\27"+
"\3\2\2\2\2\31\3\2\2\2\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3\2"+
"\2ed\3\2\2\2fi\3\2\2\2ge\3\2\2\2gh\3\2\2\2h\f\3\2\2\2ig\3\2\2\2jk\7$\2"+
"\2kl\7$\2\2lm\7$\2\2mq\3\2\2\2np\13\2\2\2on\3\2\2\2ps\3\2\2\2qr\3\2\2"+
"\2qo\3\2\2\2rt\3\2\2\2sq\3\2\2\2tu\7$\2\2uv\7$\2\2vw\7$\2\2w\16\3\2\2"+
"\2xy\7b\2\2yz\7b\2\2z{\7b\2\2{\177\3\2\2\2|~\13\2\2\2}|\3\2\2\2~\u0081"+
"\3\2\2\2\177\u0080\3\2\2\2\177}\3\2\2\2\u0080\u0082\3\2\2\2\u0081\177"+
"\3\2\2\2\u0082\u0083\7b\2\2\u0083\u0084\7b\2\2\u0084\u0085\7b\2\2\u0085"+
"\20\3\2\2\2\u0086\u0087\7D\2\2\u0087\u0088\7c\2\2\u0088\u0089\7e\2\2\u0089"+
"\u008a\7m\2\2\u008a\u008b\7i\2\2\u008b\u008c\7t\2\2\u008c\u008d\7q\2\2"+
"\u008d\u008e\7w\2\2\u008e\u008f\7p\2\2\u008f\u0090\7f\2\2\u0090\u0091"+
"\7<\2\2\u0091\22\3\2\2\2\u0092\u0093\7G\2\2\u0093\u0094\7z\2\2\u0094\u0095"+
"\7c\2\2\u0095\u0096\7o\2\2\u0096\u0097\7r\2\2\u0097\u0098\7n\2\2\u0098"+
"\u0099\7g\2\2\u0099\u009a\7u\2\2\u009a\u00a6\7<\2\2\u009b\u009c\7U\2\2"+
"\u009c\u009d\7e\2\2\u009d\u009e\7g\2\2\u009e\u009f\7p\2\2\u009f\u00a0"+
"\7c\2\2\u00a0\u00a1\7t\2\2\u00a1\u00a2\7k\2\2\u00a2\u00a3\7q\2\2\u00a3"+
"\u00a4\7u\2\2\u00a4\u00a6\7<\2\2\u00a5\u0092\3\2\2\2\u00a5\u009b\3\2\2"+
"\2\u00a6\24\3\2\2\2\u00a7\u00a8\7H\2\2\u00a8\u00a9\7g\2\2\u00a9\u00aa"+
"\7c\2\2\u00aa\u00ab\7v\2\2\u00ab\u00ac\7w\2\2\u00ac\u00ad\7t\2\2\u00ad"+
"\u00ae\7g\2\2\u00ae\u00af\7<\2\2\u00af\26\3\2\2\2\u00b0\u00b1\7T\2\2\u00b1"+
"\u00b2\7w\2\2\u00b2\u00b3\7n\2\2\u00b3\u00b4\7g\2\2\u00b4\u00b5\7<\2\2"+
"\u00b5\30\3\2\2\2\u00b6\u00b7\7G\2\2\u00b7\u00b8\7z\2\2\u00b8\u00b9\7"+
"c\2\2\u00b9\u00ba\7o\2\2\u00ba\u00bb\7r\2\2\u00bb\u00bc\7n\2\2\u00bc\u00bd"+
"\7g\2\2\u00bd\u00c8\7<\2\2\u00be\u00bf\7U\2\2\u00bf\u00c0\7e\2\2\u00c0"+
"\u00c1\7g\2\2\u00c1\u00c2\7p\2\2\u00c2\u00c3\7c\2\2\u00c3\u00c4\7t\2\2"+
"\u00c4\u00c5\7k\2\2\u00c5\u00c6\7q\2\2\u00c6\u00c8\7<\2\2\u00c7\u00b6"+
"\3\2\2\2\u00c7\u00be\3\2\2\2\u00c8\32\3\2\2\2\u00c9\u00ca\7U\2\2\u00ca"+
"\u00cb\7e\2\2\u00cb\u00cc\7g\2\2\u00cc\u00cd\7p\2\2\u00cd\u00ce\7c\2\2"+
"\u00ce\u00cf\7t\2\2\u00cf\u00d0\7k\2\2\u00d0\u00d1\7q\2\2\u00d1\u00d2"+
"\7\"\2\2\u00d2\u00e4\3\2\2\2\u00d3\u00d4\7Q\2\2\u00d4\u00d5\7w\2\2\u00d5"+
"\u00d6\7v\2\2\u00d6\u00d7\7n\2\2\u00d7\u00d8\7k\2\2\u00d8\u00d9\7p\2\2"+
"\u00d9\u00da\7g\2\2\u00da\u00e5\7<\2\2\u00db\u00dc\7V\2\2\u00dc\u00dd"+
"\7g\2\2\u00dd\u00de\7o\2\2\u00de\u00df\7r\2\2\u00df\u00e0\7n\2\2\u00e0"+
"\u00e1\7c\2\2\u00e1\u00e2\7v\2\2\u00e2\u00e3\7g\2\2\u00e3\u00e5\7<\2\2"+
"\u00e4\u00d3\3\2\2\2\u00e4\u00db\3\2\2\2\u00e5\34\3\2\2\2\u00e6\u00e7"+
"\7C\2\2\u00e7\u00e8\7p\2\2\u00e8\u00e9\7f\2\2\u00e9\36\3\2\2\2\u00ea\u00eb"+
"\7,\2\2\u00eb \3\2\2\2\u00ec\u00ed\7D\2\2\u00ed\u00ee\7w\2\2\u00ee\u00ef"+
"\7v\2\2\u00ef\"\3\2\2\2\u00f0\u00f2\7~\2\2\u00f1\u00f3\5\63\32\2\u00f2"+
"\u00f1\3\2\2\2\u00f2\u00f3\3\2\2\2\u00f3$\3\2\2\2\u00f4\u00f5\7I\2\2\u00f5"+
"\u00f6\7k\2\2\u00f6\u00f7\7x\2\2\u00f7\u00f8\7g\2\2\u00f8\u00f9\7p\2\2"+
"\u00f9&\3\2\2\2\u00fa\u00fb\7V\2\2\u00fb\u00fc\7j\2\2\u00fc\u00fd\7g\2"+
"\2\u00fd\u00fe\7p\2\2\u00fe(\3\2\2\2\u00ff\u0100\7Y\2\2\u0100\u0101\7"+
"j\2\2\u0101\u0102\7g\2\2\u0102\u0103\7p\2\2\u0103*\3\2\2\2\u0104\u0106"+
"\7B\2\2\u0105\u0107\59\35\2\u0106\u0105\3\2\2\2\u0107\u0108\3\2\2\2\u0108"+
"\u0106\3\2\2\2\u0108\u0109\3\2\2\2\u0109,\3\2\2\2\u010a\u010b\7>\2\2\u010b"+
"\u010c\5/\30\2\u010c\u010d\7@\2\2\u010d\u011b\3\2\2\2\u010e\u010f\7$\2"+
"\2\u010f\u0110\7>\2\2\u0110\u0111\5/\30\2\u0111\u0112\7@\2\2\u0112\u0113"+
"\7$\2\2\u0113\u011b\3\2\2\2\u0114\u0115\7)\2\2\u0115\u0116\7>\2\2\u0116"+
"\u0117\5/\30\2\u0117\u0118\7@\2\2\u0118\u0119\7)\2\2\u0119\u011b\3\2\2"+
"\2\u011a\u010a\3\2\2\2\u011a\u010e\3\2\2\2\u011a\u0114\3\2\2\2\u011b."+
"\3\2\2\2\u011c\u0124\t\4\2\2\u011d\u011f\t\5\2\2\u011e\u011d\3\2\2\2\u011f"+
"\u0122\3\2\2\2\u0120\u011e\3\2\2\2\u0120\u0121\3\2\2\2\u0121\u0123\3\2"+
"\2\2\u0122\u0120\3\2\2\2\u0123\u0125\t\6\2\2\u0124\u0120\3\2\2\2\u0124"+
"\u0125\3\2\2\2\u0125\60\3\2\2\2\u0126\u0129\5\67\34\2\u0127\u0129\7\""+
"\2\2\u0128\u0126\3\2\2\2\u0128\u0127\3\2\2\2\u0129\u012c\3\2\2\2\u012a"+
"\u0128\3\2\2\2\u012a\u012b\3\2\2\2\u012b\u012d\3\2\2\2\u012c\u012a\3\2"+
"\2\2\u012d\u0132\5\67\34\2\u012e\u0131\5\67\34\2\u012f\u0131\7\"\2\2\u0130"+
"\u012e\3\2\2\2\u0130\u012f\3\2\2\2\u0131\u0134\3\2\2\2\u0132\u0130\3\2"+
"\2\2\u0132\u0133\3\2\2\2\u0133\62\3\2\2\2\u0134\u0132\3\2\2\2\u0135\u0138"+
"\5\65\33\2\u0136\u0138\7\"\2\2\u0137\u0135\3\2\2\2\u0137\u0136\3\2\2\2"+
"\u0138\u013b\3\2\2\2\u0139\u0137\3\2\2\2\u0139\u013a\3\2\2\2\u013a\u013c"+
"\3\2\2\2\u013b\u0139\3\2\2\2\u013c\u0141\5\65\33\2\u013d\u0140\5\65\33"+
"\2\u013e\u0140\7\"\2\2\u013f\u013d\3\2\2\2\u013f\u013e\3\2\2\2\u0140\u0143"+
"\3\2\2\2\u0141\u013f\3\2\2\2\u0141\u0142\3\2\2\2\u0142\64\3\2\2\2\u0143"+
"\u0141\3\2\2\2\u0144\u0149\59\35\2\u0145\u0149\t\7\2\2\u0146\u0147\7^"+
"\2\2\u0147\u0149\7~\2\2\u0148\u0144\3\2\2\2\u0148\u0145\3\2\2\2\u0148"+
"\u0146\3\2\2\2\u0149\66\3\2\2\2\u014a\u014d\59\35\2\u014b\u014d\7~\2\2"+
"\u014c\u014a\3\2\2\2\u014c\u014b\3\2\2\2\u014d8\3\2\2\2\u014e\u014f\t"+
"\b\2\2\u014f:\3\2\2\2\u0150\u0152\7\17\2\2\u0151\u0150\3\2\2\2\u0151\u0152"+
"\3\2\2\2\u0152\u0153\3\2\2\2\u0153\u0154\7\f\2\2\u0154<\3\2\2\2\u0155"+
"\u0157\t\t\2\2\u0156\u0155\3\2\2\2\u0157\u0158\3\2\2\2\u0158\u0156\3\2"+
"\2\2\u0158\u0159\3\2\2\2\u0159>\3\2\2\2\36\2LQW^gq\177\u00a5\u00c7\u00e4"+
"\u00f2\u0108\u011a\u0120\u0124\u0128\u012a\u0130\u0132\u0137\u0139\u013f"+
"\u0141\u0148\u014c\u0151\u0158\5\b\2\2\2\3\2\2\4\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);
}
}
}