Programming-Language-Design / gen / parser / CmmLexer.java
CmmLexer.java
Raw
// Generated from C:/Users/Guillermo Arce/OneDrive - Universidad de Oviedo/Daily/2ndSemester/DLP/Lab/lab_project/src/parser\Cmm.g4 by ANTLR 4.9.1
package parser;
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 CmmLexer extends Lexer {
	static { RuntimeMetaData.checkVersion("4.9.1", RuntimeMetaData.VERSION); }

	protected static final DFA[] _decisionToDFA;
	protected static final PredictionContextCache _sharedContextCache =
		new PredictionContextCache();
	public static final int
		INT_CONSTANT=1, ID=2, REAL_CONSTANT=3, CHAR_CONSTANT=4, LINE_COMMENT=5, 
		BLOCK_COMMENT=6;
	public static String[] channelNames = {
		"DEFAULT_TOKEN_CHANNEL", "HIDDEN"
	};

	public static String[] modeNames = {
		"DEFAULT_MODE"
	};

	private static String[] makeRuleNames() {
		return new String[] {
			"DIGIT", "LETTER", "MANTISSA_EXP", "CHAR_CONTENT", "INT_CONSTANT", "ID", 
			"REAL_CONSTANT", "CHAR_CONSTANT", "LINE_COMMENT", "BLOCK_COMMENT"
		};
	}
	public static final String[] ruleNames = makeRuleNames();

	private static String[] makeLiteralNames() {
		return new String[] {
		};
	}
	private static final String[] _LITERAL_NAMES = makeLiteralNames();
	private static String[] makeSymbolicNames() {
		return new String[] {
			null, "INT_CONSTANT", "ID", "REAL_CONSTANT", "CHAR_CONSTANT", "LINE_COMMENT", 
			"BLOCK_COMMENT"
		};
	}
	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] = "<INVALID>";
			}
		}
	}

	@Override
	@Deprecated
	public String[] getTokenNames() {
		return tokenNames;
	}

	@Override

	public Vocabulary getVocabulary() {
		return VOCABULARY;
	}


	public CmmLexer(CharStream input) {
		super(input);
		_interp = new LexerATNSimulator(this,_ATN,_decisionToDFA,_sharedContextCache);
	}

	@Override
	public String getGrammarFileName() { return "Cmm.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\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964\2\b\u0085\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\3\2\3\2\3\3\3\3\3\4\3\4\5\4\36\n\4\3\4\6\4!\n\4\r\4\16\4\"\3\5\3"+
		"\5\3\5\3\5\3\5\3\5\3\5\5\5,\n\5\3\6\3\6\7\6\60\n\6\f\6\16\6\63\13\6\3"+
		"\6\5\6\66\n\6\3\7\3\7\5\7:\n\7\3\7\3\7\3\7\7\7?\n\7\f\7\16\7B\13\7\3\b"+
		"\6\bE\n\b\r\b\16\bF\3\b\3\b\7\bK\n\b\f\b\16\bN\13\b\3\b\5\bQ\n\b\3\b\7"+
		"\bT\n\b\f\b\16\bW\13\b\3\b\3\b\6\b[\n\b\r\b\16\b\\\3\b\5\b`\n\b\3\b\6"+
		"\bc\n\b\r\b\16\bd\3\b\3\b\5\bi\n\b\3\t\3\t\3\t\3\t\3\n\3\n\3\n\3\n\7\n"+
		"s\n\n\f\n\16\nv\13\n\3\n\3\n\3\13\3\13\3\13\3\13\7\13~\n\13\f\13\16\13"+
		"\u0081\13\13\3\13\3\13\3\13\4t\177\2\f\3\2\5\2\7\2\t\2\13\3\r\4\17\5\21"+
		"\6\23\7\25\b\3\2\7\3\2\62;\4\2C\\c|\4\2GGgg\4\2--//\3\2\63;\2\u0096\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\3\27\3\2\2\2\5\31\3\2\2\2\7\33\3\2\2\2\t+\3\2\2\2\13\65\3\2\2\2"+
		"\r9\3\2\2\2\17h\3\2\2\2\21j\3\2\2\2\23n\3\2\2\2\25y\3\2\2\2\27\30\t\2"+
		"\2\2\30\4\3\2\2\2\31\32\t\3\2\2\32\6\3\2\2\2\33\35\t\4\2\2\34\36\t\5\2"+
		"\2\35\34\3\2\2\2\35\36\3\2\2\2\36 \3\2\2\2\37!\5\3\2\2 \37\3\2\2\2!\""+
		"\3\2\2\2\" \3\2\2\2\"#\3\2\2\2#\b\3\2\2\2$,\13\2\2\2%&\7^\2\2&,\5\13\6"+
		"\2\'(\7^\2\2(,\7p\2\2)*\7^\2\2*,\7v\2\2+$\3\2\2\2+%\3\2\2\2+\'\3\2\2\2"+
		"+)\3\2\2\2,\n\3\2\2\2-\61\t\6\2\2.\60\5\3\2\2/.\3\2\2\2\60\63\3\2\2\2"+
		"\61/\3\2\2\2\61\62\3\2\2\2\62\66\3\2\2\2\63\61\3\2\2\2\64\66\7\62\2\2"+
		"\65-\3\2\2\2\65\64\3\2\2\2\66\f\3\2\2\2\67:\5\5\3\28:\7a\2\29\67\3\2\2"+
		"\298\3\2\2\2:@\3\2\2\2;?\5\5\3\2<?\7a\2\2=?\5\3\2\2>;\3\2\2\2><\3\2\2"+
		"\2>=\3\2\2\2?B\3\2\2\2@>\3\2\2\2@A\3\2\2\2A\16\3\2\2\2B@\3\2\2\2CE\5\3"+
		"\2\2DC\3\2\2\2EF\3\2\2\2FD\3\2\2\2FG\3\2\2\2GH\3\2\2\2HL\7\60\2\2IK\5"+
		"\3\2\2JI\3\2\2\2KN\3\2\2\2LJ\3\2\2\2LM\3\2\2\2MP\3\2\2\2NL\3\2\2\2OQ\5"+
		"\7\4\2PO\3\2\2\2PQ\3\2\2\2Qi\3\2\2\2RT\5\3\2\2SR\3\2\2\2TW\3\2\2\2US\3"+
		"\2\2\2UV\3\2\2\2VX\3\2\2\2WU\3\2\2\2XZ\7\60\2\2Y[\5\3\2\2ZY\3\2\2\2[\\"+
		"\3\2\2\2\\Z\3\2\2\2\\]\3\2\2\2]_\3\2\2\2^`\5\7\4\2_^\3\2\2\2_`\3\2\2\2"+
		"`i\3\2\2\2ac\5\3\2\2ba\3\2\2\2cd\3\2\2\2db\3\2\2\2de\3\2\2\2ef\3\2\2\2"+
		"fg\5\7\4\2gi\3\2\2\2hD\3\2\2\2hU\3\2\2\2hb\3\2\2\2i\20\3\2\2\2jk\7)\2"+
		"\2kl\5\t\5\2lm\7)\2\2m\22\3\2\2\2no\7\61\2\2op\7\61\2\2pt\3\2\2\2qs\13"+
		"\2\2\2rq\3\2\2\2sv\3\2\2\2tu\3\2\2\2tr\3\2\2\2uw\3\2\2\2vt\3\2\2\2wx\7"+
		"\f\2\2x\24\3\2\2\2yz\7\61\2\2z{\7,\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\7,\2\2\u0083\u0084\7\61\2\2\u0084\26\3\2\2\2"+
		"\25\2\35\"+\61\659>@FLPU\\_dht\177\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);
		}
	}
}