pss-langserver
Version:
A Language server for the Portable Stimulus Standard
1,314 lines (1,313 loc) • 97.4 kB
JavaScript
"use strict";
/*
* Copyright (C) 2025 Darshan(@thisisthedarshan)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
// Generated from ./src/grammar/antlr/doxygenParser.g4 by ANTLR 4.13.2
// noinspection ES6UnusedImports,JSUnusedGlobalSymbols,JSUnusedLocalSymbols
Object.defineProperty(exports, "__esModule", { value: true });
exports.Example_codeContext = exports.Todo_descriptionContext = exports.File_pathContext = exports.Attention_descriptionContext = exports.See_descriptionContext = exports.See_linkContext = exports.Version_valueContext = exports.Date_valueContext = exports.Author_nameContext = exports.Deprecated_descriptionContext = exports.Return_descriptionContext = exports.Param_descriptionContext = exports.Param_identifierContext = exports.Brief_textContext = exports.Example_commandContext = exports.Todo_commandContext = exports.File_commandContext = exports.Attention_commandContext = exports.See_commandContext = exports.Version_commandContext = exports.Date_commandContext = exports.Author_commandContext = exports.Deprecated_commandContext = exports.Return_commandContext = exports.Param_commandContext = exports.Brief_commandContext = exports.Doc_contentContext = exports.Documentation_commentContext = exports.File_doc_commentContext = void 0;
const antlr4_1 = require("antlr4");
class doxygenParser extends antlr4_1.Parser {
get grammarFileName() { return "doxygenParser.g4"; }
get literalNames() { return doxygenParser.literalNames; }
get symbolicNames() { return doxygenParser.symbolicNames; }
get ruleNames() { return doxygenParser.ruleNames; }
get serializedATN() { return doxygenParser._serializedATN; }
createFailedPredicateException(predicate, message) {
return new antlr4_1.FailedPredicateException(this, predicate, message);
}
constructor(input) {
super(input);
this._interp = new antlr4_1.ParserATNSimulator(this, doxygenParser._ATN, doxygenParser.DecisionsToDFA, new antlr4_1.PredictionContextCache());
}
// @RuleVersion(0)
file_doc_comment() {
let localctx = new File_doc_commentContext(this, this._ctx, this.state);
this.enterRule(localctx, 0, doxygenParser.RULE_file_doc_comment);
try {
this.enterOuterAlt(localctx, 1);
{
this.state = 58;
this.documentation_comment();
}
}
catch (re) {
if (re instanceof antlr4_1.RecognitionException) {
localctx.exception = re;
this._errHandler.reportError(this, re);
this._errHandler.recover(this, re);
}
else {
throw re;
}
}
finally {
this.exitRule();
}
return localctx;
}
// @RuleVersion(0)
documentation_comment() {
let localctx = new Documentation_commentContext(this, this._ctx, this.state);
this.enterRule(localctx, 2, doxygenParser.RULE_documentation_comment);
let _la;
try {
this.enterOuterAlt(localctx, 1);
{
this.state = 60;
this.match(doxygenParser.TOKEN_DOC_START);
this.state = 64;
this._errHandler.sync(this);
_la = this._input.LA(1);
while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 65528) !== 0)) {
{
{
this.state = 61;
this.doc_content();
}
}
this.state = 66;
this._errHandler.sync(this);
_la = this._input.LA(1);
}
this.state = 67;
this.match(doxygenParser.TOKEN_DOC_END);
}
}
catch (re) {
if (re instanceof antlr4_1.RecognitionException) {
localctx.exception = re;
this._errHandler.reportError(this, re);
this._errHandler.recover(this, re);
}
else {
throw re;
}
}
finally {
this.exitRule();
}
return localctx;
}
// @RuleVersion(0)
doc_content() {
let localctx = new Doc_contentContext(this, this._ctx, this.state);
this.enterRule(localctx, 4, doxygenParser.RULE_doc_content);
try {
this.state = 81;
this._errHandler.sync(this);
switch (this._input.LA(1)) {
case 3:
this.enterOuterAlt(localctx, 1);
{
this.state = 69;
this.brief_command();
}
break;
case 4:
this.enterOuterAlt(localctx, 2);
{
this.state = 70;
this.param_command();
}
break;
case 5:
case 6:
this.enterOuterAlt(localctx, 3);
{
this.state = 71;
this.return_command();
}
break;
case 7:
this.enterOuterAlt(localctx, 4);
{
this.state = 72;
this.deprecated_command();
}
break;
case 8:
this.enterOuterAlt(localctx, 5);
{
this.state = 73;
this.author_command();
}
break;
case 9:
this.enterOuterAlt(localctx, 6);
{
this.state = 74;
this.date_command();
}
break;
case 10:
this.enterOuterAlt(localctx, 7);
{
this.state = 75;
this.version_command();
}
break;
case 11:
this.enterOuterAlt(localctx, 8);
{
this.state = 76;
this.see_command();
}
break;
case 12:
this.enterOuterAlt(localctx, 9);
{
this.state = 77;
this.attention_command();
}
break;
case 13:
this.enterOuterAlt(localctx, 10);
{
this.state = 78;
this.file_command();
}
break;
case 14:
this.enterOuterAlt(localctx, 11);
{
this.state = 79;
this.todo_command();
}
break;
case 15:
this.enterOuterAlt(localctx, 12);
{
this.state = 80;
this.example_command();
}
break;
default:
throw new antlr4_1.NoViableAltException(this);
}
}
catch (re) {
if (re instanceof antlr4_1.RecognitionException) {
localctx.exception = re;
this._errHandler.reportError(this, re);
this._errHandler.recover(this, re);
}
else {
throw re;
}
}
finally {
this.exitRule();
}
return localctx;
}
// @RuleVersion(0)
brief_command() {
let localctx = new Brief_commandContext(this, this._ctx, this.state);
this.enterRule(localctx, 6, doxygenParser.RULE_brief_command);
try {
this.enterOuterAlt(localctx, 1);
{
this.state = 83;
this.match(doxygenParser.TOKEN_BRIEF_MARKER);
this.state = 84;
this.brief_text();
}
}
catch (re) {
if (re instanceof antlr4_1.RecognitionException) {
localctx.exception = re;
this._errHandler.reportError(this, re);
this._errHandler.recover(this, re);
}
else {
throw re;
}
}
finally {
this.exitRule();
}
return localctx;
}
// @RuleVersion(0)
param_command() {
let localctx = new Param_commandContext(this, this._ctx, this.state);
this.enterRule(localctx, 8, doxygenParser.RULE_param_command);
try {
this.enterOuterAlt(localctx, 1);
{
this.state = 86;
this.match(doxygenParser.TOKEN_PARAM_MARKER);
this.state = 87;
this.param_identifier();
this.state = 88;
this.param_description();
}
}
catch (re) {
if (re instanceof antlr4_1.RecognitionException) {
localctx.exception = re;
this._errHandler.reportError(this, re);
this._errHandler.recover(this, re);
}
else {
throw re;
}
}
finally {
this.exitRule();
}
return localctx;
}
// @RuleVersion(0)
return_command() {
let localctx = new Return_commandContext(this, this._ctx, this.state);
this.enterRule(localctx, 10, doxygenParser.RULE_return_command);
let _la;
try {
this.enterOuterAlt(localctx, 1);
{
this.state = 90;
_la = this._input.LA(1);
if (!(_la === 5 || _la === 6)) {
this._errHandler.recoverInline(this);
}
else {
this._errHandler.reportMatch(this);
this.consume();
}
this.state = 91;
this.return_description();
}
}
catch (re) {
if (re instanceof antlr4_1.RecognitionException) {
localctx.exception = re;
this._errHandler.reportError(this, re);
this._errHandler.recover(this, re);
}
else {
throw re;
}
}
finally {
this.exitRule();
}
return localctx;
}
// @RuleVersion(0)
deprecated_command() {
let localctx = new Deprecated_commandContext(this, this._ctx, this.state);
this.enterRule(localctx, 12, doxygenParser.RULE_deprecated_command);
try {
this.enterOuterAlt(localctx, 1);
{
this.state = 93;
this.match(doxygenParser.TOKEN_DEPRECATED_MARKER);
this.state = 94;
this.deprecated_description();
}
}
catch (re) {
if (re instanceof antlr4_1.RecognitionException) {
localctx.exception = re;
this._errHandler.reportError(this, re);
this._errHandler.recover(this, re);
}
else {
throw re;
}
}
finally {
this.exitRule();
}
return localctx;
}
// @RuleVersion(0)
author_command() {
let localctx = new Author_commandContext(this, this._ctx, this.state);
this.enterRule(localctx, 14, doxygenParser.RULE_author_command);
try {
this.enterOuterAlt(localctx, 1);
{
this.state = 96;
this.match(doxygenParser.TOKEN_AUTHOR_MARKER);
this.state = 97;
this.author_name();
}
}
catch (re) {
if (re instanceof antlr4_1.RecognitionException) {
localctx.exception = re;
this._errHandler.reportError(this, re);
this._errHandler.recover(this, re);
}
else {
throw re;
}
}
finally {
this.exitRule();
}
return localctx;
}
// @RuleVersion(0)
date_command() {
let localctx = new Date_commandContext(this, this._ctx, this.state);
this.enterRule(localctx, 16, doxygenParser.RULE_date_command);
try {
this.enterOuterAlt(localctx, 1);
{
this.state = 99;
this.match(doxygenParser.TOKEN_DATE_MARKER);
this.state = 100;
this.date_value();
}
}
catch (re) {
if (re instanceof antlr4_1.RecognitionException) {
localctx.exception = re;
this._errHandler.reportError(this, re);
this._errHandler.recover(this, re);
}
else {
throw re;
}
}
finally {
this.exitRule();
}
return localctx;
}
// @RuleVersion(0)
version_command() {
let localctx = new Version_commandContext(this, this._ctx, this.state);
this.enterRule(localctx, 18, doxygenParser.RULE_version_command);
try {
this.enterOuterAlt(localctx, 1);
{
this.state = 102;
this.match(doxygenParser.TOKEN_VERSION_MARKER);
this.state = 103;
this.version_value();
}
}
catch (re) {
if (re instanceof antlr4_1.RecognitionException) {
localctx.exception = re;
this._errHandler.reportError(this, re);
this._errHandler.recover(this, re);
}
else {
throw re;
}
}
finally {
this.exitRule();
}
return localctx;
}
// @RuleVersion(0)
see_command() {
let localctx = new See_commandContext(this, this._ctx, this.state);
this.enterRule(localctx, 20, doxygenParser.RULE_see_command);
try {
this.enterOuterAlt(localctx, 1);
{
this.state = 105;
this.match(doxygenParser.TOKEN_SEE_MARKER);
this.state = 106;
this.see_link();
this.state = 108;
this._errHandler.sync(this);
switch (this._interp.adaptivePredict(this._input, 2, this._ctx)) {
case 1:
{
this.state = 107;
this.see_description();
}
break;
}
}
}
catch (re) {
if (re instanceof antlr4_1.RecognitionException) {
localctx.exception = re;
this._errHandler.reportError(this, re);
this._errHandler.recover(this, re);
}
else {
throw re;
}
}
finally {
this.exitRule();
}
return localctx;
}
// @RuleVersion(0)
attention_command() {
let localctx = new Attention_commandContext(this, this._ctx, this.state);
this.enterRule(localctx, 22, doxygenParser.RULE_attention_command);
try {
this.enterOuterAlt(localctx, 1);
{
this.state = 110;
this.match(doxygenParser.TOKEN_ATTENTION_MARKER);
this.state = 111;
this.attention_description();
}
}
catch (re) {
if (re instanceof antlr4_1.RecognitionException) {
localctx.exception = re;
this._errHandler.reportError(this, re);
this._errHandler.recover(this, re);
}
else {
throw re;
}
}
finally {
this.exitRule();
}
return localctx;
}
// @RuleVersion(0)
file_command() {
let localctx = new File_commandContext(this, this._ctx, this.state);
this.enterRule(localctx, 24, doxygenParser.RULE_file_command);
try {
this.enterOuterAlt(localctx, 1);
{
this.state = 113;
this.match(doxygenParser.TOKEN_FILE_MARKER);
this.state = 114;
this.file_path();
}
}
catch (re) {
if (re instanceof antlr4_1.RecognitionException) {
localctx.exception = re;
this._errHandler.reportError(this, re);
this._errHandler.recover(this, re);
}
else {
throw re;
}
}
finally {
this.exitRule();
}
return localctx;
}
// @RuleVersion(0)
todo_command() {
let localctx = new Todo_commandContext(this, this._ctx, this.state);
this.enterRule(localctx, 26, doxygenParser.RULE_todo_command);
try {
this.enterOuterAlt(localctx, 1);
{
this.state = 116;
this.match(doxygenParser.TOKEN_TODO_MARKER);
this.state = 117;
this.todo_description();
}
}
catch (re) {
if (re instanceof antlr4_1.RecognitionException) {
localctx.exception = re;
this._errHandler.reportError(this, re);
this._errHandler.recover(this, re);
}
else {
throw re;
}
}
finally {
this.exitRule();
}
return localctx;
}
// @RuleVersion(0)
example_command() {
let localctx = new Example_commandContext(this, this._ctx, this.state);
this.enterRule(localctx, 28, doxygenParser.RULE_example_command);
try {
this.enterOuterAlt(localctx, 1);
{
this.state = 119;
this.match(doxygenParser.TOKEN_EXAMPLE_MARKER);
this.state = 120;
this.example_code();
}
}
catch (re) {
if (re instanceof antlr4_1.RecognitionException) {
localctx.exception = re;
this._errHandler.reportError(this, re);
this._errHandler.recover(this, re);
}
else {
throw re;
}
}
finally {
this.exitRule();
}
return localctx;
}
// @RuleVersion(0)
brief_text() {
let localctx = new Brief_textContext(this, this._ctx, this.state);
this.enterRule(localctx, 30, doxygenParser.RULE_brief_text);
let _la;
try {
let _alt;
this.enterOuterAlt(localctx, 1);
{
this.state = 123;
this._errHandler.sync(this);
_alt = 1;
do {
switch (_alt) {
case 1:
{
{
this.state = 122;
_la = this._input.LA(1);
if (_la <= 0 || (((_la) & ~0x1F) === 0 && ((1 << _la) & 65524) !== 0)) {
this._errHandler.recoverInline(this);
}
else {
this._errHandler.reportMatch(this);
this.consume();
}
}
}
break;
default:
throw new antlr4_1.NoViableAltException(this);
}
this.state = 125;
this._errHandler.sync(this);
_alt = this._interp.adaptivePredict(this._input, 3, this._ctx);
} while (_alt !== 2 && _alt !== antlr4_1.ATN.INVALID_ALT_NUMBER);
}
}
catch (re) {
if (re instanceof antlr4_1.RecognitionException) {
localctx.exception = re;
this._errHandler.reportError(this, re);
this._errHandler.recover(this, re);
}
else {
throw re;
}
}
finally {
this.exitRule();
}
return localctx;
}
// @RuleVersion(0)
param_identifier() {
let localctx = new Param_identifierContext(this, this._ctx, this.state);
this.enterRule(localctx, 32, doxygenParser.RULE_param_identifier);
try {
this.enterOuterAlt(localctx, 1);
{
this.state = 127;
this.match(doxygenParser.TOKEN_WORD);
}
}
catch (re) {
if (re instanceof antlr4_1.RecognitionException) {
localctx.exception = re;
this._errHandler.reportError(this, re);
this._errHandler.recover(this, re);
}
else {
throw re;
}
}
finally {
this.exitRule();
}
return localctx;
}
// @RuleVersion(0)
param_description() {
let localctx = new Param_descriptionContext(this, this._ctx, this.state);
this.enterRule(localctx, 34, doxygenParser.RULE_param_description);
let _la;
try {
let _alt;
this.enterOuterAlt(localctx, 1);
{
this.state = 136;
this._errHandler.sync(this);
_alt = 1;
do {
switch (_alt) {
case 1:
{
{
this.state = 132;
this._errHandler.sync(this);
_alt = this._interp.adaptivePredict(this._input, 4, this._ctx);
while (_alt !== 2 && _alt !== antlr4_1.ATN.INVALID_ALT_NUMBER) {
if (_alt === 1) {
{
{
this.state = 129;
this.match(doxygenParser.TOKEN_NEWLINE);
}
}
}
this.state = 134;
this._errHandler.sync(this);
_alt = this._interp.adaptivePredict(this._input, 4, this._ctx);
}
this.state = 135;
_la = this._input.LA(1);
if (_la <= 0 || _la === 2 || _la === 4) {
this._errHandler.recoverInline(this);
}
else {
this._errHandler.reportMatch(this);
this.consume();
}
}
}
break;
default:
throw new antlr4_1.NoViableAltException(this);
}
this.state = 138;
this._errHandler.sync(this);
_alt = this._interp.adaptivePredict(this._input, 5, this._ctx);
} while (_alt !== 2 && _alt !== antlr4_1.ATN.INVALID_ALT_NUMBER);
}
}
catch (re) {
if (re instanceof antlr4_1.RecognitionException) {
localctx.exception = re;
this._errHandler.reportError(this, re);
this._errHandler.recover(this, re);
}
else {
throw re;
}
}
finally {
this.exitRule();
}
return localctx;
}
// @RuleVersion(0)
return_description() {
let localctx = new Return_descriptionContext(this, this._ctx, this.state);
this.enterRule(localctx, 36, doxygenParser.RULE_return_description);
let _la;
try {
let _alt;
this.enterOuterAlt(localctx, 1);
{
this.state = 147;
this._errHandler.sync(this);
_alt = 1;
do {
switch (_alt) {
case 1:
{
{
this.state = 143;
this._errHandler.sync(this);
_alt = this._interp.adaptivePredict(this._input, 6, this._ctx);
while (_alt !== 2 && _alt !== antlr4_1.ATN.INVALID_ALT_NUMBER) {
if (_alt === 1) {
{
{
this.state = 140;
this.match(doxygenParser.TOKEN_NEWLINE);
}
}
}
this.state = 145;
this._errHandler.sync(this);
_alt = this._interp.adaptivePredict(this._input, 6, this._ctx);
}
this.state = 146;
_la = this._input.LA(1);
if (_la <= 0 || (((_la) & ~0x1F) === 0 && ((1 << _la) & 388) !== 0)) {
this._errHandler.recoverInline(this);
}
else {
this._errHandler.reportMatch(this);
this.consume();
}
}
}
break;
default:
throw new antlr4_1.NoViableAltException(this);
}
this.state = 149;
this._errHandler.sync(this);
_alt = this._interp.adaptivePredict(this._input, 7, this._ctx);
} while (_alt !== 2 && _alt !== antlr4_1.ATN.INVALID_ALT_NUMBER);
}
}
catch (re) {
if (re instanceof antlr4_1.RecognitionException) {
localctx.exception = re;
this._errHandler.reportError(this, re);
this._errHandler.recover(this, re);
}
else {
throw re;
}
}
finally {
this.exitRule();
}
return localctx;
}
// @RuleVersion(0)
deprecated_description() {
let localctx = new Deprecated_descriptionContext(this, this._ctx, this.state);
this.enterRule(localctx, 38, doxygenParser.RULE_deprecated_description);
let _la;
try {
let _alt;
this.enterOuterAlt(localctx, 1);
{
this.state = 158;
this._errHandler.sync(this);
_alt = 1;
do {
switch (_alt) {
case 1:
{
{
this.state = 154;
this._errHandler.sync(this);
_alt = this._interp.adaptivePredict(this._input, 8, this._ctx);
while (_alt !== 2 && _alt !== antlr4_1.ATN.INVALID_ALT_NUMBER) {
if (_alt === 1) {
{
{
this.state = 151;
this.match(doxygenParser.TOKEN_NEWLINE);
}
}
}
this.state = 156;
this._errHandler.sync(this);
_alt = this._interp.adaptivePredict(this._input, 8, this._ctx);
}
this.state = 157;
_la = this._input.LA(1);
if (_la <= 0 || _la === 2 || _la === 8) {
this._errHandler.recoverInline(this);
}
else {
this._errHandler.reportMatch(this);
this.consume();
}
}
}
break;
default:
throw new antlr4_1.NoViableAltException(this);
}
this.state = 160;
this._errHandler.sync(this);
_alt = this._interp.adaptivePredict(this._input, 9, this._ctx);
} while (_alt !== 2 && _alt !== antlr4_1.ATN.INVALID_ALT_NUMBER);
}
}
catch (re) {
if (re instanceof antlr4_1.RecognitionException) {
localctx.exception = re;
this._errHandler.reportError(this, re);
this._errHandler.recover(this, re);
}
else {
throw re;
}
}
finally {
this.exitRule();
}
return localctx;
}
// @RuleVersion(0)
author_name() {
let localctx = new Author_nameContext(this, this._ctx, this.state);
this.enterRule(localctx, 40, doxygenParser.RULE_author_name);
let _la;
try {
this.enterOuterAlt(localctx, 1);
{
this.state = 163;
this._errHandler.sync(this);
_la = this._input.LA(1);
do {
{
{
this.state = 162;
_la = this._input.LA(1);
if (!(_la === 16 || _la === 20)) {
this._errHandler.recoverInline(this);
}
else {
this._errHandler.reportMatch(this);
this.consume();
}
}
}
this.state = 165;
this._errHandler.sync(this);
_la = this._input.LA(1);
} while (_la === 16 || _la === 20);
}
}
catch (re) {
if (re instanceof antlr4_1.RecognitionException) {
localctx.exception = re;
this._errHandler.reportError(this, re);
this._errHandler.recover(this, re);
}
else {
throw re;
}
}
finally {
this.exitRule();
}
return localctx;
}
// @RuleVersion(0)
date_value() {
let localctx = new Date_valueContext(this, this._ctx, this.state);
this.enterRule(localctx, 42, doxygenParser.RULE_date_value);
try {
this.enterOuterAlt(localctx, 1);
{
this.state = 167;
this.match(doxygenParser.TOKEN_DATE);
}
}
catch (re) {
if (re instanceof antlr4_1.RecognitionException) {
localctx.exception = re;
this._errHandler.reportError(this, re);
this._errHandler.recover(this, re);
}
else {
throw re;
}
}
finally {
this.exitRule();
}
return localctx;
}
// @RuleVersion(0)
version_value() {
let localctx = new Version_valueContext(this, this._ctx, this.state);
this.enterRule(localctx, 44, doxygenParser.RULE_version_value);
let _la;
try {
this.enterOuterAlt(localctx, 1);
{
this.state = 170;
this._errHandler.sync(this);
_la = this._input.LA(1);
do {
{
{
this.state = 169;
_la = this._input.LA(1);
if (!((((_la) & ~0x1F) === 0 && ((1 << _la) & 2293760) !== 0))) {
this._errHandler.recoverInline(this);
}
else {
this._errHandler.reportMatch(this);
this.consume();
}
}
}
this.state = 172;
this._errHandler.sync(this);
_la = this._input.LA(1);
} while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 2293760) !== 0));
}
}
catch (re) {
if (re instanceof antlr4_1.RecognitionException) {
localctx.exception = re;
this._errHandler.reportError(this, re);
this._errHandler.recover(this, re);
}
else {
throw re;
}
}
finally {
this.exitRule();
}
return localctx;
}
// @RuleVersion(0)
see_link() {
let localctx = new See_linkContext(this, this._ctx, this.state);
this.enterRule(localctx, 46, doxygenParser.RULE_see_link);
try {
this.enterOuterAlt(localctx, 1);
{
this.state = 174;
this.match(doxygenParser.TOKEN_WORD);
}
}
catch (re) {
if (re instanceof antlr4_1.RecognitionException) {
localctx.exception = re;
this._errHandler.reportError(this, re);
this._errHandler.recover(this, re);
}
else {
throw re;
}
}
finally {
this.exitRule();
}
return localctx;
}
// @RuleVersion(0)
see_description() {
let localctx = new See_descriptionContext(this, this._ctx, this.state);
this.enterRule(localctx, 48, doxygenParser.RULE_see_description);
let _la;
try {
let _alt;
this.enterOuterAlt(localctx, 1);
{
this.state = 183;
this._errHandler.sync(this);
_alt = 1;
do {
switch (_alt) {
case 1:
{
{
this.state = 179;
this._errHandler.sync(this);
_alt = this._interp.adaptivePredict(this._input, 12, this._ctx);
while (_alt !== 2 && _alt !== antlr4_1.ATN.INVALID_ALT_NUMBER) {
if (_alt === 1) {
{
{
this.state = 176;
this.match(doxygenParser.TOKEN_NEWLINE);
}
}
}
this.state = 181;
this._errHandler.sync(this);
_alt = this._interp.adaptivePredict(this._input, 12, this._ctx);
}
this.state = 182;
_la = this._input.LA(1);
if (_la <= 0 || _la === 2) {
this._errHandler.recoverInline(this);
}
else {
this._errHandler.reportMatch(this);
this.consume();
}
}
}
break;
default:
throw new antlr4_1.NoViableAltException(this);
}
this.state = 185;
this._errHandler.sync(this);
_alt = this._interp.adaptivePredict(this._input, 13, this._ctx);
} while (_alt !== 2 && _alt !== antlr4_1.ATN.INVALID_ALT_NUMBER);
}
}
catch (re) {
if (re instanceof antlr4_1.RecognitionException) {
localctx.exception = re;
this._errHandler.reportError(this, re);
this._errHandler.recover(this, re);
}
else {
throw re;
}
}
finally {
this.exitRule();
}
return localctx;
}
// @RuleVersion(0)
attention_description() {
let localctx = new Attention_descriptionContext(this, this._ctx, this.state);
this.enterRule(localctx, 50, doxygenParser.RULE_attention_description);
let _la;
try {
let _alt;
this.enterOuterAlt(localctx, 1);
{
this.state = 194;
this._errHandler.sync(this);
_alt = 1;
do {
switch (_alt) {
case 1:
{
{
this.state = 190;
this._errHandler.sync(this);
_alt = this._interp.adaptivePredict(this._input, 14, this._ctx);
while (_alt !== 2 && _alt !== antlr4_1.ATN.INVALID_ALT_NUMBER) {
if (_alt === 1) {
{
{
this.state = 187;
this.match(doxygenParser.TOKEN_NEWLINE);
}
}
}
this.state = 192;
this._errHandler.sync(this);
_alt = this._interp.adaptivePredict(this._input, 14, this._ctx);
}
this.state = 193;
_la = this._input.LA(1);
if (_la <= 0 || _la === 2) {
this._errHandler.recoverInline(this);
}
else {
this._errHandler.reportMatch(this);
this.consume();
}
}
}
break;
default:
throw new antlr4_1.NoViableAltException(this);
}
this.state = 196;
this._errHandler.sync(this);
_alt = this._interp.adaptivePredict(this._input, 15, this._ctx);
} while (_alt !== 2 && _alt !== antlr4_1.ATN.INVALID_ALT_NUMBER);
}
}
catch (re) {
if (re instanceof antlr4_1.RecognitionException) {
localctx.exception = re;
this._errHandler.reportError(this, re);
this._errHandler.recover(this, re);
}
else {
throw re;
}
}
finally {
this.exitRule();
}
return localctx;
}
// @RuleVersion(0)
file_path() {
let localctx = new File_pathContext(this, this._ctx, this.state);
this.enterRule(localctx, 52, doxygenParser.RULE_file_path);
let _la;
try {
this.enterOuterAlt(localctx, 1);
{
this.state = 199;
this._errHandler.sync(this);
_la = this._input.LA(1);
do {
{
{
this.state = 198;
_la = this._input.LA(1);
if (!((((_la) & ~0x1F) === 0 && ((1 << _la) & 14745600) !== 0))) {
this._errHandler.recoverInline(this);
}
else {
this._errHandler.reportMatch(this);
this.consume();
}
}
}
this.state = 201;
this._errHandler.sync(this);
_la = this._input.LA(1);
} while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 14745600) !== 0));
}
}
catch (re) {
if (re instanceof antlr4_1.RecognitionException) {
localctx.exception = re;
this._errHandler.reportError(this, re);
this._errHandler.recover(this, re);
}
else {
throw re;
}
}
finally {
this.exitRule();
}
return localctx;
}
// @RuleVersion(0)
todo_description() {
let localctx = new Todo_descriptionContext(this, this._ctx, this.state);
this.enterRule(localctx, 54, doxygenParser.RULE_todo_description);
let _la;
try {
let _alt;
this.enterOuterAlt(localctx, 1);
{
this.state = 210;
this._errHandler.sync(this);
_alt = 1;
do {
switch (_alt) {
case 1:
{
{
this.state = 206;
this._errHandler.sync(this);
_alt = this._interp.adaptivePredict(this._input, 17, this._ctx);
while (_alt !== 2 && _alt !== antlr4_1.ATN.INVALID_ALT_NUMBER) {
if (_alt === 1) {
{
{
this.state = 203;
this.match(doxygenParser.TOKEN_NEWLINE);
}
}
}
this.state = 208;
this._errHandler.sync(this);
_alt = this._interp.adaptivePredict(this._input, 17, this._ctx);
}
this.state = 209;
_la = this._input.LA(1);
if (_la <= 0 || _la === 2) {
this._errHandler.recoverInline(this);
}
else {
this._errHandler.reportMatch(this);
this.consume();
}
}
}
break;
default:
throw new antlr4_1.NoViableAltException(this);
}
this.state = 212;
this._errHandler.sync(this);
_alt = this._interp.adaptivePredict(this._input, 18, this._ctx);
} while (_alt !== 2 && _alt !== antlr4_1.ATN.INVALID_ALT_NUMBER);
}
}
catch (re) {
if (re instanceof antlr4_1.RecognitionException) {
localctx.exception = re;
this._errHandler.reportError(this, re);
this._errHandler.recover(this, re);
}
else {
throw re;
}
}
finally {
this.exitRule();
}
return localctx;
}
// @RuleVersion(0)
example_code() {
let localctx = new Example_codeContext(this, this._ctx, this.state);
this.enterRule(localctx, 56, doxygenParser.RULE_example_code);
let _la;
try {
let _alt;
this.enterOuterAlt(localctx, 1);
{
this.state = 221;
this._errHandler.sync(this);
_alt = 1;
do {
switch (_alt) {
case 1:
{
{
this.state = 217;
this._errHandler.sync(this);
_alt = this._interp.adaptivePredict(this._input, 19, this._ctx);
while (_alt !== 2 && _alt !== antlr4_1.ATN.INVALID_ALT_NUMBER) {
if (_alt === 1) {
{
{
this.state = 214;
this.match(doxygenParser.TOKEN_NEWLINE);
}
}
}
this.state = 219;
this._errHandler.sync(this);
_alt = this._interp.adaptivePredict(this._input, 19, this._ctx);
}
this.state = 220;
_la = this._input.LA(1);
if (_la <= 0 || _la === 2) {
this._errHandler.recoverInline(this);
}
else {
this._errHandler.reportMatch(this);
this.consume();
}
}
}
break;
default:
throw new antlr4_1.NoViableAltException(this);
}
this.state = 223;
this._errHandler.sync(this);
_alt = this._interp.adaptivePredict(this._input, 20, this._ctx);
} while (_alt !== 2 && _alt !== antlr4_1.ATN.INVALID_ALT_NUMBER);
}
}
catch (re) {
if (re instanceof antlr4_1.RecognitionException) {
localctx.exception = re;
this._errHandler.reportError(this, re);