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

org.jgrapht.io.GmlLexer Maven / Gradle / Ivy

There is a newer version: 1.5.2
Show newest version
// Generated from org/jgrapht/io/Gml.g4 by ANTLR 4.6
package org.jgrapht.io;
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"})
class GmlLexer extends Lexer {
	static { RuntimeMetaData.checkVersion("4.6", RuntimeMetaData.VERSION); }

	protected static final DFA[] _decisionToDFA;
	protected static final PredictionContextCache _sharedContextCache =
		new PredictionContextCache();
	public static final int
		T__0=1, T__1=2, NUMBER=3, STRING=4, ID=5, COMMENT=6, WS=7;
	public static String[] modeNames = {
		"DEFAULT_MODE"
	};

	public static final String[] ruleNames = {
		"T__0", "T__1", "NUMBER", "DIGIT", "LETTER", "STRING", "ID", "COMMENT", 
		"WS"
	};

	private static final String[] _LITERAL_NAMES = {
		null, "'['", "']'"
	};
	private static final String[] _SYMBOLIC_NAMES = {
		null, null, null, "NUMBER", "STRING", "ID", "COMMENT", "WS"
	};
	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 GmlLexer(CharStream input) {
		super(input);
		_interp = new LexerATNSimulator(this,_ATN,_decisionToDFA,_sharedContextCache);
	}

	@Override
	public String getGrammarFileName() { return "Gml.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[\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\3\2\3\2"+
		"\3\3\3\3\3\4\5\4\33\n\4\3\4\3\4\6\4\37\n\4\r\4\16\4 \3\4\6\4$\n\4\r\4"+
		"\16\4%\3\4\3\4\7\4*\n\4\f\4\16\4-\13\4\5\4/\n\4\5\4\61\n\4\3\5\3\5\3\6"+
		"\3\6\3\7\3\7\3\7\3\7\7\7;\n\7\f\7\16\7>\13\7\3\7\3\7\3\b\3\b\3\b\7\bE"+
		"\n\b\f\b\16\bH\13\b\3\t\3\t\7\tL\n\t\f\t\16\tO\13\t\3\t\3\t\3\t\3\t\3"+
		"\n\6\nV\n\n\r\n\16\nW\3\n\3\n\4\3\2\2\2<=\3\2\2\2<:\3\2\2\2=?\3\2\2\2>"+
		"<\3\2\2\2?@\7$\2\2@\16\3\2\2\2AF\5\13\6\2BE\5\13\6\2CE\5\t\5\2DB\3\2\2"+
		"\2DC\3\2\2\2EH\3\2\2\2FD\3\2\2\2FG\3\2\2\2G\20\3\2\2\2HF\3\2\2\2IM\7%"+
		"\2\2JL\13\2\2\2KJ\3\2\2\2LO\3\2\2\2MN\3\2\2\2MK\3\2\2\2NP\3\2\2\2OM\3"+
		"\2\2\2PQ\7\f\2\2QR\3\2\2\2RS\b\t\2\2S\22\3\2\2\2TV\t\4\2\2UT\3\2\2\2V"+
		"W\3\2\2\2WU\3\2\2\2WX\3\2\2\2XY\3\2\2\2YZ\b\n\2\2Z\24\3\2\2\2\17\2\32"+
		" %+.\60:




© 2015 - 2024 Weber Informatics LLC | Privacy Policy