All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ght.yangtools.yang-parser-impl.1.0.2-Boron-SR2.source-code.YangStatementLexer Maven / Gradle / Ivy

There is a newer version: 14.0.6
Show newest version
// Generated from YangStatementLexer.g4 by ANTLR 4.5.1

package org.opendaylight.yangtools.antlrv4.code.gen;

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 YangStatementLexer extends Lexer {
	static { RuntimeMetaData.checkVersion("4.5.1", RuntimeMetaData.VERSION); }

	protected static final DFA[] _decisionToDFA;
	protected static final PredictionContextCache _sharedContextCache =
		new PredictionContextCache();
	public static final int
		SEMICOLON=1, LEFT_BRACE=2, RIGHT_BRACE=3, SEP=4, IDENTIFIER=5, COLON=6, 
		PLUS=7, LINE_COMMENT=8, START_BLOCK_COMMENT=9, STRING=10, END_BLOCK_COMMENT=11;
	public static final int BLOCK_COMMENT_MODE = 1;
	public static String[] modeNames = {
		"DEFAULT_MODE", "BLOCK_COMMENT_MODE"
	};

	public static final String[] ruleNames = {
		"SEMICOLON", "LEFT_BRACE", "RIGHT_BRACE", "COLON", "PLUS", "LINE_COMMENT", 
		"START_BLOCK_COMMENT", "SEP", "IDENTIFIER", "SUB_STRING", "ESC", "UNICODE", 
		"HEX", "STRING", "END_BLOCK_COMMENT", "BLOCK_COMMENT"
	};

	private static final String[] _LITERAL_NAMES = {
		null, "';'", "'{'", "'}'", null, null, "':'", "'+'", null, "'/*'", null, 
		"'*/'"
	};
	private static final String[] _SYMBOLIC_NAMES = {
		null, "SEMICOLON", "LEFT_BRACE", "RIGHT_BRACE", "SEP", "IDENTIFIER", "COLON", 
		"PLUS", "LINE_COMMENT", "START_BLOCK_COMMENT", "STRING", "END_BLOCK_COMMENT"
	};
	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 YangStatementLexer(CharStream input) {
		super(input);
		_interp = new LexerATNSimulator(this,_ATN,_decisionToDFA,_sharedContextCache);
	}

	@Override
	public String getGrammarFileName() { return "YangStatementLexer.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\r\u009b\b\1\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\3\2"+
		"\3\2\3\2\3\2\3\3\3\3\3\3\3\3\3\4\3\4\3\4\3\4\3\5\3\5\3\5\3\5\3\6\3\6\3"+
		"\6\3\6\3\7\7\7:\n\7\f\7\16\7=\13\7\3\7\3\7\3\7\3\7\7\7C\n\7\f\7\16\7F"+
		"\13\7\3\7\7\7I\n\7\f\7\16\7L\13\7\3\7\3\7\3\b\3\b\3\b\3\b\3\b\3\b\3\t"+
		"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2\2"+
		"km\3\2\2\2lj\3\2\2\2mx\7$\2\2ns\7)\2\2or\5\30\f\2pr\n\7\2\2qo\3\2\2\2"+
		"qp\3\2\2\2ru\3\2\2\2sq\3\2\2\2st\3\2\2\2tv\3\2\2\2us\3\2\2\2vx\7)\2\2"+
		"we\3\2\2\2wn\3\2\2\2x\27\3\2\2\2y|\7^\2\2z}\t\b\2\2{}\5\32\r\2|z\3\2\2"+
		"\2|{\3\2\2\2}\31\3\2\2\2~\177\7w\2\2\177\u0080\5\34\16\2\u0080\u0081\5"+
		"\34\16\2\u0081\u0082\5\34\16\2\u0082\u0083\5\34\16\2\u0083\33\3\2\2\2"+
		"\u0084\u0085\t\t\2\2\u0085\35\3\2\2\2\u0086\u008a\n\n\2\2\u0087\u0089"+
		"\n\13\2\2\u0088\u0087\3\2\2\2\u0089\u008c\3\2\2\2\u008a\u0088\3\2\2\2"+
		"\u008a\u008b\3\2\2\2\u008b\u008f\3\2\2\2\u008c\u008a\3\2\2\2\u008d\u008f"+
		"\5\26\13\2\u008e\u0086\3\2\2\2\u008e\u008d\3\2\2\2\u008f\37\3\2\2\2\u0090"+
		"\u0091\7,\2\2\u0091\u0092\7\61\2\2\u0092\u0093\3\2\2\2\u0093\u0094\b\20"+
		"\13\2\u0094\u0095\b\20\7\2\u0095!\3\2\2\2\u0096\u0097\13\2\2\2\u0097\u0098"+
		"\3\2\2\2\u0098\u0099\b\21\f\2\u0099\u009a\b\21\7\2\u009a#\3\2\2\2\21\2"+
		"\3;DJX`hjqsw|\u008a\u008e\r\t\3\2\t\4\2\t\5\2\t\b\2\t\t\2\b\2\2\7\3\2"+
		"\t\6\2\t\7\2\6\2\2\5\2\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);
		}
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy