/
iezhelev
/
dictionary_proccessor
Обзор
Документация
Войти
/
iezhelev
/
dictionary_proccessor
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
DictionaryParser.java
2 769 строк
118 KB
iezhelev
first_commit
26 окт 2025, 23:51
26 окт 2025, 23:51
ef1bcdc
Код
Авторство
О чём код?
// Generated from src/main/antlr4/com/dictionary/DictionaryParser.g4 by ANTLR 4.9.3 package com.dictionary; //package com.dictionary; import org.antlr.v4.runtime.atn.*; import org.antlr.v4.runtime.dfa.DFA; import org.antlr.v4.runtime.*; import org.antlr.v4.runtime.misc.*; import org.antlr.v4.runtime.tree.*; import java.util.List; import java.util.Iterator; import java.util.ArrayList; @SuppressWarnings({"all", "warnings", "unchecked", "unused", "cast"}) public class DictionaryParser extends Parser { static { RuntimeMetaData.checkVersion("4.9.3", RuntimeMetaData.VERSION); } protected static final DFA[] _decisionToDFA; protected static final PredictionContextCache _sharedContextCache = new PredictionContextCache(); public static final int LEFT_SQUARE=1, RIGHT_SQUARE=2, LEFT_CURLY=3, RIGHT_CURLY=4, LBRACKET=5, RBRACKET=6, DE_LBRACKET=7, DE_RBRACKET=8, COLON=9, SEMICOLON=10, COMMA=11, DASH=12, EQUALS=13, PLUS=14, QUOTE=15, APOSTROPHE=16, DOT=17, EXCLAMATION=18, EXCLAMATION_OPENING=19, QUESTION=20, QUESTION_OPENING=21, ELLIPSIS=22, SLASH=23, PIPE=24, TILDE=25, LOZENGE=26, CONTROL_CHAR=27, NUMERO=28, HASHTAG=29, DEF_NUMBER=30, EX_NUMBER=31, NUMBER=32, ADJ=33, ADV=34, CONJ=35, DET=36, INTERJ=37, NOUN=38, NUM=39, PARTICULA=40, PREP=41, PRON=42, V=43, VERB=44, M=45, F=46, AMB=47, COM=48, NEUT=49, SG=50, PL=51, INF=52, GER=53, PART=54, IND=55, SUBJ=56, IMP=57, IMPERS=58, PERS=59, DEM=60, POS=61, REFL=62, REL=63, INTERR=64, INDET=65, EXCLAM=66, GEN=67, UD=68, AV=69, AVTO=70, ZD=71, AM=72, ARG=73, BOL=74, VEN=75, GVAT=76, GOND=77, KOL=78, MEKS=79, NIK=80, PAR=81, PR=82, SALV=83, UR=84, CHILI=85, EKV=86, TSAM=87, YUAM=88, DOM_RESP=89, KOSTA_RIKA=90, GOROD=91, GOSUDARSTVO=92, ANAT=93, ANGL=94, ARHIT=95, ASTR=96, BIOL=97, BOT=98, BUHG=99, GEOGR=100, GEOL=101, GEOM=102, GERALD=103, GORN=104, ZOOL=105, ISK=106, IST=107, KART=108, KINO=109, LAT=110, LINGV=111, LIT=112, MAT=113, MED=114, METEO=115, MIN=116, MIF=117, NUMIZM=118, POLIGR=119, PROGR=120, PSIHOL=121, RADIO=122, RELG=123, STROIT=124, TEATR=125, TEKST=126, TELEV=127, TEH=128, TIPIGR=129, FARM=130, FIZ=131, FIZIOL=132, FILOS=133, FIN=134, FOTO=135, HIM=136, HIR=137, SHAHM=138, EK=139, EL=140, YUR=141, SH=142, KOMP=143, ART=144, BEZL=145, VIN_P=146, DAT_P=147, GRAM=148, ED=149, ZR=150, MR=151, SR=152, MN=153, SRAVN_ST=154, SUSH=155, PRIL=156, OTRITS=157, BRAN=158, GRUB=159, DETSK=160, ZHARG=161, IRON=162, KNIZHN=163, MALOUPOTR=164, NEOL=165, NEUPOTR=166, PEREN=167, POGOV=168, POSL=169, POET=170, PRIAM=171, PREZR=172, PRENEBR=173, PRIAM_I_PEREN=174, PROST=175, RAZG=176, UST=177, SHUTL=178, VOEN=179, VOPR_PREDL=180, V_RAZN_ZNACH=181, DIP=182, ZHIV=183, ZVUKOPODR=184, INDI=185, KOM=186, KUL=187, MOR=188, MUZ=189, OHOT=190, POLIT=191, SM=192, SOBIR=193, SPORT=194, TAVR=195, TZH=196, TK=197, UPOTR=198, ITD=199, ITP=200, BIBL=201, TSERK=202, BOM=203, LINE_BREAK=204, TEXT_SPACE=205, WORD=206, COMMENT=207; public static final int RULE_dictionary = 0, RULE_wordEntry = 1, RULE_grammaticalTag = 2, RULE_partOfSpeech = 3, RULE_gender = 4, RULE_number = 5, RULE_verbForm = 6, RULE_pronounType = 7, RULE_otherCategory = 8, RULE_russianAbbreviation = 9, RULE_definition = 10, RULE_definitionElements = 11, RULE_otherElement = 12, RULE_simpledefinition = 13, RULE_examples = 14, RULE_exampleMarker = 15, RULE_example = 16, RULE_exampleElement = 17, RULE_usageexample = 18, RULE_textContent = 19; private static String[] makeRuleNames() { return new String[] { "dictionary", "wordEntry", "grammaticalTag", "partOfSpeech", "gender", "number", "verbForm", "pronounType", "otherCategory", "russianAbbreviation", "definition", "definitionElements", "otherElement", "simpledefinition", "examples", "exampleMarker", "example", "exampleElement", "usageexample", "textContent" }; } public static final String[] ruleNames = makeRuleNames(); private static String[] makeLiteralNames() { return new String[] { null, "'['", "']'", "'{'", "'}'", "'('", "')'", "'\u0412\u00AB'", "'\u0412\u00BB'", "':'", "';'", "','", null, "'='", "'+'", "'\"'", "'''", "'.'", "'!'", "'\u0412\u040E'", "'?'", "'\u0412\u0457'", "'...'", "'/'", "'|'", "'~'", "'\u0432\u2014\u0409'", "'\u0002'", "'\u0432\u201E\u2013'", "'#'", null, null, null, "'adj'", "'adv'", "'conj'", "'det'", "'interj'", "'noun'", "'num'", "'part\u0413\u00ADcula'", "'prep'", "'pron'", "'v'", "'verb'", "'m'", "'f'", "'amb'", "'com'", "'neut'", "'sg'", "'pl'", "'inf'", "'ger'", "'part'", "'ind'", "'subj'", "'imp'", "'impers'", "'pers'", "'dem'", "'pos'", "'refl'", "'rel'", "'interr'", "'indet'", "'exclam'", "'gen'", null, "'\u0420\u00B0\u0420\u0406'", "'\u0420\u00B0\u0420\u0406\u0421\u201A\u0420\u0455'", "'\u0420\u00B6.\u0420\u0491.'", "'\u0420\u0452\u0420\u0458.'", "'\u0420\u0452\u0421\u0402\u0420\u0456'", "'\u0420\u2018\u0420\u0455\u0420\u00BB'", "'\u0420\u2019\u0420\u00B5\u0420\u0405'", "'\u0420\u201C\u0420\u0406\u0420\u00B0\u0421\u201A'", "'\u0420\u201C\u0420\u0455\u0420\u0405\u0420\u0491'", "'\u0420\u0459\u0420\u0455\u0420\u00BB'", "'\u0420\u045A.'", "'\u0420\u045C\u0420\u0451\u0420\u0454'", "'\u0420\u045F\u0420\u00B0\u0421\u0402'", "'\u0420\u045F.\u0420\u00A0.'", "'\u0420\u040E\u0420\u00B0\u0420\u00BB\u0421\u040A\u0420\u0406'", "'\u0420\u0408\u0421\u0402'", "'\u0420\u00A7'", "'\u0420\u00AD\u0420\u0454\u0420\u0406'", "'\u0420\u00A6. \u0420\u0452\u0420\u0458.'", "'\u0420\u00AE. \u0420\u0452\u0420\u0458.'", "'\u0420\u201D\u0420\u0455\u0420\u0458. \u0420\u00A0.'", "'\u0420\u0459.\u0420\u00A0.'", "'\u0420\u0456.'", "'\u0420\u0456\u0420\u0455\u0421\u0403-\u0420\u0406\u0420\u0455'", "'\u0420\u00B0\u0420\u0405\u0420\u00B0\u0421\u201A'", "'\u0420\u00B0\u0420\u0405\u0420\u0456\u0420\u00BB'", "'\u0420\u00B0\u0421\u0402\u0421\u2026\u0420\u0451\u0421\u201A'", "'\u0420\u00B0\u0421\u0403\u0421\u201A\u0421\u0402'", "'\u0420\u00B1\u0420\u0451\u0420\u0455\u0420\u00BB'", "'\u0420\u00B1\u0420\u0455\u0421\u201A'", "'\u0420\u00B1\u0421\u0453\u0421\u2026\u0420\u0456'", "'\u0420\u0456\u0420\u00B5\u0420\u0455\u0420\u0456\u0421\u0402'", "'\u0420\u0456\u0420\u00B5\u0420\u0455\u0420\u00BB'", "'\u0420\u0456\u0420\u00B5\u0420\u0455\u0420\u0458'", "'\u0420\u0456\u0420\u00B5\u0421\u0402\u0420\u00B0\u0420\u00BB\u0421\u040A\u0420\u0491'", "'\u0420\u0456\u0420\u0455\u0421\u0402\u0420\u0405'", "'\u0420\u00B7\u0420\u0455\u0420\u0455\u0420\u00BB'", "'\u0420\u0451\u0421\u0403\u0420\u0454.'", "'\u0420\u0451\u0421\u0403\u0421\u201A'", "'\u0420\u0454\u0420\u00B0\u0421\u0402\u0421\u201A'", "'\u0420\u0454\u0420\u0451\u0420\u0405\u0420\u0455'", "'\u0420\u00BB\u0420\u00B0\u0421\u201A'", "'\u0420\u00BB\u0420\u0451\u0420\u0405\u0420\u0456\u0420\u0406'", "'\u0420\u00BB\u0420\u0451\u0421\u201A'", "'\u0420\u0458\u0420\u00B0\u0421\u201A'", "'\u0420\u0458\u0420\u00B5\u0420\u0491'", "'\u0420\u0458\u0420\u00B5\u0421\u201A\u0420\u00B5\u0420\u0455'", "'\u0420\u0458\u0420\u0451\u0420\u0405'", "'\u0420\u0458\u0420\u0451\u0421\u201E'", "'\u0420\u0405\u0421\u0453\u0420\u0458\u0420\u0451\u0420\u00B7\u0420\u0458'", "'\u0420\u0457\u0420\u0455\u0420\u00BB\u0420\u0451\u0420\u0456\u0421\u0402'", "'\u0420\u0457\u0421\u0402\u0420\u0455\u0420\u0456\u0421\u0402'", "'\u0420\u0457\u0421\u0403\u0420\u0451\u0421\u2026\u0420\u0455\u0420\u00BB'", "'\u0421\u0402\u0420\u00B0\u0420\u0491\u0420\u0451\u0420\u0455'", "'\u0421\u0402\u0420\u00B5\u0420\u00BB'", "'\u0421\u0403\u0421\u201A\u0421\u0402\u0420\u0455\u0420\u0451\u0421\u201A'", "'\u0421\u201A\u0420\u00B5\u0420\u00B0\u0421\u201A\u0421\u0402'", "'\u0421\u201A\u0420\u00B5\u0420\u0454\u0421\u0403\u0421\u201A'", "'\u0421\u201A\u0420\u00B5\u0420\u00BB\u0420\u00B5\u0420\u0406'", "'\u0421\u201A\u0420\u00B5\u0421\u2026'", "'\u0421\u201A\u0420\u0451\u0420\u0457\u0420\u0455\u0420\u0456\u0421\u0402'", "'\u0421\u201E\u0420\u00B0\u0421\u0402\u0420\u0458'", "'\u0421\u201E\u0420\u0451\u0420\u00B7'", "'\u0421\u201E\u0420\u0451\u0420\u00B7\u0420\u0451\u0420\u0455\u0420\u00BB'", "'\u0421\u201E\u0420\u0451\u0420\u00BB\u0420\u0455\u0421\u0403'", "'\u0421\u201E\u0420\u0451\u0420\u0405'", "'\u0421\u201E\u0420\u0455\u0421\u201A\u0420\u0455'", "'\u0421\u2026\u0420\u0451\u0420\u0458'", "'\u0421\u2026\u0420\u0451\u0421\u0402'", "'\u0421\u20AC\u0420\u00B0\u0421\u2026\u0420\u0458'", "'\u0421\u040C\u0420\u0454'", "'\u0421\u040C\u0420\u00BB'", "'\u0421\u040B\u0421\u0402'", "'\u0421\u0403.\u0421\u2026.'", "'\u0420\u0454\u0420\u0455\u0420\u0458\u0420\u0457'", "'\u0420\u00B0\u0421\u0402\u0421\u201A'", "'\u0420\u00B1\u0420\u00B5\u0420\u00B7\u0420\u00BB'", "'\u0420\u0406\u0420\u0451\u0420\u0405. \u0420\u0457.'", "'\u0420\u0491\u0420\u00B0\u0421\u201A. \u0420\u0457.'", "'\u0420\u0456\u0421\u0402\u0420\u00B0\u0420\u0458'", "'\u0420\u00B5\u0420\u0491. \u0421\u2021.'", "'\u0420\u00B6. \u0421\u0402.'", "'\u0420\u0458. \u0421\u0402.'", "'\u0421\u0403\u0421\u0402. \u0421\u0402.'", null, "'\u0421\u0403\u0421\u0402\u0420\u00B0\u0420\u0406\u0420\u0405. \u0421\u0403\u0421\u201A.'", "'\u0421\u0403\u0421\u0453\u0421\u2030'", "'\u0420\u0457\u0421\u0402\u0420\u0451\u0420\u00BB'", "'\u0420\u0455\u0421\u201A\u0421\u0402\u0420\u0451\u0421\u2020'", "'\u0420\u00B1\u0421\u0402\u0420\u00B0\u0420\u0405'", "'\u0420\u0456\u0421\u0402\u0421\u0453\u0420\u00B1'", "'\u0420\u0491\u0420\u00B5\u0421\u201A\u0421\u0403\u0420\u0454'", "'\u0420\u00B6\u0420\u00B0\u0421\u0402\u0420\u0456'", "'\u0420\u0451\u0421\u0402\u0420\u0455\u0420\u0405'", "'\u0420\u0454\u0420\u0405\u0420\u0451\u0420\u00B6\u0420\u0405'", "'\u0420\u0458\u0420\u00B0\u0420\u00BB\u0420\u0455\u0421\u0453\u0420\u0457\u0420\u0455\u0421\u201A\u0421\u0402'", "'\u0420\u0405\u0420\u00B5\u0420\u0455\u0420\u00BB'", "'\u0420\u0405\u0420\u00B5\u0421\u0453\u0420\u0457\u0420\u0455\u0421\u201A\u0421\u0402'", "'\u0420\u0457\u0420\u00B5\u0421\u0402\u0420\u00B5\u0420\u0405'", "'\u0420\u0457\u0420\u0455\u0420\u0456\u0420\u0455\u0420\u0406'", "'\u0420\u0457\u0420\u0455\u0421\u0403\u0420\u00BB'", "'\u0420\u0457\u0420\u0455\u0421\u040C\u0421\u201A'", "'\u0420\u0457\u0421\u0402'", "'\u0420\u0457\u0421\u0402\u0420\u00B5\u0420\u00B7\u0421\u0402'", "'\u0420\u0457\u0421\u0402\u0420\u00B5\u0420\u0405\u0420\u00B5\u0420\u00B1\u0421\u0402'", "'\u0420\u0457\u0421\u0402 \u0420\u0451 \u0420\u0457\u0420\u00B5\u0421\u0402\u0420\u00B5\u0420\u0405'", "'\u0420\u0457\u0421\u0402\u0420\u0455\u0421\u0403\u0421\u201A'", "'\u0421\u0402\u0420\u00B0\u0420\u00B7\u0420\u0456'", "'\u0421\u0453\u0421\u0403\u0421\u201A'", "'\u0421\u20AC\u0421\u0453\u0421\u201A\u0420\u00BB'", "'\u0420\u0406\u0420\u0455\u0420\u00B5\u0420\u0405'", "'\u0420\u0406\u0420\u0455\u0420\u0457\u0421\u0402. \u0420\u0457\u0421\u0402\u0420\u00B5\u0420\u0491\u0420\u00BB.'", "'\u0420\u0406 \u0421\u0402\u0420\u00B0\u0420\u00B7\u0420\u0405. \u0420\u00B7\u0420\u0405\u0420\u00B0\u0421\u2021.'", "'\u0420\u0491\u0420\u0451\u0420\u0457'", "'\u0420\u00B6\u0420\u0451\u0420\u0406'", "'\u0420\u00B7\u0420\u0406\u0421\u0453\u0420\u0454\u0420\u0455\u0420\u0457\u0420\u0455\u0420\u0491\u0421\u0402'", "'\u0420\u0451\u0420\u0405\u0420\u0491'", "'\u0420\u0454\u0420\u0455\u0420\u0458'", "'\u0420\u0454\u0421\u0453\u0420\u00BB'", "'\u0420\u0458\u0420\u0455\u0421\u0402'", "'\u0420\u0458\u0421\u0453\u0420\u00B7'", "'\u0420\u0455\u0421\u2026\u0420\u0455\u0421\u201A'", "'\u0420\u0457\u0420\u0455\u0420\u00BB\u0420\u0451\u0421\u201A'", "'\u0421\u0403\u0420\u0458'", "'\u0421\u0403\u0420\u0455\u0420\u00B1\u0420\u0451\u0421\u0402'", "'\u0421\u0403\u0420\u0457\u0420\u0455\u0421\u0402\u0421\u201A.'", "'\u0421\u201A\u0420\u00B0\u0420\u0406\u0421\u0402'", "'\u0421\u201A\u0420\u00B6'", "'\u0421\u201A\u0420\u0454'", "'\u0421\u0453\u0420\u0457\u0420\u0455\u0421\u201A\u0421\u0402.'", "'\u0420\u0451 \u0421\u201A. \u0420\u0491.'", "'\u0420\u0451 \u0421\u201A. \u0420\u0457.'", "'\u0420\u00B1\u0420\u0451\u0420\u00B1\u0420\u00BB'", "'\u0421\u2020\u0420\u00B5\u0421\u0402\u0420\u0454'", "'\uFEFF'" }; } private static final String[] _LITERAL_NAMES = makeLiteralNames(); private static String[] makeSymbolicNames() { return new String[] { null, "LEFT_SQUARE", "RIGHT_SQUARE", "LEFT_CURLY", "RIGHT_CURLY", "LBRACKET", "RBRACKET", "DE_LBRACKET", "DE_RBRACKET", "COLON", "SEMICOLON", "COMMA", "DASH", "EQUALS", "PLUS", "QUOTE", "APOSTROPHE", "DOT", "EXCLAMATION", "EXCLAMATION_OPENING", "QUESTION", "QUESTION_OPENING", "ELLIPSIS", "SLASH", "PIPE", "TILDE", "LOZENGE", "CONTROL_CHAR", "NUMERO", "HASHTAG", "DEF_NUMBER", "EX_NUMBER", "NUMBER", "ADJ", "ADV", "CONJ", "DET", "INTERJ", "NOUN", "NUM", "PARTICULA", "PREP", "PRON", "V", "VERB", "M", "F", "AMB", "COM", "NEUT", "SG", "PL", "INF", "GER", "PART", "IND", "SUBJ", "IMP", "IMPERS", "PERS", "DEM", "POS", "REFL", "REL", "INTERR", "INDET", "EXCLAM", "GEN", "UD", "AV", "AVTO", "ZD", "AM", "ARG", "BOL", "VEN", "GVAT", "GOND", "KOL", "MEKS", "NIK", "PAR", "PR", "SALV", "UR", "CHILI", "EKV", "TSAM", "YUAM", "DOM_RESP", "KOSTA_RIKA", "GOROD", "GOSUDARSTVO", "ANAT", "ANGL", "ARHIT", "ASTR", "BIOL", "BOT", "BUHG", "GEOGR", "GEOL", "GEOM", "GERALD", "GORN", "ZOOL", "ISK", "IST", "KART", "KINO", "LAT", "LINGV", "LIT", "MAT", "MED", "METEO", "MIN", "MIF", "NUMIZM", "POLIGR", "PROGR", "PSIHOL", "RADIO", "RELG", "STROIT", "TEATR", "TEKST", "TELEV", "TEH", "TIPIGR", "FARM", "FIZ", "FIZIOL", "FILOS", "FIN", "FOTO", "HIM", "HIR", "SHAHM", "EK", "EL", "YUR", "SH", "KOMP", "ART", "BEZL", "VIN_P", "DAT_P", "GRAM", "ED", "ZR", "MR", "SR", "MN", "SRAVN_ST", "SUSH", "PRIL", "OTRITS", "BRAN", "GRUB", "DETSK", "ZHARG", "IRON", "KNIZHN", "MALOUPOTR", "NEOL", "NEUPOTR", "PEREN", "POGOV", "POSL", "POET", "PRIAM", "PREZR", "PRENEBR", "PRIAM_I_PEREN", "PROST", "RAZG", "UST", "SHUTL", "VOEN", "VOPR_PREDL", "V_RAZN_ZNACH", "DIP", "ZHIV", "ZVUKOPODR", "INDI", "KOM", "KUL", "MOR", "MUZ", "OHOT", "POLIT", "SM", "SOBIR", "SPORT", "TAVR", "TZH", "TK", "UPOTR", "ITD", "ITP", "BIBL", "TSERK", "BOM", "LINE_BREAK", "TEXT_SPACE", "WORD", "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; } @Override public String getGrammarFileName() { return "DictionaryParser.g4"; } @Override public String[] getRuleNames() { return ruleNames; } @Override public String getSerializedATN() { return _serializedATN; } @Override public ATN getATN() { return _ATN; } public DictionaryParser(TokenStream input) { super(input); _interp = new ParserATNSimulator(this,_ATN,_decisionToDFA,_sharedContextCache); } public static class DictionaryContext extends ParserRuleContext { public TerminalNode EOF() { return getToken(DictionaryParser.EOF, 0); } public List<WordEntryContext> wordEntry() { return getRuleContexts(WordEntryContext.class); } public WordEntryContext wordEntry(int i) { return getRuleContext(WordEntryContext.class,i); } public DictionaryContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_dictionary; } @Override public void enterRule(ParseTreeListener listener) { if ( listener instanceof DictionaryParserListener ) ((DictionaryParserListener)listener).enterDictionary(this); } @Override public void exitRule(ParseTreeListener listener) { if ( listener instanceof DictionaryParserListener ) ((DictionaryParserListener)listener).exitDictionary(this); } @Override public <T> T accept(ParseTreeVisitor<? extends T> visitor) { if ( visitor instanceof DictionaryParserVisitor ) return ((DictionaryParserVisitor<? extends T>)visitor).visitDictionary(this); else return visitor.visitChildren(this); } } public final DictionaryContext dictionary() throws RecognitionException { DictionaryContext _localctx = new DictionaryContext(_ctx, getState()); enterRule(_localctx, 0, RULE_dictionary); int _la; try { enterOuterAlt(_localctx, 1); { setState(41); _errHandler.sync(this); _la = _input.LA(1); do { { { setState(40); wordEntry(); } } setState(43); _errHandler.sync(this); _la = _input.LA(1); } while ( _la==WORD ); setState(45); match(EOF); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class WordEntryContext extends ParserRuleContext { public Token headWord; public TerminalNode LINE_BREAK() { return getToken(DictionaryParser.LINE_BREAK, 0); } public TerminalNode WORD() { return getToken(DictionaryParser.WORD, 0); } public List<DefinitionContext> definition() { return getRuleContexts(DefinitionContext.class); } public DefinitionContext definition(int i) { return getRuleContext(DefinitionContext.class,i); } public ExamplesContext examples() { return getRuleContext(ExamplesContext.class,0); } public List<UsageexampleContext> usageexample() { return getRuleContexts(UsageexampleContext.class); } public UsageexampleContext usageexample(int i) { return getRuleContext(UsageexampleContext.class,i); } public WordEntryContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_wordEntry; } @Override public void enterRule(ParseTreeListener listener) { if ( listener instanceof DictionaryParserListener ) ((DictionaryParserListener)listener).enterWordEntry(this); } @Override public void exitRule(ParseTreeListener listener) { if ( listener instanceof DictionaryParserListener ) ((DictionaryParserListener)listener).exitWordEntry(this); } @Override public <T> T accept(ParseTreeVisitor<? extends T> visitor) { if ( visitor instanceof DictionaryParserVisitor ) return ((DictionaryParserVisitor<? extends T>)visitor).visitWordEntry(this); else return visitor.visitChildren(this); } } public final WordEntryContext wordEntry() throws RecognitionException { WordEntryContext _localctx = new WordEntryContext(_ctx, getState()); enterRule(_localctx, 2, RULE_wordEntry); int _la; try { enterOuterAlt(_localctx, 1); { setState(47); ((WordEntryContext)_localctx).headWord = match(WORD); setState(49); _errHandler.sync(this); _la = _input.LA(1); do { { { setState(48); definition(); } } setState(51); _errHandler.sync(this); _la = _input.LA(1); } while ( (((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << LEFT_SQUARE) | (1L << RIGHT_SQUARE) | (1L << LBRACKET) | (1L << RBRACKET) | (1L << DE_LBRACKET) | (1L << DE_RBRACKET) | (1L << COLON) | (1L << SEMICOLON) | (1L << COMMA) | (1L << DASH) | (1L << PLUS) | (1L << QUOTE) | (1L << APOSTROPHE) | (1L << DOT) | (1L << EXCLAMATION) | (1L << EXCLAMATION_OPENING) | (1L << QUESTION) | (1L << QUESTION_OPENING) | (1L << ELLIPSIS) | (1L << SLASH) | (1L << PIPE) | (1L << TILDE) | (1L << NUMERO) | (1L << DEF_NUMBER) | (1L << EX_NUMBER) | (1L << NUMBER) | (1L << ADJ) | (1L << ADV) | (1L << CONJ) | (1L << DET) | (1L << INTERJ) | (1L << NOUN) | (1L << NUM) | (1L << PARTICULA) | (1L << PREP) | (1L << PRON) | (1L << V) | (1L << VERB) | (1L << M) | (1L << F) | (1L << AMB) | (1L << COM) | (1L << NEUT) | (1L << PL) | (1L << PERS) | (1L << DEM) | (1L << POS) | (1L << REFL) | (1L << REL))) != 0) || ((((_la - 64)) & ~0x3f) == 0 && ((1L << (_la - 64)) & ((1L << (INTERR - 64)) | (1L << (INDET - 64)) | (1L << (EXCLAM - 64)) | (1L << (GEN - 64)) | (1L << (UD - 64)) | (1L << (AV - 64)) | (1L << (AVTO - 64)) | (1L << (ZD - 64)) | (1L << (AM - 64)) | (1L << (ARG - 64)) | (1L << (BOL - 64)) | (1L << (VEN - 64)) | (1L << (GVAT - 64)) | (1L << (GOND - 64)) | (1L << (KOL - 64)) | (1L << (MEKS - 64)) | (1L << (NIK - 64)) | (1L << (PAR - 64)) | (1L << (PR - 64)) | (1L << (SALV - 64)) | (1L << (UR - 64)) | (1L << (CHILI - 64)) | (1L << (EKV - 64)) | (1L << (TSAM - 64)) | (1L << (YUAM - 64)) | (1L << (DOM_RESP - 64)) | (1L << (KOSTA_RIKA - 64)) | (1L << (GOROD - 64)) | (1L << (GOSUDARSTVO - 64)) | (1L << (ANAT - 64)) | (1L << (ANGL - 64)) | (1L << (ARHIT - 64)) | (1L << (ASTR - 64)) | (1L << (BIOL - 64)) | (1L << (BOT - 64)) | (1L << (BUHG - 64)) | (1L << (GEOGR - 64)) | (1L << (GEOL - 64)) | (1L << (GEOM - 64)) | (1L << (GERALD - 64)) | (1L << (GORN - 64)) | (1L << (ZOOL - 64)) | (1L << (ISK - 64)) | (1L << (IST - 64)) | (1L << (KART - 64)) | (1L << (KINO - 64)) | (1L << (LAT - 64)) | (1L << (LINGV - 64)) | (1L << (LIT - 64)) | (1L << (MAT - 64)) | (1L << (MED - 64)) | (1L << (METEO - 64)) | (1L << (MIN - 64)) | (1L << (MIF - 64)) | (1L << (NUMIZM - 64)) | (1L << (POLIGR - 64)) | (1L << (PROGR - 64)) | (1L << (PSIHOL - 64)) | (1L << (RADIO - 64)) | (1L << (RELG - 64)) | (1L << (STROIT - 64)) | (1L << (TEATR - 64)) | (1L << (TEKST - 64)) | (1L << (TELEV - 64)))) != 0) || ((((_la - 128)) & ~0x3f) == 0 && ((1L << (_la - 128)) & ((1L << (TEH - 128)) | (1L << (TIPIGR - 128)) | (1L << (FARM - 128)) | (1L << (FIZ - 128)) | (1L << (FIZIOL - 128)) | (1L << (FILOS - 128)) | (1L << (FIN - 128)) | (1L << (FOTO - 128)) | (1L << (HIM - 128)) | (1L << (HIR - 128)) | (1L << (SHAHM - 128)) | (1L << (EK - 128)) | (1L << (EL - 128)) | (1L << (YUR - 128)) | (1L << (SH - 128)) | (1L << (KOMP - 128)) | (1L << (ART - 128)) | (1L << (BEZL - 128)) | (1L << (VIN_P - 128)) | (1L << (DAT_P - 128)) | (1L << (GRAM - 128)) | (1L << (ED - 128)) | (1L << (ZR - 128)) | (1L << (MR - 128)) | (1L << (SR - 128)) | (1L << (MN - 128)) | (1L << (SRAVN_ST - 128)) | (1L << (SUSH - 128)) | (1L << (PRIL - 128)) | (1L << (OTRITS - 128)) | (1L << (BRAN - 128)) | (1L << (GRUB - 128)) | (1L << (DETSK - 128)) | (1L << (ZHARG - 128)) | (1L << (IRON - 128)) | (1L << (KNIZHN - 128)) | (1L << (MALOUPOTR - 128)) | (1L << (NEOL - 128)) | (1L << (NEUPOTR - 128)) | (1L << (PEREN - 128)) | (1L << (POGOV - 128)) | (1L << (POSL - 128)) | (1L << (POET - 128)) | (1L << (PRIAM - 128)) | (1L << (PREZR - 128)) | (1L << (PRENEBR - 128)) | (1L << (PRIAM_I_PEREN - 128)) | (1L << (PROST - 128)) | (1L << (RAZG - 128)) | (1L << (UST - 128)) | (1L << (SHUTL - 128)) | (1L << (VOEN - 128)) | (1L << (VOPR_PREDL - 128)) | (1L << (V_RAZN_ZNACH - 128)) | (1L << (DIP - 128)) | (1L << (ZHIV - 128)) | (1L << (ZVUKOPODR - 128)) | (1L << (INDI - 128)) | (1L << (KOM - 128)) | (1L << (KUL - 128)) | (1L << (MOR - 128)) | (1L << (MUZ - 128)) | (1L << (OHOT - 128)) | (1L << (POLIT - 128)))) != 0) || ((((_la - 192)) & ~0x3f) == 0 && ((1L << (_la - 192)) & ((1L << (SM - 192)) | (1L << (SOBIR - 192)) | (1L << (SPORT - 192)) | (1L << (TAVR - 192)) | (1L << (TZH - 192)) | (1L << (TK - 192)) | (1L << (UPOTR - 192)) | (1L << (ITD - 192)) | (1L << (ITP - 192)) | (1L << (BIBL - 192)) | (1L << (TSERK - 192)) | (1L << (TEXT_SPACE - 192)) | (1L << (WORD - 192)))) != 0) ); setState(54); _errHandler.sync(this); _la = _input.LA(1); if (_la==LOZENGE || _la==CONTROL_CHAR) { { setState(53); examples(); } } setState(61); _errHandler.sync(this); _la = _input.LA(1); if (_la==HASHTAG) { { setState(57); _errHandler.sync(this); _la = _input.LA(1); do { { { setState(56); usageexample(); } } setState(59); _errHandler.sync(this); _la = _input.LA(1); } while ( _la==HASHTAG ); } } setState(63); match(LINE_BREAK); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class GrammaticalTagContext extends ParserRuleContext { public PartOfSpeechContext partOfSpeech() { return getRuleContext(PartOfSpeechContext.class,0); } public PronounTypeContext pronounType() { return getRuleContext(PronounTypeContext.class,0); } public OtherCategoryContext otherCategory() { return getRuleContext(OtherCategoryContext.class,0); } public GenderContext gender() { return getRuleContext(GenderContext.class,0); } public List<GrammaticalTagContext> grammaticalTag() { return getRuleContexts(GrammaticalTagContext.class); } public GrammaticalTagContext grammaticalTag(int i) { return getRuleContext(GrammaticalTagContext.class,i); } public List<TerminalNode> COMMA() { return getTokens(DictionaryParser.COMMA); } public TerminalNode COMMA(int i) { return getToken(DictionaryParser.COMMA, i); } public List<TerminalNode> COLON() { return getTokens(DictionaryParser.COLON); } public TerminalNode COLON(int i) { return getToken(DictionaryParser.COLON, i); } public List<TerminalNode> SEMICOLON() { return getTokens(DictionaryParser.SEMICOLON); } public TerminalNode SEMICOLON(int i) { return getToken(DictionaryParser.SEMICOLON, i); } public List<TerminalNode> TEXT_SPACE() { return getTokens(DictionaryParser.TEXT_SPACE); } public TerminalNode TEXT_SPACE(int i) { return getToken(DictionaryParser.TEXT_SPACE, i); } public NumberContext number() { return getRuleContext(NumberContext.class,0); } public VerbFormContext verbForm() { return getRuleContext(VerbFormContext.class,0); } public GrammaticalTagContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_grammaticalTag; } @Override public void enterRule(ParseTreeListener listener) { if ( listener instanceof DictionaryParserListener ) ((DictionaryParserListener)listener).enterGrammaticalTag(this); } @Override public void exitRule(ParseTreeListener listener) { if ( listener instanceof DictionaryParserListener ) ((DictionaryParserListener)listener).exitGrammaticalTag(this); } @Override public <T> T accept(ParseTreeVisitor<? extends T> visitor) { if ( visitor instanceof DictionaryParserVisitor ) return ((DictionaryParserVisitor<? extends T>)visitor).visitGrammaticalTag(this); else return visitor.visitChildren(this); } } public final GrammaticalTagContext grammaticalTag() throws RecognitionException { GrammaticalTagContext _localctx = new GrammaticalTagContext(_ctx, getState()); enterRule(_localctx, 4, RULE_grammaticalTag); int _la; try { int _alt; enterOuterAlt(_localctx, 1); { setState(78); _errHandler.sync(this); switch (_input.LA(1)) { case ADJ: case ADV: case CONJ: case DET: case INTERJ: case NOUN: case NUM: case PARTICULA: case PREP: case PRON: case V: case VERB: { setState(65); partOfSpeech(); setState(67); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,5,_ctx) ) { case 1: { setState(66); gender(); } break; } setState(70); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,6,_ctx) ) { case 1: { setState(69); number(); } break; } setState(73); _errHandler.sync(this); _la = _input.LA(1); if ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << INF) | (1L << GER) | (1L << PART) | (1L << IND) | (1L << SUBJ) | (1L << IMP) | (1L << IMPERS))) != 0)) { { setState(72); verbForm(); } } } break; case PERS: case DEM: case POS: case REFL: case REL: case INTERR: case INDET: case EXCLAM: { setState(75); pronounType(); } break; case GEN: case UD: { setState(76); otherCategory(); } break; case M: case F: case AMB: case COM: case NEUT: { setState(77); gender(); } break; default: throw new NoViableAltException(this); } setState(83); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,9,_ctx); while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { if ( _alt==1 ) { { { setState(80); _la = _input.LA(1); if ( !((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << COLON) | (1L << SEMICOLON) | (1L << COMMA))) != 0) || _la==TEXT_SPACE) ) { _errHandler.recoverInline(this); } else { if ( _input.LA(1)==Token.EOF ) matchedEOF = true; _errHandler.reportMatch(this); consume(); } } } } setState(85); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,9,_ctx); } setState(89); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,10,_ctx); while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { if ( _alt==1 ) { { { setState(86); grammaticalTag(); } } } setState(91); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,10,_ctx); } } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class PartOfSpeechContext extends ParserRuleContext { public TerminalNode ADJ() { return getToken(DictionaryParser.ADJ, 0); } public TerminalNode ADV() { return getToken(DictionaryParser.ADV, 0); } public TerminalNode CONJ() { return getToken(DictionaryParser.CONJ, 0); } public TerminalNode DET() { return getToken(DictionaryParser.DET, 0); } public TerminalNode INTERJ() { return getToken(DictionaryParser.INTERJ, 0); } public TerminalNode NOUN() { return getToken(DictionaryParser.NOUN, 0); } public TerminalNode NUM() { return getToken(DictionaryParser.NUM, 0); } public TerminalNode PARTICULA() { return getToken(DictionaryParser.PARTICULA, 0); } public TerminalNode PREP() { return getToken(DictionaryParser.PREP, 0); } public TerminalNode PRON() { return getToken(DictionaryParser.PRON, 0); } public TerminalNode V() { return getToken(DictionaryParser.V, 0); } public TerminalNode VERB() { return getToken(DictionaryParser.VERB, 0); } public PartOfSpeechContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_partOfSpeech; } @Override public void enterRule(ParseTreeListener listener) { if ( listener instanceof DictionaryParserListener ) ((DictionaryParserListener)listener).enterPartOfSpeech(this); } @Override public void exitRule(ParseTreeListener listener) { if ( listener instanceof DictionaryParserListener ) ((DictionaryParserListener)listener).exitPartOfSpeech(this); } @Override public <T> T accept(ParseTreeVisitor<? extends T> visitor) { if ( visitor instanceof DictionaryParserVisitor ) return ((DictionaryParserVisitor<? extends T>)visitor).visitPartOfSpeech(this); else return visitor.visitChildren(this); } } public final PartOfSpeechContext partOfSpeech() throws RecognitionException { PartOfSpeechContext _localctx = new PartOfSpeechContext(_ctx, getState()); enterRule(_localctx, 6, RULE_partOfSpeech); int _la; try { enterOuterAlt(_localctx, 1); { setState(92); _la = _input.LA(1); if ( !((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << ADJ) | (1L << ADV) | (1L << CONJ) | (1L << DET) | (1L << INTERJ) | (1L << NOUN) | (1L << NUM) | (1L << PARTICULA) | (1L << PREP) | (1L << PRON) | (1L << V) | (1L << VERB))) != 0)) ) { _errHandler.recoverInline(this); } else { if ( _input.LA(1)==Token.EOF ) matchedEOF = true; _errHandler.reportMatch(this); consume(); } } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class GenderContext extends ParserRuleContext { public TerminalNode M() { return getToken(DictionaryParser.M, 0); } public TerminalNode F() { return getToken(DictionaryParser.F, 0); } public TerminalNode AMB() { return getToken(DictionaryParser.AMB, 0); } public TerminalNode COM() { return getToken(DictionaryParser.COM, 0); } public TerminalNode NEUT() { return getToken(DictionaryParser.NEUT, 0); } public GenderContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_gender; } @Override public void enterRule(ParseTreeListener listener) { if ( listener instanceof DictionaryParserListener ) ((DictionaryParserListener)listener).enterGender(this); } @Override public void exitRule(ParseTreeListener listener) { if ( listener instanceof DictionaryParserListener ) ((DictionaryParserListener)listener).exitGender(this); } @Override public <T> T accept(ParseTreeVisitor<? extends T> visitor) { if ( visitor instanceof DictionaryParserVisitor ) return ((DictionaryParserVisitor<? extends T>)visitor).visitGender(this); else return visitor.visitChildren(this); } } public final GenderContext gender() throws RecognitionException { GenderContext _localctx = new GenderContext(_ctx, getState()); enterRule(_localctx, 8, RULE_gender); int _la; try { enterOuterAlt(_localctx, 1); { setState(94); _la = _input.LA(1); if ( !((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << M) | (1L << F) | (1L << AMB) | (1L << COM) | (1L << NEUT))) != 0)) ) { _errHandler.recoverInline(this); } else { if ( _input.LA(1)==Token.EOF ) matchedEOF = true; _errHandler.reportMatch(this); consume(); } } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class NumberContext extends ParserRuleContext { public TerminalNode SG() { return getToken(DictionaryParser.SG, 0); } public TerminalNode PL() { return getToken(DictionaryParser.PL, 0); } public NumberContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_number; } @Override public void enterRule(ParseTreeListener listener) { if ( listener instanceof DictionaryParserListener ) ((DictionaryParserListener)listener).enterNumber(this); } @Override public void exitRule(ParseTreeListener listener) { if ( listener instanceof DictionaryParserListener ) ((DictionaryParserListener)listener).exitNumber(this); } @Override public <T> T accept(ParseTreeVisitor<? extends T> visitor) { if ( visitor instanceof DictionaryParserVisitor ) return ((DictionaryParserVisitor<? extends T>)visitor).visitNumber(this); else return visitor.visitChildren(this); } } public final NumberContext number() throws RecognitionException { NumberContext _localctx = new NumberContext(_ctx, getState()); enterRule(_localctx, 10, RULE_number); int _la; try { enterOuterAlt(_localctx, 1); { setState(96); _la = _input.LA(1); if ( !(_la==SG || _la==PL) ) { _errHandler.recoverInline(this); } else { if ( _input.LA(1)==Token.EOF ) matchedEOF = true; _errHandler.reportMatch(this); consume(); } } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class VerbFormContext extends ParserRuleContext { public TerminalNode INF() { return getToken(DictionaryParser.INF, 0); } public TerminalNode GER() { return getToken(DictionaryParser.GER, 0); } public TerminalNode PART() { return getToken(DictionaryParser.PART, 0); } public TerminalNode IND() { return getToken(DictionaryParser.IND, 0); } public TerminalNode SUBJ() { return getToken(DictionaryParser.SUBJ, 0); } public TerminalNode IMP() { return getToken(DictionaryParser.IMP, 0); } public TerminalNode IMPERS() { return getToken(DictionaryParser.IMPERS, 0); } public VerbFormContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_verbForm; } @Override public void enterRule(ParseTreeListener listener) { if ( listener instanceof DictionaryParserListener ) ((DictionaryParserListener)listener).enterVerbForm(this); } @Override public void exitRule(ParseTreeListener listener) { if ( listener instanceof DictionaryParserListener ) ((DictionaryParserListener)listener).exitVerbForm(this); } @Override public <T> T accept(ParseTreeVisitor<? extends T> visitor) { if ( visitor instanceof DictionaryParserVisitor ) return ((DictionaryParserVisitor<? extends T>)visitor).visitVerbForm(this); else return visitor.visitChildren(this); } } public final VerbFormContext verbForm() throws RecognitionException { VerbFormContext _localctx = new VerbFormContext(_ctx, getState()); enterRule(_localctx, 12, RULE_verbForm); int _la; try { enterOuterAlt(_localctx, 1); { setState(98); _la = _input.LA(1); if ( !((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << INF) | (1L << GER) | (1L << PART) | (1L << IND) | (1L << SUBJ) | (1L << IMP) | (1L << IMPERS))) != 0)) ) { _errHandler.recoverInline(this); } else { if ( _input.LA(1)==Token.EOF ) matchedEOF = true; _errHandler.reportMatch(this); consume(); } } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class PronounTypeContext extends ParserRuleContext { public TerminalNode PERS() { return getToken(DictionaryParser.PERS, 0); } public TerminalNode DEM() { return getToken(DictionaryParser.DEM, 0); } public TerminalNode POS() { return getToken(DictionaryParser.POS, 0); } public TerminalNode REFL() { return getToken(DictionaryParser.REFL, 0); } public TerminalNode REL() { return getToken(DictionaryParser.REL, 0); } public TerminalNode INTERR() { return getToken(DictionaryParser.INTERR, 0); } public TerminalNode INDET() { return getToken(DictionaryParser.INDET, 0); } public TerminalNode EXCLAM() { return getToken(DictionaryParser.EXCLAM, 0); } public PronounTypeContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_pronounType; } @Override public void enterRule(ParseTreeListener listener) { if ( listener instanceof DictionaryParserListener ) ((DictionaryParserListener)listener).enterPronounType(this); } @Override public void exitRule(ParseTreeListener listener) { if ( listener instanceof DictionaryParserListener ) ((DictionaryParserListener)listener).exitPronounType(this); } @Override public <T> T accept(ParseTreeVisitor<? extends T> visitor) { if ( visitor instanceof DictionaryParserVisitor ) return ((DictionaryParserVisitor<? extends T>)visitor).visitPronounType(this); else return visitor.visitChildren(this); } } public final PronounTypeContext pronounType() throws RecognitionException { PronounTypeContext _localctx = new PronounTypeContext(_ctx, getState()); enterRule(_localctx, 14, RULE_pronounType); int _la; try { enterOuterAlt(_localctx, 1); { setState(100); _la = _input.LA(1); if ( !(((((_la - 59)) & ~0x3f) == 0 && ((1L << (_la - 59)) & ((1L << (PERS - 59)) | (1L << (DEM - 59)) | (1L << (POS - 59)) | (1L << (REFL - 59)) | (1L << (REL - 59)) | (1L << (INTERR - 59)) | (1L << (INDET - 59)) | (1L << (EXCLAM - 59)))) != 0)) ) { _errHandler.recoverInline(this); } else { if ( _input.LA(1)==Token.EOF ) matchedEOF = true; _errHandler.reportMatch(this); consume(); } } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class OtherCategoryContext extends ParserRuleContext { public TerminalNode GEN() { return getToken(DictionaryParser.GEN, 0); } public TerminalNode UD() { return getToken(DictionaryParser.UD, 0); } public OtherCategoryContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_otherCategory; } @Override public void enterRule(ParseTreeListener listener) { if ( listener instanceof DictionaryParserListener ) ((DictionaryParserListener)listener).enterOtherCategory(this); } @Override public void exitRule(ParseTreeListener listener) { if ( listener instanceof DictionaryParserListener ) ((DictionaryParserListener)listener).exitOtherCategory(this); } @Override public <T> T accept(ParseTreeVisitor<? extends T> visitor) { if ( visitor instanceof DictionaryParserVisitor ) return ((DictionaryParserVisitor<? extends T>)visitor).visitOtherCategory(this); else return visitor.visitChildren(this); } } public final OtherCategoryContext otherCategory() throws RecognitionException { OtherCategoryContext _localctx = new OtherCategoryContext(_ctx, getState()); enterRule(_localctx, 16, RULE_otherCategory); int _la; try { enterOuterAlt(_localctx, 1); { setState(102); _la = _input.LA(1); if ( !(_la==GEN || _la==UD) ) { _errHandler.recoverInline(this); } else { if ( _input.LA(1)==Token.EOF ) matchedEOF = true; _errHandler.reportMatch(this); consume(); } } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class RussianAbbreviationContext extends ParserRuleContext { public TerminalNode AV() { return getToken(DictionaryParser.AV, 0); } public TerminalNode AVTO() { return getToken(DictionaryParser.AVTO, 0); } public TerminalNode ZD() { return getToken(DictionaryParser.ZD, 0); } public TerminalNode AM() { return getToken(DictionaryParser.AM, 0); } public TerminalNode ARG() { return getToken(DictionaryParser.ARG, 0); } public TerminalNode BOL() { return getToken(DictionaryParser.BOL, 0); } public TerminalNode VEN() { return getToken(DictionaryParser.VEN, 0); } public TerminalNode GVAT() { return getToken(DictionaryParser.GVAT, 0); } public TerminalNode GOND() { return getToken(DictionaryParser.GOND, 0); } public TerminalNode KOL() { return getToken(DictionaryParser.KOL, 0); } public TerminalNode MEKS() { return getToken(DictionaryParser.MEKS, 0); } public TerminalNode NIK() { return getToken(DictionaryParser.NIK, 0); } public TerminalNode PAR() { return getToken(DictionaryParser.PAR, 0); } public TerminalNode PR() { return getToken(DictionaryParser.PR, 0); } public TerminalNode SALV() { return getToken(DictionaryParser.SALV, 0); } public TerminalNode UR() { return getToken(DictionaryParser.UR, 0); } public TerminalNode CHILI() { return getToken(DictionaryParser.CHILI, 0); } public TerminalNode EKV() { return getToken(DictionaryParser.EKV, 0); } public TerminalNode TSAM() { return getToken(DictionaryParser.TSAM, 0); } public TerminalNode YUAM() { return getToken(DictionaryParser.YUAM, 0); } public TerminalNode DOM_RESP() { return getToken(DictionaryParser.DOM_RESP, 0); } public TerminalNode KOSTA_RIKA() { return getToken(DictionaryParser.KOSTA_RIKA, 0); } public TerminalNode GOROD() { return getToken(DictionaryParser.GOROD, 0); } public TerminalNode GOSUDARSTVO() { return getToken(DictionaryParser.GOSUDARSTVO, 0); } public TerminalNode ANAT() { return getToken(DictionaryParser.ANAT, 0); } public TerminalNode ANGL() { return getToken(DictionaryParser.ANGL, 0); } public TerminalNode ARHIT() { return getToken(DictionaryParser.ARHIT, 0); } public TerminalNode ASTR() { return getToken(DictionaryParser.ASTR, 0); } public TerminalNode BIOL() { return getToken(DictionaryParser.BIOL, 0); } public TerminalNode BOT() { return getToken(DictionaryParser.BOT, 0); } public TerminalNode BUHG() { return getToken(DictionaryParser.BUHG, 0); } public TerminalNode GEOGR() { return getToken(DictionaryParser.GEOGR, 0); } public TerminalNode GEOL() { return getToken(DictionaryParser.GEOL, 0); } public TerminalNode GEOM() { return getToken(DictionaryParser.GEOM, 0); } public TerminalNode GERALD() { return getToken(DictionaryParser.GERALD, 0); } public TerminalNode GORN() { return getToken(DictionaryParser.GORN, 0); } public TerminalNode ZOOL() { return getToken(DictionaryParser.ZOOL, 0); } public TerminalNode ISK() { return getToken(DictionaryParser.ISK, 0); } public TerminalNode IST() { return getToken(DictionaryParser.IST, 0); } public TerminalNode KART() { return getToken(DictionaryParser.KART, 0); } public TerminalNode KINO() { return getToken(DictionaryParser.KINO, 0); } public TerminalNode LAT() { return getToken(DictionaryParser.LAT, 0); } public TerminalNode LINGV() { return getToken(DictionaryParser.LINGV, 0); } public TerminalNode LIT() { return getToken(DictionaryParser.LIT, 0); } public TerminalNode MAT() { return getToken(DictionaryParser.MAT, 0); } public TerminalNode MED() { return getToken(DictionaryParser.MED, 0); } public TerminalNode METEO() { return getToken(DictionaryParser.METEO, 0); } public TerminalNode MIN() { return getToken(DictionaryParser.MIN, 0); } public TerminalNode MIF() { return getToken(DictionaryParser.MIF, 0); } public TerminalNode NUMIZM() { return getToken(DictionaryParser.NUMIZM, 0); } public TerminalNode POLIGR() { return getToken(DictionaryParser.POLIGR, 0); } public TerminalNode PROGR() { return getToken(DictionaryParser.PROGR, 0); } public TerminalNode PSIHOL() { return getToken(DictionaryParser.PSIHOL, 0); } public TerminalNode RADIO() { return getToken(DictionaryParser.RADIO, 0); } public TerminalNode RELG() { return getToken(DictionaryParser.RELG, 0); } public TerminalNode STROIT() { return getToken(DictionaryParser.STROIT, 0); } public TerminalNode TEATR() { return getToken(DictionaryParser.TEATR, 0); } public TerminalNode TEKST() { return getToken(DictionaryParser.TEKST, 0); } public TerminalNode TELEV() { return getToken(DictionaryParser.TELEV, 0); } public TerminalNode TEH() { return getToken(DictionaryParser.TEH, 0); } public TerminalNode TIPIGR() { return getToken(DictionaryParser.TIPIGR, 0); } public TerminalNode FARM() { return getToken(DictionaryParser.FARM, 0); } public TerminalNode FIZ() { return getToken(DictionaryParser.FIZ, 0); } public TerminalNode FIZIOL() { return getToken(DictionaryParser.FIZIOL, 0); } public TerminalNode FILOS() { return getToken(DictionaryParser.FILOS, 0); } public TerminalNode FIN() { return getToken(DictionaryParser.FIN, 0); } public TerminalNode FOTO() { return getToken(DictionaryParser.FOTO, 0); } public TerminalNode HIM() { return getToken(DictionaryParser.HIM, 0); } public TerminalNode HIR() { return getToken(DictionaryParser.HIR, 0); } public TerminalNode SHAHM() { return getToken(DictionaryParser.SHAHM, 0); } public TerminalNode EK() { return getToken(DictionaryParser.EK, 0); } public TerminalNode EL() { return getToken(DictionaryParser.EL, 0); } public TerminalNode YUR() { return getToken(DictionaryParser.YUR, 0); } public TerminalNode SH() { return getToken(DictionaryParser.SH, 0); } public TerminalNode KOMP() { return getToken(DictionaryParser.KOMP, 0); } public TerminalNode ART() { return getToken(DictionaryParser.ART, 0); } public TerminalNode BEZL() { return getToken(DictionaryParser.BEZL, 0); } public TerminalNode GRAM() { return getToken(DictionaryParser.GRAM, 0); } public TerminalNode ED() { return getToken(DictionaryParser.ED, 0); } public TerminalNode ZR() { return getToken(DictionaryParser.ZR, 0); } public TerminalNode MR() { return getToken(DictionaryParser.MR, 0); } public TerminalNode SR() { return getToken(DictionaryParser.SR, 0); } public TerminalNode MN() { return getToken(DictionaryParser.MN, 0); } public TerminalNode SRAVN_ST() { return getToken(DictionaryParser.SRAVN_ST, 0); } public TerminalNode SUSH() { return getToken(DictionaryParser.SUSH, 0); } public TerminalNode PRIL() { return getToken(DictionaryParser.PRIL, 0); } public TerminalNode OTRITS() { return getToken(DictionaryParser.OTRITS, 0); } public TerminalNode BRAN() { return getToken(DictionaryParser.BRAN, 0); } public TerminalNode GRUB() { return getToken(DictionaryParser.GRUB, 0); } public TerminalNode DETSK() { return getToken(DictionaryParser.DETSK, 0); } public TerminalNode ZHARG() { return getToken(DictionaryParser.ZHARG, 0); } public TerminalNode IRON() { return getToken(DictionaryParser.IRON, 0); } public TerminalNode KNIZHN() { return getToken(DictionaryParser.KNIZHN, 0); } public TerminalNode MALOUPOTR() { return getToken(DictionaryParser.MALOUPOTR, 0); } public TerminalNode NEOL() { return getToken(DictionaryParser.NEOL, 0); } public TerminalNode NEUPOTR() { return getToken(DictionaryParser.NEUPOTR, 0); } public TerminalNode PEREN() { return getToken(DictionaryParser.PEREN, 0); } public TerminalNode POGOV() { return getToken(DictionaryParser.POGOV, 0); } public TerminalNode POSL() { return getToken(DictionaryParser.POSL, 0); } public TerminalNode POET() { return getToken(DictionaryParser.POET, 0); } public TerminalNode PRIAM() { return getToken(DictionaryParser.PRIAM, 0); } public TerminalNode PREZR() { return getToken(DictionaryParser.PREZR, 0); } public TerminalNode PRENEBR() { return getToken(DictionaryParser.PRENEBR, 0); } public TerminalNode PRIAM_I_PEREN() { return getToken(DictionaryParser.PRIAM_I_PEREN, 0); } public TerminalNode PROST() { return getToken(DictionaryParser.PROST, 0); } public TerminalNode RAZG() { return getToken(DictionaryParser.RAZG, 0); } public TerminalNode UST() { return getToken(DictionaryParser.UST, 0); } public TerminalNode SHUTL() { return getToken(DictionaryParser.SHUTL, 0); } public TerminalNode VOEN() { return getToken(DictionaryParser.VOEN, 0); } public TerminalNode VOPR_PREDL() { return getToken(DictionaryParser.VOPR_PREDL, 0); } public TerminalNode V_RAZN_ZNACH() { return getToken(DictionaryParser.V_RAZN_ZNACH, 0); } public TerminalNode DIP() { return getToken(DictionaryParser.DIP, 0); } public TerminalNode ZHIV() { return getToken(DictionaryParser.ZHIV, 0); } public TerminalNode ZVUKOPODR() { return getToken(DictionaryParser.ZVUKOPODR, 0); } public TerminalNode INDI() { return getToken(DictionaryParser.INDI, 0); } public TerminalNode KOM() { return getToken(DictionaryParser.KOM, 0); } public TerminalNode KUL() { return getToken(DictionaryParser.KUL, 0); } public TerminalNode MOR() { return getToken(DictionaryParser.MOR, 0); } public TerminalNode MUZ() { return getToken(DictionaryParser.MUZ, 0); } public TerminalNode OHOT() { return getToken(DictionaryParser.OHOT, 0); } public TerminalNode POLIT() { return getToken(DictionaryParser.POLIT, 0); } public TerminalNode SM() { return getToken(DictionaryParser.SM, 0); } public TerminalNode SOBIR() { return getToken(DictionaryParser.SOBIR, 0); } public TerminalNode SPORT() { return getToken(DictionaryParser.SPORT, 0); } public TerminalNode TAVR() { return getToken(DictionaryParser.TAVR, 0); } public TerminalNode TZH() { return getToken(DictionaryParser.TZH, 0); } public TerminalNode TK() { return getToken(DictionaryParser.TK, 0); } public TerminalNode UPOTR() { return getToken(DictionaryParser.UPOTR, 0); } public TerminalNode BIBL() { return getToken(DictionaryParser.BIBL, 0); } public TerminalNode TSERK() { return getToken(DictionaryParser.TSERK, 0); } public List<TerminalNode> TEXT_SPACE() { return getTokens(DictionaryParser.TEXT_SPACE); } public TerminalNode TEXT_SPACE(int i) { return getToken(DictionaryParser.TEXT_SPACE, i); } public List<TerminalNode> DOT() { return getTokens(DictionaryParser.DOT); } public TerminalNode DOT(int i) { return getToken(DictionaryParser.DOT, i); } public List<TerminalNode> COMMA() { return getTokens(DictionaryParser.COMMA); } public TerminalNode COMMA(int i) { return getToken(DictionaryParser.COMMA, i); } public List<TerminalNode> COLON() { return getTokens(DictionaryParser.COLON); } public TerminalNode COLON(int i) { return getToken(DictionaryParser.COLON, i); } public List<TerminalNode> SEMICOLON() { return getTokens(DictionaryParser.SEMICOLON); } public TerminalNode SEMICOLON(int i) { return getToken(DictionaryParser.SEMICOLON, i); } public List<TerminalNode> RBRACKET() { return getTokens(DictionaryParser.RBRACKET); } public TerminalNode RBRACKET(int i) { return getToken(DictionaryParser.RBRACKET, i); } public RussianAbbreviationContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_russianAbbreviation; } @Override public void enterRule(ParseTreeListener listener) { if ( listener instanceof DictionaryParserListener ) ((DictionaryParserListener)listener).enterRussianAbbreviation(this); } @Override public void exitRule(ParseTreeListener listener) { if ( listener instanceof DictionaryParserListener ) ((DictionaryParserListener)listener).exitRussianAbbreviation(this); } @Override public <T> T accept(ParseTreeVisitor<? extends T> visitor) { if ( visitor instanceof DictionaryParserVisitor ) return ((DictionaryParserVisitor<? extends T>)visitor).visitRussianAbbreviation(this); else return visitor.visitChildren(this); } } public final RussianAbbreviationContext russianAbbreviation() throws RecognitionException { RussianAbbreviationContext _localctx = new RussianAbbreviationContext(_ctx, getState()); enterRule(_localctx, 18, RULE_russianAbbreviation); int _la; try { int _alt; enterOuterAlt(_localctx, 1); { setState(104); _la = _input.LA(1); if ( !(((((_la - 69)) & ~0x3f) == 0 && ((1L << (_la - 69)) & ((1L << (AV - 69)) | (1L << (AVTO - 69)) | (1L << (ZD - 69)) | (1L << (AM - 69)) | (1L << (ARG - 69)) | (1L << (BOL - 69)) | (1L << (VEN - 69)) | (1L << (GVAT - 69)) | (1L << (GOND - 69)) | (1L << (KOL - 69)) | (1L << (MEKS - 69)) | (1L << (NIK - 69)) | (1L << (PAR - 69)) | (1L << (PR - 69)) | (1L << (SALV - 69)) | (1L << (UR - 69)) | (1L << (CHILI - 69)) | (1L << (EKV - 69)) | (1L << (TSAM - 69)) | (1L << (YUAM - 69)) | (1L << (DOM_RESP - 69)) | (1L << (KOSTA_RIKA - 69)) | (1L << (GOROD - 69)) | (1L << (GOSUDARSTVO - 69)) | (1L << (ANAT - 69)) | (1L << (ANGL - 69)) | (1L << (ARHIT - 69)) | (1L << (ASTR - 69)) | (1L << (BIOL - 69)) | (1L << (BOT - 69)) | (1L << (BUHG - 69)) | (1L << (GEOGR - 69)) | (1L << (GEOL - 69)) | (1L << (GEOM - 69)) | (1L << (GERALD - 69)) | (1L << (GORN - 69)) | (1L << (ZOOL - 69)) | (1L << (ISK - 69)) | (1L << (IST - 69)) | (1L << (KART - 69)) | (1L << (KINO - 69)) | (1L << (LAT - 69)) | (1L << (LINGV - 69)) | (1L << (LIT - 69)) | (1L << (MAT - 69)) | (1L << (MED - 69)) | (1L << (METEO - 69)) | (1L << (MIN - 69)) | (1L << (MIF - 69)) | (1L << (NUMIZM - 69)) | (1L << (POLIGR - 69)) | (1L << (PROGR - 69)) | (1L << (PSIHOL - 69)) | (1L << (RADIO - 69)) | (1L << (RELG - 69)) | (1L << (STROIT - 69)) | (1L << (TEATR - 69)) | (1L << (TEKST - 69)) | (1L << (TELEV - 69)) | (1L << (TEH - 69)) | (1L << (TIPIGR - 69)) | (1L << (FARM - 69)) | (1L << (FIZ - 69)) | (1L << (FIZIOL - 69)))) != 0) || ((((_la - 133)) & ~0x3f) == 0 && ((1L << (_la - 133)) & ((1L << (FILOS - 133)) | (1L << (FIN - 133)) | (1L << (FOTO - 133)) | (1L << (HIM - 133)) | (1L << (HIR - 133)) | (1L << (SHAHM - 133)) | (1L << (EK - 133)) | (1L << (EL - 133)) | (1L << (YUR - 133)) | (1L << (SH - 133)) | (1L << (KOMP - 133)) | (1L << (ART - 133)) | (1L << (BEZL - 133)) | (1L << (GRAM - 133)) | (1L << (ED - 133)) | (1L << (ZR - 133)) | (1L << (MR - 133)) | (1L << (SR - 133)) | (1L << (MN - 133)) | (1L << (SRAVN_ST - 133)) | (1L << (SUSH - 133)) | (1L << (PRIL - 133)) | (1L << (OTRITS - 133)) | (1L << (BRAN - 133)) | (1L << (GRUB - 133)) | (1L << (DETSK - 133)) | (1L << (ZHARG - 133)) | (1L << (IRON - 133)) | (1L << (KNIZHN - 133)) | (1L << (MALOUPOTR - 133)) | (1L << (NEOL - 133)) | (1L << (NEUPOTR - 133)) | (1L << (PEREN - 133)) | (1L << (POGOV - 133)) | (1L << (POSL - 133)) | (1L << (POET - 133)) | (1L << (PRIAM - 133)) | (1L << (PREZR - 133)) | (1L << (PRENEBR - 133)) | (1L << (PRIAM_I_PEREN - 133)) | (1L << (PROST - 133)) | (1L << (RAZG - 133)) | (1L << (UST - 133)) | (1L << (SHUTL - 133)) | (1L << (VOEN - 133)) | (1L << (VOPR_PREDL - 133)) | (1L << (V_RAZN_ZNACH - 133)) | (1L << (DIP - 133)) | (1L << (ZHIV - 133)) | (1L << (ZVUKOPODR - 133)) | (1L << (INDI - 133)) | (1L << (KOM - 133)) | (1L << (KUL - 133)) | (1L << (MOR - 133)) | (1L << (MUZ - 133)) | (1L << (OHOT - 133)) | (1L << (POLIT - 133)) | (1L << (SM - 133)) | (1L << (SOBIR - 133)) | (1L << (SPORT - 133)) | (1L << (TAVR - 133)) | (1L << (TZH - 133)))) != 0) || ((((_la - 197)) & ~0x3f) == 0 && ((1L << (_la - 197)) & ((1L << (TK - 197)) | (1L << (UPOTR - 197)) | (1L << (BIBL - 197)) | (1L << (TSERK - 197)))) != 0)) ) { _errHandler.recoverInline(this); } else { if ( _input.LA(1)==Token.EOF ) matchedEOF = true; _errHandler.reportMatch(this); consume(); } setState(106); _errHandler.sync(this); _alt = 1; do { switch (_alt) { case 1: { { setState(105); _la = _input.LA(1); if ( !((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << RBRACKET) | (1L << COLON) | (1L << SEMICOLON) | (1L << COMMA) | (1L << DOT))) != 0) || _la==TEXT_SPACE) ) { _errHandler.recoverInline(this); } else { if ( _input.LA(1)==Token.EOF ) matchedEOF = true; _errHandler.reportMatch(this); consume(); } } } break; default: throw new NoViableAltException(this); } setState(108); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,11,_ctx); } while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class DefinitionContext extends ParserRuleContext { public SimpledefinitionContext content; public OtherElementContext otherElement; public List<OtherElementContext> element = new ArrayList<OtherElementContext>(); public DefinitionElementsContext definitionElements() { return getRuleContext(DefinitionElementsContext.class,0); } public List<SimpledefinitionContext> simpledefinition() { return getRuleContexts(SimpledefinitionContext.class); } public SimpledefinitionContext simpledefinition(int i) { return getRuleContext(SimpledefinitionContext.class,i); } public List<OtherElementContext> otherElement() { return getRuleContexts(OtherElementContext.class); } public OtherElementContext otherElement(int i) { return getRuleContext(OtherElementContext.class,i); } public DefinitionContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_definition; } @Override public void enterRule(ParseTreeListener listener) { if ( listener instanceof DictionaryParserListener ) ((DictionaryParserListener)listener).enterDefinition(this); } @Override public void exitRule(ParseTreeListener listener) { if ( listener instanceof DictionaryParserListener ) ((DictionaryParserListener)listener).exitDefinition(this); } @Override public <T> T accept(ParseTreeVisitor<? extends T> visitor) { if ( visitor instanceof DictionaryParserVisitor ) return ((DictionaryParserVisitor<? extends T>)visitor).visitDefinition(this); else return visitor.visitChildren(this); } } public final DefinitionContext definition() throws RecognitionException { DefinitionContext _localctx = new DefinitionContext(_ctx, getState()); enterRule(_localctx, 20, RULE_definition); try { int _alt; setState(127); _errHandler.sync(this); switch ( getInterpreter().adaptivePredict(_input,15,_ctx) ) { case 1: enterOuterAlt(_localctx, 1); { setState(110); definitionElements(); setState(112); _errHandler.sync(this); _alt = 1; do { switch (_alt) { case 1: { { setState(111); ((DefinitionContext)_localctx).content = simpledefinition(); } } break; default: throw new NoViableAltException(this); } setState(114); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,12,_ctx); } while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ); } break; case 2: enterOuterAlt(_localctx, 2); { setState(119); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,13,_ctx); while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { if ( _alt==1 ) { { { setState(116); ((DefinitionContext)_localctx).otherElement = otherElement(); ((DefinitionContext)_localctx).element.add(((DefinitionContext)_localctx).otherElement); } } } setState(121); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,13,_ctx); } setState(123); _errHandler.sync(this); _alt = 1; do { switch (_alt) { case 1: { { setState(122); ((DefinitionContext)_localctx).content = simpledefinition(); } } break; default: throw new NoViableAltException(this); } setState(125); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,14,_ctx); } while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ); } break; } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class DefinitionElementsContext extends ParserRuleContext { public Token defNum; public OtherElementContext otherElement; public List<OtherElementContext> element = new ArrayList<OtherElementContext>(); public TerminalNode DEF_NUMBER() { return getToken(DictionaryParser.DEF_NUMBER, 0); } public List<OtherElementContext> otherElement() { return getRuleContexts(OtherElementContext.class); } public OtherElementContext otherElement(int i) { return getRuleContext(OtherElementContext.class,i); } public DefinitionElementsContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_definitionElements; } @Override public void enterRule(ParseTreeListener listener) { if ( listener instanceof DictionaryParserListener ) ((DictionaryParserListener)listener).enterDefinitionElements(this); } @Override public void exitRule(ParseTreeListener listener) { if ( listener instanceof DictionaryParserListener ) ((DictionaryParserListener)listener).exitDefinitionElements(this); } @Override public <T> T accept(ParseTreeVisitor<? extends T> visitor) { if ( visitor instanceof DictionaryParserVisitor ) return ((DictionaryParserVisitor<? extends T>)visitor).visitDefinitionElements(this); else return visitor.visitChildren(this); } } public final DefinitionElementsContext definitionElements() throws RecognitionException { DefinitionElementsContext _localctx = new DefinitionElementsContext(_ctx, getState()); enterRule(_localctx, 22, RULE_definitionElements); int _la; try { int _alt; setState(148); _errHandler.sync(this); switch (_input.LA(1)) { case DEF_NUMBER: enterOuterAlt(_localctx, 1); { setState(129); ((DefinitionElementsContext)_localctx).defNum = match(DEF_NUMBER); setState(133); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,16,_ctx); while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { if ( _alt==1 ) { { { setState(130); ((DefinitionElementsContext)_localctx).otherElement = otherElement(); ((DefinitionElementsContext)_localctx).element.add(((DefinitionElementsContext)_localctx).otherElement); } } } setState(135); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,16,_ctx); } } break; case ADJ: case ADV: case CONJ: case DET: case INTERJ: case NOUN: case NUM: case PARTICULA: case PREP: case PRON: case V: case VERB: case M: case F: case AMB: case COM: case NEUT: case PERS: case DEM: case POS: case REFL: case REL: case INTERR: case INDET: case EXCLAM: case GEN: case UD: case AV: case AVTO: case ZD: case AM: case ARG: case BOL: case VEN: case GVAT: case GOND: case KOL: case MEKS: case NIK: case PAR: case PR: case SALV: case UR: case CHILI: case EKV: case TSAM: case YUAM: case DOM_RESP: case KOSTA_RIKA: case GOROD: case GOSUDARSTVO: case ANAT: case ANGL: case ARHIT: case ASTR: case BIOL: case BOT: case BUHG: case GEOGR: case GEOL: case GEOM: case GERALD: case GORN: case ZOOL: case ISK: case IST: case KART: case KINO: case LAT: case LINGV: case LIT: case MAT: case MED: case METEO: case MIN: case MIF: case NUMIZM: case POLIGR: case PROGR: case PSIHOL: case RADIO: case RELG: case STROIT: case TEATR: case TEKST: case TELEV: case TEH: case TIPIGR: case FARM: case FIZ: case FIZIOL: case FILOS: case FIN: case FOTO: case HIM: case HIR: case SHAHM: case EK: case EL: case YUR: case SH: case KOMP: case ART: case BEZL: case GRAM: case ED: case ZR: case MR: case SR: case MN: case SRAVN_ST: case SUSH: case PRIL: case OTRITS: case BRAN: case GRUB: case DETSK: case ZHARG: case IRON: case KNIZHN: case MALOUPOTR: case NEOL: case NEUPOTR: case PEREN: case POGOV: case POSL: case POET: case PRIAM: case PREZR: case PRENEBR: case PRIAM_I_PEREN: case PROST: case RAZG: case UST: case SHUTL: case VOEN: case VOPR_PREDL: case V_RAZN_ZNACH: case DIP: case ZHIV: case ZVUKOPODR: case INDI: case KOM: case KUL: case MOR: case MUZ: case OHOT: case POLIT: case SM: case SOBIR: case SPORT: case TAVR: case TZH: case TK: case UPOTR: case BIBL: case TSERK: enterOuterAlt(_localctx, 2); { setState(137); _errHandler.sync(this); _la = _input.LA(1); do { { { setState(136); ((DefinitionElementsContext)_localctx).otherElement = otherElement(); ((DefinitionElementsContext)_localctx).element.add(((DefinitionElementsContext)_localctx).otherElement); } } setState(139); _errHandler.sync(this); _la = _input.LA(1); } while ( ((((_la - 33)) & ~0x3f) == 0 && ((1L << (_la - 33)) & ((1L << (ADJ - 33)) | (1L << (ADV - 33)) | (1L << (CONJ - 33)) | (1L << (DET - 33)) | (1L << (INTERJ - 33)) | (1L << (NOUN - 33)) | (1L << (NUM - 33)) | (1L << (PARTICULA - 33)) | (1L << (PREP - 33)) | (1L << (PRON - 33)) | (1L << (V - 33)) | (1L << (VERB - 33)) | (1L << (M - 33)) | (1L << (F - 33)) | (1L << (AMB - 33)) | (1L << (COM - 33)) | (1L << (NEUT - 33)) | (1L << (PERS - 33)) | (1L << (DEM - 33)) | (1L << (POS - 33)) | (1L << (REFL - 33)) | (1L << (REL - 33)) | (1L << (INTERR - 33)) | (1L << (INDET - 33)) | (1L << (EXCLAM - 33)) | (1L << (GEN - 33)) | (1L << (UD - 33)) | (1L << (AV - 33)) | (1L << (AVTO - 33)) | (1L << (ZD - 33)) | (1L << (AM - 33)) | (1L << (ARG - 33)) | (1L << (BOL - 33)) | (1L << (VEN - 33)) | (1L << (GVAT - 33)) | (1L << (GOND - 33)) | (1L << (KOL - 33)) | (1L << (MEKS - 33)) | (1L << (NIK - 33)) | (1L << (PAR - 33)) | (1L << (PR - 33)) | (1L << (SALV - 33)) | (1L << (UR - 33)) | (1L << (CHILI - 33)) | (1L << (EKV - 33)) | (1L << (TSAM - 33)) | (1L << (YUAM - 33)) | (1L << (DOM_RESP - 33)) | (1L << (KOSTA_RIKA - 33)) | (1L << (GOROD - 33)) | (1L << (GOSUDARSTVO - 33)) | (1L << (ANAT - 33)) | (1L << (ANGL - 33)) | (1L << (ARHIT - 33)) | (1L << (ASTR - 33)))) != 0) || ((((_la - 97)) & ~0x3f) == 0 && ((1L << (_la - 97)) & ((1L << (BIOL - 97)) | (1L << (BOT - 97)) | (1L << (BUHG - 97)) | (1L << (GEOGR - 97)) | (1L << (GEOL - 97)) | (1L << (GEOM - 97)) | (1L << (GERALD - 97)) | (1L << (GORN - 97)) | (1L << (ZOOL - 97)) | (1L << (ISK - 97)) | (1L << (IST - 97)) | (1L << (KART - 97)) | (1L << (KINO - 97)) | (1L << (LAT - 97)) | (1L << (LINGV - 97)) | (1L << (LIT - 97)) | (1L << (MAT - 97)) | (1L << (MED - 97)) | (1L << (METEO - 97)) | (1L << (MIN - 97)) | (1L << (MIF - 97)) | (1L << (NUMIZM - 97)) | (1L << (POLIGR - 97)) | (1L << (PROGR - 97)) | (1L << (PSIHOL - 97)) | (1L << (RADIO - 97)) | (1L << (RELG - 97)) | (1L << (STROIT - 97)) | (1L << (TEATR - 97)) | (1L << (TEKST - 97)) | (1L << (TELEV - 97)) | (1L << (TEH - 97)) | (1L << (TIPIGR - 97)) | (1L << (FARM - 97)) | (1L << (FIZ - 97)) | (1L << (FIZIOL - 97)) | (1L << (FILOS - 97)) | (1L << (FIN - 97)) | (1L << (FOTO - 97)) | (1L << (HIM - 97)) | (1L << (HIR - 97)) | (1L << (SHAHM - 97)) | (1L << (EK - 97)) | (1L << (EL - 97)) | (1L << (YUR - 97)) | (1L << (SH - 97)) | (1L << (KOMP - 97)) | (1L << (ART - 97)) | (1L << (BEZL - 97)) | (1L << (GRAM - 97)) | (1L << (ED - 97)) | (1L << (ZR - 97)) | (1L << (MR - 97)) | (1L << (SR - 97)) | (1L << (MN - 97)) | (1L << (SRAVN_ST - 97)) | (1L << (SUSH - 97)) | (1L << (PRIL - 97)) | (1L << (OTRITS - 97)) | (1L << (BRAN - 97)) | (1L << (GRUB - 97)) | (1L << (DETSK - 97)))) != 0) || ((((_la - 161)) & ~0x3f) == 0 && ((1L << (_la - 161)) & ((1L << (ZHARG - 161)) | (1L << (IRON - 161)) | (1L << (KNIZHN - 161)) | (1L << (MALOUPOTR - 161)) | (1L << (NEOL - 161)) | (1L << (NEUPOTR - 161)) | (1L << (PEREN - 161)) | (1L << (POGOV - 161)) | (1L << (POSL - 161)) | (1L << (POET - 161)) | (1L << (PRIAM - 161)) | (1L << (PREZR - 161)) | (1L << (PRENEBR - 161)) | (1L << (PRIAM_I_PEREN - 161)) | (1L << (PROST - 161)) | (1L << (RAZG - 161)) | (1L << (UST - 161)) | (1L << (SHUTL - 161)) | (1L << (VOEN - 161)) | (1L << (VOPR_PREDL - 161)) | (1L << (V_RAZN_ZNACH - 161)) | (1L << (DIP - 161)) | (1L << (ZHIV - 161)) | (1L << (ZVUKOPODR - 161)) | (1L << (INDI - 161)) | (1L << (KOM - 161)) | (1L << (KUL - 161)) | (1L << (MOR - 161)) | (1L << (MUZ - 161)) | (1L << (OHOT - 161)) | (1L << (POLIT - 161)) | (1L << (SM - 161)) | (1L << (SOBIR - 161)) | (1L << (SPORT - 161)) | (1L << (TAVR - 161)) | (1L << (TZH - 161)) | (1L << (TK - 161)) | (1L << (UPOTR - 161)) | (1L << (BIBL - 161)) | (1L << (TSERK - 161)))) != 0) ); setState(141); ((DefinitionElementsContext)_localctx).defNum = match(DEF_NUMBER); setState(145); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,18,_ctx); while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { if ( _alt==1 ) { { { setState(142); ((DefinitionElementsContext)_localctx).otherElement = otherElement(); ((DefinitionElementsContext)_localctx).element.add(((DefinitionElementsContext)_localctx).otherElement); } } } setState(147); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,18,_ctx); } } break; default: throw new NoViableAltException(this); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class OtherElementContext extends ParserRuleContext { public OtherElementContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_otherElement; } public OtherElementContext() { } public void copyFrom(OtherElementContext ctx) { super.copyFrom(ctx); } } public static class RussianAbbrElementContext extends OtherElementContext { public RussianAbbreviationContext rucat; public RussianAbbreviationContext russianAbbreviation() { return getRuleContext(RussianAbbreviationContext.class,0); } public RussianAbbrElementContext(OtherElementContext ctx) { copyFrom(ctx); } @Override public void enterRule(ParseTreeListener listener) { if ( listener instanceof DictionaryParserListener ) ((DictionaryParserListener)listener).enterRussianAbbrElement(this); } @Override public void exitRule(ParseTreeListener listener) { if ( listener instanceof DictionaryParserListener ) ((DictionaryParserListener)listener).exitRussianAbbrElement(this); } @Override public <T> T accept(ParseTreeVisitor<? extends T> visitor) { if ( visitor instanceof DictionaryParserVisitor ) return ((DictionaryParserVisitor<? extends T>)visitor).visitRussianAbbrElement(this); else return visitor.visitChildren(this); } } public static class GrammaticalElementContext extends OtherElementContext { public GrammaticalTagContext gram; public GrammaticalTagContext grammaticalTag() { return getRuleContext(GrammaticalTagContext.class,0); } public GrammaticalElementContext(OtherElementContext ctx) { copyFrom(ctx); } @Override public void enterRule(ParseTreeListener listener) { if ( listener instanceof DictionaryParserListener ) ((DictionaryParserListener)listener).enterGrammaticalElement(this); } @Override public void exitRule(ParseTreeListener listener) { if ( listener instanceof DictionaryParserListener ) ((DictionaryParserListener)listener).exitGrammaticalElement(this); } @Override public <T> T accept(ParseTreeVisitor<? extends T> visitor) { if ( visitor instanceof DictionaryParserVisitor ) return ((DictionaryParserVisitor<? extends T>)visitor).visitGrammaticalElement(this); else return visitor.visitChildren(this); } } public final OtherElementContext otherElement() throws RecognitionException { OtherElementContext _localctx = new OtherElementContext(_ctx, getState()); enterRule(_localctx, 24, RULE_otherElement); try { setState(152); _errHandler.sync(this); switch (_input.LA(1)) { case AV: case AVTO: case ZD: case AM: case ARG: case BOL: case VEN: case GVAT: case GOND: case KOL: case MEKS: case NIK: case PAR: case PR: case SALV: case UR: case CHILI: case EKV: case TSAM: case YUAM: case DOM_RESP: case KOSTA_RIKA: case GOROD: case GOSUDARSTVO: case ANAT: case ANGL: case ARHIT: case ASTR: case BIOL: case BOT: case BUHG: case GEOGR: case GEOL: case GEOM: case GERALD: case GORN: case ZOOL: case ISK: case IST: case KART: case KINO: case LAT: case LINGV: case LIT: case MAT: case MED: case METEO: case MIN: case MIF: case NUMIZM: case POLIGR: case PROGR: case PSIHOL: case RADIO: case RELG: case STROIT: case TEATR: case TEKST: case TELEV: case TEH: case TIPIGR: case FARM: case FIZ: case FIZIOL: case FILOS: case FIN: case FOTO: case HIM: case HIR: case SHAHM: case EK: case EL: case YUR: case SH: case KOMP: case ART: case BEZL: case GRAM: case ED: case ZR: case MR: case SR: case MN: case SRAVN_ST: case SUSH: case PRIL: case OTRITS: case BRAN: case GRUB: case DETSK: case ZHARG: case IRON: case KNIZHN: case MALOUPOTR: case NEOL: case NEUPOTR: case PEREN: case POGOV: case POSL: case POET: case PRIAM: case PREZR: case PRENEBR: case PRIAM_I_PEREN: case PROST: case RAZG: case UST: case SHUTL: case VOEN: case VOPR_PREDL: case V_RAZN_ZNACH: case DIP: case ZHIV: case ZVUKOPODR: case INDI: case KOM: case KUL: case MOR: case MUZ: case OHOT: case POLIT: case SM: case SOBIR: case SPORT: case TAVR: case TZH: case TK: case UPOTR: case BIBL: case TSERK: _localctx = new RussianAbbrElementContext(_localctx); enterOuterAlt(_localctx, 1); { setState(150); ((RussianAbbrElementContext)_localctx).rucat = russianAbbreviation(); } break; case ADJ: case ADV: case CONJ: case DET: case INTERJ: case NOUN: case NUM: case PARTICULA: case PREP: case PRON: case V: case VERB: case M: case F: case AMB: case COM: case NEUT: case PERS: case DEM: case POS: case REFL: case REL: case INTERR: case INDET: case EXCLAM: case GEN: case UD: _localctx = new GrammaticalElementContext(_localctx); enterOuterAlt(_localctx, 2); { setState(151); ((GrammaticalElementContext)_localctx).gram = grammaticalTag(); } break; default: throw new NoViableAltException(this); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class SimpledefinitionContext extends ParserRuleContext { public Token exCount; public RussianAbbreviationContext rucat; public TextContentContext textContent() { return getRuleContext(TextContentContext.class,0); } public List<TerminalNode> PL() { return getTokens(DictionaryParser.PL); } public TerminalNode PL(int i) { return getToken(DictionaryParser.PL, i); } public TerminalNode EX_NUMBER() { return getToken(DictionaryParser.EX_NUMBER, 0); } public List<RussianAbbreviationContext> russianAbbreviation() { return getRuleContexts(RussianAbbreviationContext.class); } public RussianAbbreviationContext russianAbbreviation(int i) { return getRuleContext(RussianAbbreviationContext.class,i); } public SimpledefinitionContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_simpledefinition; } @Override public void enterRule(ParseTreeListener listener) { if ( listener instanceof DictionaryParserListener ) ((DictionaryParserListener)listener).enterSimpledefinition(this); } @Override public void exitRule(ParseTreeListener listener) { if ( listener instanceof DictionaryParserListener ) ((DictionaryParserListener)listener).exitSimpledefinition(this); } @Override public <T> T accept(ParseTreeVisitor<? extends T> visitor) { if ( visitor instanceof DictionaryParserVisitor ) return ((DictionaryParserVisitor<? extends T>)visitor).visitSimpledefinition(this); else return visitor.visitChildren(this); } } public final SimpledefinitionContext simpledefinition() throws RecognitionException { SimpledefinitionContext _localctx = new SimpledefinitionContext(_ctx, getState()); enterRule(_localctx, 26, RULE_simpledefinition); int _la; try { setState(175); _errHandler.sync(this); switch (_input.LA(1)) { case LEFT_SQUARE: case RIGHT_SQUARE: case LBRACKET: case RBRACKET: case DE_LBRACKET: case DE_RBRACKET: case COLON: case SEMICOLON: case COMMA: case DASH: case PLUS: case QUOTE: case APOSTROPHE: case DOT: case EXCLAMATION: case EXCLAMATION_OPENING: case QUESTION: case QUESTION_OPENING: case ELLIPSIS: case SLASH: case PIPE: case TILDE: case NUMERO: case NUMBER: case PL: case UD: case VIN_P: case DAT_P: case ITD: case ITP: case TEXT_SPACE: case WORD: enterOuterAlt(_localctx, 1); { setState(157); _errHandler.sync(this); _la = _input.LA(1); while (_la==PL) { { { setState(154); match(PL); } } setState(159); _errHandler.sync(this); _la = _input.LA(1); } setState(160); textContent(); } break; case EX_NUMBER: enterOuterAlt(_localctx, 2); { setState(161); ((SimpledefinitionContext)_localctx).exCount = match(EX_NUMBER); setState(165); _errHandler.sync(this); _la = _input.LA(1); while (_la==PL) { { { setState(162); match(PL); } } setState(167); _errHandler.sync(this); _la = _input.LA(1); } setState(171); _errHandler.sync(this); _la = _input.LA(1); while (((((_la - 69)) & ~0x3f) == 0 && ((1L << (_la - 69)) & ((1L << (AV - 69)) | (1L << (AVTO - 69)) | (1L << (ZD - 69)) | (1L << (AM - 69)) | (1L << (ARG - 69)) | (1L << (BOL - 69)) | (1L << (VEN - 69)) | (1L << (GVAT - 69)) | (1L << (GOND - 69)) | (1L << (KOL - 69)) | (1L << (MEKS - 69)) | (1L << (NIK - 69)) | (1L << (PAR - 69)) | (1L << (PR - 69)) | (1L << (SALV - 69)) | (1L << (UR - 69)) | (1L << (CHILI - 69)) | (1L << (EKV - 69)) | (1L << (TSAM - 69)) | (1L << (YUAM - 69)) | (1L << (DOM_RESP - 69)) | (1L << (KOSTA_RIKA - 69)) | (1L << (GOROD - 69)) | (1L << (GOSUDARSTVO - 69)) | (1L << (ANAT - 69)) | (1L << (ANGL - 69)) | (1L << (ARHIT - 69)) | (1L << (ASTR - 69)) | (1L << (BIOL - 69)) | (1L << (BOT - 69)) | (1L << (BUHG - 69)) | (1L << (GEOGR - 69)) | (1L << (GEOL - 69)) | (1L << (GEOM - 69)) | (1L << (GERALD - 69)) | (1L << (GORN - 69)) | (1L << (ZOOL - 69)) | (1L << (ISK - 69)) | (1L << (IST - 69)) | (1L << (KART - 69)) | (1L << (KINO - 69)) | (1L << (LAT - 69)) | (1L << (LINGV - 69)) | (1L << (LIT - 69)) | (1L << (MAT - 69)) | (1L << (MED - 69)) | (1L << (METEO - 69)) | (1L << (MIN - 69)) | (1L << (MIF - 69)) | (1L << (NUMIZM - 69)) | (1L << (POLIGR - 69)) | (1L << (PROGR - 69)) | (1L << (PSIHOL - 69)) | (1L << (RADIO - 69)) | (1L << (RELG - 69)) | (1L << (STROIT - 69)) | (1L << (TEATR - 69)) | (1L << (TEKST - 69)) | (1L << (TELEV - 69)) | (1L << (TEH - 69)) | (1L << (TIPIGR - 69)) | (1L << (FARM - 69)) | (1L << (FIZ - 69)) | (1L << (FIZIOL - 69)))) != 0) || ((((_la - 133)) & ~0x3f) == 0 && ((1L << (_la - 133)) & ((1L << (FILOS - 133)) | (1L << (FIN - 133)) | (1L << (FOTO - 133)) | (1L << (HIM - 133)) | (1L << (HIR - 133)) | (1L << (SHAHM - 133)) | (1L << (EK - 133)) | (1L << (EL - 133)) | (1L << (YUR - 133)) | (1L << (SH - 133)) | (1L << (KOMP - 133)) | (1L << (ART - 133)) | (1L << (BEZL - 133)) | (1L << (GRAM - 133)) | (1L << (ED - 133)) | (1L << (ZR - 133)) | (1L << (MR - 133)) | (1L << (SR - 133)) | (1L << (MN - 133)) | (1L << (SRAVN_ST - 133)) | (1L << (SUSH - 133)) | (1L << (PRIL - 133)) | (1L << (OTRITS - 133)) | (1L << (BRAN - 133)) | (1L << (GRUB - 133)) | (1L << (DETSK - 133)) | (1L << (ZHARG - 133)) | (1L << (IRON - 133)) | (1L << (KNIZHN - 133)) | (1L << (MALOUPOTR - 133)) | (1L << (NEOL - 133)) | (1L << (NEUPOTR - 133)) | (1L << (PEREN - 133)) | (1L << (POGOV - 133)) | (1L << (POSL - 133)) | (1L << (POET - 133)) | (1L << (PRIAM - 133)) | (1L << (PREZR - 133)) | (1L << (PRENEBR - 133)) | (1L << (PRIAM_I_PEREN - 133)) | (1L << (PROST - 133)) | (1L << (RAZG - 133)) | (1L << (UST - 133)) | (1L << (SHUTL - 133)) | (1L << (VOEN - 133)) | (1L << (VOPR_PREDL - 133)) | (1L << (V_RAZN_ZNACH - 133)) | (1L << (DIP - 133)) | (1L << (ZHIV - 133)) | (1L << (ZVUKOPODR - 133)) | (1L << (INDI - 133)) | (1L << (KOM - 133)) | (1L << (KUL - 133)) | (1L << (MOR - 133)) | (1L << (MUZ - 133)) | (1L << (OHOT - 133)) | (1L << (POLIT - 133)) | (1L << (SM - 133)) | (1L << (SOBIR - 133)) | (1L << (SPORT - 133)) | (1L << (TAVR - 133)) | (1L << (TZH - 133)))) != 0) || ((((_la - 197)) & ~0x3f) == 0 && ((1L << (_la - 197)) & ((1L << (TK - 197)) | (1L << (UPOTR - 197)) | (1L << (BIBL - 197)) | (1L << (TSERK - 197)))) != 0)) { { { setState(168); ((SimpledefinitionContext)_localctx).rucat = russianAbbreviation(); } } setState(173); _errHandler.sync(this); _la = _input.LA(1); } setState(174); textContent(); } break; default: throw new NoViableAltException(this); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class ExamplesContext extends ParserRuleContext { public ExampleMarkerContext exampleMarker() { return getRuleContext(ExampleMarkerContext.class,0); } public List<ExampleContext> example() { return getRuleContexts(ExampleContext.class); } public ExampleContext example(int i) { return getRuleContext(ExampleContext.class,i); } public ExamplesContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_examples; } @Override public void enterRule(ParseTreeListener listener) { if ( listener instanceof DictionaryParserListener ) ((DictionaryParserListener)listener).enterExamples(this); } @Override public void exitRule(ParseTreeListener listener) { if ( listener instanceof DictionaryParserListener ) ((DictionaryParserListener)listener).exitExamples(this); } @Override public <T> T accept(ParseTreeVisitor<? extends T> visitor) { if ( visitor instanceof DictionaryParserVisitor ) return ((DictionaryParserVisitor<? extends T>)visitor).visitExamples(this); else return visitor.visitChildren(this); } } public final ExamplesContext examples() throws RecognitionException { ExamplesContext _localctx = new ExamplesContext(_ctx, getState()); enterRule(_localctx, 28, RULE_examples); int _la; try { enterOuterAlt(_localctx, 1); { setState(177); exampleMarker(); setState(179); _errHandler.sync(this); _la = _input.LA(1); do { { { setState(178); example(); } } setState(181); _errHandler.sync(this); _la = _input.LA(1); } while ( (((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << LEFT_SQUARE) | (1L << RIGHT_SQUARE) | (1L << LBRACKET) | (1L << RBRACKET) | (1L << DE_LBRACKET) | (1L << DE_RBRACKET) | (1L << COLON) | (1L << SEMICOLON) | (1L << COMMA) | (1L << DASH) | (1L << PLUS) | (1L << QUOTE) | (1L << APOSTROPHE) | (1L << DOT) | (1L << EXCLAMATION) | (1L << EXCLAMATION_OPENING) | (1L << QUESTION) | (1L << QUESTION_OPENING) | (1L << ELLIPSIS) | (1L << SLASH) | (1L << PIPE) | (1L << TILDE) | (1L << NUMERO) | (1L << NUMBER))) != 0) || ((((_la - 68)) & ~0x3f) == 0 && ((1L << (_la - 68)) & ((1L << (UD - 68)) | (1L << (AV - 68)) | (1L << (AVTO - 68)) | (1L << (ZD - 68)) | (1L << (AM - 68)) | (1L << (ARG - 68)) | (1L << (BOL - 68)) | (1L << (VEN - 68)) | (1L << (GVAT - 68)) | (1L << (GOND - 68)) | (1L << (KOL - 68)) | (1L << (MEKS - 68)) | (1L << (NIK - 68)) | (1L << (PAR - 68)) | (1L << (PR - 68)) | (1L << (SALV - 68)) | (1L << (UR - 68)) | (1L << (CHILI - 68)) | (1L << (EKV - 68)) | (1L << (TSAM - 68)) | (1L << (YUAM - 68)) | (1L << (DOM_RESP - 68)) | (1L << (KOSTA_RIKA - 68)) | (1L << (GOROD - 68)) | (1L << (GOSUDARSTVO - 68)) | (1L << (ANAT - 68)) | (1L << (ANGL - 68)) | (1L << (ARHIT - 68)) | (1L << (ASTR - 68)) | (1L << (BIOL - 68)) | (1L << (BOT - 68)) | (1L << (BUHG - 68)) | (1L << (GEOGR - 68)) | (1L << (GEOL - 68)) | (1L << (GEOM - 68)) | (1L << (GERALD - 68)) | (1L << (GORN - 68)) | (1L << (ZOOL - 68)) | (1L << (ISK - 68)) | (1L << (IST - 68)) | (1L << (KART - 68)) | (1L << (KINO - 68)) | (1L << (LAT - 68)) | (1L << (LINGV - 68)) | (1L << (LIT - 68)) | (1L << (MAT - 68)) | (1L << (MED - 68)) | (1L << (METEO - 68)) | (1L << (MIN - 68)) | (1L << (MIF - 68)) | (1L << (NUMIZM - 68)) | (1L << (POLIGR - 68)) | (1L << (PROGR - 68)) | (1L << (PSIHOL - 68)) | (1L << (RADIO - 68)) | (1L << (RELG - 68)) | (1L << (STROIT - 68)) | (1L << (TEATR - 68)) | (1L << (TEKST - 68)) | (1L << (TELEV - 68)) | (1L << (TEH - 68)) | (1L << (TIPIGR - 68)) | (1L << (FARM - 68)) | (1L << (FIZ - 68)))) != 0) || ((((_la - 132)) & ~0x3f) == 0 && ((1L << (_la - 132)) & ((1L << (FIZIOL - 132)) | (1L << (FILOS - 132)) | (1L << (FIN - 132)) | (1L << (FOTO - 132)) | (1L << (HIM - 132)) | (1L << (HIR - 132)) | (1L << (SHAHM - 132)) | (1L << (EK - 132)) | (1L << (EL - 132)) | (1L << (YUR - 132)) | (1L << (SH - 132)) | (1L << (KOMP - 132)) | (1L << (ART - 132)) | (1L << (BEZL - 132)) | (1L << (VIN_P - 132)) | (1L << (DAT_P - 132)) | (1L << (GRAM - 132)) | (1L << (ED - 132)) | (1L << (ZR - 132)) | (1L << (MR - 132)) | (1L << (SR - 132)) | (1L << (MN - 132)) | (1L << (SRAVN_ST - 132)) | (1L << (SUSH - 132)) | (1L << (PRIL - 132)) | (1L << (OTRITS - 132)) | (1L << (BRAN - 132)) | (1L << (GRUB - 132)) | (1L << (DETSK - 132)) | (1L << (ZHARG - 132)) | (1L << (IRON - 132)) | (1L << (KNIZHN - 132)) | (1L << (MALOUPOTR - 132)) | (1L << (NEOL - 132)) | (1L << (NEUPOTR - 132)) | (1L << (PEREN - 132)) | (1L << (POGOV - 132)) | (1L << (POSL - 132)) | (1L << (POET - 132)) | (1L << (PRIAM - 132)) | (1L << (PREZR - 132)) | (1L << (PRENEBR - 132)) | (1L << (PRIAM_I_PEREN - 132)) | (1L << (PROST - 132)) | (1L << (RAZG - 132)) | (1L << (UST - 132)) | (1L << (SHUTL - 132)) | (1L << (VOEN - 132)) | (1L << (VOPR_PREDL - 132)) | (1L << (V_RAZN_ZNACH - 132)) | (1L << (DIP - 132)) | (1L << (ZHIV - 132)) | (1L << (ZVUKOPODR - 132)) | (1L << (INDI - 132)) | (1L << (KOM - 132)) | (1L << (KUL - 132)) | (1L << (MOR - 132)) | (1L << (MUZ - 132)) | (1L << (OHOT - 132)) | (1L << (POLIT - 132)) | (1L << (SM - 132)) | (1L << (SOBIR - 132)) | (1L << (SPORT - 132)) | (1L << (TAVR - 132)))) != 0) || ((((_la - 196)) & ~0x3f) == 0 && ((1L << (_la - 196)) & ((1L << (TZH - 196)) | (1L << (TK - 196)) | (1L << (UPOTR - 196)) | (1L << (ITD - 196)) | (1L << (ITP - 196)) | (1L << (BIBL - 196)) | (1L << (TSERK - 196)) | (1L << (TEXT_SPACE - 196)) | (1L << (WORD - 196)))) != 0) ); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class ExampleMarkerContext extends ParserRuleContext { public TerminalNode LOZENGE() { return getToken(DictionaryParser.LOZENGE, 0); } public TerminalNode CONTROL_CHAR() { return getToken(DictionaryParser.CONTROL_CHAR, 0); } public ExampleMarkerContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_exampleMarker; } @Override public void enterRule(ParseTreeListener listener) { if ( listener instanceof DictionaryParserListener ) ((DictionaryParserListener)listener).enterExampleMarker(this); } @Override public void exitRule(ParseTreeListener listener) { if ( listener instanceof DictionaryParserListener ) ((DictionaryParserListener)listener).exitExampleMarker(this); } @Override public <T> T accept(ParseTreeVisitor<? extends T> visitor) { if ( visitor instanceof DictionaryParserVisitor ) return ((DictionaryParserVisitor<? extends T>)visitor).visitExampleMarker(this); else return visitor.visitChildren(this); } } public final ExampleMarkerContext exampleMarker() throws RecognitionException { ExampleMarkerContext _localctx = new ExampleMarkerContext(_ctx, getState()); enterRule(_localctx, 30, RULE_exampleMarker); int _la; try { enterOuterAlt(_localctx, 1); { setState(183); _la = _input.LA(1); if ( !(_la==LOZENGE || _la==CONTROL_CHAR) ) { _errHandler.recoverInline(this); } else { if ( _input.LA(1)==Token.EOF ) matchedEOF = true; _errHandler.reportMatch(this); consume(); } } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class ExampleContext extends ParserRuleContext { public List<ExampleElementContext> exampleElement() { return getRuleContexts(ExampleElementContext.class); } public ExampleElementContext exampleElement(int i) { return getRuleContext(ExampleElementContext.class,i); } public List<TerminalNode> SEMICOLON() { return getTokens(DictionaryParser.SEMICOLON); } public TerminalNode SEMICOLON(int i) { return getToken(DictionaryParser.SEMICOLON, i); } public ExampleContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_example; } @Override public void enterRule(ParseTreeListener listener) { if ( listener instanceof DictionaryParserListener ) ((DictionaryParserListener)listener).enterExample(this); } @Override public void exitRule(ParseTreeListener listener) { if ( listener instanceof DictionaryParserListener ) ((DictionaryParserListener)listener).exitExample(this); } @Override public <T> T accept(ParseTreeVisitor<? extends T> visitor) { if ( visitor instanceof DictionaryParserVisitor ) return ((DictionaryParserVisitor<? extends T>)visitor).visitExample(this); else return visitor.visitChildren(this); } } public final ExampleContext example() throws RecognitionException { ExampleContext _localctx = new ExampleContext(_ctx, getState()); enterRule(_localctx, 32, RULE_example); try { int _alt; enterOuterAlt(_localctx, 1); { setState(186); _errHandler.sync(this); _alt = 1; do { switch (_alt) { case 1: { { setState(185); exampleElement(); } } break; default: throw new NoViableAltException(this); } setState(188); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,26,_ctx); } while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ); setState(193); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,27,_ctx); while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { if ( _alt==1 ) { { { setState(190); match(SEMICOLON); } } } setState(195); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,27,_ctx); } } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class ExampleElementContext extends ParserRuleContext { public ExampleElementContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_exampleElement; } public ExampleElementContext() { } public void copyFrom(ExampleElementContext ctx) { super.copyFrom(ctx); } } public static class ExampleTextContentContext extends ExampleElementContext { public TextContentContext exText; public TextContentContext textContent() { return getRuleContext(TextContentContext.class,0); } public ExampleTextContentContext(ExampleElementContext ctx) { copyFrom(ctx); } @Override public void enterRule(ParseTreeListener listener) { if ( listener instanceof DictionaryParserListener ) ((DictionaryParserListener)listener).enterExampleTextContent(this); } @Override public void exitRule(ParseTreeListener listener) { if ( listener instanceof DictionaryParserListener ) ((DictionaryParserListener)listener).exitExampleTextContent(this); } @Override public <T> T accept(ParseTreeVisitor<? extends T> visitor) { if ( visitor instanceof DictionaryParserVisitor ) return ((DictionaryParserVisitor<? extends T>)visitor).visitExampleTextContent(this); else return visitor.visitChildren(this); } } public static class ExampleRussianAbbrContext extends ExampleElementContext { public RussianAbbreviationContext rucat; public RussianAbbreviationContext russianAbbreviation() { return getRuleContext(RussianAbbreviationContext.class,0); } public ExampleRussianAbbrContext(ExampleElementContext ctx) { copyFrom(ctx); } @Override public void enterRule(ParseTreeListener listener) { if ( listener instanceof DictionaryParserListener ) ((DictionaryParserListener)listener).enterExampleRussianAbbr(this); } @Override public void exitRule(ParseTreeListener listener) { if ( listener instanceof DictionaryParserListener ) ((DictionaryParserListener)listener).exitExampleRussianAbbr(this); } @Override public <T> T accept(ParseTreeVisitor<? extends T> visitor) { if ( visitor instanceof DictionaryParserVisitor ) return ((DictionaryParserVisitor<? extends T>)visitor).visitExampleRussianAbbr(this); else return visitor.visitChildren(this); } } public final ExampleElementContext exampleElement() throws RecognitionException { ExampleElementContext _localctx = new ExampleElementContext(_ctx, getState()); enterRule(_localctx, 34, RULE_exampleElement); try { setState(198); _errHandler.sync(this); switch (_input.LA(1)) { case AV: case AVTO: case ZD: case AM: case ARG: case BOL: case VEN: case GVAT: case GOND: case KOL: case MEKS: case NIK: case PAR: case PR: case SALV: case UR: case CHILI: case EKV: case TSAM: case YUAM: case DOM_RESP: case KOSTA_RIKA: case GOROD: case GOSUDARSTVO: case ANAT: case ANGL: case ARHIT: case ASTR: case BIOL: case BOT: case BUHG: case GEOGR: case GEOL: case GEOM: case GERALD: case GORN: case ZOOL: case ISK: case IST: case KART: case KINO: case LAT: case LINGV: case LIT: case MAT: case MED: case METEO: case MIN: case MIF: case NUMIZM: case POLIGR: case PROGR: case PSIHOL: case RADIO: case RELG: case STROIT: case TEATR: case TEKST: case TELEV: case TEH: case TIPIGR: case FARM: case FIZ: case FIZIOL: case FILOS: case FIN: case FOTO: case HIM: case HIR: case SHAHM: case EK: case EL: case YUR: case SH: case KOMP: case ART: case BEZL: case GRAM: case ED: case ZR: case MR: case SR: case MN: case SRAVN_ST: case SUSH: case PRIL: case OTRITS: case BRAN: case GRUB: case DETSK: case ZHARG: case IRON: case KNIZHN: case MALOUPOTR: case NEOL: case NEUPOTR: case PEREN: case POGOV: case POSL: case POET: case PRIAM: case PREZR: case PRENEBR: case PRIAM_I_PEREN: case PROST: case RAZG: case UST: case SHUTL: case VOEN: case VOPR_PREDL: case V_RAZN_ZNACH: case DIP: case ZHIV: case ZVUKOPODR: case INDI: case KOM: case KUL: case MOR: case MUZ: case OHOT: case POLIT: case SM: case SOBIR: case SPORT: case TAVR: case TZH: case TK: case UPOTR: case BIBL: case TSERK: _localctx = new ExampleRussianAbbrContext(_localctx); enterOuterAlt(_localctx, 1); { setState(196); ((ExampleRussianAbbrContext)_localctx).rucat = russianAbbreviation(); } break; case LEFT_SQUARE: case RIGHT_SQUARE: case LBRACKET: case RBRACKET: case DE_LBRACKET: case DE_RBRACKET: case COLON: case SEMICOLON: case COMMA: case DASH: case PLUS: case QUOTE: case APOSTROPHE: case DOT: case EXCLAMATION: case EXCLAMATION_OPENING: case QUESTION: case QUESTION_OPENING: case ELLIPSIS: case SLASH: case PIPE: case TILDE: case NUMERO: case NUMBER: case UD: case VIN_P: case DAT_P: case ITD: case ITP: case TEXT_SPACE: case WORD: _localctx = new ExampleTextContentContext(_localctx); enterOuterAlt(_localctx, 2); { setState(197); ((ExampleTextContentContext)_localctx).exText = textContent(); } break; default: throw new NoViableAltException(this); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class UsageexampleContext extends ParserRuleContext { public RussianAbbreviationContext rucat; public TextContentContext usage; public TerminalNode HASHTAG() { return getToken(DictionaryParser.HASHTAG, 0); } public TextContentContext textContent() { return getRuleContext(TextContentContext.class,0); } public List<RussianAbbreviationContext> russianAbbreviation() { return getRuleContexts(RussianAbbreviationContext.class); } public RussianAbbreviationContext russianAbbreviation(int i) { return getRuleContext(RussianAbbreviationContext.class,i); } public UsageexampleContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_usageexample; } @Override public void enterRule(ParseTreeListener listener) { if ( listener instanceof DictionaryParserListener ) ((DictionaryParserListener)listener).enterUsageexample(this); } @Override public void exitRule(ParseTreeListener listener) { if ( listener instanceof DictionaryParserListener ) ((DictionaryParserListener)listener).exitUsageexample(this); } @Override public <T> T accept(ParseTreeVisitor<? extends T> visitor) { if ( visitor instanceof DictionaryParserVisitor ) return ((DictionaryParserVisitor<? extends T>)visitor).visitUsageexample(this); else return visitor.visitChildren(this); } } public final UsageexampleContext usageexample() throws RecognitionException { UsageexampleContext _localctx = new UsageexampleContext(_ctx, getState()); enterRule(_localctx, 36, RULE_usageexample); int _la; try { enterOuterAlt(_localctx, 1); { setState(200); match(HASHTAG); setState(204); _errHandler.sync(this); _la = _input.LA(1); while (((((_la - 69)) & ~0x3f) == 0 && ((1L << (_la - 69)) & ((1L << (AV - 69)) | (1L << (AVTO - 69)) | (1L << (ZD - 69)) | (1L << (AM - 69)) | (1L << (ARG - 69)) | (1L << (BOL - 69)) | (1L << (VEN - 69)) | (1L << (GVAT - 69)) | (1L << (GOND - 69)) | (1L << (KOL - 69)) | (1L << (MEKS - 69)) | (1L << (NIK - 69)) | (1L << (PAR - 69)) | (1L << (PR - 69)) | (1L << (SALV - 69)) | (1L << (UR - 69)) | (1L << (CHILI - 69)) | (1L << (EKV - 69)) | (1L << (TSAM - 69)) | (1L << (YUAM - 69)) | (1L << (DOM_RESP - 69)) | (1L << (KOSTA_RIKA - 69)) | (1L << (GOROD - 69)) | (1L << (GOSUDARSTVO - 69)) | (1L << (ANAT - 69)) | (1L << (ANGL - 69)) | (1L << (ARHIT - 69)) | (1L << (ASTR - 69)) | (1L << (BIOL - 69)) | (1L << (BOT - 69)) | (1L << (BUHG - 69)) | (1L << (GEOGR - 69)) | (1L << (GEOL - 69)) | (1L << (GEOM - 69)) | (1L << (GERALD - 69)) | (1L << (GORN - 69)) | (1L << (ZOOL - 69)) | (1L << (ISK - 69)) | (1L << (IST - 69)) | (1L << (KART - 69)) | (1L << (KINO - 69)) | (1L << (LAT - 69)) | (1L << (LINGV - 69)) | (1L << (LIT - 69)) | (1L << (MAT - 69)) | (1L << (MED - 69)) | (1L << (METEO - 69)) | (1L << (MIN - 69)) | (1L << (MIF - 69)) | (1L << (NUMIZM - 69)) | (1L << (POLIGR - 69)) | (1L << (PROGR - 69)) | (1L << (PSIHOL - 69)) | (1L << (RADIO - 69)) | (1L << (RELG - 69)) | (1L << (STROIT - 69)) | (1L << (TEATR - 69)) | (1L << (TEKST - 69)) | (1L << (TELEV - 69)) | (1L << (TEH - 69)) | (1L << (TIPIGR - 69)) | (1L << (FARM - 69)) | (1L << (FIZ - 69)) | (1L << (FIZIOL - 69)))) != 0) || ((((_la - 133)) & ~0x3f) == 0 && ((1L << (_la - 133)) & ((1L << (FILOS - 133)) | (1L << (FIN - 133)) | (1L << (FOTO - 133)) | (1L << (HIM - 133)) | (1L << (HIR - 133)) | (1L << (SHAHM - 133)) | (1L << (EK - 133)) | (1L << (EL - 133)) | (1L << (YUR - 133)) | (1L << (SH - 133)) | (1L << (KOMP - 133)) | (1L << (ART - 133)) | (1L << (BEZL - 133)) | (1L << (GRAM - 133)) | (1L << (ED - 133)) | (1L << (ZR - 133)) | (1L << (MR - 133)) | (1L << (SR - 133)) | (1L << (MN - 133)) | (1L << (SRAVN_ST - 133)) | (1L << (SUSH - 133)) | (1L << (PRIL - 133)) | (1L << (OTRITS - 133)) | (1L << (BRAN - 133)) | (1L << (GRUB - 133)) | (1L << (DETSK - 133)) | (1L << (ZHARG - 133)) | (1L << (IRON - 133)) | (1L << (KNIZHN - 133)) | (1L << (MALOUPOTR - 133)) | (1L << (NEOL - 133)) | (1L << (NEUPOTR - 133)) | (1L << (PEREN - 133)) | (1L << (POGOV - 133)) | (1L << (POSL - 133)) | (1L << (POET - 133)) | (1L << (PRIAM - 133)) | (1L << (PREZR - 133)) | (1L << (PRENEBR - 133)) | (1L << (PRIAM_I_PEREN - 133)) | (1L << (PROST - 133)) | (1L << (RAZG - 133)) | (1L << (UST - 133)) | (1L << (SHUTL - 133)) | (1L << (VOEN - 133)) | (1L << (VOPR_PREDL - 133)) | (1L << (V_RAZN_ZNACH - 133)) | (1L << (DIP - 133)) | (1L << (ZHIV - 133)) | (1L << (ZVUKOPODR - 133)) | (1L << (INDI - 133)) | (1L << (KOM - 133)) | (1L << (KUL - 133)) | (1L << (MOR - 133)) | (1L << (MUZ - 133)) | (1L << (OHOT - 133)) | (1L << (POLIT - 133)) | (1L << (SM - 133)) | (1L << (SOBIR - 133)) | (1L << (SPORT - 133)) | (1L << (TAVR - 133)) | (1L << (TZH - 133)))) != 0) || ((((_la - 197)) & ~0x3f) == 0 && ((1L << (_la - 197)) & ((1L << (TK - 197)) | (1L << (UPOTR - 197)) | (1L << (BIBL - 197)) | (1L << (TSERK - 197)))) != 0)) { { { setState(201); ((UsageexampleContext)_localctx).rucat = russianAbbreviation(); } } setState(206); _errHandler.sync(this); _la = _input.LA(1); } setState(207); ((UsageexampleContext)_localctx).usage = textContent(); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static class TextContentContext extends ParserRuleContext { public List<TerminalNode> WORD() { return getTokens(DictionaryParser.WORD); } public TerminalNode WORD(int i) { return getToken(DictionaryParser.WORD, i); } public List<TerminalNode> NUMBER() { return getTokens(DictionaryParser.NUMBER); } public TerminalNode NUMBER(int i) { return getToken(DictionaryParser.NUMBER, i); } public List<TerminalNode> TEXT_SPACE() { return getTokens(DictionaryParser.TEXT_SPACE); } public TerminalNode TEXT_SPACE(int i) { return getToken(DictionaryParser.TEXT_SPACE, i); } public List<TerminalNode> COMMA() { return getTokens(DictionaryParser.COMMA); } public TerminalNode COMMA(int i) { return getToken(DictionaryParser.COMMA, i); } public List<TerminalNode> DASH() { return getTokens(DictionaryParser.DASH); } public TerminalNode DASH(int i) { return getToken(DictionaryParser.DASH, i); } public List<TerminalNode> PLUS() { return getTokens(DictionaryParser.PLUS); } public TerminalNode PLUS(int i) { return getToken(DictionaryParser.PLUS, i); } public List<TerminalNode> COLON() { return getTokens(DictionaryParser.COLON); } public TerminalNode COLON(int i) { return getToken(DictionaryParser.COLON, i); } public List<TerminalNode> SEMICOLON() { return getTokens(DictionaryParser.SEMICOLON); } public TerminalNode SEMICOLON(int i) { return getToken(DictionaryParser.SEMICOLON, i); } public List<TerminalNode> QUOTE() { return getTokens(DictionaryParser.QUOTE); } public TerminalNode QUOTE(int i) { return getToken(DictionaryParser.QUOTE, i); } public List<TerminalNode> APOSTROPHE() { return getTokens(DictionaryParser.APOSTROPHE); } public TerminalNode APOSTROPHE(int i) { return getToken(DictionaryParser.APOSTROPHE, i); } public List<TerminalNode> DOT() { return getTokens(DictionaryParser.DOT); } public TerminalNode DOT(int i) { return getToken(DictionaryParser.DOT, i); } public List<TerminalNode> EXCLAMATION_OPENING() { return getTokens(DictionaryParser.EXCLAMATION_OPENING); } public TerminalNode EXCLAMATION_OPENING(int i) { return getToken(DictionaryParser.EXCLAMATION_OPENING, i); } public List<TerminalNode> EXCLAMATION() { return getTokens(DictionaryParser.EXCLAMATION); } public TerminalNode EXCLAMATION(int i) { return getToken(DictionaryParser.EXCLAMATION, i); } public List<TerminalNode> QUESTION_OPENING() { return getTokens(DictionaryParser.QUESTION_OPENING); } public TerminalNode QUESTION_OPENING(int i) { return getToken(DictionaryParser.QUESTION_OPENING, i); } public List<TerminalNode> QUESTION() { return getTokens(DictionaryParser.QUESTION); } public TerminalNode QUESTION(int i) { return getToken(DictionaryParser.QUESTION, i); } public List<TerminalNode> NUMERO() { return getTokens(DictionaryParser.NUMERO); } public TerminalNode NUMERO(int i) { return getToken(DictionaryParser.NUMERO, i); } public List<TerminalNode> SLASH() { return getTokens(DictionaryParser.SLASH); } public TerminalNode SLASH(int i) { return getToken(DictionaryParser.SLASH, i); } public List<TerminalNode> PIPE() { return getTokens(DictionaryParser.PIPE); } public TerminalNode PIPE(int i) { return getToken(DictionaryParser.PIPE, i); } public List<TerminalNode> TILDE() { return getTokens(DictionaryParser.TILDE); } public TerminalNode TILDE(int i) { return getToken(DictionaryParser.TILDE, i); } public List<TerminalNode> LBRACKET() { return getTokens(DictionaryParser.LBRACKET); } public TerminalNode LBRACKET(int i) { return getToken(DictionaryParser.LBRACKET, i); } public List<TerminalNode> RBRACKET() { return getTokens(DictionaryParser.RBRACKET); } public TerminalNode RBRACKET(int i) { return getToken(DictionaryParser.RBRACKET, i); } public List<TerminalNode> DE_LBRACKET() { return getTokens(DictionaryParser.DE_LBRACKET); } public TerminalNode DE_LBRACKET(int i) { return getToken(DictionaryParser.DE_LBRACKET, i); } public List<TerminalNode> DE_RBRACKET() { return getTokens(DictionaryParser.DE_RBRACKET); } public TerminalNode DE_RBRACKET(int i) { return getToken(DictionaryParser.DE_RBRACKET, i); } public List<TerminalNode> LEFT_SQUARE() { return getTokens(DictionaryParser.LEFT_SQUARE); } public TerminalNode LEFT_SQUARE(int i) { return getToken(DictionaryParser.LEFT_SQUARE, i); } public List<TerminalNode> RIGHT_SQUARE() { return getTokens(DictionaryParser.RIGHT_SQUARE); } public TerminalNode RIGHT_SQUARE(int i) { return getToken(DictionaryParser.RIGHT_SQUARE, i); } public List<TerminalNode> ELLIPSIS() { return getTokens(DictionaryParser.ELLIPSIS); } public TerminalNode ELLIPSIS(int i) { return getToken(DictionaryParser.ELLIPSIS, i); } public List<TerminalNode> UD() { return getTokens(DictionaryParser.UD); } public TerminalNode UD(int i) { return getToken(DictionaryParser.UD, i); } public List<TerminalNode> ITD() { return getTokens(DictionaryParser.ITD); } public TerminalNode ITD(int i) { return getToken(DictionaryParser.ITD, i); } public List<TerminalNode> ITP() { return getTokens(DictionaryParser.ITP); } public TerminalNode ITP(int i) { return getToken(DictionaryParser.ITP, i); } public List<TerminalNode> VIN_P() { return getTokens(DictionaryParser.VIN_P); } public TerminalNode VIN_P(int i) { return getToken(DictionaryParser.VIN_P, i); } public List<TerminalNode> DAT_P() { return getTokens(DictionaryParser.DAT_P); } public TerminalNode DAT_P(int i) { return getToken(DictionaryParser.DAT_P, i); } public TextContentContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } @Override public int getRuleIndex() { return RULE_textContent; } @Override public void enterRule(ParseTreeListener listener) { if ( listener instanceof DictionaryParserListener ) ((DictionaryParserListener)listener).enterTextContent(this); } @Override public void exitRule(ParseTreeListener listener) { if ( listener instanceof DictionaryParserListener ) ((DictionaryParserListener)listener).exitTextContent(this); } @Override public <T> T accept(ParseTreeVisitor<? extends T> visitor) { if ( visitor instanceof DictionaryParserVisitor ) return ((DictionaryParserVisitor<? extends T>)visitor).visitTextContent(this); else return visitor.visitChildren(this); } } public final TextContentContext textContent() throws RecognitionException { TextContentContext _localctx = new TextContentContext(_ctx, getState()); enterRule(_localctx, 38, RULE_textContent); int _la; try { int _alt; enterOuterAlt(_localctx, 1); { setState(210); _errHandler.sync(this); _alt = 1; do { switch (_alt) { case 1: { { setState(209); _la = _input.LA(1); if ( !((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << LEFT_SQUARE) | (1L << RIGHT_SQUARE) | (1L << LBRACKET) | (1L << RBRACKET) | (1L << DE_LBRACKET) | (1L << DE_RBRACKET) | (1L << COLON) | (1L << SEMICOLON) | (1L << COMMA) | (1L << DASH) | (1L << PLUS) | (1L << QUOTE) | (1L << APOSTROPHE) | (1L << DOT) | (1L << EXCLAMATION) | (1L << EXCLAMATION_OPENING) | (1L << QUESTION) | (1L << QUESTION_OPENING) | (1L << ELLIPSIS) | (1L << SLASH) | (1L << PIPE) | (1L << TILDE) | (1L << NUMERO) | (1L << NUMBER))) != 0) || _la==UD || ((((_la - 146)) & ~0x3f) == 0 && ((1L << (_la - 146)) & ((1L << (VIN_P - 146)) | (1L << (DAT_P - 146)) | (1L << (ITD - 146)) | (1L << (ITP - 146)) | (1L << (TEXT_SPACE - 146)) | (1L << (WORD - 146)))) != 0)) ) { _errHandler.recoverInline(this); } else { if ( _input.LA(1)==Token.EOF ) matchedEOF = true; _errHandler.reportMatch(this); consume(); } } } break; default: throw new NoViableAltException(this); } setState(212); _errHandler.sync(this); _alt = getInterpreter().adaptivePredict(_input,30,_ctx); } while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ); } } catch (RecognitionException re) { _localctx.exception = re; _errHandler.reportError(this, re); _errHandler.recover(this, re); } finally { exitRule(); } return _localctx; } public static final String _serializedATN = "\3\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964\3\u00d1\u00d9\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\3\2\6\2,\n\2\r\2\16\2-\3\2\3\2\3\3\3\3"+ "\6\3\64\n\3\r\3\16\3\65\3\3\5\39\n\3\3\3\6\3<\n\3\r\3\16\3=\5\3@\n\3\3"+ "\3\3\3\3\4\3\4\5\4F\n\4\3\4\5\4I\n\4\3\4\5\4L\n\4\3\4\3\4\3\4\5\4Q\n\4"+ "\3\4\7\4T\n\4\f\4\16\4W\13\4\3\4\7\4Z\n\4\f\4\16\4]\13\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\6\13m\n\13\r\13\16\13n\3"+ "\f\3\f\6\fs\n\f\r\f\16\ft\3\f\7\fx\n\f\f\f\16\f{\13\f\3\f\6\f~\n\f\r\f"+ "\16\f\177\5\f\u0082\n\f\3\r\3\r\7\r\u0086\n\r\f\r\16\r\u0089\13\r\3\r"+ "\6\r\u008c\n\r\r\r\16\r\u008d\3\r\3\r\7\r\u0092\n\r\f\r\16\r\u0095\13"+ "\r\5\r\u0097\n\r\3\16\3\16\5\16\u009b\n\16\3\17\7\17\u009e\n\17\f\17\16"+ "\17\u00a1\13\17\3\17\3\17\3\17\7\17\u00a6\n\17\f\17\16\17\u00a9\13\17"+ "\3\17\7\17\u00ac\n\17\f\17\16\17\u00af\13\17\3\17\5\17\u00b2\n\17\3\20"+ "\3\20\6\20\u00b6\n\20\r\20\16\20\u00b7\3\21\3\21\3\22\6\22\u00bd\n\22"+ "\r\22\16\22\u00be\3\22\7\22\u00c2\n\22\f\22\16\22\u00c5\13\22\3\23\3\23"+ "\5\23\u00c9\n\23\3\24\3\24\7\24\u00cd\n\24\f\24\16\24\u00d0\13\24\3\24"+ "\3\24\3\25\6\25\u00d5\n\25\r\25\16\25\u00d6\3\25\2\2\26\2\4\6\b\n\f\16"+ "\20\22\24\26\30\32\34\36 \"$&(\2\r\4\2\13\r\u00cf\u00cf\3\2#.\3\2/\63"+ "\3\2\64\65\3\2\66<\3\2=D\3\2EF\5\2G\u0093\u0096\u00c8\u00cb\u00cc\6\2"+ "\b\b\13\r\23\23\u00cf\u00cf\3\2\34\35\13\2\3\4\7\16\20\33\36\36\"\"FF"+ "\u0094\u0095\u00c9\u00ca\u00cf\u00d0\2\u00e5\2+\3\2\2\2\4\61\3\2\2\2\6"+ "P\3\2\2\2\b^\3\2\2\2\n`\3\2\2\2\fb\3\2\2\2\16d\3\2\2\2\20f\3\2\2\2\22"+ "h\3\2\2\2\24j\3\2\2\2\26\u0081\3\2\2\2\30\u0096\3\2\2\2\32\u009a\3\2\2"+ "\2\34\u00b1\3\2\2\2\36\u00b3\3\2\2\2 \u00b9\3\2\2\2\"\u00bc\3\2\2\2$\u00c8"+ "\3\2\2\2&\u00ca\3\2\2\2(\u00d4\3\2\2\2*,\5\4\3\2+*\3\2\2\2,-\3\2\2\2-"+ "+\3\2\2\2-.\3\2\2\2./\3\2\2\2/\60\7\2\2\3\60\3\3\2\2\2\61\63\7\u00d0\2"+ "\2\62\64\5\26\f\2\63\62\3\2\2\2\64\65\3\2\2\2\65\63\3\2\2\2\65\66\3\2"+ "\2\2\668\3\2\2\2\679\5\36\20\28\67\3\2\2\289\3\2\2\29?\3\2\2\2:<\5&\24"+ "\2;:\3\2\2\2<=\3\2\2\2=;\3\2\2\2=>\3\2\2\2>@\3\2\2\2?;\3\2\2\2?@\3\2\2"+ "\2@A\3\2\2\2AB\7\u00ce\2\2B\5\3\2\2\2CE\5\b\5\2DF\5\n\6\2ED\3\2\2\2EF"+ "\3\2\2\2FH\3\2\2\2GI\5\f\7\2HG\3\2\2\2HI\3\2\2\2IK\3\2\2\2JL\5\16\b\2"+ "KJ\3\2\2\2KL\3\2\2\2LQ\3\2\2\2MQ\5\20\t\2NQ\5\22\n\2OQ\5\n\6\2PC\3\2\2"+ "\2PM\3\2\2\2PN\3\2\2\2PO\3\2\2\2QU\3\2\2\2RT\t\2\2\2SR\3\2\2\2TW\3\2\2"+ "\2US\3\2\2\2UV\3\2\2\2V[\3\2\2\2WU\3\2\2\2XZ\5\6\4\2YX\3\2\2\2Z]\3\2\2"+ "\2[Y\3\2\2\2[\\\3\2\2\2\\\7\3\2\2\2][\3\2\2\2^_\t\3\2\2_\t\3\2\2\2`a\t"+ "\4\2\2a\13\3\2\2\2bc\t\5\2\2c\r\3\2\2\2de\t\6\2\2e\17\3\2\2\2fg\t\7\2"+ "\2g\21\3\2\2\2hi\t\b\2\2i\23\3\2\2\2jl\t\t\2\2km\t\n\2\2lk\3\2\2\2mn\3"+ "\2\2\2nl\3\2\2\2no\3\2\2\2o\25\3\2\2\2pr\5\30\r\2qs\5\34\17\2rq\3\2\2"+ "\2st\3\2\2\2tr\3\2\2\2tu\3\2\2\2u\u0082\3\2\2\2vx\5\32\16\2wv\3\2\2\2"+ "x{\3\2\2\2yw\3\2\2\2yz\3\2\2\2z}\3\2\2\2{y\3\2\2\2|~\5\34\17\2}|\3\2\2"+ "\2~\177\3\2\2\2\177}\3\2\2\2\177\u0080\3\2\2\2\u0080\u0082\3\2\2\2\u0081"+ "p\3\2\2\2\u0081y\3\2\2\2\u0082\27\3\2\2\2\u0083\u0087\7 \2\2\u0084\u0086"+ "\5\32\16\2\u0085\u0084\3\2\2\2\u0086\u0089\3\2\2\2\u0087\u0085\3\2\2\2"+ "\u0087\u0088\3\2\2\2\u0088\u0097\3\2\2\2\u0089\u0087\3\2\2\2\u008a\u008c"+ "\5\32\16\2\u008b\u008a\3\2\2\2\u008c\u008d\3\2\2\2\u008d\u008b\3\2\2\2"+ "\u008d\u008e\3\2\2\2\u008e\u008f\3\2\2\2\u008f\u0093\7 \2\2\u0090\u0092"+ "\5\32\16\2\u0091\u0090\3\2\2\2\u0092\u0095\3\2\2\2\u0093\u0091\3\2\2\2"+ "\u0093\u0094\3\2\2\2\u0094\u0097\3\2\2\2\u0095\u0093\3\2\2\2\u0096\u0083"+ "\3\2\2\2\u0096\u008b\3\2\2\2\u0097\31\3\2\2\2\u0098\u009b\5\24\13\2\u0099"+ "\u009b\5\6\4\2\u009a\u0098\3\2\2\2\u009a\u0099\3\2\2\2\u009b\33\3\2\2"+ "\2\u009c\u009e\7\65\2\2\u009d\u009c\3\2\2\2\u009e\u00a1\3\2\2\2\u009f"+ "\u009d\3\2\2\2\u009f\u00a0\3\2\2\2\u00a0\u00a2\3\2\2\2\u00a1\u009f\3\2"+ "\2\2\u00a2\u00b2\5(\25\2\u00a3\u00a7\7!\2\2\u00a4\u00a6\7\65\2\2\u00a5"+ "\u00a4\3\2\2\2\u00a6\u00a9\3\2\2\2\u00a7\u00a5\3\2\2\2\u00a7\u00a8\3\2"+ "\2\2\u00a8\u00ad\3\2\2\2\u00a9\u00a7\3\2\2\2\u00aa\u00ac\5\24\13\2\u00ab"+ "\u00aa\3\2\2\2\u00ac\u00af\3\2\2\2\u00ad\u00ab\3\2\2\2\u00ad\u00ae\3\2"+ "\2\2\u00ae\u00b0\3\2\2\2\u00af\u00ad\3\2\2\2\u00b0\u00b2\5(\25\2\u00b1"+ "\u009f\3\2\2\2\u00b1\u00a3\3\2\2\2\u00b2\35\3\2\2\2\u00b3\u00b5\5 \21"+ "\2\u00b4\u00b6\5\"\22\2\u00b5\u00b4\3\2\2\2\u00b6\u00b7\3\2\2\2\u00b7"+ "\u00b5\3\2\2\2\u00b7\u00b8\3\2\2\2\u00b8\37\3\2\2\2\u00b9\u00ba\t\13\2"+ "\2\u00ba!\3\2\2\2\u00bb\u00bd\5$\23\2\u00bc\u00bb\3\2\2\2\u00bd\u00be"+ "\3\2\2\2\u00be\u00bc\3\2\2\2\u00be\u00bf\3\2\2\2\u00bf\u00c3\3\2\2\2\u00c0"+ "\u00c2\7\f\2\2\u00c1\u00c0\3\2\2\2\u00c2\u00c5\3\2\2\2\u00c3\u00c1\3\2"+ "\2\2\u00c3\u00c4\3\2\2\2\u00c4#\3\2\2\2\u00c5\u00c3\3\2\2\2\u00c6\u00c9"+ "\5\24\13\2\u00c7\u00c9\5(\25\2\u00c8\u00c6\3\2\2\2\u00c8\u00c7\3\2\2\2"+ "\u00c9%\3\2\2\2\u00ca\u00ce\7\37\2\2\u00cb\u00cd\5\24\13\2\u00cc\u00cb"+ "\3\2\2\2\u00cd\u00d0\3\2\2\2\u00ce\u00cc\3\2\2\2\u00ce\u00cf\3\2\2\2\u00cf"+ "\u00d1\3\2\2\2\u00d0\u00ce\3\2\2\2\u00d1\u00d2\5(\25\2\u00d2\'\3\2\2\2"+ "\u00d3\u00d5\t\f\2\2\u00d4\u00d3\3\2\2\2\u00d5\u00d6\3\2\2\2\u00d6\u00d4"+ "\3\2\2\2\u00d6\u00d7\3\2\2\2\u00d7)\3\2\2\2!-\658=?EHKPU[nty\177\u0081"+ "\u0087\u008d\u0093\u0096\u009a\u009f\u00a7\u00ad\u00b1\u00b7\u00be\u00c3"+ "\u00c8\u00ce\u00d6"; 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); } } }