// Generated from D:/Guillermo Arce/Desktop/lab_project/src/parser\Cmm.g4 by ANTLR 4.9.1 package parser; import ast.*; import ast.definition.*; import ast.definition.classes.*; import ast.expression.*; import ast.expression.classes.*; import ast.statement.*; import ast.statement.classes.*; import ast.type.*; import ast.type.classes.*; 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 T__0=1, T__1=2, T__2=3, T__3=4, T__4=5, T__5=6, T__6=7, T__7=8, T__8=9, T__9=10, T__10=11, T__11=12, T__12=13, T__13=14, T__14=15, T__15=16, T__16=17, T__17=18, T__18=19, T__19=20, T__20=21, T__21=22, T__22=23, T__23=24, T__24=25, T__25=26, T__26=27, T__27=28, T__28=29, T__29=30, T__30=31, T__31=32, T__32=33, T__33=34, T__34=35, T__35=36, INT_CONSTANT=37, ID=38, REAL_CONSTANT=39, CHAR_CONSTANT=40, LINE_COMMENT=41, BLOCK_COMMENT=42, WHITE_SPACE=43, NEW_LINE=44, TAB=45, CARRIAGE_RETURN=46; public static String[] channelNames = { "DEFAULT_TOKEN_CHANNEL", "HIDDEN" }; public static String[] modeNames = { "DEFAULT_MODE" }; private static String[] makeRuleNames() { return new String[] { "T__0", "T__1", "T__2", "T__3", "T__4", "T__5", "T__6", "T__7", "T__8", "T__9", "T__10", "T__11", "T__12", "T__13", "T__14", "T__15", "T__16", "T__17", "T__18", "T__19", "T__20", "T__21", "T__22", "T__23", "T__24", "T__25", "T__26", "T__27", "T__28", "T__29", "T__30", "T__31", "T__32", "T__33", "T__34", "T__35", "DIGIT", "LETTER", "MANTISSA_EXP", "CHAR_CONTENT", "INT_CONSTANT", "ID", "REAL_CONSTANT", "CHAR_CONSTANT", "LINE_COMMENT", "BLOCK_COMMENT", "WHITE_SPACE", "NEW_LINE", "TAB", "CARRIAGE_RETURN" }; } public static final String[] ruleNames = makeRuleNames(); private static String[] makeLiteralNames() { return new String[] { null, "'main'", "'('", "')'", "'['", "']'", "'.'", "'-'", "'!'", "'*'", "'/'", "'%'", "'+'", "'>'", "'>='", "'<'", "'<='", "'!='", "'=='", "'&&'", "'||'", "','", "'read'", "';'", "'write'", "'='", "'return'", "'if'", "'else'", "'while'", "'{'", "'}'", "'int'", "'char'", "'double'", "'struct'", "'void'", null, null, null, null, null, null, null, "'\n'", "'\t'", "'\r'" }; } private static final String[] _LITERAL_NAMES = makeLiteralNames(); private static String[] makeSymbolicNames() { return new String[] { null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, "INT_CONSTANT", "ID", "REAL_CONSTANT", "CHAR_CONSTANT", "LINE_COMMENT", "BLOCK_COMMENT", "WHITE_SPACE", "NEW_LINE", "TAB", "CARRIAGE_RETURN" }; } 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\60\u0164\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\4\62\t\62\4\63\t\63\3\2"+ "\3\2\3\2\3\2\3\2\3\3\3\3\3\4\3\4\3\5\3\5\3\6\3\6\3\7\3\7\3\b\3\b\3\t\3"+ "\t\3\n\3\n\3\13\3\13\3\f\3\f\3\r\3\r\3\16\3\16\3\17\3\17\3\17\3\20\3\20"+ "\3\21\3\21\3\21\3\22\3\22\3\22\3\23\3\23\3\23\3\24\3\24\3\24\3\25\3\25"+ "\3\25\3\26\3\26\3\27\3\27\3\27\3\27\3\27\3\30\3\30\3\31\3\31\3\31\3\31"+ "\3\31\3\31\3\32\3\32\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\34\3\34\3\34"+ "\3\35\3\35\3\35\3\35\3\35\3\36\3\36\3\36\3\36\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\'\3\'\3(\3(\5(\u00e5\n(\3(\6(\u00e8\n(\r"+ "(\16(\u00e9\3)\3)\3)\3)\3)\3)\3)\5)\u00f3\n)\3*\3*\7*\u00f7\n*\f*\16*"+ "\u00fa\13*\3*\5*\u00fd\n*\3+\3+\5+\u0101\n+\3+\3+\3+\7+\u0106\n+\f+\16"+ "+\u0109\13+\3,\6,\u010c\n,\r,\16,\u010d\3,\3,\7,\u0112\n,\f,\16,\u0115"+ "\13,\3,\5,\u0118\n,\3,\7,\u011b\n,\f,\16,\u011e\13,\3,\3,\6,\u0122\n,"+ "\r,\16,\u0123\3,\5,\u0127\n,\3,\6,\u012a\n,\r,\16,\u012b\3,\3,\5,\u0130"+ "\n,\3-\3-\3-\3-\3.\3.\3.\3.\7.\u013a\n.\f.\16.\u013d\13.\3.\5.\u0140\n"+ ".\3.\3.\3/\3/\3/\3/\7/\u0148\n/\f/\16/\u014b\13/\3/\3/\3/\3/\3/\3\60\6"+ "\60\u0153\n\60\r\60\16\60\u0154\3\60\3\60\3\61\3\61\3\61\3\61\3\62\3\62"+ "\3\62\3\62\3\63\3\63\3\63\3\63\4\u013b\u0149\2\64\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/\31\61\32\63\33\65\34\67\359\36;\37= ?!A\"C#E$G%I&K\2M\2"+ "O\2Q\2S\'U(W)Y*[+],_-a.c/e\60\3\2\b\3\2\62;\4\2C\\c|\4\2GGgg\4\2--//\3"+ "\2\63;\4\3\f\f\17\17\2\u0176\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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\2\2\2Y\u0131\3\2\2\2[\u0135\3\2\2\2]\u0143\3\2\2\2_\u0152\3\2\2\2a"+ "\u0158\3\2\2\2c\u015c\3\2\2\2e\u0160\3\2\2\2gh\7o\2\2hi\7c\2\2ij\7k\2"+ "\2jk\7p\2\2k\4\3\2\2\2lm\7*\2\2m\6\3\2\2\2no\7+\2\2o\b\3\2\2\2pq\7]\2"+ "\2q\n\3\2\2\2rs\7_\2\2s\f\3\2\2\2tu\7\60\2\2u\16\3\2\2\2vw\7/\2\2w\20"+ "\3\2\2\2xy\7#\2\2y\22\3\2\2\2z{\7,\2\2{\24\3\2\2\2|}\7\61\2\2}\26\3\2"+ "\2\2~\177\7\'\2\2\177\30\3\2\2\2\u0080\u0081\7-\2\2\u0081\32\3\2\2\2\u0082"+ "\u0083\7@\2\2\u0083\34\3\2\2\2\u0084\u0085\7@\2\2\u0085\u0086\7?\2\2\u0086"+ "\36\3\2\2\2\u0087\u0088\7>\2\2\u0088 \3\2\2\2\u0089\u008a\7>\2\2\u008a"+ "\u008b\7?\2\2\u008b\"\3\2\2\2\u008c\u008d\7#\2\2\u008d\u008e\7?\2\2\u008e"+ "$\3\2\2\2\u008f\u0090\7?\2\2\u0090\u0091\7?\2\2\u0091&\3\2\2\2\u0092\u0093"+ "\7(\2\2\u0093\u0094\7(\2\2\u0094(\3\2\2\2\u0095\u0096\7~\2\2\u0096\u0097"+ "\7~\2\2\u0097*\3\2\2\2\u0098\u0099\7.\2\2\u0099,\3\2\2\2\u009a\u009b\7"+ "t\2\2\u009b\u009c\7g\2\2\u009c\u009d\7c\2\2\u009d\u009e\7f\2\2\u009e."+ "\3\2\2\2\u009f\u00a0\7=\2\2\u00a0\60\3\2\2\2\u00a1\u00a2\7y\2\2\u00a2"+ "\u00a3\7t\2\2\u00a3\u00a4\7k\2\2\u00a4\u00a5\7v\2\2\u00a5\u00a6\7g\2\2"+ "\u00a6\62\3\2\2\2\u00a7\u00a8\7?\2\2\u00a8\64\3\2\2\2\u00a9\u00aa\7t\2"+ "\2\u00aa\u00ab\7g\2\2\u00ab\u00ac\7v\2\2\u00ac\u00ad\7w\2\2\u00ad\u00ae"+ "\7t\2\2\u00ae\u00af\7p\2\2\u00af\66\3\2\2\2\u00b0\u00b1\7k\2\2\u00b1\u00b2"+ "\7h\2\2\u00b28\3\2\2\2\u00b3\u00b4\7g\2\2\u00b4\u00b5\7n\2\2\u00b5\u00b6"+ "\7u\2\2\u00b6\u00b7\7g\2\2\u00b7:\3\2\2\2\u00b8\u00b9\7y\2\2\u00b9\u00ba"+ "\7j\2\2\u00ba\u00bb\7k\2\2\u00bb\u00bc\7n\2\2\u00bc\u00bd\7g\2\2\u00bd"+ "<\3\2\2\2\u00be\u00bf\7}\2\2\u00bf>\3\2\2\2\u00c0\u00c1\7\177\2\2\u00c1"+ "@\3\2\2\2\u00c2\u00c3\7k\2\2\u00c3\u00c4\7p\2\2\u00c4\u00c5\7v\2\2\u00c5"+ "B\3\2\2\2\u00c6\u00c7\7e\2\2\u00c7\u00c8\7j\2\2\u00c8\u00c9\7c\2\2\u00c9"+ "\u00ca\7t\2\2\u00caD\3\2\2\2\u00cb\u00cc\7f\2\2\u00cc\u00cd\7q\2\2\u00cd"+ "\u00ce\7w\2\2\u00ce\u00cf\7d\2\2\u00cf\u00d0\7n\2\2\u00d0\u00d1\7g\2\2"+ "\u00d1F\3\2\2\2\u00d2\u00d3\7u\2\2\u00d3\u00d4\7v\2\2\u00d4\u00d5\7t\2"+ "\2\u00d5\u00d6\7w\2\2\u00d6\u00d7\7e\2\2\u00d7\u00d8\7v\2\2\u00d8H\3\2"+ "\2\2\u00d9\u00da\7x\2\2\u00da\u00db\7q\2\2\u00db\u00dc\7k\2\2\u00dc\u00dd"+ "\7f\2\2\u00ddJ\3\2\2\2\u00de\u00df\t\2\2\2\u00dfL\3\2\2\2\u00e0\u00e1"+ "\t\3\2\2\u00e1N\3\2\2\2\u00e2\u00e4\t\4\2\2\u00e3\u00e5\t\5\2\2\u00e4"+ "\u00e3\3\2\2\2\u00e4\u00e5\3\2\2\2\u00e5\u00e7\3\2\2\2\u00e6\u00e8\5K"+ "&\2\u00e7\u00e6\3\2\2\2\u00e8\u00e9\3\2\2\2\u00e9\u00e7\3\2\2\2\u00e9"+ "\u00ea\3\2\2\2\u00eaP\3\2\2\2\u00eb\u00f3\13\2\2\2\u00ec\u00ed\7^\2\2"+ "\u00ed\u00f3\5S*\2\u00ee\u00ef\7^\2\2\u00ef\u00f3\7p\2\2\u00f0\u00f1\7"+ "^\2\2\u00f1\u00f3\7v\2\2\u00f2\u00eb\3\2\2\2\u00f2\u00ec\3\2\2\2\u00f2"+ "\u00ee\3\2\2\2\u00f2\u00f0\3\2\2\2\u00f3R\3\2\2\2\u00f4\u00f8\t\6\2\2"+ "\u00f5\u00f7\5K&\2\u00f6\u00f5\3\2\2\2\u00f7\u00fa\3\2\2\2\u00f8\u00f6"+ "\3\2\2\2\u00f8\u00f9\3\2\2\2\u00f9\u00fd\3\2\2\2\u00fa\u00f8\3\2\2\2\u00fb"+ "\u00fd\7\62\2\2\u00fc\u00f4\3\2\2\2\u00fc\u00fb\3\2\2\2\u00fdT\3\2\2\2"+ "\u00fe\u0101\5M\'\2\u00ff\u0101\7a\2\2\u0100\u00fe\3\2\2\2\u0100\u00ff"+ "\3\2\2\2\u0101\u0107\3\2\2\2\u0102\u0106\5M\'\2\u0103\u0106\7a\2\2\u0104"+ "\u0106\5K&\2\u0105\u0102\3\2\2\2\u0105\u0103\3\2\2\2\u0105\u0104\3\2\2"+ "\2\u0106\u0109\3\2\2\2\u0107\u0105\3\2\2\2\u0107\u0108\3\2\2\2\u0108V"+ "\3\2\2\2\u0109\u0107\3\2\2\2\u010a\u010c\5K&\2\u010b\u010a\3\2\2\2\u010c"+ "\u010d\3\2\2\2\u010d\u010b\3\2\2\2\u010d\u010e\3\2\2\2\u010e\u010f\3\2"+ "\2\2\u010f\u0113\7\60\2\2\u0110\u0112\5K&\2\u0111\u0110\3\2\2\2\u0112"+ "\u0115\3\2\2\2\u0113\u0111\3\2\2\2\u0113\u0114\3\2\2\2\u0114\u0117\3\2"+ "\2\2\u0115\u0113\3\2\2\2\u0116\u0118\5O(\2\u0117\u0116\3\2\2\2\u0117\u0118"+ "\3\2\2\2\u0118\u0130\3\2\2\2\u0119\u011b\5K&\2\u011a\u0119\3\2\2\2\u011b"+ "\u011e\3\2\2\2\u011c\u011a\3\2\2\2\u011c\u011d\3\2\2\2\u011d\u011f\3\2"+ "\2\2\u011e\u011c\3\2\2\2\u011f\u0121\7\60\2\2\u0120\u0122\5K&\2\u0121"+ "\u0120\3\2\2\2\u0122\u0123\3\2\2\2\u0123\u0121\3\2\2\2\u0123\u0124\3\2"+ "\2\2\u0124\u0126\3\2\2\2\u0125\u0127\5O(\2\u0126\u0125\3\2\2\2\u0126\u0127"+ "\3\2\2\2\u0127\u0130\3\2\2\2\u0128\u012a\5K&\2\u0129\u0128\3\2\2\2\u012a"+ "\u012b\3\2\2\2\u012b\u0129\3\2\2\2\u012b\u012c\3\2\2\2\u012c\u012d\3\2"+ "\2\2\u012d\u012e\5O(\2\u012e\u0130\3\2\2\2\u012f\u010b\3\2\2\2\u012f\u011c"+ "\3\2\2\2\u012f\u0129\3\2\2\2\u0130X\3\2\2\2\u0131\u0132\7)\2\2\u0132\u0133"+ "\5Q)\2\u0133\u0134\7)\2\2\u0134Z\3\2\2\2\u0135\u0136\7\61\2\2\u0136\u0137"+ "\7\61\2\2\u0137\u013b\3\2\2\2\u0138\u013a\13\2\2\2\u0139\u0138\3\2\2\2"+ "\u013a\u013d\3\2\2\2\u013b\u013c\3\2\2\2\u013b\u0139\3\2\2\2\u013c\u013f"+ "\3\2\2\2\u013d\u013b\3\2\2\2\u013e\u0140\t\7\2\2\u013f\u013e\3\2\2\2\u0140"+ "\u0141\3\2\2\2\u0141\u0142\b.\2\2\u0142\\\3\2\2\2\u0143\u0144\7\61\2\2"+ "\u0144\u0145\7,\2\2\u0145\u0149\3\2\2\2\u0146\u0148\13\2\2\2\u0147\u0146"+ "\3\2\2\2\u0148\u014b\3\2\2\2\u0149\u014a\3\2\2\2\u0149\u0147\3\2\2\2\u014a"+ "\u014c\3\2\2\2\u014b\u0149\3\2\2\2\u014c\u014d\7,\2\2\u014d\u014e\7\61"+ "\2\2\u014e\u014f\3\2\2\2\u014f\u0150\b/\2\2\u0150^\3\2\2\2\u0151\u0153"+ "\7\"\2\2\u0152\u0151\3\2\2\2\u0153\u0154\3\2\2\2\u0154\u0152\3\2\2\2\u0154"+ "\u0155\3\2\2\2\u0155\u0156\3\2\2\2\u0156\u0157\b\60\2\2\u0157`\3\2\2\2"+ "\u0158\u0159\7\f\2\2\u0159\u015a\3\2\2\2\u015a\u015b\b\61\2\2\u015bb\3"+ "\2\2\2\u015c\u015d\7\13\2\2\u015d\u015e\3\2\2\2\u015e\u015f\b\62\2\2\u015f"+ "d\3\2\2\2\u0160\u0161\7\17\2\2\u0161\u0162\3\2\2\2\u0162\u0163\b\63\2"+ "\2\u0163f\3\2\2\2\27\2\u00e4\u00e9\u00f2\u00f8\u00fc\u0100\u0105\u0107"+ "\u010d\u0113\u0117\u011c\u0123\u0126\u012b\u012f\u013b\u013f\u0149\u0154"+ "\3\b\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); } } }