diff --git a/android-app/anter4codeformat/.androidide/editor/openedFiles.json b/android-app/anter4codeformat/.androidide/editor/openedFiles.json new file mode 100644 index 0000000..e82e914 --- /dev/null +++ b/android-app/anter4codeformat/.androidide/editor/openedFiles.json @@ -0,0 +1,35 @@ +{ + "allFiles": [ + { + "file": "/storage/emulated/0/AndroidIDEProjects/anter4codeformat/app/build.gradle", + "selection": { + "end": { + "column": 45, + "index": 1018, + "line": 47 + }, + "start": { + "column": 45, + "index": 1018, + "line": 47 + } + } + }, + { + "file": "/storage/emulated/0/AndroidIDEProjects/anter4codeformat/app/src/main/java/org/antlr/parser/antlr4/LexerAdaptor.java", + "selection": { + "end": { + "column": 0, + "index": 0, + "line": 0 + }, + "start": { + "column": 0, + "index": 0, + "line": 0 + } + } + } + ], + "selectedFile": "/storage/emulated/0/AndroidIDEProjects/anter4codeformat/app/src/main/java/org/antlr/parser/antlr4/LexerAdaptor.java" +} \ No newline at end of file diff --git a/android-app/anter4codeformat/.androidide/editor/openedFiles.json.bak b/android-app/anter4codeformat/.androidide/editor/openedFiles.json.bak new file mode 100644 index 0000000..000576b --- /dev/null +++ b/android-app/anter4codeformat/.androidide/editor/openedFiles.json.bak @@ -0,0 +1,20 @@ +{ + "allFiles": [ + { + "file": "/storage/emulated/0/AndroidIDEProjects/anter4codeformat/app/build.gradle", + "selection": { + "end": { + "column": 47, + "index": 1020, + "line": 47 + }, + "start": { + "column": 47, + "index": 1020, + "line": 47 + } + } + } + ], + "selectedFile": "/storage/emulated/0/AndroidIDEProjects/anter4codeformat/app/build.gradle" +} \ No newline at end of file diff --git a/android-app/anter4codeformat/.gitignore b/android-app/anter4codeformat/.gitignore new file mode 100644 index 0000000..b6bc011 --- /dev/null +++ b/android-app/anter4codeformat/.gitignore @@ -0,0 +1,83 @@ +# Built application files +*.apk +*.aar +*.ap_ +*.aab + +# Files for the ART/Dalvik VM +*.dex + +# Java class files +*.class + +# Generated files +/bin/ +/gen/ +/out/ +# Uncomment the following line in case you need and you don't have the release build type files in your app +# Gradle files +.gradle/ +/build/ + +# Local configuration file (sdk path, etc) +local.properties + +# Proguard folder generated by Eclipse +proguard/ + +# Log Files +*.log + +# Android Studio Navigation editor temp files +.navigation/ + +# Android Studio captures folder +captures/ + +# IntelliJ +*.iml +.idea/workspace.xml +.idea/tasks.xml +.idea/gradle.xml +.idea/assetWizardSettings.xml +.idea/dictionaries +.idea/libraries +# Android Studio 3 in .gitignore file. +.idea/caches +.idea/modules.xml +# Comment next line if keeping position of elements in Navigation Editor is relevant for you +.idea/navEditor.xml + +# Keystore files +# Uncomment the following lines if you do not want to check your keystore files in. +#*.jks +#*.keystore + +# External native build folder generated in Android Studio 2.2 and later +.externalNativeBuild +.cxx/ + +# Google Services (e.g. APIs or Firebase) +# google-services.json + +# Freeline +freeline.py +freeline/ +freeline_project_description.json + +# fastlane +fastlane/report.xml +fastlane/Preview.html +fastlane/screenshots +fastlane/test_output +fastlane/readme.md + +# Version control +vcs.xml + +# lint +lint/intermediates/ +lint/generated/ +lint/outputs/ +lint/tmp/ +# lint/reports/ diff --git a/android-app/anter4codeformat/Readme.md b/android-app/anter4codeformat/Readme.md new file mode 100644 index 0000000..b91b74a --- /dev/null +++ b/android-app/anter4codeformat/Readme.md @@ -0,0 +1,7 @@ +## Android version + +I have produced this version for Android. Please note that you must use the version 1.14.1. You can also use Java files that have been rebuilt for Android. + +### Developer + +Developer account address here diff --git a/android-app/anter4codeformat/app/.gitignore b/android-app/anter4codeformat/app/.gitignore new file mode 100644 index 0000000..42afabf --- /dev/null +++ b/android-app/anter4codeformat/app/.gitignore @@ -0,0 +1 @@ +/build \ No newline at end of file diff --git a/android-app/anter4codeformat/app/build.gradle b/android-app/anter4codeformat/app/build.gradle new file mode 100644 index 0000000..9978a41 --- /dev/null +++ b/android-app/anter4codeformat/app/build.gradle @@ -0,0 +1,49 @@ + +plugins { + id 'com.android.application' + +} + +android { + namespace 'com.example.anter4codeformat' + compileSdk 33 + + defaultConfig { + applicationId "com.example.anter4codeformat" + minSdk 21 + targetSdk 33 + versionCode 1 + versionName "1.0" + + vectorDrawables { + useSupportLibrary true + } + } + + buildTypes { + release { + minifyEnabled true + proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' + } + } + + compileOptions { + sourceCompatibility JavaVersion.VERSION_11 + targetCompatibility JavaVersion.VERSION_11 + } + + buildFeatures { + viewBinding true + + } + +} + +dependencies { + + + implementation("androidx.constraintlayout:constraintlayout:2.1.4") + implementation("com.google.android.material:material:1.9.0") + implementation("androidx.appcompat:appcompat:1.6.1") + implementation("org.antlr:antlr4:4.13.1") +} diff --git a/android-app/anter4codeformat/app/proguard-rules.pro b/android-app/anter4codeformat/app/proguard-rules.pro new file mode 100644 index 0000000..481bb43 --- /dev/null +++ b/android-app/anter4codeformat/app/proguard-rules.pro @@ -0,0 +1,21 @@ +# Add project specific ProGuard rules here. +# You can control the set of applied configuration files using the +# proguardFiles setting in build.gradle. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# If your project uses WebView with JS, uncomment the following +# and specify the fully qualified class name to the JavaScript interface +# class: +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { +# public *; +#} + +# Uncomment this to preserve the line number information for +# debugging stack traces. +#-keepattributes SourceFile,LineNumberTable + +# If you keep the line number information, uncomment this to +# hide the original source file name. +#-renamesourcefileattribute SourceFile \ No newline at end of file diff --git a/android-app/anter4codeformat/app/src/main/AndroidManifest.xml b/android-app/anter4codeformat/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000..46859a6 --- /dev/null +++ b/android-app/anter4codeformat/app/src/main/AndroidManifest.xml @@ -0,0 +1,23 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/android-app/anter4codeformat/app/src/main/java/com/example/anter4codeformat/MainActivity.java b/android-app/anter4codeformat/app/src/main/java/com/example/anter4codeformat/MainActivity.java new file mode 100644 index 0000000..ccff159 --- /dev/null +++ b/android-app/anter4codeformat/app/src/main/java/com/example/anter4codeformat/MainActivity.java @@ -0,0 +1,44 @@ +package com.example.anter4codeformat; + +import android.view.View; +import androidx.appcompat.app.AppCompatActivity; +import android.os.Bundle; +import com.example.anter4codeformat.databinding.ActivityMainBinding; +import com.khubla.antlr4formatter.Antlr4Formatter; +import com.khubla.antlr4formatter.Antlr4FormatterException; + +public class MainActivity extends AppCompatActivity implements View.OnClickListener { + private ActivityMainBinding binding; + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + + // Inflate and get instance of binding + binding = ActivityMainBinding.inflate(getLayoutInflater()); + + // set content view to binding's root + setContentView(binding.getRoot()); + binding.btnFormat.setOnClickListener(this); + } + + @Override + protected void onDestroy() { + super.onDestroy(); + this.binding = null; + } + + public String g4format(String code) throws Antlr4FormatterException { + return Antlr4Formatter.format(code); + } + + @Override + public void onClick(View arg0) { + // TODO: Implement this method + try { + binding.format.setText(g4format(binding.format.getText().toString())); + } catch (Antlr4FormatterException err) { + binding.format.setText(err.getLocalizedMessage()); + } + } +} diff --git a/android-app/anter4codeformat/app/src/main/java/com/khubla/antlr4formatter/Antlr4Formatter.java b/android-app/anter4codeformat/app/src/main/java/com/khubla/antlr4formatter/Antlr4Formatter.java new file mode 100644 index 0000000..e298dae --- /dev/null +++ b/android-app/anter4codeformat/app/src/main/java/com/khubla/antlr4formatter/Antlr4Formatter.java @@ -0,0 +1,64 @@ +/* + * Antlr4Formatter Copyright 2015, khubla.com + * + * 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 . + * + */ +package com.khubla.antlr4formatter; + +import java.io.*; +import java.nio.charset.*; +import java.nio.file.*; +import java.util.*; + +import org.antlr.parser.antlr4.*; +import org.antlr.parser.antlr4.ANTLRv4Parser.*; +import org.antlr.v4.runtime.*; +import org.antlr.v4.runtime.tree.*; + +import com.khubla.antlr4formatter.listener.*; + +/** + * @author Tom Everett + */ +public class Antlr4Formatter { + + public static String format(String string) throws Antlr4FormatterException { + try { + if (null != string) { + final StringWriter writer = new StringWriter(); + final CodePointCharStream input = CharStreams.fromString(string); + formatGrammar(input, writer); + return writer.toString(); + } else { + return ""; + } + } catch (final Exception e) { + throw new Antlr4FormatterException("Exception reading and parsing file", e); + } + } + + private static void formatGrammar(CharStream input, Writer output) { + final ANTLRv4Lexer lexer = new ANTLRv4Lexer(input); + final CommonTokenStream commonTokenStream = new CommonTokenStream(lexer); + final ANTLRv4Parser parser = new ANTLRv4Parser(commonTokenStream); + final GrammarSpecContext grammarSpecContext = parser.grammarSpec(); + ParseTreeWalker.DEFAULT.walk( + new FormatterParseTreeListenerImpl( + new Antlr4FormatterListenerImpl(output), commonTokenStream), + grammarSpecContext); + } + + private Antlr4Formatter() {} +} diff --git a/android-app/anter4codeformat/app/src/main/java/com/khubla/antlr4formatter/Antlr4FormatterException.java b/android-app/anter4codeformat/app/src/main/java/com/khubla/antlr4formatter/Antlr4FormatterException.java new file mode 100644 index 0000000..b1d519a --- /dev/null +++ b/android-app/anter4codeformat/app/src/main/java/com/khubla/antlr4formatter/Antlr4FormatterException.java @@ -0,0 +1,34 @@ +/* + * Antlr4Formatter Copyright 2018, khubla.com + * + * 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 . + * + */ +package com.khubla.antlr4formatter; + +public class Antlr4FormatterException extends Exception { + private static final long serialVersionUID = 1L; + + public Antlr4FormatterException(Exception e) { + super(e); + } + + public Antlr4FormatterException(String message) { + super(message); + } + + public Antlr4FormatterException(String message, Exception e) { + super(message, e); + } +} diff --git a/android-app/anter4codeformat/app/src/main/java/com/khubla/antlr4formatter/Antlr4FormatterListenerImpl.java b/android-app/anter4codeformat/app/src/main/java/com/khubla/antlr4formatter/Antlr4FormatterListenerImpl.java new file mode 100644 index 0000000..9e97bae --- /dev/null +++ b/android-app/anter4codeformat/app/src/main/java/com/khubla/antlr4formatter/Antlr4FormatterListenerImpl.java @@ -0,0 +1,343 @@ +/* + * Antlr4Formatter Copyright 2015, khubla.com + * + * 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 . + * + */ +package com.khubla.antlr4formatter; + +import java.io.*; +import java.util.*; + +import org.antlr.parser.antlr4.ANTLRv4Parser.*; +import org.antlr.v4.runtime.*; +import org.antlr.v4.runtime.tree.*; + +import com.khubla.antlr4formatter.listener.*; + +public class Antlr4FormatterListenerImpl implements FormatterListener { + /** + * tabs or space. vi or emacs. + * + * @author tom + */ + public static enum IndentType { + tab, space + } + + /** + * + */ + /** + * tokens that do not need a space before them + */ + public static final Set noSpacingBeforeTokens = new HashSet<>(Arrays.asList(new String[] { "?", "*", ";", ")", "+" })); + /** + * tokens that do not need a space after them + */ + public static final Set noSpacingAfterTokens = new HashSet<>(Arrays.asList(new String[] { "(" })); + /** + * rules which need a NL after the rule + */ + public static final Set> newlineAfterRules = new HashSet>(Arrays.asList(new Class[] { GrammarDeclContext.class, ParserRuleSpecContext.class, LexerRuleSpecContext.class })); + /** + * rules which colon on new line + */ + public static final Set> colonOnNewlineRules = new HashSet>(Arrays.asList(new Class[] { ParserRuleSpecContext.class, LexerRuleSpecContext.class })); + /** + * rules which need a NL before the rule + */ + public static final Set> newlineBeforeRules = new HashSet>(Arrays.asList(new Class[] { PrequelConstructContext.class, GrammarDeclContext.class, ParserRuleSpecContext.class, + LexerRuleSpecContext.class, OptionsSpecContext.class, ModeSpecContext.class, ActionBlockContext.class })); + /** + * rules which need an indent + */ + public static final Set> indentedeRules = new HashSet>(Arrays.asList(new Class[] { ParserRuleSpecContext.class, LexerRuleSpecContext.class })); + /** + * tokens which need a newline before them + */ + public static final Set newlineBeforeTokens = new HashSet(Arrays.asList(new String[] { ":", "|" })); + /** + * rules which are interpreted as literal + */ + public static final Set> interpretAsLiteralRules = new HashSet>(Arrays.asList(new Class[] { ArgActionBlockContext.class, ActionBlockContext.class })); + /** + * default indent size + */ + private static final int DEFAULT_INDENT_SIZE = 3; + /** + * default indent type + */ + private static final IndentType DEFAULT_INDENT_TYPE = IndentType.space; + /** + * debug + */ + public static final boolean DEBUG = false; + /** + * indent size + */ + public int indent = 0; + /** + * newline + */ + private boolean newline = true; + /** + * PrintStream + */ + private final Writer writer; + /** + * previous token + */ + private String previousToken = ""; + /** + * indent size + */ + private int indentSize; + /** + * indent type + */ + public IndentType indentType; + /** + * parenth count + */ + private int parenthCount = 0; + /** + * started output? rules in 'newlineBeforeRules' output a NL before they output the rule. This is + * done to ensure they're on a new line. However, if they are the first rule, this results in + * empty NL's at the top of the file. This prevents that. + */ + private boolean outputStarted = false; + + /** + * ctor + */ + public Antlr4FormatterListenerImpl(Writer writer) { + this.writer = writer; + indentSize = DEFAULT_INDENT_SIZE; + indentType = DEFAULT_INDENT_TYPE; + } + + /** + * build indent + */ + private String buildIndent(int indent) { + final StringBuilder sb = new StringBuilder(); + for (int i = 0; i < (indent * indentSize); i++) { + if (indentType == IndentType.space) { + sb.append(" "); + } else { + sb.append("/t"); + } + } + return sb.toString(); + } + + @Override + public void enterEveryRule(ParserRuleContext ctx) { + + if (DEBUG) { + System.out.println("enter rule: " + ctx.getClass().getSimpleName()); + } + if (newlineBeforeRules.contains(ctx.getClass())) { + writeCR(); + } + if (indentedeRules.contains(ctx.getClass())) { + indent++; + } + } + + @Override + public void exitEveryRule(ParserRuleContext ctx) { + + if (DEBUG) { + System.out.println("exit rule: " + ctx.getClass().getSimpleName()); + } + if (indentedeRules.contains(ctx.getClass())) { + indent--; + } + if (newlineAfterRules.contains(ctx.getClass())) { + if (false == newline) { + writeCR(); + } + } + } + + public int getIndentSize() { + return indentSize; + } + + public IndentType getIndentType() { + return indentType; + } + + /** + * are we currently in a parenth? + */ + protected boolean isInParenth() { + return (parenthCount == 0) ? false : true; + } + + public void setIndentSize(int indentSize) { + this.indentSize = indentSize; + } + + public void setIndentType(IndentType indentType) { + this.indentType = indentType; + } + + @Override + public void visitComment(Token token, boolean left, CommentType commentType, boolean nl) { + if ((false == newline) && (false == nl)) { + write(" "); + } + if (nl) { + if (commentType == CommentType.line) { + writeCR(); + } else { + writeSimple("\n"); + } + } + /* + * write the comment + */ + writeSimple(token.getText()); + /* + * block comments need a CR or comments to the left of the current token + */ + if ((commentType == CommentType.block) || (left)) { + writeCR(); + } + if ((commentType == CommentType.line) || (!left)) { + writeCR(); + } + } + + @Override + public void visitErrorNode(ErrorNode node) { + System.out.println("Error: " + node.getText()); + } + + @Override + public void visitTerminal(TerminalNode node) { + /* + * eof + */ + if (node.getSymbol().getType() != Recognizer.EOF) { + /* + * count parenths + */ + if (false == interpretAsLiteralRules.contains(node.getParent().getClass())) { + if (node.toString().compareTo("(") == 0) { + parenthCount++; + } else if (node.toString().compareTo(")") == 0) { + parenthCount--; + } + } + /* + * tokens which require a newline before the token, like '|' and ':' + */ + if (newlineBeforeTokens.contains(node.toString())) { + if (false == newline) { + if (false == interpretAsLiteralRules.contains(node.getParent().getClass())) { + if (false == isInParenth()) { + writeCR(); + } + } + } + } + /* + * some rules want the ';' on a new line (like ParserRuleSpecContext, LexerRuleSpecContext) + */ + if (node.toString().compareTo(";") == 0) { + if (colonOnNewlineRules.contains(node.getParent().getClass())) { + writeCR(); + } + } + /* + * write the node + */ + write(node); + } else { + writeCR(); + } + } + + /** + * write to the output stream + */ + protected void write(String str) { + /* + * print token + */ + writeSimple(str); + if (true == newline) { + newline = false; + } + /* + * save the previous + */ + previousToken = str; + } + + /** + * write to the output stream + */ + private void write(TerminalNode node) { + + /* + * space before the output + */ + if ((false == newline) && (false == noSpacingAfterTokens.contains(previousToken)) && (false == noSpacingBeforeTokens.contains(node.getText()))) { + if (false == interpretAsLiteralRules.contains(node.getParent().getClass())) { + writeSimple(" "); + } + } + /* + * print token + */ + writeSimple(node.getText()); + if (true == newline) { + newline = false; + } + /* + * save the previous + */ + previousToken = node.getText(); + } + + /** + * write a CR + */ + private void writeCR() { + if (true == outputStarted) { + writeSimple("\n"); + writeSimple(buildIndent(indent)); + newline = true; + } + } + + private void writeSimple(String string) { + try { + if (DEBUG) { + System.out.print(string); + } + writer.write(string); + if ((string.trim().length() > 0) && (outputStarted == false)) { + outputStarted = true; + } + } catch (final IOException e) { + + } + } +} diff --git a/android-app/anter4codeformat/app/src/main/java/com/khubla/antlr4formatter/listener/FormatterListener.java b/android-app/anter4codeformat/app/src/main/java/com/khubla/antlr4formatter/listener/FormatterListener.java new file mode 100644 index 0000000..28e8325 --- /dev/null +++ b/android-app/anter4codeformat/app/src/main/java/com/khubla/antlr4formatter/listener/FormatterListener.java @@ -0,0 +1,35 @@ +/* + * Antlr4Formatter Copyright 2015, khubla.com + * + * 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 . + * + */ +package com.khubla.antlr4formatter.listener; + +import org.antlr.v4.runtime.*; +import org.antlr.v4.runtime.tree.*; + +public interface FormatterListener extends ParseTreeListener { + /** + * comment type + * + * @author tom + */ + public static enum CommentType { + block, + line + } + + void visitComment(Token token, boolean left, CommentType commentType, boolean newLine); +} diff --git a/android-app/anter4codeformat/app/src/main/java/com/khubla/antlr4formatter/listener/FormatterParseTreeListenerImpl.java b/android-app/anter4codeformat/app/src/main/java/com/khubla/antlr4formatter/listener/FormatterParseTreeListenerImpl.java new file mode 100644 index 0000000..a30273c --- /dev/null +++ b/android-app/anter4codeformat/app/src/main/java/com/khubla/antlr4formatter/listener/FormatterParseTreeListenerImpl.java @@ -0,0 +1,229 @@ +/* + * Antlr4Formatter Copyright 2018, khubla.com + * + * 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 . + * + */ +package com.khubla.antlr4formatter.listener; + +import java.util.*; + +import java.util.logging.Logger; +import org.antlr.parser.antlr4.*; +import org.antlr.v4.runtime.*; +import org.antlr.v4.runtime.tree.*; + +import com.khubla.antlr4formatter.listener.FormatterListener.*; + +public class FormatterParseTreeListenerImpl implements ParseTreeListener { + /** logger */ + + /** comment tokens */ + private static final Set commentTokens = + new HashSet<>(Arrays.asList(new String[] {"/*", "//"})); + + /** formatter */ + private final FormatterListener formatterListener; + + /** comment token marker */ + private int commentTokenPos = -1; + + /** token stream */ + private final CommonTokenStream commonTokenStream; + + public FormatterParseTreeListenerImpl( + FormatterListener formatterListener, CommonTokenStream commonTokenStream) { + super(); + this.formatterListener = formatterListener; + this.commonTokenStream = commonTokenStream; + } + + @Override + public void enterEveryRule(ParserRuleContext ctx) { + + /* + * rule + */ + formatterListener.enterEveryRule(ctx); + } + + @Override + public void exitEveryRule(ParserRuleContext ctx) { + + /* + * rule + */ + formatterListener.exitEveryRule(ctx); + } + + private CommentType getCommentType(String comment) { + if (comment.startsWith("//")) { + return CommentType.line; + } else { + return CommentType.block; + } + } + + private void handleLeftCommentTokens(TerminalNode node) { + /* + * check for comment tokens left of the ctx + */ + final int tokPos = node.getSymbol().getTokenIndex(); + if (tokPos > commentTokenPos) { + /* + * get comment tokens to left of current token + */ + final List leftCommentTokens = + commonTokenStream.getHiddenTokensToLeft(tokPos, ANTLRv4Lexer.COMMENT); + if ((null != leftCommentTokens) && (leftCommentTokens.size() > 0)) { + /* + * walk comment tokens + */ + for (final Token commentToken : leftCommentTokens) { + if (commentToken.getTokenIndex() > commentTokenPos) { + /* + * check if there is a CRLF skipped in there + */ + final List skippedTokens = + commonTokenStream.getHiddenTokensToLeft( + commentToken.getTokenIndex(), ANTLRv4Lexer.OFF_CHANNEL); + int lfCount = 0; + if (null != skippedTokens) { + for (final Token skippedToken : skippedTokens) { + if (skippedToken.getText().indexOf("\n") != -1) { + lfCount++; + } + } + } + /* + * print comments + */ + final String str = commentToken.getText().trim(); + if (str.length() > 0) { + if (isComment(str)) { + formatterListener.visitComment( + commentToken, + true, + getCommentType(commentToken.getText()), + (lfCount > 0) ? true : false); + } + } + } + if (commentToken.getTokenIndex() > commentTokenPos) { + commentTokenPos = commentToken.getTokenIndex(); + } + } + } else { + commentTokenPos = tokPos; + } + } + } + + private void handleRightCommentTokens(TerminalNode node) { + /* + * check for comment tokens right of the ctx + */ + final int tokPos = node.getSymbol().getTokenIndex(); + if (tokPos >= commentTokenPos) { + /* + * get comment tokens to right of current token + */ + final List rightCommentTokens = + commonTokenStream.getHiddenTokensToRight(tokPos, ANTLRv4Lexer.COMMENT); + if ((null != rightCommentTokens) && (rightCommentTokens.size() > 0)) { + /* + * walk comment tokens + */ + for (final Token commentToken : rightCommentTokens) { + /* + * check if there is a CRLF skipped in there + */ + final List skippedTokens = + commonTokenStream.getHiddenTokensToLeft( + commentToken.getTokenIndex(), ANTLRv4Lexer.OFF_CHANNEL); + int lfCount = 0; + if (null != skippedTokens) { + for (final Token skippedToken : skippedTokens) { + if (skippedToken.getText().indexOf("\n") != -1) { + lfCount++; + } + } + } + /* + * print comments + */ + final String str = commentToken.getText().trim(); + if (str.length() > 0) { + if (isComment(str)) { + formatterListener.visitComment( + commentToken, + false, + getCommentType(commentToken.getText()), + (lfCount > 0) ? true : false); + } + } + if (commentToken.getTokenIndex() > commentTokenPos) { + commentTokenPos = commentToken.getTokenIndex(); + } + } + } else { + commentTokenPos = tokPos; + } + } + } + + /** check if string is comment */ + private boolean isComment(String str) { + for (final String c : commentTokens) { + if (str.startsWith(c)) { + return true; + } + } + return false; + } + + protected int tokenStart(ParserRuleContext ctx) { + return (ctx.getStart().getTokenIndex() < ctx.getStop().getTokenIndex()) + ? ctx.getStart().getTokenIndex() + : ctx.getStop().getTokenIndex(); + } + + protected int tokenStop(ParserRuleContext ctx) { + return (ctx.getStop().getTokenIndex() > ctx.getStart().getTokenIndex()) + ? ctx.getStop().getTokenIndex() + : ctx.getStart().getTokenIndex(); + } + + @Override + public void visitErrorNode(ErrorNode node) { + formatterListener.visitErrorNode(node); + } + + @Override + public void visitTerminal(TerminalNode node) { + + /* + * left comment tokens + */ + handleLeftCommentTokens(node); + /* + * terminal + */ + formatterListener.visitTerminal(node); + /* + * right comment tokens + */ + handleRightCommentTokens(node); + } +} diff --git a/android-app/anter4codeformat/app/src/main/java/org/antlr/parser/antlr4/ANTLRv4Lexer.java b/android-app/anter4codeformat/app/src/main/java/org/antlr/parser/antlr4/ANTLRv4Lexer.java new file mode 100644 index 0000000..2580186 --- /dev/null +++ b/android-app/anter4codeformat/app/src/main/java/org/antlr/parser/antlr4/ANTLRv4Lexer.java @@ -0,0 +1,804 @@ +// Generated from ./ANTLRv4Lexer.g4 by ANTLR 4.13.1 +package org.antlr.parser.antlr4; +import org.antlr.v4.runtime.Lexer; +import org.antlr.v4.runtime.CharStream; +import org.antlr.v4.runtime.Token; +import org.antlr.v4.runtime.TokenStream; +import org.antlr.v4.runtime.*; +import org.antlr.v4.runtime.atn.*; +import org.antlr.v4.runtime.dfa.DFA; +import org.antlr.v4.runtime.misc.*; + +@SuppressWarnings({"all", "warnings", "unchecked", "unused", "cast", "CheckReturnValue", "this-escape"}) +public class ANTLRv4Lexer extends LexerAdaptor { + static { RuntimeMetaData.checkVersion("4.13.1", RuntimeMetaData.VERSION); } + + protected static final DFA[] _decisionToDFA; + protected static final PredictionContextCache _sharedContextCache = + new PredictionContextCache(); + public static final int + TOKEN_REF=1, RULE_REF=2, LEXER_CHAR_SET=3, DOC_COMMENT=4, BLOCK_COMMENT=5, + LINE_COMMENT=6, INT=7, STRING_LITERAL=8, UNTERMINATED_STRING_LITERAL=9, + BEGIN_ARGUMENT=10, BEGIN_ACTION=11, OPTIONS=12, TOKENS=13, CHANNELS=14, + IMPORT=15, FRAGMENT=16, LEXER=17, PARSER=18, GRAMMAR=19, PROTECTED=20, + PUBLIC=21, PRIVATE=22, RETURNS=23, LOCALS=24, THROWS=25, CATCH=26, FINALLY=27, + MODE=28, COLON=29, COLONCOLON=30, COMMA=31, SEMI=32, LPAREN=33, RPAREN=34, + LBRACE=35, RBRACE=36, RARROW=37, LT=38, GT=39, ASSIGN=40, QUESTION=41, + STAR=42, PLUS_ASSIGN=43, PLUS=44, OR=45, DOLLAR=46, RANGE=47, DOT=48, + AT=49, POUND=50, NOT=51, ID=52, WS=53, ERRCHAR=54, END_ARGUMENT=55, UNTERMINATED_ARGUMENT=56, + ARGUMENT_CONTENT=57, END_ACTION=58, UNTERMINATED_ACTION=59, ACTION_CONTENT=60, + OPT_LBRACE=61, UNTERMINATED_CHAR_SET=62; + public static final int + OFF_CHANNEL=2, COMMENT=3; + public static final int + Argument=1, Action=2, Options=3, Tokens=4, Channels=5, LexerCharSet=6; + public static String[] channelNames = { + "DEFAULT_TOKEN_CHANNEL", "HIDDEN", "OFF_CHANNEL", "COMMENT" + }; + + public static String[] modeNames = { + "DEFAULT_MODE", "Argument", "Action", "Options", "Tokens", "Channels", + "LexerCharSet" + }; + + private static String[] makeRuleNames() { + return new String[] { + "DOC_COMMENT", "BLOCK_COMMENT", "LINE_COMMENT", "INT", "STRING_LITERAL", + "UNTERMINATED_STRING_LITERAL", "BEGIN_ARGUMENT", "BEGIN_ACTION", "OPTIONS", + "TOKENS", "CHANNELS", "IMPORT", "FRAGMENT", "LEXER", "PARSER", "GRAMMAR", + "PROTECTED", "PUBLIC", "PRIVATE", "RETURNS", "LOCALS", "THROWS", "CATCH", + "FINALLY", "MODE", "COLON", "COLONCOLON", "COMMA", "SEMI", "LPAREN", + "RPAREN", "LBRACE", "RBRACE", "RARROW", "LT", "GT", "ASSIGN", "QUESTION", + "STAR", "PLUS_ASSIGN", "PLUS", "OR", "DOLLAR", "RANGE", "DOT", "AT", + "POUND", "NOT", "ID", "WS", "ERRCHAR", "Ws", "Hws", "Vws", "BlockComment", + "DocComment", "LineComment", "EscSeq", "EscAny", "UnicodeEsc", "DecimalNumeral", + "HexDigit", "DecDigit", "BoolLiteral", "CharLiteral", "SQuoteLiteral", + "DQuoteLiteral", "USQuoteLiteral", "NameChar", "NameStartChar", "Int", + "Esc", "Colon", "DColon", "SQuote", "DQuote", "LParen", "RParen", "LBrace", + "RBrace", "LBrack", "RBrack", "RArrow", "Lt", "Gt", "Equal", "Question", + "Star", "Plus", "PlusAssign", "Underscore", "Pipe", "Dollar", "Comma", + "Semi", "Dot", "Range", "At", "Pound", "Tilde", "NESTED_ARGUMENT", "ARGUMENT_ESCAPE", + "ARGUMENT_STRING_LITERAL", "ARGUMENT_CHAR_LITERAL", "END_ARGUMENT", "UNTERMINATED_ARGUMENT", + "ARGUMENT_CONTENT", "NESTED_ACTION", "ACTION_ESCAPE", "ACTION_STRING_LITERAL", + "ACTION_CHAR_LITERAL", "ACTION_DOC_COMMENT", "ACTION_BLOCK_COMMENT", + "ACTION_LINE_COMMENT", "END_ACTION", "UNTERMINATED_ACTION", "ACTION_CONTENT", + "OPT_DOC_COMMENT", "OPT_BLOCK_COMMENT", "OPT_LINE_COMMENT", "OPT_LBRACE", + "OPT_RBRACE", "OPT_ID", "OPT_DOT", "OPT_ASSIGN", "OPT_STRING_LITERAL", + "OPT_INT", "OPT_STAR", "OPT_SEMI", "OPT_WS", "TOK_DOC_COMMENT", "TOK_BLOCK_COMMENT", + "TOK_LINE_COMMENT", "TOK_LBRACE", "TOK_RBRACE", "TOK_ID", "TOK_DOT", + "TOK_COMMA", "TOK_WS", "CHN_DOC_COMMENT", "CHN_BLOCK_COMMENT", "CHN_LINE_COMMENT", + "CHN_LBRACE", "CHN_RBRACE", "CHN_ID", "CHN_DOT", "CHN_COMMA", "CHN_WS", + "LEXER_CHAR_SET_BODY", "LEXER_CHAR_SET", "UNTERMINATED_CHAR_SET", "Id" + }; + } + public static final String[] ruleNames = makeRuleNames(); + + private static String[] makeLiteralNames() { + return new String[] { + null, null, null, null, null, null, null, null, null, null, null, null, + "'options'", "'tokens'", "'channels'", "'import'", "'fragment'", "'lexer'", + "'parser'", "'grammar'", "'protected'", "'public'", "'private'", "'returns'", + "'locals'", "'throws'", "'catch'", "'finally'", "'mode'" + }; + } + private static final String[] _LITERAL_NAMES = makeLiteralNames(); + private static String[] makeSymbolicNames() { + return new String[] { + null, "TOKEN_REF", "RULE_REF", "LEXER_CHAR_SET", "DOC_COMMENT", "BLOCK_COMMENT", + "LINE_COMMENT", "INT", "STRING_LITERAL", "UNTERMINATED_STRING_LITERAL", + "BEGIN_ARGUMENT", "BEGIN_ACTION", "OPTIONS", "TOKENS", "CHANNELS", "IMPORT", + "FRAGMENT", "LEXER", "PARSER", "GRAMMAR", "PROTECTED", "PUBLIC", "PRIVATE", + "RETURNS", "LOCALS", "THROWS", "CATCH", "FINALLY", "MODE", "COLON", "COLONCOLON", + "COMMA", "SEMI", "LPAREN", "RPAREN", "LBRACE", "RBRACE", "RARROW", "LT", + "GT", "ASSIGN", "QUESTION", "STAR", "PLUS_ASSIGN", "PLUS", "OR", "DOLLAR", + "RANGE", "DOT", "AT", "POUND", "NOT", "ID", "WS", "ERRCHAR", "END_ARGUMENT", + "UNTERMINATED_ARGUMENT", "ARGUMENT_CONTENT", "END_ACTION", "UNTERMINATED_ACTION", + "ACTION_CONTENT", "OPT_LBRACE", "UNTERMINATED_CHAR_SET" + }; + } + 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] = ""; + } + } + } + + @Override + @Deprecated + public String[] getTokenNames() { + return tokenNames; + } + + @Override + + public Vocabulary getVocabulary() { + return VOCABULARY; + } + + + public ANTLRv4Lexer(CharStream input) { + super(input); + _interp = new LexerATNSimulator(this,_ATN,_decisionToDFA,_sharedContextCache); + } + + @Override + public String getGrammarFileName() { return "ANTLRv4Lexer.g4"; } + + @Override + public String[] getRuleNames() { return ruleNames; } + + @Override + public String getSerializedATN() { return _serializedATN; } + + @Override + public String[] getChannelNames() { return channelNames; } + + @Override + public String[] getModeNames() { return modeNames; } + + @Override + public ATN getATN() { return _ATN; } + + @Override + public void action(RuleContext _localctx, int ruleIndex, int actionIndex) { + switch (ruleIndex) { + case 6: + BEGIN_ARGUMENT_action((RuleContext)_localctx, actionIndex); + break; + case 104: + END_ARGUMENT_action((RuleContext)_localctx, actionIndex); + break; + case 114: + END_ACTION_action((RuleContext)_localctx, actionIndex); + break; + case 120: + OPT_LBRACE_action((RuleContext)_localctx, actionIndex); + break; + } + } + private void BEGIN_ARGUMENT_action(RuleContext _localctx, int actionIndex) { + switch (actionIndex) { + case 0: + handleBeginArgument(); + break; + } + } + private void END_ARGUMENT_action(RuleContext _localctx, int actionIndex) { + switch (actionIndex) { + case 1: + handleEndArgument(); + break; + } + } + private void END_ACTION_action(RuleContext _localctx, int actionIndex) { + switch (actionIndex) { + case 2: + handleEndAction(); + break; + } + } + private void OPT_LBRACE_action(RuleContext _localctx, int actionIndex) { + switch (actionIndex) { + case 3: + handleOptionsLBrace(); + break; + } + } + + public static final String _serializedATN = + "\u0004\u0000>\u03c3\u0006\uffff\uffff\u0006\uffff\uffff\u0006\uffff\uffff"+ + "\u0006\uffff\uffff\u0006\uffff\uffff\u0006\uffff\uffff\u0006\uffff\uffff"+ + "\u0002\u0000\u0007\u0000\u0002\u0001\u0007\u0001\u0002\u0002\u0007\u0002"+ + "\u0002\u0003\u0007\u0003\u0002\u0004\u0007\u0004\u0002\u0005\u0007\u0005"+ + "\u0002\u0006\u0007\u0006\u0002\u0007\u0007\u0007\u0002\b\u0007\b\u0002"+ + "\t\u0007\t\u0002\n\u0007\n\u0002\u000b\u0007\u000b\u0002\f\u0007\f\u0002"+ + "\r\u0007\r\u0002\u000e\u0007\u000e\u0002\u000f\u0007\u000f\u0002\u0010"+ + "\u0007\u0010\u0002\u0011\u0007\u0011\u0002\u0012\u0007\u0012\u0002\u0013"+ + "\u0007\u0013\u0002\u0014\u0007\u0014\u0002\u0015\u0007\u0015\u0002\u0016"+ + "\u0007\u0016\u0002\u0017\u0007\u0017\u0002\u0018\u0007\u0018\u0002\u0019"+ + "\u0007\u0019\u0002\u001a\u0007\u001a\u0002\u001b\u0007\u001b\u0002\u001c"+ + "\u0007\u001c\u0002\u001d\u0007\u001d\u0002\u001e\u0007\u001e\u0002\u001f"+ + "\u0007\u001f\u0002 \u0007 \u0002!\u0007!\u0002\"\u0007\"\u0002#\u0007"+ + "#\u0002$\u0007$\u0002%\u0007%\u0002&\u0007&\u0002\'\u0007\'\u0002(\u0007"+ + "(\u0002)\u0007)\u0002*\u0007*\u0002+\u0007+\u0002,\u0007,\u0002-\u0007"+ + "-\u0002.\u0007.\u0002/\u0007/\u00020\u00070\u00021\u00071\u00022\u0007"+ + "2\u00023\u00073\u00024\u00074\u00025\u00075\u00026\u00076\u00027\u0007"+ + "7\u00028\u00078\u00029\u00079\u0002:\u0007:\u0002;\u0007;\u0002<\u0007"+ + "<\u0002=\u0007=\u0002>\u0007>\u0002?\u0007?\u0002@\u0007@\u0002A\u0007"+ + "A\u0002B\u0007B\u0002C\u0007C\u0002D\u0007D\u0002E\u0007E\u0002F\u0007"+ + "F\u0002G\u0007G\u0002H\u0007H\u0002I\u0007I\u0002J\u0007J\u0002K\u0007"+ + "K\u0002L\u0007L\u0002M\u0007M\u0002N\u0007N\u0002O\u0007O\u0002P\u0007"+ + "P\u0002Q\u0007Q\u0002R\u0007R\u0002S\u0007S\u0002T\u0007T\u0002U\u0007"+ + "U\u0002V\u0007V\u0002W\u0007W\u0002X\u0007X\u0002Y\u0007Y\u0002Z\u0007"+ + "Z\u0002[\u0007[\u0002\\\u0007\\\u0002]\u0007]\u0002^\u0007^\u0002_\u0007"+ + "_\u0002`\u0007`\u0002a\u0007a\u0002b\u0007b\u0002c\u0007c\u0002d\u0007"+ + "d\u0002e\u0007e\u0002f\u0007f\u0002g\u0007g\u0002h\u0007h\u0002i\u0007"+ + "i\u0002j\u0007j\u0002k\u0007k\u0002l\u0007l\u0002m\u0007m\u0002n\u0007"+ + "n\u0002o\u0007o\u0002p\u0007p\u0002q\u0007q\u0002r\u0007r\u0002s\u0007"+ + "s\u0002t\u0007t\u0002u\u0007u\u0002v\u0007v\u0002w\u0007w\u0002x\u0007"+ + "x\u0002y\u0007y\u0002z\u0007z\u0002{\u0007{\u0002|\u0007|\u0002}\u0007"+ + "}\u0002~\u0007~\u0002\u007f\u0007\u007f\u0002\u0080\u0007\u0080\u0002"+ + "\u0081\u0007\u0081\u0002\u0082\u0007\u0082\u0002\u0083\u0007\u0083\u0002"+ + "\u0084\u0007\u0084\u0002\u0085\u0007\u0085\u0002\u0086\u0007\u0086\u0002"+ + "\u0087\u0007\u0087\u0002\u0088\u0007\u0088\u0002\u0089\u0007\u0089\u0002"+ + "\u008a\u0007\u008a\u0002\u008b\u0007\u008b\u0002\u008c\u0007\u008c\u0002"+ + "\u008d\u0007\u008d\u0002\u008e\u0007\u008e\u0002\u008f\u0007\u008f\u0002"+ + "\u0090\u0007\u0090\u0002\u0091\u0007\u0091\u0002\u0092\u0007\u0092\u0002"+ + "\u0093\u0007\u0093\u0002\u0094\u0007\u0094\u0002\u0095\u0007\u0095\u0002"+ + "\u0096\u0007\u0096\u0002\u0097\u0007\u0097\u0001\u0000\u0001\u0000\u0001"+ + "\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0002\u0001\u0002\u0001"+ + "\u0002\u0001\u0002\u0001\u0003\u0001\u0003\u0001\u0004\u0001\u0004\u0001"+ + "\u0005\u0001\u0005\u0001\u0006\u0001\u0006\u0001\u0006\u0001\u0007\u0001"+ + "\u0007\u0001\u0007\u0001\u0007\u0001\b\u0001\b\u0001\b\u0001\b\u0001\b"+ + "\u0001\b\u0001\b\u0001\b\u0001\b\u0001\b\u0001\t\u0001\t\u0001\t\u0001"+ + "\t\u0001\t\u0001\t\u0001\t\u0001\t\u0001\t\u0001\n\u0001\n\u0001\n\u0001"+ + "\n\u0001\n\u0001\n\u0001\n\u0001\n\u0001\n\u0001\n\u0001\n\u0001\u000b"+ + "\u0001\u000b\u0001\u000b\u0001\u000b\u0001\u000b\u0001\u000b\u0001\u000b"+ + "\u0001\f\u0001\f\u0001\f\u0001\f\u0001\f\u0001\f\u0001\f\u0001\f\u0001"+ + "\f\u0001\r\u0001\r\u0001\r\u0001\r\u0001\r\u0001\r\u0001\u000e\u0001\u000e"+ + "\u0001\u000e\u0001\u000e\u0001\u000e\u0001\u000e\u0001\u000e\u0001\u000f"+ + "\u0001\u000f\u0001\u000f\u0001\u000f\u0001\u000f\u0001\u000f\u0001\u000f"+ + "\u0001\u000f\u0001\u0010\u0001\u0010\u0001\u0010\u0001\u0010\u0001\u0010"+ + "\u0001\u0010\u0001\u0010\u0001\u0010\u0001\u0010\u0001\u0010\u0001\u0011"+ + "\u0001\u0011\u0001\u0011\u0001\u0011\u0001\u0011\u0001\u0011\u0001\u0011"+ + "\u0001\u0012\u0001\u0012\u0001\u0012\u0001\u0012\u0001\u0012\u0001\u0012"+ + "\u0001\u0012\u0001\u0012\u0001\u0013\u0001\u0013\u0001\u0013\u0001\u0013"+ + "\u0001\u0013\u0001\u0013\u0001\u0013\u0001\u0013\u0001\u0014\u0001\u0014"+ + "\u0001\u0014\u0001\u0014\u0001\u0014\u0001\u0014\u0001\u0014\u0001\u0015"+ + "\u0001\u0015\u0001\u0015\u0001\u0015\u0001\u0015\u0001\u0015\u0001\u0015"+ + "\u0001\u0016\u0001\u0016\u0001\u0016\u0001\u0016\u0001\u0016\u0001\u0016"+ + "\u0001\u0017\u0001\u0017\u0001\u0017\u0001\u0017\u0001\u0017\u0001\u0017"+ + "\u0001\u0017\u0001\u0017\u0001\u0018\u0001\u0018\u0001\u0018\u0001\u0018"+ + "\u0001\u0018\u0001\u0019\u0001\u0019\u0001\u001a\u0001\u001a\u0001\u001b"+ + "\u0001\u001b\u0001\u001c\u0001\u001c\u0001\u001d\u0001\u001d\u0001\u001e"+ + "\u0001\u001e\u0001\u001f\u0001\u001f\u0001 \u0001 \u0001!\u0001!\u0001"+ + "\"\u0001\"\u0001#\u0001#\u0001$\u0001$\u0001%\u0001%\u0001&\u0001&\u0001"+ + "\'\u0001\'\u0001(\u0001(\u0001)\u0001)\u0001*\u0001*\u0001+\u0001+\u0001"+ + ",\u0001,\u0001-\u0001-\u0001.\u0001.\u0001/\u0001/\u00010\u00010\u0001"+ + "1\u00041\u0205\b1\u000b1\f1\u0206\u00011\u00011\u00012\u00012\u00012\u0001"+ + "2\u00013\u00013\u00033\u0211\b3\u00014\u00014\u00015\u00015\u00016\u0001"+ + "6\u00016\u00016\u00056\u021b\b6\n6\f6\u021e\t6\u00016\u00016\u00016\u0003"+ + "6\u0223\b6\u00017\u00017\u00017\u00017\u00017\u00057\u022a\b7\n7\f7\u022d"+ + "\t7\u00017\u00017\u00017\u00037\u0232\b7\u00018\u00018\u00018\u00018\u0005"+ + "8\u0238\b8\n8\f8\u023b\t8\u00019\u00019\u00019\u00019\u00019\u00039\u0242"+ + "\b9\u0001:\u0001:\u0001:\u0001;\u0001;\u0001;\u0001;\u0001;\u0003;\u024c"+ + "\b;\u0003;\u024e\b;\u0003;\u0250\b;\u0003;\u0252\b;\u0001<\u0001<\u0001"+ + "<\u0005<\u0257\b<\n<\f<\u025a\t<\u0003<\u025c\b<\u0001=\u0001=\u0001>"+ + "\u0001>\u0001?\u0001?\u0001?\u0001?\u0001?\u0001?\u0001?\u0001?\u0001"+ + "?\u0003?\u026b\b?\u0001@\u0001@\u0001@\u0003@\u0270\b@\u0001@\u0001@\u0001"+ + "A\u0001A\u0001A\u0005A\u0277\bA\nA\fA\u027a\tA\u0001A\u0001A\u0001B\u0001"+ + "B\u0001B\u0005B\u0281\bB\nB\fB\u0284\tB\u0001B\u0001B\u0001C\u0001C\u0001"+ + "C\u0005C\u028b\bC\nC\fC\u028e\tC\u0001D\u0001D\u0001D\u0001D\u0003D\u0294"+ + "\bD\u0001E\u0001E\u0001F\u0001F\u0001F\u0001F\u0001G\u0001G\u0001H\u0001"+ + "H\u0001I\u0001I\u0001I\u0001J\u0001J\u0001K\u0001K\u0001L\u0001L\u0001"+ + "M\u0001M\u0001N\u0001N\u0001O\u0001O\u0001P\u0001P\u0001Q\u0001Q\u0001"+ + "R\u0001R\u0001R\u0001S\u0001S\u0001T\u0001T\u0001U\u0001U\u0001V\u0001"+ + "V\u0001W\u0001W\u0001X\u0001X\u0001Y\u0001Y\u0001Y\u0001Z\u0001Z\u0001"+ + "[\u0001[\u0001\\\u0001\\\u0001]\u0001]\u0001^\u0001^\u0001_\u0001_\u0001"+ + "`\u0001`\u0001`\u0001a\u0001a\u0001b\u0001b\u0001c\u0001c\u0001d\u0001"+ + "d\u0001d\u0001d\u0001d\u0001e\u0001e\u0001e\u0001e\u0001f\u0001f\u0001"+ + "f\u0001f\u0001g\u0001g\u0001g\u0001g\u0001h\u0001h\u0001h\u0001i\u0001"+ + "i\u0001i\u0001i\u0001j\u0001j\u0001k\u0001k\u0001k\u0001k\u0001k\u0001"+ + "l\u0001l\u0001l\u0001l\u0001m\u0001m\u0001m\u0001m\u0001n\u0001n\u0001"+ + "n\u0001n\u0001o\u0001o\u0001o\u0001o\u0001p\u0001p\u0001p\u0001p\u0001"+ + "q\u0001q\u0001q\u0001q\u0001r\u0001r\u0001r\u0001s\u0001s\u0001s\u0001"+ + "s\u0001t\u0001t\u0001u\u0001u\u0001u\u0001u\u0001u\u0001v\u0001v\u0001"+ + "v\u0001v\u0001v\u0001w\u0001w\u0001w\u0001w\u0001w\u0001x\u0001x\u0001"+ + "x\u0001y\u0001y\u0001y\u0001y\u0001y\u0001z\u0001z\u0001z\u0001z\u0001"+ + "{\u0001{\u0001{\u0001{\u0001|\u0001|\u0001|\u0001|\u0001}\u0001}\u0001"+ + "}\u0001}\u0001~\u0001~\u0001~\u0001~\u0001\u007f\u0001\u007f\u0001\u007f"+ + "\u0001\u007f\u0001\u0080\u0001\u0080\u0001\u0080\u0001\u0080\u0001\u0081"+ + "\u0004\u0081\u034e\b\u0081\u000b\u0081\f\u0081\u034f\u0001\u0081\u0001"+ + "\u0081\u0001\u0081\u0001\u0082\u0001\u0082\u0001\u0082\u0001\u0082\u0001"+ + "\u0082\u0001\u0083\u0001\u0083\u0001\u0083\u0001\u0083\u0001\u0083\u0001"+ + "\u0084\u0001\u0084\u0001\u0084\u0001\u0084\u0001\u0084\u0001\u0085\u0001"+ + "\u0085\u0001\u0085\u0001\u0085\u0001\u0086\u0001\u0086\u0001\u0086\u0001"+ + "\u0086\u0001\u0086\u0001\u0087\u0001\u0087\u0001\u0087\u0001\u0087\u0001"+ + "\u0088\u0001\u0088\u0001\u0088\u0001\u0088\u0001\u0089\u0001\u0089\u0001"+ + "\u0089\u0001\u0089\u0001\u008a\u0004\u008a\u037a\b\u008a\u000b\u008a\f"+ + "\u008a\u037b\u0001\u008a\u0001\u008a\u0001\u008a\u0001\u008b\u0001\u008b"+ + "\u0001\u008b\u0001\u008b\u0001\u008b\u0001\u008c\u0001\u008c\u0001\u008c"+ + "\u0001\u008c\u0001\u008c\u0001\u008d\u0001\u008d\u0001\u008d\u0001\u008d"+ + "\u0001\u008d\u0001\u008e\u0001\u008e\u0001\u008e\u0001\u008e\u0001\u008f"+ + "\u0001\u008f\u0001\u008f\u0001\u008f\u0001\u008f\u0001\u0090\u0001\u0090"+ + "\u0001\u0090\u0001\u0090\u0001\u0091\u0001\u0091\u0001\u0091\u0001\u0091"+ + "\u0001\u0092\u0001\u0092\u0001\u0092\u0001\u0092\u0001\u0093\u0004\u0093"+ + "\u03a6\b\u0093\u000b\u0093\f\u0093\u03a7\u0001\u0093\u0001\u0093\u0001"+ + "\u0093\u0001\u0094\u0001\u0094\u0004\u0094\u03af\b\u0094\u000b\u0094\f"+ + "\u0094\u03b0\u0001\u0094\u0001\u0094\u0001\u0095\u0001\u0095\u0001\u0095"+ + "\u0001\u0095\u0001\u0096\u0001\u0096\u0001\u0096\u0001\u0096\u0001\u0097"+ + "\u0001\u0097\u0005\u0097\u03bf\b\u0097\n\u0097\f\u0097\u03c2\t\u0097\u0002"+ + "\u021c\u022b\u0000\u0098\u0007\u0004\t\u0005\u000b\u0006\r\u0007\u000f"+ + "\b\u0011\t\u0013\n\u0015\u000b\u0017\f\u0019\r\u001b\u000e\u001d\u000f"+ + "\u001f\u0010!\u0011#\u0012%\u0013\'\u0014)\u0015+\u0016-\u0017/\u0018"+ + "1\u00193\u001a5\u001b7\u001c9\u001d;\u001e=\u001f? A!C\"E#G$I%K&M\'O("+ + "Q)S*U+W,Y-[.]/_0a1c2e3g4i5k6m\u0000o\u0000q\u0000s\u0000u\u0000w\u0000"+ + "y\u0000{\u0000}\u0000\u007f\u0000\u0081\u0000\u0083\u0000\u0085\u0000"+ + "\u0087\u0000\u0089\u0000\u008b\u0000\u008d\u0000\u008f\u0000\u0091\u0000"+ + "\u0093\u0000\u0095\u0000\u0097\u0000\u0099\u0000\u009b\u0000\u009d\u0000"+ + "\u009f\u0000\u00a1\u0000\u00a3\u0000\u00a5\u0000\u00a7\u0000\u00a9\u0000"+ + "\u00ab\u0000\u00ad\u0000\u00af\u0000\u00b1\u0000\u00b3\u0000\u00b5\u0000"+ + "\u00b7\u0000\u00b9\u0000\u00bb\u0000\u00bd\u0000\u00bf\u0000\u00c1\u0000"+ + "\u00c3\u0000\u00c5\u0000\u00c7\u0000\u00c9\u0000\u00cb\u0000\u00cd\u0000"+ + "\u00cf\u0000\u00d1\u0000\u00d3\u0000\u00d5\u0000\u00d77\u00d98\u00db9"+ + "\u00dd\u0000\u00df\u0000\u00e1\u0000\u00e3\u0000\u00e5\u0000\u00e7\u0000"+ + "\u00e9\u0000\u00eb:\u00ed;\u00ef<\u00f1\u0000\u00f3\u0000\u00f5\u0000"+ + "\u00f7=\u00f9\u0000\u00fb\u0000\u00fd\u0000\u00ff\u0000\u0101\u0000\u0103"+ + "\u0000\u0105\u0000\u0107\u0000\u0109\u0000\u010b\u0000\u010d\u0000\u010f"+ + "\u0000\u0111\u0000\u0113\u0000\u0115\u0000\u0117\u0000\u0119\u0000\u011b"+ + "\u0000\u011d\u0000\u011f\u0000\u0121\u0000\u0123\u0000\u0125\u0000\u0127"+ + "\u0000\u0129\u0000\u012b\u0000\u012d\u0000\u012f\u0000\u0131\u0003\u0133"+ + ">\u0135\u0000\u0007\u0000\u0001\u0002\u0003\u0004\u0005\u0006\f\u0002"+ + "\u0000\t\t \u0002\u0000\n\n\f\r\u0002\u0000\n\n\r\r\b\u0000\"\"\'\'\\"+ + "\\bbffnnrrtt\u0001\u000019\u0003\u000009AFaf\u0001\u000009\u0004\u0000"+ + "\n\n\r\r\'\'\\\\\u0004\u0000\n\n\r\r\"\"\\\\\u0003\u0000\u00b7\u00b7\u0300"+ + "\u036f\u203f\u2040\r\u0000AZaz\u00c0\u00d6\u00d8\u00f6\u00f8\u02ff\u0370"+ + "\u037d\u037f\u1fff\u200c\u200d\u2070\u218f\u2c00\u2fef\u3001\u8000\ud7ff"+ + "\u8000\uf900\u8000\ufdcf\u8000\ufdf0\u8000\ufffd\u0001\u0000\\]\u03ab"+ + "\u0000\u0007\u0001\u0000\u0000\u0000\u0000\t\u0001\u0000\u0000\u0000\u0000"+ + "\u000b\u0001\u0000\u0000\u0000\u0000\r\u0001\u0000\u0000\u0000\u0000\u000f"+ + "\u0001\u0000\u0000\u0000\u0000\u0011\u0001\u0000\u0000\u0000\u0000\u0013"+ + "\u0001\u0000\u0000\u0000\u0000\u0015\u0001\u0000\u0000\u0000\u0000\u0017"+ + "\u0001\u0000\u0000\u0000\u0000\u0019\u0001\u0000\u0000\u0000\u0000\u001b"+ + "\u0001\u0000\u0000\u0000\u0000\u001d\u0001\u0000\u0000\u0000\u0000\u001f"+ + "\u0001\u0000\u0000\u0000\u0000!\u0001\u0000\u0000\u0000\u0000#\u0001\u0000"+ + "\u0000\u0000\u0000%\u0001\u0000\u0000\u0000\u0000\'\u0001\u0000\u0000"+ + "\u0000\u0000)\u0001\u0000\u0000\u0000\u0000+\u0001\u0000\u0000\u0000\u0000"+ + "-\u0001\u0000\u0000\u0000\u0000/\u0001\u0000\u0000\u0000\u00001\u0001"+ + "\u0000\u0000\u0000\u00003\u0001\u0000\u0000\u0000\u00005\u0001\u0000\u0000"+ + "\u0000\u00007\u0001\u0000\u0000\u0000\u00009\u0001\u0000\u0000\u0000\u0000"+ + ";\u0001\u0000\u0000\u0000\u0000=\u0001\u0000\u0000\u0000\u0000?\u0001"+ + "\u0000\u0000\u0000\u0000A\u0001\u0000\u0000\u0000\u0000C\u0001\u0000\u0000"+ + "\u0000\u0000E\u0001\u0000\u0000\u0000\u0000G\u0001\u0000\u0000\u0000\u0000"+ + "I\u0001\u0000\u0000\u0000\u0000K\u0001\u0000\u0000\u0000\u0000M\u0001"+ + "\u0000\u0000\u0000\u0000O\u0001\u0000\u0000\u0000\u0000Q\u0001\u0000\u0000"+ + "\u0000\u0000S\u0001\u0000\u0000\u0000\u0000U\u0001\u0000\u0000\u0000\u0000"+ + "W\u0001\u0000\u0000\u0000\u0000Y\u0001\u0000\u0000\u0000\u0000[\u0001"+ + "\u0000\u0000\u0000\u0000]\u0001\u0000\u0000\u0000\u0000_\u0001\u0000\u0000"+ + "\u0000\u0000a\u0001\u0000\u0000\u0000\u0000c\u0001\u0000\u0000\u0000\u0000"+ + "e\u0001\u0000\u0000\u0000\u0000g\u0001\u0000\u0000\u0000\u0000i\u0001"+ + "\u0000\u0000\u0000\u0000k\u0001\u0000\u0000\u0000\u0001\u00cf\u0001\u0000"+ + "\u0000\u0000\u0001\u00d1\u0001\u0000\u0000\u0000\u0001\u00d3\u0001\u0000"+ + "\u0000\u0000\u0001\u00d5\u0001\u0000\u0000\u0000\u0001\u00d7\u0001\u0000"+ + "\u0000\u0000\u0001\u00d9\u0001\u0000\u0000\u0000\u0001\u00db\u0001\u0000"+ + "\u0000\u0000\u0002\u00dd\u0001\u0000\u0000\u0000\u0002\u00df\u0001\u0000"+ + "\u0000\u0000\u0002\u00e1\u0001\u0000\u0000\u0000\u0002\u00e3\u0001\u0000"+ + "\u0000\u0000\u0002\u00e5\u0001\u0000\u0000\u0000\u0002\u00e7\u0001\u0000"+ + "\u0000\u0000\u0002\u00e9\u0001\u0000\u0000\u0000\u0002\u00eb\u0001\u0000"+ + "\u0000\u0000\u0002\u00ed\u0001\u0000\u0000\u0000\u0002\u00ef\u0001\u0000"+ + "\u0000\u0000\u0003\u00f1\u0001\u0000\u0000\u0000\u0003\u00f3\u0001\u0000"+ + "\u0000\u0000\u0003\u00f5\u0001\u0000\u0000\u0000\u0003\u00f7\u0001\u0000"+ + "\u0000\u0000\u0003\u00f9\u0001\u0000\u0000\u0000\u0003\u00fb\u0001\u0000"+ + "\u0000\u0000\u0003\u00fd\u0001\u0000\u0000\u0000\u0003\u00ff\u0001\u0000"+ + "\u0000\u0000\u0003\u0101\u0001\u0000\u0000\u0000\u0003\u0103\u0001\u0000"+ + "\u0000\u0000\u0003\u0105\u0001\u0000\u0000\u0000\u0003\u0107\u0001\u0000"+ + "\u0000\u0000\u0003\u0109\u0001\u0000\u0000\u0000\u0004\u010b\u0001\u0000"+ + "\u0000\u0000\u0004\u010d\u0001\u0000\u0000\u0000\u0004\u010f\u0001\u0000"+ + "\u0000\u0000\u0004\u0111\u0001\u0000\u0000\u0000\u0004\u0113\u0001\u0000"+ + "\u0000\u0000\u0004\u0115\u0001\u0000\u0000\u0000\u0004\u0117\u0001\u0000"+ + "\u0000\u0000\u0004\u0119\u0001\u0000\u0000\u0000\u0004\u011b\u0001\u0000"+ + "\u0000\u0000\u0005\u011d\u0001\u0000\u0000\u0000\u0005\u011f\u0001\u0000"+ + "\u0000\u0000\u0005\u0121\u0001\u0000\u0000\u0000\u0005\u0123\u0001\u0000"+ + "\u0000\u0000\u0005\u0125\u0001\u0000\u0000\u0000\u0005\u0127\u0001\u0000"+ + "\u0000\u0000\u0005\u0129\u0001\u0000\u0000\u0000\u0005\u012b\u0001\u0000"+ + "\u0000\u0000\u0005\u012d\u0001\u0000\u0000\u0000\u0006\u012f\u0001\u0000"+ + "\u0000\u0000\u0006\u0131\u0001\u0000\u0000\u0000\u0006\u0133\u0001\u0000"+ + "\u0000\u0000\u0007\u0137\u0001\u0000\u0000\u0000\t\u0139\u0001\u0000\u0000"+ + "\u0000\u000b\u013d\u0001\u0000\u0000\u0000\r\u0141\u0001\u0000\u0000\u0000"+ + "\u000f\u0143\u0001\u0000\u0000\u0000\u0011\u0145\u0001\u0000\u0000\u0000"+ + "\u0013\u0147\u0001\u0000\u0000\u0000\u0015\u014a\u0001\u0000\u0000\u0000"+ + "\u0017\u014e\u0001\u0000\u0000\u0000\u0019\u0158\u0001\u0000\u0000\u0000"+ + "\u001b\u0161\u0001\u0000\u0000\u0000\u001d\u016c\u0001\u0000\u0000\u0000"+ + "\u001f\u0173\u0001\u0000\u0000\u0000!\u017c\u0001\u0000\u0000\u0000#\u0182"+ + "\u0001\u0000\u0000\u0000%\u0189\u0001\u0000\u0000\u0000\'\u0191\u0001"+ + "\u0000\u0000\u0000)\u019b\u0001\u0000\u0000\u0000+\u01a2\u0001\u0000\u0000"+ + "\u0000-\u01aa\u0001\u0000\u0000\u0000/\u01b2\u0001\u0000\u0000\u00001"+ + "\u01b9\u0001\u0000\u0000\u00003\u01c0\u0001\u0000\u0000\u00005\u01c6\u0001"+ + "\u0000\u0000\u00007\u01ce\u0001\u0000\u0000\u00009\u01d3\u0001\u0000\u0000"+ + "\u0000;\u01d5\u0001\u0000\u0000\u0000=\u01d7\u0001\u0000\u0000\u0000?"+ + "\u01d9\u0001\u0000\u0000\u0000A\u01db\u0001\u0000\u0000\u0000C\u01dd\u0001"+ + "\u0000\u0000\u0000E\u01df\u0001\u0000\u0000\u0000G\u01e1\u0001\u0000\u0000"+ + "\u0000I\u01e3\u0001\u0000\u0000\u0000K\u01e5\u0001\u0000\u0000\u0000M"+ + "\u01e7\u0001\u0000\u0000\u0000O\u01e9\u0001\u0000\u0000\u0000Q\u01eb\u0001"+ + "\u0000\u0000\u0000S\u01ed\u0001\u0000\u0000\u0000U\u01ef\u0001\u0000\u0000"+ + "\u0000W\u01f1\u0001\u0000\u0000\u0000Y\u01f3\u0001\u0000\u0000\u0000["+ + "\u01f5\u0001\u0000\u0000\u0000]\u01f7\u0001\u0000\u0000\u0000_\u01f9\u0001"+ + "\u0000\u0000\u0000a\u01fb\u0001\u0000\u0000\u0000c\u01fd\u0001\u0000\u0000"+ + "\u0000e\u01ff\u0001\u0000\u0000\u0000g\u0201\u0001\u0000\u0000\u0000i"+ + "\u0204\u0001\u0000\u0000\u0000k\u020a\u0001\u0000\u0000\u0000m\u0210\u0001"+ + "\u0000\u0000\u0000o\u0212\u0001\u0000\u0000\u0000q\u0214\u0001\u0000\u0000"+ + "\u0000s\u0216\u0001\u0000\u0000\u0000u\u0224\u0001\u0000\u0000\u0000w"+ + "\u0233\u0001\u0000\u0000\u0000y\u023c\u0001\u0000\u0000\u0000{\u0243\u0001"+ + "\u0000\u0000\u0000}\u0246\u0001\u0000\u0000\u0000\u007f\u025b\u0001\u0000"+ + "\u0000\u0000\u0081\u025d\u0001\u0000\u0000\u0000\u0083\u025f\u0001\u0000"+ + "\u0000\u0000\u0085\u026a\u0001\u0000\u0000\u0000\u0087\u026c\u0001\u0000"+ + "\u0000\u0000\u0089\u0273\u0001\u0000\u0000\u0000\u008b\u027d\u0001\u0000"+ + "\u0000\u0000\u008d\u0287\u0001\u0000\u0000\u0000\u008f\u0293\u0001\u0000"+ + "\u0000\u0000\u0091\u0295\u0001\u0000\u0000\u0000\u0093\u0297\u0001\u0000"+ + "\u0000\u0000\u0095\u029b\u0001\u0000\u0000\u0000\u0097\u029d\u0001\u0000"+ + "\u0000\u0000\u0099\u029f\u0001\u0000\u0000\u0000\u009b\u02a2\u0001\u0000"+ + "\u0000\u0000\u009d\u02a4\u0001\u0000\u0000\u0000\u009f\u02a6\u0001\u0000"+ + "\u0000\u0000\u00a1\u02a8\u0001\u0000\u0000\u0000\u00a3\u02aa\u0001\u0000"+ + "\u0000\u0000\u00a5\u02ac\u0001\u0000\u0000\u0000\u00a7\u02ae\u0001\u0000"+ + "\u0000\u0000\u00a9\u02b0\u0001\u0000\u0000\u0000\u00ab\u02b2\u0001\u0000"+ + "\u0000\u0000\u00ad\u02b5\u0001\u0000\u0000\u0000\u00af\u02b7\u0001\u0000"+ + "\u0000\u0000\u00b1\u02b9\u0001\u0000\u0000\u0000\u00b3\u02bb\u0001\u0000"+ + "\u0000\u0000\u00b5\u02bd\u0001\u0000\u0000\u0000\u00b7\u02bf\u0001\u0000"+ + "\u0000\u0000\u00b9\u02c1\u0001\u0000\u0000\u0000\u00bb\u02c4\u0001\u0000"+ + "\u0000\u0000\u00bd\u02c6\u0001\u0000\u0000\u0000\u00bf\u02c8\u0001\u0000"+ + "\u0000\u0000\u00c1\u02ca\u0001\u0000\u0000\u0000\u00c3\u02cc\u0001\u0000"+ + "\u0000\u0000\u00c5\u02ce\u0001\u0000\u0000\u0000\u00c7\u02d0\u0001\u0000"+ + "\u0000\u0000\u00c9\u02d3\u0001\u0000\u0000\u0000\u00cb\u02d5\u0001\u0000"+ + "\u0000\u0000\u00cd\u02d7\u0001\u0000\u0000\u0000\u00cf\u02d9\u0001\u0000"+ + "\u0000\u0000\u00d1\u02de\u0001\u0000\u0000\u0000\u00d3\u02e2\u0001\u0000"+ + "\u0000\u0000\u00d5\u02e6\u0001\u0000\u0000\u0000\u00d7\u02ea\u0001\u0000"+ + "\u0000\u0000\u00d9\u02ed\u0001\u0000\u0000\u0000\u00db\u02f1\u0001\u0000"+ + "\u0000\u0000\u00dd\u02f3\u0001\u0000\u0000\u0000\u00df\u02f8\u0001\u0000"+ + "\u0000\u0000\u00e1\u02fc\u0001\u0000\u0000\u0000\u00e3\u0300\u0001\u0000"+ + "\u0000\u0000\u00e5\u0304\u0001\u0000\u0000\u0000\u00e7\u0308\u0001\u0000"+ + "\u0000\u0000\u00e9\u030c\u0001\u0000\u0000\u0000\u00eb\u0310\u0001\u0000"+ + "\u0000\u0000\u00ed\u0313\u0001\u0000\u0000\u0000\u00ef\u0317\u0001\u0000"+ + "\u0000\u0000\u00f1\u0319\u0001\u0000\u0000\u0000\u00f3\u031e\u0001\u0000"+ + "\u0000\u0000\u00f5\u0323\u0001\u0000\u0000\u0000\u00f7\u0328\u0001\u0000"+ + "\u0000\u0000\u00f9\u032b\u0001\u0000\u0000\u0000\u00fb\u0330\u0001\u0000"+ + "\u0000\u0000\u00fd\u0334\u0001\u0000\u0000\u0000\u00ff\u0338\u0001\u0000"+ + "\u0000\u0000\u0101\u033c\u0001\u0000\u0000\u0000\u0103\u0340\u0001\u0000"+ + "\u0000\u0000\u0105\u0344\u0001\u0000\u0000\u0000\u0107\u0348\u0001\u0000"+ + "\u0000\u0000\u0109\u034d\u0001\u0000\u0000\u0000\u010b\u0354\u0001\u0000"+ + "\u0000\u0000\u010d\u0359\u0001\u0000\u0000\u0000\u010f\u035e\u0001\u0000"+ + "\u0000\u0000\u0111\u0363\u0001\u0000\u0000\u0000\u0113\u0367\u0001\u0000"+ + "\u0000\u0000\u0115\u036c\u0001\u0000\u0000\u0000\u0117\u0370\u0001\u0000"+ + "\u0000\u0000\u0119\u0374\u0001\u0000\u0000\u0000\u011b\u0379\u0001\u0000"+ + "\u0000\u0000\u011d\u0380\u0001\u0000\u0000\u0000\u011f\u0385\u0001\u0000"+ + "\u0000\u0000\u0121\u038a\u0001\u0000\u0000\u0000\u0123\u038f\u0001\u0000"+ + "\u0000\u0000\u0125\u0393\u0001\u0000\u0000\u0000\u0127\u0398\u0001\u0000"+ + "\u0000\u0000\u0129\u039c\u0001\u0000\u0000\u0000\u012b\u03a0\u0001\u0000"+ + "\u0000\u0000\u012d\u03a5\u0001\u0000\u0000\u0000\u012f\u03ae\u0001\u0000"+ + "\u0000\u0000\u0131\u03b4\u0001\u0000\u0000\u0000\u0133\u03b8\u0001\u0000"+ + "\u0000\u0000\u0135\u03bc\u0001\u0000\u0000\u0000\u0137\u0138\u0003u7\u0000"+ + "\u0138\b\u0001\u0000\u0000\u0000\u0139\u013a\u0003s6\u0000\u013a\u013b"+ + "\u0001\u0000\u0000\u0000\u013b\u013c\u0006\u0001\u0000\u0000\u013c\n\u0001"+ + "\u0000\u0000\u0000\u013d\u013e\u0003w8\u0000\u013e\u013f\u0001\u0000\u0000"+ + "\u0000\u013f\u0140\u0006\u0002\u0000\u0000\u0140\f\u0001\u0000\u0000\u0000"+ + "\u0141\u0142\u0003\u007f<\u0000\u0142\u000e\u0001\u0000\u0000\u0000\u0143"+ + "\u0144\u0003\u0089A\u0000\u0144\u0010\u0001\u0000\u0000\u0000\u0145\u0146"+ + "\u0003\u008dC\u0000\u0146\u0012\u0001\u0000\u0000\u0000\u0147\u0148\u0003"+ + "\u00a7P\u0000\u0148\u0149\u0006\u0006\u0001\u0000\u0149\u0014\u0001\u0000"+ + "\u0000\u0000\u014a\u014b\u0003\u00a3N\u0000\u014b\u014c\u0001\u0000\u0000"+ + "\u0000\u014c\u014d\u0006\u0007\u0002\u0000\u014d\u0016\u0001\u0000\u0000"+ + "\u0000\u014e\u014f\u0005o\u0000\u0000\u014f\u0150\u0005p\u0000\u0000\u0150"+ + "\u0151\u0005t\u0000\u0000\u0151\u0152\u0005i\u0000\u0000\u0152\u0153\u0005"+ + "o\u0000\u0000\u0153\u0154\u0005n\u0000\u0000\u0154\u0155\u0005s\u0000"+ + "\u0000\u0155\u0156\u0001\u0000\u0000\u0000\u0156\u0157\u0006\b\u0003\u0000"+ + "\u0157\u0018\u0001\u0000\u0000\u0000\u0158\u0159\u0005t\u0000\u0000\u0159"+ + "\u015a\u0005o\u0000\u0000\u015a\u015b\u0005k\u0000\u0000\u015b\u015c\u0005"+ + "e\u0000\u0000\u015c\u015d\u0005n\u0000\u0000\u015d\u015e\u0005s\u0000"+ + "\u0000\u015e\u015f\u0001\u0000\u0000\u0000\u015f\u0160\u0006\t\u0004\u0000"+ + "\u0160\u001a\u0001\u0000\u0000\u0000\u0161\u0162\u0005c\u0000\u0000\u0162"+ + "\u0163\u0005h\u0000\u0000\u0163\u0164\u0005a\u0000\u0000\u0164\u0165\u0005"+ + "n\u0000\u0000\u0165\u0166\u0005n\u0000\u0000\u0166\u0167\u0005e\u0000"+ + "\u0000\u0167\u0168\u0005l\u0000\u0000\u0168\u0169\u0005s\u0000\u0000\u0169"+ + "\u016a\u0001\u0000\u0000\u0000\u016a\u016b\u0006\n\u0005\u0000\u016b\u001c"+ + "\u0001\u0000\u0000\u0000\u016c\u016d\u0005i\u0000\u0000\u016d\u016e\u0005"+ + "m\u0000\u0000\u016e\u016f\u0005p\u0000\u0000\u016f\u0170\u0005o\u0000"+ + "\u0000\u0170\u0171\u0005r\u0000\u0000\u0171\u0172\u0005t\u0000\u0000\u0172"+ + "\u001e\u0001\u0000\u0000\u0000\u0173\u0174\u0005f\u0000\u0000\u0174\u0175"+ + "\u0005r\u0000\u0000\u0175\u0176\u0005a\u0000\u0000\u0176\u0177\u0005g"+ + "\u0000\u0000\u0177\u0178\u0005m\u0000\u0000\u0178\u0179\u0005e\u0000\u0000"+ + "\u0179\u017a\u0005n\u0000\u0000\u017a\u017b\u0005t\u0000\u0000\u017b "+ + "\u0001\u0000\u0000\u0000\u017c\u017d\u0005l\u0000\u0000\u017d\u017e\u0005"+ + "e\u0000\u0000\u017e\u017f\u0005x\u0000\u0000\u017f\u0180\u0005e\u0000"+ + "\u0000\u0180\u0181\u0005r\u0000\u0000\u0181\"\u0001\u0000\u0000\u0000"+ + "\u0182\u0183\u0005p\u0000\u0000\u0183\u0184\u0005a\u0000\u0000\u0184\u0185"+ + "\u0005r\u0000\u0000\u0185\u0186\u0005s\u0000\u0000\u0186\u0187\u0005e"+ + "\u0000\u0000\u0187\u0188\u0005r\u0000\u0000\u0188$\u0001\u0000\u0000\u0000"+ + "\u0189\u018a\u0005g\u0000\u0000\u018a\u018b\u0005r\u0000\u0000\u018b\u018c"+ + "\u0005a\u0000\u0000\u018c\u018d\u0005m\u0000\u0000\u018d\u018e\u0005m"+ + "\u0000\u0000\u018e\u018f\u0005a\u0000\u0000\u018f\u0190\u0005r\u0000\u0000"+ + "\u0190&\u0001\u0000\u0000\u0000\u0191\u0192\u0005p\u0000\u0000\u0192\u0193"+ + "\u0005r\u0000\u0000\u0193\u0194\u0005o\u0000\u0000\u0194\u0195\u0005t"+ + "\u0000\u0000\u0195\u0196\u0005e\u0000\u0000\u0196\u0197\u0005c\u0000\u0000"+ + "\u0197\u0198\u0005t\u0000\u0000\u0198\u0199\u0005e\u0000\u0000\u0199\u019a"+ + "\u0005d\u0000\u0000\u019a(\u0001\u0000\u0000\u0000\u019b\u019c\u0005p"+ + "\u0000\u0000\u019c\u019d\u0005u\u0000\u0000\u019d\u019e\u0005b\u0000\u0000"+ + "\u019e\u019f\u0005l\u0000\u0000\u019f\u01a0\u0005i\u0000\u0000\u01a0\u01a1"+ + "\u0005c\u0000\u0000\u01a1*\u0001\u0000\u0000\u0000\u01a2\u01a3\u0005p"+ + "\u0000\u0000\u01a3\u01a4\u0005r\u0000\u0000\u01a4\u01a5\u0005i\u0000\u0000"+ + "\u01a5\u01a6\u0005v\u0000\u0000\u01a6\u01a7\u0005a\u0000\u0000\u01a7\u01a8"+ + "\u0005t\u0000\u0000\u01a8\u01a9\u0005e\u0000\u0000\u01a9,\u0001\u0000"+ + "\u0000\u0000\u01aa\u01ab\u0005r\u0000\u0000\u01ab\u01ac\u0005e\u0000\u0000"+ + "\u01ac\u01ad\u0005t\u0000\u0000\u01ad\u01ae\u0005u\u0000\u0000\u01ae\u01af"+ + "\u0005r\u0000\u0000\u01af\u01b0\u0005n\u0000\u0000\u01b0\u01b1\u0005s"+ + "\u0000\u0000\u01b1.\u0001\u0000\u0000\u0000\u01b2\u01b3\u0005l\u0000\u0000"+ + "\u01b3\u01b4\u0005o\u0000\u0000\u01b4\u01b5\u0005c\u0000\u0000\u01b5\u01b6"+ + "\u0005a\u0000\u0000\u01b6\u01b7\u0005l\u0000\u0000\u01b7\u01b8\u0005s"+ + "\u0000\u0000\u01b80\u0001\u0000\u0000\u0000\u01b9\u01ba\u0005t\u0000\u0000"+ + "\u01ba\u01bb\u0005h\u0000\u0000\u01bb\u01bc\u0005r\u0000\u0000\u01bc\u01bd"+ + "\u0005o\u0000\u0000\u01bd\u01be\u0005w\u0000\u0000\u01be\u01bf\u0005s"+ + "\u0000\u0000\u01bf2\u0001\u0000\u0000\u0000\u01c0\u01c1\u0005c\u0000\u0000"+ + "\u01c1\u01c2\u0005a\u0000\u0000\u01c2\u01c3\u0005t\u0000\u0000\u01c3\u01c4"+ + "\u0005c\u0000\u0000\u01c4\u01c5\u0005h\u0000\u0000\u01c54\u0001\u0000"+ + "\u0000\u0000\u01c6\u01c7\u0005f\u0000\u0000\u01c7\u01c8\u0005i\u0000\u0000"+ + "\u01c8\u01c9\u0005n\u0000\u0000\u01c9\u01ca\u0005a\u0000\u0000\u01ca\u01cb"+ + "\u0005l\u0000\u0000\u01cb\u01cc\u0005l\u0000\u0000\u01cc\u01cd\u0005y"+ + "\u0000\u0000\u01cd6\u0001\u0000\u0000\u0000\u01ce\u01cf\u0005m\u0000\u0000"+ + "\u01cf\u01d0\u0005o\u0000\u0000\u01d0\u01d1\u0005d\u0000\u0000\u01d1\u01d2"+ + "\u0005e\u0000\u0000\u01d28\u0001\u0000\u0000\u0000\u01d3\u01d4\u0003\u0097"+ + "H\u0000\u01d4:\u0001\u0000\u0000\u0000\u01d5\u01d6\u0003\u0099I\u0000"+ + "\u01d6<\u0001\u0000\u0000\u0000\u01d7\u01d8\u0003\u00c1]\u0000\u01d8>"+ + "\u0001\u0000\u0000\u0000\u01d9\u01da\u0003\u00c3^\u0000\u01da@\u0001\u0000"+ + "\u0000\u0000\u01db\u01dc\u0003\u009fL\u0000\u01dcB\u0001\u0000\u0000\u0000"+ + "\u01dd\u01de\u0003\u00a1M\u0000\u01deD\u0001\u0000\u0000\u0000\u01df\u01e0"+ + "\u0003\u00a3N\u0000\u01e0F\u0001\u0000\u0000\u0000\u01e1\u01e2\u0003\u00a5"+ + "O\u0000\u01e2H\u0001\u0000\u0000\u0000\u01e3\u01e4\u0003\u00abR\u0000"+ + "\u01e4J\u0001\u0000\u0000\u0000\u01e5\u01e6\u0003\u00adS\u0000\u01e6L"+ + "\u0001\u0000\u0000\u0000\u01e7\u01e8\u0003\u00afT\u0000\u01e8N\u0001\u0000"+ + "\u0000\u0000\u01e9\u01ea\u0003\u00b1U\u0000\u01eaP\u0001\u0000\u0000\u0000"+ + "\u01eb\u01ec\u0003\u00b3V\u0000\u01ecR\u0001\u0000\u0000\u0000\u01ed\u01ee"+ + "\u0003\u00b5W\u0000\u01eeT\u0001\u0000\u0000\u0000\u01ef\u01f0\u0003\u00b9"+ + "Y\u0000\u01f0V\u0001\u0000\u0000\u0000\u01f1\u01f2\u0003\u00b7X\u0000"+ + "\u01f2X\u0001\u0000\u0000\u0000\u01f3\u01f4\u0003\u00bd[\u0000\u01f4Z"+ + "\u0001\u0000\u0000\u0000\u01f5\u01f6\u0003\u00bf\\\u0000\u01f6\\\u0001"+ + "\u0000\u0000\u0000\u01f7\u01f8\u0003\u00c7`\u0000\u01f8^\u0001\u0000\u0000"+ + "\u0000\u01f9\u01fa\u0003\u00c5_\u0000\u01fa`\u0001\u0000\u0000\u0000\u01fb"+ + "\u01fc\u0003\u00c9a\u0000\u01fcb\u0001\u0000\u0000\u0000\u01fd\u01fe\u0003"+ + "\u00cbb\u0000\u01fed\u0001\u0000\u0000\u0000\u01ff\u0200\u0003\u00cdc"+ + "\u0000\u0200f\u0001\u0000\u0000\u0000\u0201\u0202\u0003\u0135\u0097\u0000"+ + "\u0202h\u0001\u0000\u0000\u0000\u0203\u0205\u0003m3\u0000\u0204\u0203"+ + "\u0001\u0000\u0000\u0000\u0205\u0206\u0001\u0000\u0000\u0000\u0206\u0204"+ + "\u0001\u0000\u0000\u0000\u0206\u0207\u0001\u0000\u0000\u0000\u0207\u0208"+ + "\u0001\u0000\u0000\u0000\u0208\u0209\u00061\u0006\u0000\u0209j\u0001\u0000"+ + "\u0000\u0000\u020a\u020b\t\u0000\u0000\u0000\u020b\u020c\u0001\u0000\u0000"+ + "\u0000\u020c\u020d\u00062\u0007\u0000\u020dl\u0001\u0000\u0000\u0000\u020e"+ + "\u0211\u0003o4\u0000\u020f\u0211\u0003q5\u0000\u0210\u020e\u0001\u0000"+ + "\u0000\u0000\u0210\u020f\u0001\u0000\u0000\u0000\u0211n\u0001\u0000\u0000"+ + "\u0000\u0212\u0213\u0007\u0000\u0000\u0000\u0213p\u0001\u0000\u0000\u0000"+ + "\u0214\u0215\u0007\u0001\u0000\u0000\u0215r\u0001\u0000\u0000\u0000\u0216"+ + "\u0217\u0005/\u0000\u0000\u0217\u0218\u0005*\u0000\u0000\u0218\u021c\u0001"+ + "\u0000\u0000\u0000\u0219\u021b\t\u0000\u0000\u0000\u021a\u0219\u0001\u0000"+ + "\u0000\u0000\u021b\u021e\u0001\u0000\u0000\u0000\u021c\u021d\u0001\u0000"+ + "\u0000\u0000\u021c\u021a\u0001\u0000\u0000\u0000\u021d\u0222\u0001\u0000"+ + "\u0000\u0000\u021e\u021c\u0001\u0000\u0000\u0000\u021f\u0220\u0005*\u0000"+ + "\u0000\u0220\u0223\u0005/\u0000\u0000\u0221\u0223\u0005\u0000\u0000\u0001"+ + "\u0222\u021f\u0001\u0000\u0000\u0000\u0222\u0221\u0001\u0000\u0000\u0000"+ + "\u0223t\u0001\u0000\u0000\u0000\u0224\u0225\u0005/\u0000\u0000\u0225\u0226"+ + "\u0005*\u0000\u0000\u0226\u0227\u0005*\u0000\u0000\u0227\u022b\u0001\u0000"+ + "\u0000\u0000\u0228\u022a\t\u0000\u0000\u0000\u0229\u0228\u0001\u0000\u0000"+ + "\u0000\u022a\u022d\u0001\u0000\u0000\u0000\u022b\u022c\u0001\u0000\u0000"+ + "\u0000\u022b\u0229\u0001\u0000\u0000\u0000\u022c\u0231\u0001\u0000\u0000"+ + "\u0000\u022d\u022b\u0001\u0000\u0000\u0000\u022e\u022f\u0005*\u0000\u0000"+ + "\u022f\u0232\u0005/\u0000\u0000\u0230\u0232\u0005\u0000\u0000\u0001\u0231"+ + "\u022e\u0001\u0000\u0000\u0000\u0231\u0230\u0001\u0000\u0000\u0000\u0232"+ + "v\u0001\u0000\u0000\u0000\u0233\u0234\u0005/\u0000\u0000\u0234\u0235\u0005"+ + "/\u0000\u0000\u0235\u0239\u0001\u0000\u0000\u0000\u0236\u0238\b\u0002"+ + "\u0000\u0000\u0237\u0236\u0001\u0000\u0000\u0000\u0238\u023b\u0001\u0000"+ + "\u0000\u0000\u0239\u0237\u0001\u0000\u0000\u0000\u0239\u023a\u0001\u0000"+ + "\u0000\u0000\u023ax\u0001\u0000\u0000\u0000\u023b\u0239\u0001\u0000\u0000"+ + "\u0000\u023c\u0241\u0003\u0095G\u0000\u023d\u0242\u0007\u0003\u0000\u0000"+ + "\u023e\u0242\u0003};\u0000\u023f\u0242\t\u0000\u0000\u0000\u0240\u0242"+ + "\u0005\u0000\u0000\u0001\u0241\u023d\u0001\u0000\u0000\u0000\u0241\u023e"+ + "\u0001\u0000\u0000\u0000\u0241\u023f\u0001\u0000\u0000\u0000\u0241\u0240"+ + "\u0001\u0000\u0000\u0000\u0242z\u0001\u0000\u0000\u0000\u0243\u0244\u0003"+ + "\u0095G\u0000\u0244\u0245\t\u0000\u0000\u0000\u0245|\u0001\u0000\u0000"+ + "\u0000\u0246\u0251\u0005u\u0000\u0000\u0247\u024f\u0003\u0081=\u0000\u0248"+ + "\u024d\u0003\u0081=\u0000\u0249\u024b\u0003\u0081=\u0000\u024a\u024c\u0003"+ + "\u0081=\u0000\u024b\u024a\u0001\u0000\u0000\u0000\u024b\u024c\u0001\u0000"+ + "\u0000\u0000\u024c\u024e\u0001\u0000\u0000\u0000\u024d\u0249\u0001\u0000"+ + "\u0000\u0000\u024d\u024e\u0001\u0000\u0000\u0000\u024e\u0250\u0001\u0000"+ + "\u0000\u0000\u024f\u0248\u0001\u0000\u0000\u0000\u024f\u0250\u0001\u0000"+ + "\u0000\u0000\u0250\u0252\u0001\u0000\u0000\u0000\u0251\u0247\u0001\u0000"+ + "\u0000\u0000\u0251\u0252\u0001\u0000\u0000\u0000\u0252~\u0001\u0000\u0000"+ + "\u0000\u0253\u025c\u00050\u0000\u0000\u0254\u0258\u0007\u0004\u0000\u0000"+ + "\u0255\u0257\u0003\u0083>\u0000\u0256\u0255\u0001\u0000\u0000\u0000\u0257"+ + "\u025a\u0001\u0000\u0000\u0000\u0258\u0256\u0001\u0000\u0000\u0000\u0258"+ + "\u0259\u0001\u0000\u0000\u0000\u0259\u025c\u0001\u0000\u0000\u0000\u025a"+ + "\u0258\u0001\u0000\u0000\u0000\u025b\u0253\u0001\u0000\u0000\u0000\u025b"+ + "\u0254\u0001\u0000\u0000\u0000\u025c\u0080\u0001\u0000\u0000\u0000\u025d"+ + "\u025e\u0007\u0005\u0000\u0000\u025e\u0082\u0001\u0000\u0000\u0000\u025f"+ + "\u0260\u0007\u0006\u0000\u0000\u0260\u0084\u0001\u0000\u0000\u0000\u0261"+ + "\u0262\u0005t\u0000\u0000\u0262\u0263\u0005r\u0000\u0000\u0263\u0264\u0005"+ + "u\u0000\u0000\u0264\u026b\u0005e\u0000\u0000\u0265\u0266\u0005f\u0000"+ + "\u0000\u0266\u0267\u0005a\u0000\u0000\u0267\u0268\u0005l\u0000\u0000\u0268"+ + "\u0269\u0005s\u0000\u0000\u0269\u026b\u0005e\u0000\u0000\u026a\u0261\u0001"+ + "\u0000\u0000\u0000\u026a\u0265\u0001\u0000\u0000\u0000\u026b\u0086\u0001"+ + "\u0000\u0000\u0000\u026c\u026f\u0003\u009bJ\u0000\u026d\u0270\u0003y9"+ + "\u0000\u026e\u0270\b\u0007\u0000\u0000\u026f\u026d\u0001\u0000\u0000\u0000"+ + "\u026f\u026e\u0001\u0000\u0000\u0000\u0270\u0271\u0001\u0000\u0000\u0000"+ + "\u0271\u0272\u0003\u009bJ\u0000\u0272\u0088\u0001\u0000\u0000\u0000\u0273"+ + "\u0278\u0003\u009bJ\u0000\u0274\u0277\u0003y9\u0000\u0275\u0277\b\u0007"+ + "\u0000\u0000\u0276\u0274\u0001\u0000\u0000\u0000\u0276\u0275\u0001\u0000"+ + "\u0000\u0000\u0277\u027a\u0001\u0000\u0000\u0000\u0278\u0276\u0001\u0000"+ + "\u0000\u0000\u0278\u0279\u0001\u0000\u0000\u0000\u0279\u027b\u0001\u0000"+ + "\u0000\u0000\u027a\u0278\u0001\u0000\u0000\u0000\u027b\u027c\u0003\u009b"+ + "J\u0000\u027c\u008a\u0001\u0000\u0000\u0000\u027d\u0282\u0003\u009dK\u0000"+ + "\u027e\u0281\u0003y9\u0000\u027f\u0281\b\b\u0000\u0000\u0280\u027e\u0001"+ + "\u0000\u0000\u0000\u0280\u027f\u0001\u0000\u0000\u0000\u0281\u0284\u0001"+ + "\u0000\u0000\u0000\u0282\u0280\u0001\u0000\u0000\u0000\u0282\u0283\u0001"+ + "\u0000\u0000\u0000\u0283\u0285\u0001\u0000\u0000\u0000\u0284\u0282\u0001"+ + "\u0000\u0000\u0000\u0285\u0286\u0003\u009dK\u0000\u0286\u008c\u0001\u0000"+ + "\u0000\u0000\u0287\u028c\u0003\u009bJ\u0000\u0288\u028b\u0003y9\u0000"+ + "\u0289\u028b\b\u0007\u0000\u0000\u028a\u0288\u0001\u0000\u0000\u0000\u028a"+ + "\u0289\u0001\u0000\u0000\u0000\u028b\u028e\u0001\u0000\u0000\u0000\u028c"+ + "\u028a\u0001\u0000\u0000\u0000\u028c\u028d\u0001\u0000\u0000\u0000\u028d"+ + "\u008e\u0001\u0000\u0000\u0000\u028e\u028c\u0001\u0000\u0000\u0000\u028f"+ + "\u0294\u0003\u0091E\u0000\u0290\u0294\u000209\u0000\u0291\u0294\u0003"+ + "\u00bbZ\u0000\u0292\u0294\u0007\t\u0000\u0000\u0293\u028f\u0001\u0000"+ + "\u0000\u0000\u0293\u0290\u0001\u0000\u0000\u0000\u0293\u0291\u0001\u0000"+ + "\u0000\u0000\u0293\u0292\u0001\u0000\u0000\u0000\u0294\u0090\u0001\u0000"+ + "\u0000\u0000\u0295\u0296\u0007\n\u0000\u0000\u0296\u0092\u0001\u0000\u0000"+ + "\u0000\u0297\u0298\u0005i\u0000\u0000\u0298\u0299\u0005n\u0000\u0000\u0299"+ + "\u029a\u0005t\u0000\u0000\u029a\u0094\u0001\u0000\u0000\u0000\u029b\u029c"+ + "\u0005\\\u0000\u0000\u029c\u0096\u0001\u0000\u0000\u0000\u029d\u029e\u0005"+ + ":\u0000\u0000\u029e\u0098\u0001\u0000\u0000\u0000\u029f\u02a0\u0005:\u0000"+ + "\u0000\u02a0\u02a1\u0005:\u0000\u0000\u02a1\u009a\u0001\u0000\u0000\u0000"+ + "\u02a2\u02a3\u0005\'\u0000\u0000\u02a3\u009c\u0001\u0000\u0000\u0000\u02a4"+ + "\u02a5\u0005\"\u0000\u0000\u02a5\u009e\u0001\u0000\u0000\u0000\u02a6\u02a7"+ + "\u0005(\u0000\u0000\u02a7\u00a0\u0001\u0000\u0000\u0000\u02a8\u02a9\u0005"+ + ")\u0000\u0000\u02a9\u00a2\u0001\u0000\u0000\u0000\u02aa\u02ab\u0005{\u0000"+ + "\u0000\u02ab\u00a4\u0001\u0000\u0000\u0000\u02ac\u02ad\u0005}\u0000\u0000"+ + "\u02ad\u00a6\u0001\u0000\u0000\u0000\u02ae\u02af\u0005[\u0000\u0000\u02af"+ + "\u00a8\u0001\u0000\u0000\u0000\u02b0\u02b1\u0005]\u0000\u0000\u02b1\u00aa"+ + "\u0001\u0000\u0000\u0000\u02b2\u02b3\u0005-\u0000\u0000\u02b3\u02b4\u0005"+ + ">\u0000\u0000\u02b4\u00ac\u0001\u0000\u0000\u0000\u02b5\u02b6\u0005<\u0000"+ + "\u0000\u02b6\u00ae\u0001\u0000\u0000\u0000\u02b7\u02b8\u0005>\u0000\u0000"+ + "\u02b8\u00b0\u0001\u0000\u0000\u0000\u02b9\u02ba\u0005=\u0000\u0000\u02ba"+ + "\u00b2\u0001\u0000\u0000\u0000\u02bb\u02bc\u0005?\u0000\u0000\u02bc\u00b4"+ + "\u0001\u0000\u0000\u0000\u02bd\u02be\u0005*\u0000\u0000\u02be\u00b6\u0001"+ + "\u0000\u0000\u0000\u02bf\u02c0\u0005+\u0000\u0000\u02c0\u00b8\u0001\u0000"+ + "\u0000\u0000\u02c1\u02c2\u0005+\u0000\u0000\u02c2\u02c3\u0005=\u0000\u0000"+ + "\u02c3\u00ba\u0001\u0000\u0000\u0000\u02c4\u02c5\u0005_\u0000\u0000\u02c5"+ + "\u00bc\u0001\u0000\u0000\u0000\u02c6\u02c7\u0005|\u0000\u0000\u02c7\u00be"+ + "\u0001\u0000\u0000\u0000\u02c8\u02c9\u0005$\u0000\u0000\u02c9\u00c0\u0001"+ + "\u0000\u0000\u0000\u02ca\u02cb\u0005,\u0000\u0000\u02cb\u00c2\u0001\u0000"+ + "\u0000\u0000\u02cc\u02cd\u0005;\u0000\u0000\u02cd\u00c4\u0001\u0000\u0000"+ + "\u0000\u02ce\u02cf\u0005.\u0000\u0000\u02cf\u00c6\u0001\u0000\u0000\u0000"+ + "\u02d0\u02d1\u0005.\u0000\u0000\u02d1\u02d2\u0005.\u0000\u0000\u02d2\u00c8"+ + "\u0001\u0000\u0000\u0000\u02d3\u02d4\u0005@\u0000\u0000\u02d4\u00ca\u0001"+ + "\u0000\u0000\u0000\u02d5\u02d6\u0005#\u0000\u0000\u02d6\u00cc\u0001\u0000"+ + "\u0000\u0000\u02d7\u02d8\u0005~\u0000\u0000\u02d8\u00ce\u0001\u0000\u0000"+ + "\u0000\u02d9\u02da\u0003\u00a7P\u0000\u02da\u02db\u0001\u0000\u0000\u0000"+ + "\u02db\u02dc\u0006d\b\u0000\u02dc\u02dd\u0006d\t\u0000\u02dd\u00d0\u0001"+ + "\u0000\u0000\u0000\u02de\u02df\u0003{:\u0000\u02df\u02e0\u0001\u0000\u0000"+ + "\u0000\u02e0\u02e1\u0006e\b\u0000\u02e1\u00d2\u0001\u0000\u0000\u0000"+ + "\u02e2\u02e3\u0003\u008bB\u0000\u02e3\u02e4\u0001\u0000\u0000\u0000\u02e4"+ + "\u02e5\u0006f\b\u0000\u02e5\u00d4\u0001\u0000\u0000\u0000\u02e6\u02e7"+ + "\u0003\u0089A\u0000\u02e7\u02e8\u0001\u0000\u0000\u0000\u02e8\u02e9\u0006"+ + "g\b\u0000\u02e9\u00d6\u0001\u0000\u0000\u0000\u02ea\u02eb\u0003\u00a9"+ + "Q\u0000\u02eb\u02ec\u0006h\n\u0000\u02ec\u00d8\u0001\u0000\u0000\u0000"+ + "\u02ed\u02ee\u0005\u0000\u0000\u0001\u02ee\u02ef\u0001\u0000\u0000\u0000"+ + "\u02ef\u02f0\u0006i\u000b\u0000\u02f0\u00da\u0001\u0000\u0000\u0000\u02f1"+ + "\u02f2\t\u0000\u0000\u0000\u02f2\u00dc\u0001\u0000\u0000\u0000\u02f3\u02f4"+ + "\u0003\u00a3N\u0000\u02f4\u02f5\u0001\u0000\u0000\u0000\u02f5\u02f6\u0006"+ + "k\f\u0000\u02f6\u02f7\u0006k\u0002\u0000\u02f7\u00de\u0001\u0000\u0000"+ + "\u0000\u02f8\u02f9\u0003{:\u0000\u02f9\u02fa\u0001\u0000\u0000\u0000\u02fa"+ + "\u02fb\u0006l\f\u0000\u02fb\u00e0\u0001\u0000\u0000\u0000\u02fc\u02fd"+ + "\u0003\u008bB\u0000\u02fd\u02fe\u0001\u0000\u0000\u0000\u02fe\u02ff\u0006"+ + "m\f\u0000\u02ff\u00e2\u0001\u0000\u0000\u0000\u0300\u0301\u0003\u0089"+ + "A\u0000\u0301\u0302\u0001\u0000\u0000\u0000\u0302\u0303\u0006n\f\u0000"+ + "\u0303\u00e4\u0001\u0000\u0000\u0000\u0304\u0305\u0003u7\u0000\u0305\u0306"+ + "\u0001\u0000\u0000\u0000\u0306\u0307\u0006o\f\u0000\u0307\u00e6\u0001"+ + "\u0000\u0000\u0000\u0308\u0309\u0003s6\u0000\u0309\u030a\u0001\u0000\u0000"+ + "\u0000\u030a\u030b\u0006p\f\u0000\u030b\u00e8\u0001\u0000\u0000\u0000"+ + "\u030c\u030d\u0003w8\u0000\u030d\u030e\u0001\u0000\u0000\u0000\u030e\u030f"+ + "\u0006q\f\u0000\u030f\u00ea\u0001\u0000\u0000\u0000\u0310\u0311\u0003"+ + "\u00a5O\u0000\u0311\u0312\u0006r\r\u0000\u0312\u00ec\u0001\u0000\u0000"+ + "\u0000\u0313\u0314\u0005\u0000\u0000\u0001\u0314\u0315\u0001\u0000\u0000"+ + "\u0000\u0315\u0316\u0006s\u000b\u0000\u0316\u00ee\u0001\u0000\u0000\u0000"+ + "\u0317\u0318\t\u0000\u0000\u0000\u0318\u00f0\u0001\u0000\u0000\u0000\u0319"+ + "\u031a\u0003u7\u0000\u031a\u031b\u0001\u0000\u0000\u0000\u031b\u031c\u0006"+ + "u\u000e\u0000\u031c\u031d\u0006u\u0000\u0000\u031d\u00f2\u0001\u0000\u0000"+ + "\u0000\u031e\u031f\u0003s6\u0000\u031f\u0320\u0001\u0000\u0000\u0000\u0320"+ + "\u0321\u0006v\u000f\u0000\u0321\u0322\u0006v\u0000\u0000\u0322\u00f4\u0001"+ + "\u0000\u0000\u0000\u0323\u0324\u0003w8\u0000\u0324\u0325\u0001\u0000\u0000"+ + "\u0000\u0325\u0326\u0006w\u0010\u0000\u0326\u0327\u0006w\u0000\u0000\u0327"+ + "\u00f6\u0001\u0000\u0000\u0000\u0328\u0329\u0003\u00a3N\u0000\u0329\u032a"+ + "\u0006x\u0011\u0000\u032a\u00f8\u0001\u0000\u0000\u0000\u032b\u032c\u0003"+ + "\u00a5O\u0000\u032c\u032d\u0001\u0000\u0000\u0000\u032d\u032e\u0006y\u0012"+ + "\u0000\u032e\u032f\u0006y\u000b\u0000\u032f\u00fa\u0001\u0000\u0000\u0000"+ + "\u0330\u0331\u0003\u0135\u0097\u0000\u0331\u0332\u0001\u0000\u0000\u0000"+ + "\u0332\u0333\u0006z\u0013\u0000\u0333\u00fc\u0001\u0000\u0000\u0000\u0334"+ + "\u0335\u0003\u00c5_\u0000\u0335\u0336\u0001\u0000\u0000\u0000\u0336\u0337"+ + "\u0006{\u0014\u0000\u0337\u00fe\u0001\u0000\u0000\u0000\u0338\u0339\u0003"+ + "\u00b1U\u0000\u0339\u033a\u0001\u0000\u0000\u0000\u033a\u033b\u0006|\u0015"+ + "\u0000\u033b\u0100\u0001\u0000\u0000\u0000\u033c\u033d\u0003\u0089A\u0000"+ + "\u033d\u033e\u0001\u0000\u0000\u0000\u033e\u033f\u0006}\u0016\u0000\u033f"+ + "\u0102\u0001\u0000\u0000\u0000\u0340\u0341\u0003\u007f<\u0000\u0341\u0342"+ + "\u0001\u0000\u0000\u0000\u0342\u0343\u0006~\u0017\u0000\u0343\u0104\u0001"+ + "\u0000\u0000\u0000\u0344\u0345\u0003\u00b5W\u0000\u0345\u0346\u0001\u0000"+ + "\u0000\u0000\u0346\u0347\u0006\u007f\u0018\u0000\u0347\u0106\u0001\u0000"+ + "\u0000\u0000\u0348\u0349\u0003\u00c3^\u0000\u0349\u034a\u0001\u0000\u0000"+ + "\u0000\u034a\u034b\u0006\u0080\u0019\u0000\u034b\u0108\u0001\u0000\u0000"+ + "\u0000\u034c\u034e\u0003m3\u0000\u034d\u034c\u0001\u0000\u0000\u0000\u034e"+ + "\u034f\u0001\u0000\u0000\u0000\u034f\u034d\u0001\u0000\u0000\u0000\u034f"+ + "\u0350\u0001\u0000\u0000\u0000\u0350\u0351\u0001\u0000\u0000\u0000\u0351"+ + "\u0352\u0006\u0081\u001a\u0000\u0352\u0353\u0006\u0081\u0006\u0000\u0353"+ + "\u010a\u0001\u0000\u0000\u0000\u0354\u0355\u0003u7\u0000\u0355\u0356\u0001"+ + "\u0000\u0000\u0000\u0356\u0357\u0006\u0082\u000e\u0000\u0357\u0358\u0006"+ + "\u0082\u0000\u0000\u0358\u010c\u0001\u0000\u0000\u0000\u0359\u035a\u0003"+ + "s6\u0000\u035a\u035b\u0001\u0000\u0000\u0000\u035b\u035c\u0006\u0083\u000f"+ + "\u0000\u035c\u035d\u0006\u0083\u0000\u0000\u035d\u010e\u0001\u0000\u0000"+ + "\u0000\u035e\u035f\u0003w8\u0000\u035f\u0360\u0001\u0000\u0000\u0000\u0360"+ + "\u0361\u0006\u0084\u0010\u0000\u0361\u0362\u0006\u0084\u0000\u0000\u0362"+ + "\u0110\u0001\u0000\u0000\u0000\u0363\u0364\u0003\u00a3N\u0000\u0364\u0365"+ + "\u0001\u0000\u0000\u0000\u0365\u0366\u0006\u0085\u001b\u0000\u0366\u0112"+ + "\u0001\u0000\u0000\u0000\u0367\u0368\u0003\u00a5O\u0000\u0368\u0369\u0001"+ + "\u0000\u0000\u0000\u0369\u036a\u0006\u0086\u0012\u0000\u036a\u036b\u0006"+ + "\u0086\u000b\u0000\u036b\u0114\u0001\u0000\u0000\u0000\u036c\u036d\u0003"+ + "\u0135\u0097\u0000\u036d\u036e\u0001\u0000\u0000\u0000\u036e\u036f\u0006"+ + "\u0087\u0013\u0000\u036f\u0116\u0001\u0000\u0000\u0000\u0370\u0371\u0003"+ + "\u00c5_\u0000\u0371\u0372\u0001\u0000\u0000\u0000\u0372\u0373\u0006\u0088"+ + "\u0014\u0000\u0373\u0118\u0001\u0000\u0000\u0000\u0374\u0375\u0003\u00c1"+ + "]\u0000\u0375\u0376\u0001\u0000\u0000\u0000\u0376\u0377\u0006\u0089\u001c"+ + "\u0000\u0377\u011a\u0001\u0000\u0000\u0000\u0378\u037a\u0003m3\u0000\u0379"+ + "\u0378\u0001\u0000\u0000\u0000\u037a\u037b\u0001\u0000\u0000\u0000\u037b"+ + "\u0379\u0001\u0000\u0000\u0000\u037b\u037c\u0001\u0000\u0000\u0000\u037c"+ + "\u037d\u0001\u0000\u0000\u0000\u037d\u037e\u0006\u008a\u001a\u0000\u037e"+ + "\u037f\u0006\u008a\u0006\u0000\u037f\u011c\u0001\u0000\u0000\u0000\u0380"+ + "\u0381\u0003u7\u0000\u0381\u0382\u0001\u0000\u0000\u0000\u0382\u0383\u0006"+ + "\u008b\u000e\u0000\u0383\u0384\u0006\u008b\u0000\u0000\u0384\u011e\u0001"+ + "\u0000\u0000\u0000\u0385\u0386\u0003s6\u0000\u0386\u0387\u0001\u0000\u0000"+ + "\u0000\u0387\u0388\u0006\u008c\u000f\u0000\u0388\u0389\u0006\u008c\u0000"+ + "\u0000\u0389\u0120\u0001\u0000\u0000\u0000\u038a\u038b\u0003w8\u0000\u038b"+ + "\u038c\u0001\u0000\u0000\u0000\u038c\u038d\u0006\u008d\u0010\u0000\u038d"+ + "\u038e\u0006\u008d\u0000\u0000\u038e\u0122\u0001\u0000\u0000\u0000\u038f"+ + "\u0390\u0003\u00a3N\u0000\u0390\u0391\u0001\u0000\u0000\u0000\u0391\u0392"+ + "\u0006\u008e\u001b\u0000\u0392\u0124\u0001\u0000\u0000\u0000\u0393\u0394"+ + "\u0003\u00a5O\u0000\u0394\u0395\u0001\u0000\u0000\u0000\u0395\u0396\u0006"+ + "\u008f\u0012\u0000\u0396\u0397\u0006\u008f\u000b\u0000\u0397\u0126\u0001"+ + "\u0000\u0000\u0000\u0398\u0399\u0003\u0135\u0097\u0000\u0399\u039a\u0001"+ + "\u0000\u0000\u0000\u039a\u039b\u0006\u0090\u0013\u0000\u039b\u0128\u0001"+ + "\u0000\u0000\u0000\u039c\u039d\u0003\u00c5_\u0000\u039d\u039e\u0001\u0000"+ + "\u0000\u0000\u039e\u039f\u0006\u0091\u0014\u0000\u039f\u012a\u0001\u0000"+ + "\u0000\u0000\u03a0\u03a1\u0003\u00c1]\u0000\u03a1\u03a2\u0001\u0000\u0000"+ + "\u0000\u03a2\u03a3\u0006\u0092\u001c\u0000\u03a3\u012c\u0001\u0000\u0000"+ + "\u0000\u03a4\u03a6\u0003m3\u0000\u03a5\u03a4\u0001\u0000\u0000\u0000\u03a6"+ + "\u03a7\u0001\u0000\u0000\u0000\u03a7\u03a5\u0001\u0000\u0000\u0000\u03a7"+ + "\u03a8\u0001\u0000\u0000\u0000\u03a8\u03a9\u0001\u0000\u0000\u0000\u03a9"+ + "\u03aa\u0006\u0093\u001a\u0000\u03aa\u03ab\u0006\u0093\u0006\u0000\u03ab"+ + "\u012e\u0001\u0000\u0000\u0000\u03ac\u03af\b\u000b\u0000\u0000\u03ad\u03af"+ + "\u0003{:\u0000\u03ae\u03ac\u0001\u0000\u0000\u0000\u03ae\u03ad\u0001\u0000"+ + "\u0000\u0000\u03af\u03b0\u0001\u0000\u0000\u0000\u03b0\u03ae\u0001\u0000"+ + "\u0000\u0000\u03b0\u03b1\u0001\u0000\u0000\u0000\u03b1\u03b2\u0001\u0000"+ + "\u0000\u0000\u03b2\u03b3\u0006\u0094\u001d\u0000\u03b3\u0130\u0001\u0000"+ + "\u0000\u0000\u03b4\u03b5\u0003\u00a9Q\u0000\u03b5\u03b6\u0001\u0000\u0000"+ + "\u0000\u03b6\u03b7\u0006\u0095\u000b\u0000\u03b7\u0132\u0001\u0000\u0000"+ + "\u0000\u03b8\u03b9\u0005\u0000\u0000\u0001\u03b9\u03ba\u0001\u0000\u0000"+ + "\u0000\u03ba\u03bb\u0006\u0096\u000b\u0000\u03bb\u0134\u0001\u0000\u0000"+ + "\u0000\u03bc\u03c0\u0003\u0091E\u0000\u03bd\u03bf\u0003\u008fD\u0000\u03be"+ + "\u03bd\u0001\u0000\u0000\u0000\u03bf\u03c2\u0001\u0000\u0000\u0000\u03c0"+ + "\u03be\u0001\u0000\u0000\u0000\u03c0\u03c1\u0001\u0000\u0000\u0000\u03c1"+ + "\u0136\u0001\u0000\u0000\u0000\u03c2\u03c0\u0001\u0000\u0000\u0000$\u0000"+ + "\u0001\u0002\u0003\u0004\u0005\u0006\u0206\u0210\u021c\u0222\u022b\u0231"+ + "\u0239\u0241\u024b\u024d\u024f\u0251\u0258\u025b\u026a\u026f\u0276\u0278"+ + "\u0280\u0282\u028a\u028c\u0293\u034f\u037b\u03a7\u03ae\u03b0\u03c0\u001e"+ + "\u0000\u0003\u0000\u0001\u0006\u0000\u0005\u0002\u0000\u0005\u0003\u0000"+ + "\u0005\u0004\u0000\u0005\u0005\u0000\u0000\u0002\u0000\u0000\u0001\u0000"+ + "\u00079\u0000\u0005\u0001\u0000\u0001h\u0001\u0004\u0000\u0000\u0007<"+ + "\u0000\u0001r\u0002\u0007\u0004\u0000\u0007\u0005\u0000\u0007\u0006\u0000"+ + "\u0001x\u0003\u0007$\u0000\u00074\u0000\u00070\u0000\u0007(\u0000\u0007"+ + "\b\u0000\u0007\u0007\u0000\u0007*\u0000\u0007 \u0000\u00075\u0000\u0007"+ + "#\u0000\u0007\u001f\u0000\u0003\u0000\u0000"; + 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); + } + } +} \ No newline at end of file diff --git a/android-app/anter4codeformat/app/src/main/java/org/antlr/parser/antlr4/ANTLRv4Parser.java b/android-app/anter4codeformat/app/src/main/java/org/antlr/parser/antlr4/ANTLRv4Parser.java new file mode 100644 index 0000000..2db0b50 --- /dev/null +++ b/android-app/anter4codeformat/app/src/main/java/org/antlr/parser/antlr4/ANTLRv4Parser.java @@ -0,0 +1,6015 @@ +// Generated from ./ANTLRv4Parser.g4 by ANTLR 4.13.1 +package org.antlr.parser.antlr4; + +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", "CheckReturnValue"}) +public class ANTLRv4Parser extends Parser { + static { + RuntimeMetaData.checkVersion("4.13.1", RuntimeMetaData.VERSION); + } + + protected static final DFA[] _decisionToDFA; + protected static final PredictionContextCache _sharedContextCache = new PredictionContextCache(); + public static final int TOKEN_REF = 1, + RULE_REF = 2, + LEXER_CHAR_SET = 3, + DOC_COMMENT = 4, + BLOCK_COMMENT = 5, + LINE_COMMENT = 6, + INT = 7, + STRING_LITERAL = 8, + UNTERMINATED_STRING_LITERAL = 9, + BEGIN_ARGUMENT = 10, + BEGIN_ACTION = 11, + OPTIONS = 12, + TOKENS = 13, + CHANNELS = 14, + IMPORT = 15, + FRAGMENT = 16, + LEXER = 17, + PARSER = 18, + GRAMMAR = 19, + PROTECTED = 20, + PUBLIC = 21, + PRIVATE = 22, + RETURNS = 23, + LOCALS = 24, + THROWS = 25, + CATCH = 26, + FINALLY = 27, + MODE = 28, + COLON = 29, + COLONCOLON = 30, + COMMA = 31, + SEMI = 32, + LPAREN = 33, + RPAREN = 34, + LBRACE = 35, + RBRACE = 36, + RARROW = 37, + LT = 38, + GT = 39, + ASSIGN = 40, + QUESTION = 41, + STAR = 42, + PLUS_ASSIGN = 43, + PLUS = 44, + OR = 45, + DOLLAR = 46, + RANGE = 47, + DOT = 48, + AT = 49, + POUND = 50, + NOT = 51, + ID = 52, + WS = 53, + ERRCHAR = 54, + END_ARGUMENT = 55, + UNTERMINATED_ARGUMENT = 56, + ARGUMENT_CONTENT = 57, + END_ACTION = 58, + UNTERMINATED_ACTION = 59, + ACTION_CONTENT = 60, + OPT_LBRACE = 61, + UNTERMINATED_CHAR_SET = 62; + public static final int RULE_grammarSpec = 0, + RULE_grammarDecl = 1, + RULE_grammarType = 2, + RULE_prequelConstruct = 3, + RULE_optionsSpec = 4, + RULE_option = 5, + RULE_optionValue = 6, + RULE_delegateGrammars = 7, + RULE_delegateGrammar = 8, + RULE_tokensSpec = 9, + RULE_channelsSpec = 10, + RULE_idList = 11, + RULE_action_ = 12, + RULE_actionScopeName = 13, + RULE_actionBlock = 14, + RULE_argActionBlock = 15, + RULE_modeSpec = 16, + RULE_rules = 17, + RULE_ruleSpec = 18, + RULE_parserRuleSpec = 19, + RULE_exceptionGroup = 20, + RULE_exceptionHandler = 21, + RULE_finallyClause = 22, + RULE_rulePrequel = 23, + RULE_ruleReturns = 24, + RULE_throwsSpec = 25, + RULE_localsSpec = 26, + RULE_ruleAction = 27, + RULE_ruleModifiers = 28, + RULE_ruleModifier = 29, + RULE_ruleBlock = 30, + RULE_ruleAltList = 31, + RULE_labeledAlt = 32, + RULE_lexerRuleSpec = 33, + RULE_lexerRuleBlock = 34, + RULE_lexerAltList = 35, + RULE_lexerAlt = 36, + RULE_lexerElements = 37, + RULE_lexerElement = 38, + RULE_labeledLexerElement = 39, + RULE_lexerBlock = 40, + RULE_lexerCommands = 41, + RULE_lexerCommand = 42, + RULE_lexerCommandName = 43, + RULE_lexerCommandExpr = 44, + RULE_altList = 45, + RULE_alternative = 46, + RULE_element = 47, + RULE_labeledElement = 48, + RULE_ebnf = 49, + RULE_blockSuffix = 50, + RULE_ebnfSuffix = 51, + RULE_lexerAtom = 52, + RULE_atom = 53, + RULE_notSet = 54, + RULE_blockSet = 55, + RULE_setElement = 56, + RULE_block = 57, + RULE_ruleref = 58, + RULE_characterRange = 59, + RULE_terminal = 60, + RULE_elementOptions = 61, + RULE_elementOption = 62, + RULE_identifier = 63; + + private static String[] makeRuleNames() { + return new String[] { + "grammarSpec", + "grammarDecl", + "grammarType", + "prequelConstruct", + "optionsSpec", + "option", + "optionValue", + "delegateGrammars", + "delegateGrammar", + "tokensSpec", + "channelsSpec", + "idList", + "action_", + "actionScopeName", + "actionBlock", + "argActionBlock", + "modeSpec", + "rules", + "ruleSpec", + "parserRuleSpec", + "exceptionGroup", + "exceptionHandler", + "finallyClause", + "rulePrequel", + "ruleReturns", + "throwsSpec", + "localsSpec", + "ruleAction", + "ruleModifiers", + "ruleModifier", + "ruleBlock", + "ruleAltList", + "labeledAlt", + "lexerRuleSpec", + "lexerRuleBlock", + "lexerAltList", + "lexerAlt", + "lexerElements", + "lexerElement", + "labeledLexerElement", + "lexerBlock", + "lexerCommands", + "lexerCommand", + "lexerCommandName", + "lexerCommandExpr", + "altList", + "alternative", + "element", + "labeledElement", + "ebnf", + "blockSuffix", + "ebnfSuffix", + "lexerAtom", + "atom", + "notSet", + "blockSet", + "setElement", + "block", + "ruleref", + "characterRange", + "terminal", + "elementOptions", + "elementOption", + "identifier" + }; + } + + public static final String[] ruleNames = makeRuleNames(); + + private static String[] makeLiteralNames() { + return new String[] { + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + null, + "'options'", + "'tokens'", + "'channels'", + "'import'", + "'fragment'", + "'lexer'", + "'parser'", + "'grammar'", + "'protected'", + "'public'", + "'private'", + "'returns'", + "'locals'", + "'throws'", + "'catch'", + "'finally'", + "'mode'" + }; + } + + private static final String[] _LITERAL_NAMES = makeLiteralNames(); + + private static String[] makeSymbolicNames() { + return new String[] { + null, + "TOKEN_REF", + "RULE_REF", + "LEXER_CHAR_SET", + "DOC_COMMENT", + "BLOCK_COMMENT", + "LINE_COMMENT", + "INT", + "STRING_LITERAL", + "UNTERMINATED_STRING_LITERAL", + "BEGIN_ARGUMENT", + "BEGIN_ACTION", + "OPTIONS", + "TOKENS", + "CHANNELS", + "IMPORT", + "FRAGMENT", + "LEXER", + "PARSER", + "GRAMMAR", + "PROTECTED", + "PUBLIC", + "PRIVATE", + "RETURNS", + "LOCALS", + "THROWS", + "CATCH", + "FINALLY", + "MODE", + "COLON", + "COLONCOLON", + "COMMA", + "SEMI", + "LPAREN", + "RPAREN", + "LBRACE", + "RBRACE", + "RARROW", + "LT", + "GT", + "ASSIGN", + "QUESTION", + "STAR", + "PLUS_ASSIGN", + "PLUS", + "OR", + "DOLLAR", + "RANGE", + "DOT", + "AT", + "POUND", + "NOT", + "ID", + "WS", + "ERRCHAR", + "END_ARGUMENT", + "UNTERMINATED_ARGUMENT", + "ARGUMENT_CONTENT", + "END_ACTION", + "UNTERMINATED_ACTION", + "ACTION_CONTENT", + "OPT_LBRACE", + "UNTERMINATED_CHAR_SET" + }; + } + + 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] = ""; + } + } + } + + @Override + @Deprecated + public String[] getTokenNames() { + return tokenNames; + } + + @Override + public Vocabulary getVocabulary() { + return VOCABULARY; + } + + @Override + public String getGrammarFileName() { + return "ANTLRv4Parser.g4"; + } + + @Override + public String[] getRuleNames() { + return ruleNames; + } + + @Override + public String getSerializedATN() { + return _serializedATN; + } + + @Override + public ATN getATN() { + return _ATN; + } + + public ANTLRv4Parser(TokenStream input) { + super(input); + _interp = new ParserATNSimulator(this, _ATN, _decisionToDFA, _sharedContextCache); + } + + @SuppressWarnings("CheckReturnValue") + public static class GrammarSpecContext extends ParserRuleContext { + public GrammarDeclContext grammarDecl() { + return getRuleContext(GrammarDeclContext.class, 0); + } + + public RulesContext rules() { + return getRuleContext(RulesContext.class, 0); + } + + public TerminalNode EOF() { + return getToken(ANTLRv4Parser.EOF, 0); + } + + public List DOC_COMMENT() { + return getTokens(ANTLRv4Parser.DOC_COMMENT); + } + + public TerminalNode DOC_COMMENT(int i) { + return getToken(ANTLRv4Parser.DOC_COMMENT, i); + } + + public List prequelConstruct() { + return getRuleContexts(PrequelConstructContext.class); + } + + public PrequelConstructContext prequelConstruct(int i) { + return getRuleContext(PrequelConstructContext.class, i); + } + + public List modeSpec() { + return getRuleContexts(ModeSpecContext.class); + } + + public ModeSpecContext modeSpec(int i) { + return getRuleContext(ModeSpecContext.class, i); + } + + public GrammarSpecContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + + @Override + public int getRuleIndex() { + return RULE_grammarSpec; + } + + @Override + public void enterRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).enterGrammarSpec(this); + } + + @Override + public void exitRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).exitGrammarSpec(this); + } + } + + public final GrammarSpecContext grammarSpec() throws RecognitionException { + GrammarSpecContext _localctx = new GrammarSpecContext(_ctx, getState()); + enterRule(_localctx, 0, RULE_grammarSpec); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(131); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la == DOC_COMMENT) { + { + { + setState(128); + match(DOC_COMMENT); + } + } + setState(133); + _errHandler.sync(this); + _la = _input.LA(1); + } + setState(134); + grammarDecl(); + setState(138); + _errHandler.sync(this); + _la = _input.LA(1); + while ((((_la) & ~0x3f) == 0 && ((1L << _la) & 562949953482752L) != 0)) { + { + { + setState(135); + prequelConstruct(); + } + } + setState(140); + _errHandler.sync(this); + _la = _input.LA(1); + } + setState(141); + rules(); + setState(145); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la == MODE) { + { + { + setState(142); + modeSpec(); + } + } + setState(147); + _errHandler.sync(this); + _la = _input.LA(1); + } + setState(148); + match(EOF); + } + } catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } finally { + exitRule(); + } + return _localctx; + } + + @SuppressWarnings("CheckReturnValue") + public static class GrammarDeclContext extends ParserRuleContext { + public GrammarTypeContext grammarType() { + return getRuleContext(GrammarTypeContext.class, 0); + } + + public IdentifierContext identifier() { + return getRuleContext(IdentifierContext.class, 0); + } + + public TerminalNode SEMI() { + return getToken(ANTLRv4Parser.SEMI, 0); + } + + public GrammarDeclContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + + @Override + public int getRuleIndex() { + return RULE_grammarDecl; + } + + @Override + public void enterRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).enterGrammarDecl(this); + } + + @Override + public void exitRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).exitGrammarDecl(this); + } + } + + public final GrammarDeclContext grammarDecl() throws RecognitionException { + GrammarDeclContext _localctx = new GrammarDeclContext(_ctx, getState()); + enterRule(_localctx, 2, RULE_grammarDecl); + try { + enterOuterAlt(_localctx, 1); + { + setState(150); + grammarType(); + setState(151); + identifier(); + setState(152); + match(SEMI); + } + } catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } finally { + exitRule(); + } + return _localctx; + } + + @SuppressWarnings("CheckReturnValue") + public static class GrammarTypeContext extends ParserRuleContext { + public TerminalNode LEXER() { + return getToken(ANTLRv4Parser.LEXER, 0); + } + + public TerminalNode GRAMMAR() { + return getToken(ANTLRv4Parser.GRAMMAR, 0); + } + + public TerminalNode PARSER() { + return getToken(ANTLRv4Parser.PARSER, 0); + } + + public GrammarTypeContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + + @Override + public int getRuleIndex() { + return RULE_grammarType; + } + + @Override + public void enterRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).enterGrammarType(this); + } + + @Override + public void exitRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).exitGrammarType(this); + } + } + + public final GrammarTypeContext grammarType() throws RecognitionException { + GrammarTypeContext _localctx = new GrammarTypeContext(_ctx, getState()); + enterRule(_localctx, 4, RULE_grammarType); + try { + enterOuterAlt(_localctx, 1); + { + setState(159); + _errHandler.sync(this); + switch (_input.LA(1)) { + case LEXER: + { + setState(154); + match(LEXER); + setState(155); + match(GRAMMAR); + } + break; + case PARSER: + { + setState(156); + match(PARSER); + setState(157); + match(GRAMMAR); + } + break; + case GRAMMAR: + { + setState(158); + match(GRAMMAR); + } + break; + default: + throw new NoViableAltException(this); + } + } + } catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } finally { + exitRule(); + } + return _localctx; + } + + @SuppressWarnings("CheckReturnValue") + public static class PrequelConstructContext extends ParserRuleContext { + public OptionsSpecContext optionsSpec() { + return getRuleContext(OptionsSpecContext.class, 0); + } + + public DelegateGrammarsContext delegateGrammars() { + return getRuleContext(DelegateGrammarsContext.class, 0); + } + + public TokensSpecContext tokensSpec() { + return getRuleContext(TokensSpecContext.class, 0); + } + + public ChannelsSpecContext channelsSpec() { + return getRuleContext(ChannelsSpecContext.class, 0); + } + + public Action_Context action_() { + return getRuleContext(Action_Context.class, 0); + } + + public PrequelConstructContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + + @Override + public int getRuleIndex() { + return RULE_prequelConstruct; + } + + @Override + public void enterRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).enterPrequelConstruct(this); + } + + @Override + public void exitRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).exitPrequelConstruct(this); + } + } + + public final PrequelConstructContext prequelConstruct() throws RecognitionException { + PrequelConstructContext _localctx = new PrequelConstructContext(_ctx, getState()); + enterRule(_localctx, 6, RULE_prequelConstruct); + try { + setState(166); + _errHandler.sync(this); + switch (_input.LA(1)) { + case OPTIONS: + enterOuterAlt(_localctx, 1); + { + setState(161); + optionsSpec(); + } + break; + case IMPORT: + enterOuterAlt(_localctx, 2); + { + setState(162); + delegateGrammars(); + } + break; + case TOKENS: + enterOuterAlt(_localctx, 3); + { + setState(163); + tokensSpec(); + } + break; + case CHANNELS: + enterOuterAlt(_localctx, 4); + { + setState(164); + channelsSpec(); + } + break; + case AT: + enterOuterAlt(_localctx, 5); + { + setState(165); + action_(); + } + break; + default: + throw new NoViableAltException(this); + } + } catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } finally { + exitRule(); + } + return _localctx; + } + + @SuppressWarnings("CheckReturnValue") + public static class OptionsSpecContext extends ParserRuleContext { + public TerminalNode OPTIONS() { + return getToken(ANTLRv4Parser.OPTIONS, 0); + } + + public TerminalNode LBRACE() { + return getToken(ANTLRv4Parser.LBRACE, 0); + } + + public TerminalNode RBRACE() { + return getToken(ANTLRv4Parser.RBRACE, 0); + } + + public List option() { + return getRuleContexts(OptionContext.class); + } + + public OptionContext option(int i) { + return getRuleContext(OptionContext.class, i); + } + + public List SEMI() { + return getTokens(ANTLRv4Parser.SEMI); + } + + public TerminalNode SEMI(int i) { + return getToken(ANTLRv4Parser.SEMI, i); + } + + public OptionsSpecContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + + @Override + public int getRuleIndex() { + return RULE_optionsSpec; + } + + @Override + public void enterRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).enterOptionsSpec(this); + } + + @Override + public void exitRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).exitOptionsSpec(this); + } + } + + public final OptionsSpecContext optionsSpec() throws RecognitionException { + OptionsSpecContext _localctx = new OptionsSpecContext(_ctx, getState()); + enterRule(_localctx, 8, RULE_optionsSpec); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(168); + match(OPTIONS); + setState(169); + match(LBRACE); + setState(175); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la == TOKEN_REF || _la == RULE_REF) { + { + { + setState(170); + option(); + setState(171); + match(SEMI); + } + } + setState(177); + _errHandler.sync(this); + _la = _input.LA(1); + } + setState(178); + match(RBRACE); + } + } catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } finally { + exitRule(); + } + return _localctx; + } + + @SuppressWarnings("CheckReturnValue") + public static class OptionContext extends ParserRuleContext { + public IdentifierContext identifier() { + return getRuleContext(IdentifierContext.class, 0); + } + + public TerminalNode ASSIGN() { + return getToken(ANTLRv4Parser.ASSIGN, 0); + } + + public OptionValueContext optionValue() { + return getRuleContext(OptionValueContext.class, 0); + } + + public OptionContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + + @Override + public int getRuleIndex() { + return RULE_option; + } + + @Override + public void enterRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).enterOption(this); + } + + @Override + public void exitRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).exitOption(this); + } + } + + public final OptionContext option() throws RecognitionException { + OptionContext _localctx = new OptionContext(_ctx, getState()); + enterRule(_localctx, 10, RULE_option); + try { + enterOuterAlt(_localctx, 1); + { + setState(180); + identifier(); + setState(181); + match(ASSIGN); + setState(182); + optionValue(); + } + } catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } finally { + exitRule(); + } + return _localctx; + } + + @SuppressWarnings("CheckReturnValue") + public static class OptionValueContext extends ParserRuleContext { + public List identifier() { + return getRuleContexts(IdentifierContext.class); + } + + public IdentifierContext identifier(int i) { + return getRuleContext(IdentifierContext.class, i); + } + + public List DOT() { + return getTokens(ANTLRv4Parser.DOT); + } + + public TerminalNode DOT(int i) { + return getToken(ANTLRv4Parser.DOT, i); + } + + public TerminalNode STRING_LITERAL() { + return getToken(ANTLRv4Parser.STRING_LITERAL, 0); + } + + public ActionBlockContext actionBlock() { + return getRuleContext(ActionBlockContext.class, 0); + } + + public TerminalNode INT() { + return getToken(ANTLRv4Parser.INT, 0); + } + + public OptionValueContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + + @Override + public int getRuleIndex() { + return RULE_optionValue; + } + + @Override + public void enterRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).enterOptionValue(this); + } + + @Override + public void exitRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).exitOptionValue(this); + } + } + + public final OptionValueContext optionValue() throws RecognitionException { + OptionValueContext _localctx = new OptionValueContext(_ctx, getState()); + enterRule(_localctx, 12, RULE_optionValue); + int _la; + try { + setState(195); + _errHandler.sync(this); + switch (_input.LA(1)) { + case TOKEN_REF: + case RULE_REF: + enterOuterAlt(_localctx, 1); + { + setState(184); + identifier(); + setState(189); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la == DOT) { + { + { + setState(185); + match(DOT); + setState(186); + identifier(); + } + } + setState(191); + _errHandler.sync(this); + _la = _input.LA(1); + } + } + break; + case STRING_LITERAL: + enterOuterAlt(_localctx, 2); + { + setState(192); + match(STRING_LITERAL); + } + break; + case BEGIN_ACTION: + enterOuterAlt(_localctx, 3); + { + setState(193); + actionBlock(); + } + break; + case INT: + enterOuterAlt(_localctx, 4); + { + setState(194); + match(INT); + } + break; + default: + throw new NoViableAltException(this); + } + } catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } finally { + exitRule(); + } + return _localctx; + } + + @SuppressWarnings("CheckReturnValue") + public static class DelegateGrammarsContext extends ParserRuleContext { + public TerminalNode IMPORT() { + return getToken(ANTLRv4Parser.IMPORT, 0); + } + + public List delegateGrammar() { + return getRuleContexts(DelegateGrammarContext.class); + } + + public DelegateGrammarContext delegateGrammar(int i) { + return getRuleContext(DelegateGrammarContext.class, i); + } + + public TerminalNode SEMI() { + return getToken(ANTLRv4Parser.SEMI, 0); + } + + public List COMMA() { + return getTokens(ANTLRv4Parser.COMMA); + } + + public TerminalNode COMMA(int i) { + return getToken(ANTLRv4Parser.COMMA, i); + } + + public DelegateGrammarsContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + + @Override + public int getRuleIndex() { + return RULE_delegateGrammars; + } + + @Override + public void enterRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).enterDelegateGrammars(this); + } + + @Override + public void exitRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).exitDelegateGrammars(this); + } + } + + public final DelegateGrammarsContext delegateGrammars() throws RecognitionException { + DelegateGrammarsContext _localctx = new DelegateGrammarsContext(_ctx, getState()); + enterRule(_localctx, 14, RULE_delegateGrammars); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(197); + match(IMPORT); + setState(198); + delegateGrammar(); + setState(203); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la == COMMA) { + { + { + setState(199); + match(COMMA); + setState(200); + delegateGrammar(); + } + } + setState(205); + _errHandler.sync(this); + _la = _input.LA(1); + } + setState(206); + match(SEMI); + } + } catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } finally { + exitRule(); + } + return _localctx; + } + + @SuppressWarnings("CheckReturnValue") + public static class DelegateGrammarContext extends ParserRuleContext { + public List identifier() { + return getRuleContexts(IdentifierContext.class); + } + + public IdentifierContext identifier(int i) { + return getRuleContext(IdentifierContext.class, i); + } + + public TerminalNode ASSIGN() { + return getToken(ANTLRv4Parser.ASSIGN, 0); + } + + public DelegateGrammarContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + + @Override + public int getRuleIndex() { + return RULE_delegateGrammar; + } + + @Override + public void enterRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).enterDelegateGrammar(this); + } + + @Override + public void exitRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).exitDelegateGrammar(this); + } + } + + public final DelegateGrammarContext delegateGrammar() throws RecognitionException { + DelegateGrammarContext _localctx = new DelegateGrammarContext(_ctx, getState()); + enterRule(_localctx, 16, RULE_delegateGrammar); + try { + setState(213); + _errHandler.sync(this); + switch (getInterpreter().adaptivePredict(_input, 9, _ctx)) { + case 1: + enterOuterAlt(_localctx, 1); + { + setState(208); + identifier(); + setState(209); + match(ASSIGN); + setState(210); + identifier(); + } + break; + case 2: + enterOuterAlt(_localctx, 2); + { + setState(212); + identifier(); + } + break; + } + } catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } finally { + exitRule(); + } + return _localctx; + } + + @SuppressWarnings("CheckReturnValue") + public static class TokensSpecContext extends ParserRuleContext { + public TerminalNode TOKENS() { + return getToken(ANTLRv4Parser.TOKENS, 0); + } + + public TerminalNode LBRACE() { + return getToken(ANTLRv4Parser.LBRACE, 0); + } + + public TerminalNode RBRACE() { + return getToken(ANTLRv4Parser.RBRACE, 0); + } + + public IdListContext idList() { + return getRuleContext(IdListContext.class, 0); + } + + public TokensSpecContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + + @Override + public int getRuleIndex() { + return RULE_tokensSpec; + } + + @Override + public void enterRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).enterTokensSpec(this); + } + + @Override + public void exitRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).exitTokensSpec(this); + } + } + + public final TokensSpecContext tokensSpec() throws RecognitionException { + TokensSpecContext _localctx = new TokensSpecContext(_ctx, getState()); + enterRule(_localctx, 18, RULE_tokensSpec); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(215); + match(TOKENS); + setState(216); + match(LBRACE); + setState(218); + _errHandler.sync(this); + _la = _input.LA(1); + if (_la == TOKEN_REF || _la == RULE_REF) { + { + setState(217); + idList(); + } + } + + setState(220); + match(RBRACE); + } + } catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } finally { + exitRule(); + } + return _localctx; + } + + @SuppressWarnings("CheckReturnValue") + public static class ChannelsSpecContext extends ParserRuleContext { + public TerminalNode CHANNELS() { + return getToken(ANTLRv4Parser.CHANNELS, 0); + } + + public TerminalNode LBRACE() { + return getToken(ANTLRv4Parser.LBRACE, 0); + } + + public TerminalNode RBRACE() { + return getToken(ANTLRv4Parser.RBRACE, 0); + } + + public IdListContext idList() { + return getRuleContext(IdListContext.class, 0); + } + + public ChannelsSpecContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + + @Override + public int getRuleIndex() { + return RULE_channelsSpec; + } + + @Override + public void enterRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).enterChannelsSpec(this); + } + + @Override + public void exitRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).exitChannelsSpec(this); + } + } + + public final ChannelsSpecContext channelsSpec() throws RecognitionException { + ChannelsSpecContext _localctx = new ChannelsSpecContext(_ctx, getState()); + enterRule(_localctx, 20, RULE_channelsSpec); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(222); + match(CHANNELS); + setState(223); + match(LBRACE); + setState(225); + _errHandler.sync(this); + _la = _input.LA(1); + if (_la == TOKEN_REF || _la == RULE_REF) { + { + setState(224); + idList(); + } + } + + setState(227); + match(RBRACE); + } + } catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } finally { + exitRule(); + } + return _localctx; + } + + @SuppressWarnings("CheckReturnValue") + public static class IdListContext extends ParserRuleContext { + public List identifier() { + return getRuleContexts(IdentifierContext.class); + } + + public IdentifierContext identifier(int i) { + return getRuleContext(IdentifierContext.class, i); + } + + public List COMMA() { + return getTokens(ANTLRv4Parser.COMMA); + } + + public TerminalNode COMMA(int i) { + return getToken(ANTLRv4Parser.COMMA, i); + } + + public IdListContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + + @Override + public int getRuleIndex() { + return RULE_idList; + } + + @Override + public void enterRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).enterIdList(this); + } + + @Override + public void exitRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).exitIdList(this); + } + } + + public final IdListContext idList() throws RecognitionException { + IdListContext _localctx = new IdListContext(_ctx, getState()); + enterRule(_localctx, 22, RULE_idList); + int _la; + try { + int _alt; + enterOuterAlt(_localctx, 1); + { + setState(229); + identifier(); + setState(234); + _errHandler.sync(this); + _alt = getInterpreter().adaptivePredict(_input, 12, _ctx); + while (_alt != 2 && _alt != org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER) { + if (_alt == 1) { + { + { + setState(230); + match(COMMA); + setState(231); + identifier(); + } + } + } + setState(236); + _errHandler.sync(this); + _alt = getInterpreter().adaptivePredict(_input, 12, _ctx); + } + setState(238); + _errHandler.sync(this); + _la = _input.LA(1); + if (_la == COMMA) { + { + setState(237); + match(COMMA); + } + } + } + } catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } finally { + exitRule(); + } + return _localctx; + } + + @SuppressWarnings("CheckReturnValue") + public static class Action_Context extends ParserRuleContext { + public TerminalNode AT() { + return getToken(ANTLRv4Parser.AT, 0); + } + + public IdentifierContext identifier() { + return getRuleContext(IdentifierContext.class, 0); + } + + public ActionBlockContext actionBlock() { + return getRuleContext(ActionBlockContext.class, 0); + } + + public ActionScopeNameContext actionScopeName() { + return getRuleContext(ActionScopeNameContext.class, 0); + } + + public TerminalNode COLONCOLON() { + return getToken(ANTLRv4Parser.COLONCOLON, 0); + } + + public Action_Context(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + + @Override + public int getRuleIndex() { + return RULE_action_; + } + + @Override + public void enterRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).enterAction_(this); + } + + @Override + public void exitRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).exitAction_(this); + } + } + + public final Action_Context action_() throws RecognitionException { + Action_Context _localctx = new Action_Context(_ctx, getState()); + enterRule(_localctx, 24, RULE_action_); + try { + enterOuterAlt(_localctx, 1); + { + setState(240); + match(AT); + setState(244); + _errHandler.sync(this); + switch (getInterpreter().adaptivePredict(_input, 14, _ctx)) { + case 1: + { + setState(241); + actionScopeName(); + setState(242); + match(COLONCOLON); + } + break; + } + setState(246); + identifier(); + setState(247); + actionBlock(); + } + } catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } finally { + exitRule(); + } + return _localctx; + } + + @SuppressWarnings("CheckReturnValue") + public static class ActionScopeNameContext extends ParserRuleContext { + public IdentifierContext identifier() { + return getRuleContext(IdentifierContext.class, 0); + } + + public TerminalNode LEXER() { + return getToken(ANTLRv4Parser.LEXER, 0); + } + + public TerminalNode PARSER() { + return getToken(ANTLRv4Parser.PARSER, 0); + } + + public ActionScopeNameContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + + @Override + public int getRuleIndex() { + return RULE_actionScopeName; + } + + @Override + public void enterRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).enterActionScopeName(this); + } + + @Override + public void exitRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).exitActionScopeName(this); + } + } + + public final ActionScopeNameContext actionScopeName() throws RecognitionException { + ActionScopeNameContext _localctx = new ActionScopeNameContext(_ctx, getState()); + enterRule(_localctx, 26, RULE_actionScopeName); + try { + setState(252); + _errHandler.sync(this); + switch (_input.LA(1)) { + case TOKEN_REF: + case RULE_REF: + enterOuterAlt(_localctx, 1); + { + setState(249); + identifier(); + } + break; + case LEXER: + enterOuterAlt(_localctx, 2); + { + setState(250); + match(LEXER); + } + break; + case PARSER: + enterOuterAlt(_localctx, 3); + { + setState(251); + match(PARSER); + } + break; + default: + throw new NoViableAltException(this); + } + } catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } finally { + exitRule(); + } + return _localctx; + } + + @SuppressWarnings("CheckReturnValue") + public static class ActionBlockContext extends ParserRuleContext { + public TerminalNode BEGIN_ACTION() { + return getToken(ANTLRv4Parser.BEGIN_ACTION, 0); + } + + public TerminalNode END_ACTION() { + return getToken(ANTLRv4Parser.END_ACTION, 0); + } + + public List ACTION_CONTENT() { + return getTokens(ANTLRv4Parser.ACTION_CONTENT); + } + + public TerminalNode ACTION_CONTENT(int i) { + return getToken(ANTLRv4Parser.ACTION_CONTENT, i); + } + + public ActionBlockContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + + @Override + public int getRuleIndex() { + return RULE_actionBlock; + } + + @Override + public void enterRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).enterActionBlock(this); + } + + @Override + public void exitRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).exitActionBlock(this); + } + } + + public final ActionBlockContext actionBlock() throws RecognitionException { + ActionBlockContext _localctx = new ActionBlockContext(_ctx, getState()); + enterRule(_localctx, 28, RULE_actionBlock); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(254); + match(BEGIN_ACTION); + setState(258); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la == ACTION_CONTENT) { + { + { + setState(255); + match(ACTION_CONTENT); + } + } + setState(260); + _errHandler.sync(this); + _la = _input.LA(1); + } + setState(261); + match(END_ACTION); + } + } catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } finally { + exitRule(); + } + return _localctx; + } + + @SuppressWarnings("CheckReturnValue") + public static class ArgActionBlockContext extends ParserRuleContext { + public TerminalNode BEGIN_ARGUMENT() { + return getToken(ANTLRv4Parser.BEGIN_ARGUMENT, 0); + } + + public TerminalNode END_ARGUMENT() { + return getToken(ANTLRv4Parser.END_ARGUMENT, 0); + } + + public List ARGUMENT_CONTENT() { + return getTokens(ANTLRv4Parser.ARGUMENT_CONTENT); + } + + public TerminalNode ARGUMENT_CONTENT(int i) { + return getToken(ANTLRv4Parser.ARGUMENT_CONTENT, i); + } + + public ArgActionBlockContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + + @Override + public int getRuleIndex() { + return RULE_argActionBlock; + } + + @Override + public void enterRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).enterArgActionBlock(this); + } + + @Override + public void exitRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).exitArgActionBlock(this); + } + } + + public final ArgActionBlockContext argActionBlock() throws RecognitionException { + ArgActionBlockContext _localctx = new ArgActionBlockContext(_ctx, getState()); + enterRule(_localctx, 30, RULE_argActionBlock); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(263); + match(BEGIN_ARGUMENT); + setState(267); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la == ARGUMENT_CONTENT) { + { + { + setState(264); + match(ARGUMENT_CONTENT); + } + } + setState(269); + _errHandler.sync(this); + _la = _input.LA(1); + } + setState(270); + match(END_ARGUMENT); + } + } catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } finally { + exitRule(); + } + return _localctx; + } + + @SuppressWarnings("CheckReturnValue") + public static class ModeSpecContext extends ParserRuleContext { + public TerminalNode MODE() { + return getToken(ANTLRv4Parser.MODE, 0); + } + + public IdentifierContext identifier() { + return getRuleContext(IdentifierContext.class, 0); + } + + public TerminalNode SEMI() { + return getToken(ANTLRv4Parser.SEMI, 0); + } + + public List lexerRuleSpec() { + return getRuleContexts(LexerRuleSpecContext.class); + } + + public LexerRuleSpecContext lexerRuleSpec(int i) { + return getRuleContext(LexerRuleSpecContext.class, i); + } + + public ModeSpecContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + + @Override + public int getRuleIndex() { + return RULE_modeSpec; + } + + @Override + public void enterRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).enterModeSpec(this); + } + + @Override + public void exitRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).exitModeSpec(this); + } + } + + public final ModeSpecContext modeSpec() throws RecognitionException { + ModeSpecContext _localctx = new ModeSpecContext(_ctx, getState()); + enterRule(_localctx, 32, RULE_modeSpec); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(272); + match(MODE); + setState(273); + identifier(); + setState(274); + match(SEMI); + setState(278); + _errHandler.sync(this); + _la = _input.LA(1); + while ((((_la) & ~0x3f) == 0 && ((1L << _la) & 65554L) != 0)) { + { + { + setState(275); + lexerRuleSpec(); + } + } + setState(280); + _errHandler.sync(this); + _la = _input.LA(1); + } + } + } catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } finally { + exitRule(); + } + return _localctx; + } + + @SuppressWarnings("CheckReturnValue") + public static class RulesContext extends ParserRuleContext { + public List ruleSpec() { + return getRuleContexts(RuleSpecContext.class); + } + + public RuleSpecContext ruleSpec(int i) { + return getRuleContext(RuleSpecContext.class, i); + } + + public RulesContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + + @Override + public int getRuleIndex() { + return RULE_rules; + } + + @Override + public void enterRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).enterRules(this); + } + + @Override + public void exitRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).exitRules(this); + } + } + + public final RulesContext rules() throws RecognitionException { + RulesContext _localctx = new RulesContext(_ctx, getState()); + enterRule(_localctx, 34, RULE_rules); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(284); + _errHandler.sync(this); + _la = _input.LA(1); + while ((((_la) & ~0x3f) == 0 && ((1L << _la) & 7405590L) != 0)) { + { + { + setState(281); + ruleSpec(); + } + } + setState(286); + _errHandler.sync(this); + _la = _input.LA(1); + } + } + } catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } finally { + exitRule(); + } + return _localctx; + } + + @SuppressWarnings("CheckReturnValue") + public static class RuleSpecContext extends ParserRuleContext { + public ParserRuleSpecContext parserRuleSpec() { + return getRuleContext(ParserRuleSpecContext.class, 0); + } + + public LexerRuleSpecContext lexerRuleSpec() { + return getRuleContext(LexerRuleSpecContext.class, 0); + } + + public RuleSpecContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + + @Override + public int getRuleIndex() { + return RULE_ruleSpec; + } + + @Override + public void enterRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).enterRuleSpec(this); + } + + @Override + public void exitRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).exitRuleSpec(this); + } + } + + public final RuleSpecContext ruleSpec() throws RecognitionException { + RuleSpecContext _localctx = new RuleSpecContext(_ctx, getState()); + enterRule(_localctx, 36, RULE_ruleSpec); + try { + setState(289); + _errHandler.sync(this); + switch (getInterpreter().adaptivePredict(_input, 20, _ctx)) { + case 1: + enterOuterAlt(_localctx, 1); + { + setState(287); + parserRuleSpec(); + } + break; + case 2: + enterOuterAlt(_localctx, 2); + { + setState(288); + lexerRuleSpec(); + } + break; + } + } catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } finally { + exitRule(); + } + return _localctx; + } + + @SuppressWarnings("CheckReturnValue") + public static class ParserRuleSpecContext extends ParserRuleContext { + public TerminalNode RULE_REF() { + return getToken(ANTLRv4Parser.RULE_REF, 0); + } + + public TerminalNode COLON() { + return getToken(ANTLRv4Parser.COLON, 0); + } + + public RuleBlockContext ruleBlock() { + return getRuleContext(RuleBlockContext.class, 0); + } + + public TerminalNode SEMI() { + return getToken(ANTLRv4Parser.SEMI, 0); + } + + public ExceptionGroupContext exceptionGroup() { + return getRuleContext(ExceptionGroupContext.class, 0); + } + + public List DOC_COMMENT() { + return getTokens(ANTLRv4Parser.DOC_COMMENT); + } + + public TerminalNode DOC_COMMENT(int i) { + return getToken(ANTLRv4Parser.DOC_COMMENT, i); + } + + public RuleModifiersContext ruleModifiers() { + return getRuleContext(RuleModifiersContext.class, 0); + } + + public ArgActionBlockContext argActionBlock() { + return getRuleContext(ArgActionBlockContext.class, 0); + } + + public RuleReturnsContext ruleReturns() { + return getRuleContext(RuleReturnsContext.class, 0); + } + + public ThrowsSpecContext throwsSpec() { + return getRuleContext(ThrowsSpecContext.class, 0); + } + + public LocalsSpecContext localsSpec() { + return getRuleContext(LocalsSpecContext.class, 0); + } + + public List rulePrequel() { + return getRuleContexts(RulePrequelContext.class); + } + + public RulePrequelContext rulePrequel(int i) { + return getRuleContext(RulePrequelContext.class, i); + } + + public ParserRuleSpecContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + + @Override + public int getRuleIndex() { + return RULE_parserRuleSpec; + } + + @Override + public void enterRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).enterParserRuleSpec(this); + } + + @Override + public void exitRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).exitParserRuleSpec(this); + } + } + + public final ParserRuleSpecContext parserRuleSpec() throws RecognitionException { + ParserRuleSpecContext _localctx = new ParserRuleSpecContext(_ctx, getState()); + enterRule(_localctx, 38, RULE_parserRuleSpec); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(294); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la == DOC_COMMENT) { + { + { + setState(291); + match(DOC_COMMENT); + } + } + setState(296); + _errHandler.sync(this); + _la = _input.LA(1); + } + setState(298); + _errHandler.sync(this); + _la = _input.LA(1); + if ((((_la) & ~0x3f) == 0 && ((1L << _la) & 7405568L) != 0)) { + { + setState(297); + ruleModifiers(); + } + } + + setState(300); + match(RULE_REF); + setState(302); + _errHandler.sync(this); + _la = _input.LA(1); + if (_la == BEGIN_ARGUMENT) { + { + setState(301); + argActionBlock(); + } + } + + setState(305); + _errHandler.sync(this); + _la = _input.LA(1); + if (_la == RETURNS) { + { + setState(304); + ruleReturns(); + } + } + + setState(308); + _errHandler.sync(this); + _la = _input.LA(1); + if (_la == THROWS) { + { + setState(307); + throwsSpec(); + } + } + + setState(311); + _errHandler.sync(this); + _la = _input.LA(1); + if (_la == LOCALS) { + { + setState(310); + localsSpec(); + } + } + + setState(316); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la == OPTIONS || _la == AT) { + { + { + setState(313); + rulePrequel(); + } + } + setState(318); + _errHandler.sync(this); + _la = _input.LA(1); + } + setState(319); + match(COLON); + setState(320); + ruleBlock(); + setState(321); + match(SEMI); + setState(322); + exceptionGroup(); + } + } catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } finally { + exitRule(); + } + return _localctx; + } + + @SuppressWarnings("CheckReturnValue") + public static class ExceptionGroupContext extends ParserRuleContext { + public List exceptionHandler() { + return getRuleContexts(ExceptionHandlerContext.class); + } + + public ExceptionHandlerContext exceptionHandler(int i) { + return getRuleContext(ExceptionHandlerContext.class, i); + } + + public FinallyClauseContext finallyClause() { + return getRuleContext(FinallyClauseContext.class, 0); + } + + public ExceptionGroupContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + + @Override + public int getRuleIndex() { + return RULE_exceptionGroup; + } + + @Override + public void enterRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).enterExceptionGroup(this); + } + + @Override + public void exitRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).exitExceptionGroup(this); + } + } + + public final ExceptionGroupContext exceptionGroup() throws RecognitionException { + ExceptionGroupContext _localctx = new ExceptionGroupContext(_ctx, getState()); + enterRule(_localctx, 40, RULE_exceptionGroup); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(327); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la == CATCH) { + { + { + setState(324); + exceptionHandler(); + } + } + setState(329); + _errHandler.sync(this); + _la = _input.LA(1); + } + setState(331); + _errHandler.sync(this); + _la = _input.LA(1); + if (_la == FINALLY) { + { + setState(330); + finallyClause(); + } + } + } + } catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } finally { + exitRule(); + } + return _localctx; + } + + @SuppressWarnings("CheckReturnValue") + public static class ExceptionHandlerContext extends ParserRuleContext { + public TerminalNode CATCH() { + return getToken(ANTLRv4Parser.CATCH, 0); + } + + public ArgActionBlockContext argActionBlock() { + return getRuleContext(ArgActionBlockContext.class, 0); + } + + public ActionBlockContext actionBlock() { + return getRuleContext(ActionBlockContext.class, 0); + } + + public ExceptionHandlerContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + + @Override + public int getRuleIndex() { + return RULE_exceptionHandler; + } + + @Override + public void enterRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).enterExceptionHandler(this); + } + + @Override + public void exitRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).exitExceptionHandler(this); + } + } + + public final ExceptionHandlerContext exceptionHandler() throws RecognitionException { + ExceptionHandlerContext _localctx = new ExceptionHandlerContext(_ctx, getState()); + enterRule(_localctx, 42, RULE_exceptionHandler); + try { + enterOuterAlt(_localctx, 1); + { + setState(333); + match(CATCH); + setState(334); + argActionBlock(); + setState(335); + actionBlock(); + } + } catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } finally { + exitRule(); + } + return _localctx; + } + + @SuppressWarnings("CheckReturnValue") + public static class FinallyClauseContext extends ParserRuleContext { + public TerminalNode FINALLY() { + return getToken(ANTLRv4Parser.FINALLY, 0); + } + + public ActionBlockContext actionBlock() { + return getRuleContext(ActionBlockContext.class, 0); + } + + public FinallyClauseContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + + @Override + public int getRuleIndex() { + return RULE_finallyClause; + } + + @Override + public void enterRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).enterFinallyClause(this); + } + + @Override + public void exitRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).exitFinallyClause(this); + } + } + + public final FinallyClauseContext finallyClause() throws RecognitionException { + FinallyClauseContext _localctx = new FinallyClauseContext(_ctx, getState()); + enterRule(_localctx, 44, RULE_finallyClause); + try { + enterOuterAlt(_localctx, 1); + { + setState(337); + match(FINALLY); + setState(338); + actionBlock(); + } + } catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } finally { + exitRule(); + } + return _localctx; + } + + @SuppressWarnings("CheckReturnValue") + public static class RulePrequelContext extends ParserRuleContext { + public OptionsSpecContext optionsSpec() { + return getRuleContext(OptionsSpecContext.class, 0); + } + + public RuleActionContext ruleAction() { + return getRuleContext(RuleActionContext.class, 0); + } + + public RulePrequelContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + + @Override + public int getRuleIndex() { + return RULE_rulePrequel; + } + + @Override + public void enterRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).enterRulePrequel(this); + } + + @Override + public void exitRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).exitRulePrequel(this); + } + } + + public final RulePrequelContext rulePrequel() throws RecognitionException { + RulePrequelContext _localctx = new RulePrequelContext(_ctx, getState()); + enterRule(_localctx, 46, RULE_rulePrequel); + try { + setState(342); + _errHandler.sync(this); + switch (_input.LA(1)) { + case OPTIONS: + enterOuterAlt(_localctx, 1); + { + setState(340); + optionsSpec(); + } + break; + case AT: + enterOuterAlt(_localctx, 2); + { + setState(341); + ruleAction(); + } + break; + default: + throw new NoViableAltException(this); + } + } catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } finally { + exitRule(); + } + return _localctx; + } + + @SuppressWarnings("CheckReturnValue") + public static class RuleReturnsContext extends ParserRuleContext { + public TerminalNode RETURNS() { + return getToken(ANTLRv4Parser.RETURNS, 0); + } + + public ArgActionBlockContext argActionBlock() { + return getRuleContext(ArgActionBlockContext.class, 0); + } + + public RuleReturnsContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + + @Override + public int getRuleIndex() { + return RULE_ruleReturns; + } + + @Override + public void enterRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).enterRuleReturns(this); + } + + @Override + public void exitRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).exitRuleReturns(this); + } + } + + public final RuleReturnsContext ruleReturns() throws RecognitionException { + RuleReturnsContext _localctx = new RuleReturnsContext(_ctx, getState()); + enterRule(_localctx, 48, RULE_ruleReturns); + try { + enterOuterAlt(_localctx, 1); + { + setState(344); + match(RETURNS); + setState(345); + argActionBlock(); + } + } catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } finally { + exitRule(); + } + return _localctx; + } + + @SuppressWarnings("CheckReturnValue") + public static class ThrowsSpecContext extends ParserRuleContext { + public TerminalNode THROWS() { + return getToken(ANTLRv4Parser.THROWS, 0); + } + + public List identifier() { + return getRuleContexts(IdentifierContext.class); + } + + public IdentifierContext identifier(int i) { + return getRuleContext(IdentifierContext.class, i); + } + + public List COMMA() { + return getTokens(ANTLRv4Parser.COMMA); + } + + public TerminalNode COMMA(int i) { + return getToken(ANTLRv4Parser.COMMA, i); + } + + public ThrowsSpecContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + + @Override + public int getRuleIndex() { + return RULE_throwsSpec; + } + + @Override + public void enterRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).enterThrowsSpec(this); + } + + @Override + public void exitRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).exitThrowsSpec(this); + } + } + + public final ThrowsSpecContext throwsSpec() throws RecognitionException { + ThrowsSpecContext _localctx = new ThrowsSpecContext(_ctx, getState()); + enterRule(_localctx, 50, RULE_throwsSpec); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(347); + match(THROWS); + setState(348); + identifier(); + setState(353); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la == COMMA) { + { + { + setState(349); + match(COMMA); + setState(350); + identifier(); + } + } + setState(355); + _errHandler.sync(this); + _la = _input.LA(1); + } + } + } catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } finally { + exitRule(); + } + return _localctx; + } + + @SuppressWarnings("CheckReturnValue") + public static class LocalsSpecContext extends ParserRuleContext { + public TerminalNode LOCALS() { + return getToken(ANTLRv4Parser.LOCALS, 0); + } + + public ArgActionBlockContext argActionBlock() { + return getRuleContext(ArgActionBlockContext.class, 0); + } + + public LocalsSpecContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + + @Override + public int getRuleIndex() { + return RULE_localsSpec; + } + + @Override + public void enterRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).enterLocalsSpec(this); + } + + @Override + public void exitRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).exitLocalsSpec(this); + } + } + + public final LocalsSpecContext localsSpec() throws RecognitionException { + LocalsSpecContext _localctx = new LocalsSpecContext(_ctx, getState()); + enterRule(_localctx, 52, RULE_localsSpec); + try { + enterOuterAlt(_localctx, 1); + { + setState(356); + match(LOCALS); + setState(357); + argActionBlock(); + } + } catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } finally { + exitRule(); + } + return _localctx; + } + + @SuppressWarnings("CheckReturnValue") + public static class RuleActionContext extends ParserRuleContext { + public TerminalNode AT() { + return getToken(ANTLRv4Parser.AT, 0); + } + + public IdentifierContext identifier() { + return getRuleContext(IdentifierContext.class, 0); + } + + public ActionBlockContext actionBlock() { + return getRuleContext(ActionBlockContext.class, 0); + } + + public RuleActionContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + + @Override + public int getRuleIndex() { + return RULE_ruleAction; + } + + @Override + public void enterRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).enterRuleAction(this); + } + + @Override + public void exitRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).exitRuleAction(this); + } + } + + public final RuleActionContext ruleAction() throws RecognitionException { + RuleActionContext _localctx = new RuleActionContext(_ctx, getState()); + enterRule(_localctx, 54, RULE_ruleAction); + try { + enterOuterAlt(_localctx, 1); + { + setState(359); + match(AT); + setState(360); + identifier(); + setState(361); + actionBlock(); + } + } catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } finally { + exitRule(); + } + return _localctx; + } + + @SuppressWarnings("CheckReturnValue") + public static class RuleModifiersContext extends ParserRuleContext { + public List ruleModifier() { + return getRuleContexts(RuleModifierContext.class); + } + + public RuleModifierContext ruleModifier(int i) { + return getRuleContext(RuleModifierContext.class, i); + } + + public RuleModifiersContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + + @Override + public int getRuleIndex() { + return RULE_ruleModifiers; + } + + @Override + public void enterRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).enterRuleModifiers(this); + } + + @Override + public void exitRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).exitRuleModifiers(this); + } + } + + public final RuleModifiersContext ruleModifiers() throws RecognitionException { + RuleModifiersContext _localctx = new RuleModifiersContext(_ctx, getState()); + enterRule(_localctx, 56, RULE_ruleModifiers); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(364); + _errHandler.sync(this); + _la = _input.LA(1); + do { + { + { + setState(363); + ruleModifier(); + } + } + setState(366); + _errHandler.sync(this); + _la = _input.LA(1); + } while ((((_la) & ~0x3f) == 0 && ((1L << _la) & 7405568L) != 0)); + } + } catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } finally { + exitRule(); + } + return _localctx; + } + + @SuppressWarnings("CheckReturnValue") + public static class RuleModifierContext extends ParserRuleContext { + public TerminalNode PUBLIC() { + return getToken(ANTLRv4Parser.PUBLIC, 0); + } + + public TerminalNode PRIVATE() { + return getToken(ANTLRv4Parser.PRIVATE, 0); + } + + public TerminalNode PROTECTED() { + return getToken(ANTLRv4Parser.PROTECTED, 0); + } + + public TerminalNode FRAGMENT() { + return getToken(ANTLRv4Parser.FRAGMENT, 0); + } + + public RuleModifierContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + + @Override + public int getRuleIndex() { + return RULE_ruleModifier; + } + + @Override + public void enterRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).enterRuleModifier(this); + } + + @Override + public void exitRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).exitRuleModifier(this); + } + } + + public final RuleModifierContext ruleModifier() throws RecognitionException { + RuleModifierContext _localctx = new RuleModifierContext(_ctx, getState()); + enterRule(_localctx, 58, RULE_ruleModifier); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(368); + _la = _input.LA(1); + if (!((((_la) & ~0x3f) == 0 && ((1L << _la) & 7405568L) != 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; + } + + @SuppressWarnings("CheckReturnValue") + public static class RuleBlockContext extends ParserRuleContext { + public RuleAltListContext ruleAltList() { + return getRuleContext(RuleAltListContext.class, 0); + } + + public RuleBlockContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + + @Override + public int getRuleIndex() { + return RULE_ruleBlock; + } + + @Override + public void enterRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).enterRuleBlock(this); + } + + @Override + public void exitRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).exitRuleBlock(this); + } + } + + public final RuleBlockContext ruleBlock() throws RecognitionException { + RuleBlockContext _localctx = new RuleBlockContext(_ctx, getState()); + enterRule(_localctx, 60, RULE_ruleBlock); + try { + enterOuterAlt(_localctx, 1); + { + setState(370); + ruleAltList(); + } + } catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } finally { + exitRule(); + } + return _localctx; + } + + @SuppressWarnings("CheckReturnValue") + public static class RuleAltListContext extends ParserRuleContext { + public List labeledAlt() { + return getRuleContexts(LabeledAltContext.class); + } + + public LabeledAltContext labeledAlt(int i) { + return getRuleContext(LabeledAltContext.class, i); + } + + public List OR() { + return getTokens(ANTLRv4Parser.OR); + } + + public TerminalNode OR(int i) { + return getToken(ANTLRv4Parser.OR, i); + } + + public RuleAltListContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + + @Override + public int getRuleIndex() { + return RULE_ruleAltList; + } + + @Override + public void enterRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).enterRuleAltList(this); + } + + @Override + public void exitRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).exitRuleAltList(this); + } + } + + public final RuleAltListContext ruleAltList() throws RecognitionException { + RuleAltListContext _localctx = new RuleAltListContext(_ctx, getState()); + enterRule(_localctx, 62, RULE_ruleAltList); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(372); + labeledAlt(); + setState(377); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la == OR) { + { + { + setState(373); + match(OR); + setState(374); + labeledAlt(); + } + } + setState(379); + _errHandler.sync(this); + _la = _input.LA(1); + } + } + } catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } finally { + exitRule(); + } + return _localctx; + } + + @SuppressWarnings("CheckReturnValue") + public static class LabeledAltContext extends ParserRuleContext { + public AlternativeContext alternative() { + return getRuleContext(AlternativeContext.class, 0); + } + + public TerminalNode POUND() { + return getToken(ANTLRv4Parser.POUND, 0); + } + + public IdentifierContext identifier() { + return getRuleContext(IdentifierContext.class, 0); + } + + public LabeledAltContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + + @Override + public int getRuleIndex() { + return RULE_labeledAlt; + } + + @Override + public void enterRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).enterLabeledAlt(this); + } + + @Override + public void exitRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).exitLabeledAlt(this); + } + } + + public final LabeledAltContext labeledAlt() throws RecognitionException { + LabeledAltContext _localctx = new LabeledAltContext(_ctx, getState()); + enterRule(_localctx, 64, RULE_labeledAlt); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(380); + alternative(); + setState(383); + _errHandler.sync(this); + _la = _input.LA(1); + if (_la == POUND) { + { + setState(381); + match(POUND); + setState(382); + identifier(); + } + } + } + } catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } finally { + exitRule(); + } + return _localctx; + } + + @SuppressWarnings("CheckReturnValue") + public static class LexerRuleSpecContext extends ParserRuleContext { + public TerminalNode TOKEN_REF() { + return getToken(ANTLRv4Parser.TOKEN_REF, 0); + } + + public TerminalNode COLON() { + return getToken(ANTLRv4Parser.COLON, 0); + } + + public LexerRuleBlockContext lexerRuleBlock() { + return getRuleContext(LexerRuleBlockContext.class, 0); + } + + public TerminalNode SEMI() { + return getToken(ANTLRv4Parser.SEMI, 0); + } + + public List DOC_COMMENT() { + return getTokens(ANTLRv4Parser.DOC_COMMENT); + } + + public TerminalNode DOC_COMMENT(int i) { + return getToken(ANTLRv4Parser.DOC_COMMENT, i); + } + + public TerminalNode FRAGMENT() { + return getToken(ANTLRv4Parser.FRAGMENT, 0); + } + + public LexerRuleSpecContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + + @Override + public int getRuleIndex() { + return RULE_lexerRuleSpec; + } + + @Override + public void enterRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).enterLexerRuleSpec(this); + } + + @Override + public void exitRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).exitLexerRuleSpec(this); + } + } + + public final LexerRuleSpecContext lexerRuleSpec() throws RecognitionException { + LexerRuleSpecContext _localctx = new LexerRuleSpecContext(_ctx, getState()); + enterRule(_localctx, 66, RULE_lexerRuleSpec); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(388); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la == DOC_COMMENT) { + { + { + setState(385); + match(DOC_COMMENT); + } + } + setState(390); + _errHandler.sync(this); + _la = _input.LA(1); + } + setState(392); + _errHandler.sync(this); + _la = _input.LA(1); + if (_la == FRAGMENT) { + { + setState(391); + match(FRAGMENT); + } + } + + setState(394); + match(TOKEN_REF); + setState(395); + match(COLON); + setState(396); + lexerRuleBlock(); + setState(397); + match(SEMI); + } + } catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } finally { + exitRule(); + } + return _localctx; + } + + @SuppressWarnings("CheckReturnValue") + public static class LexerRuleBlockContext extends ParserRuleContext { + public LexerAltListContext lexerAltList() { + return getRuleContext(LexerAltListContext.class, 0); + } + + public LexerRuleBlockContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + + @Override + public int getRuleIndex() { + return RULE_lexerRuleBlock; + } + + @Override + public void enterRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).enterLexerRuleBlock(this); + } + + @Override + public void exitRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).exitLexerRuleBlock(this); + } + } + + public final LexerRuleBlockContext lexerRuleBlock() throws RecognitionException { + LexerRuleBlockContext _localctx = new LexerRuleBlockContext(_ctx, getState()); + enterRule(_localctx, 68, RULE_lexerRuleBlock); + try { + enterOuterAlt(_localctx, 1); + { + setState(399); + lexerAltList(); + } + } catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } finally { + exitRule(); + } + return _localctx; + } + + @SuppressWarnings("CheckReturnValue") + public static class LexerAltListContext extends ParserRuleContext { + public List lexerAlt() { + return getRuleContexts(LexerAltContext.class); + } + + public LexerAltContext lexerAlt(int i) { + return getRuleContext(LexerAltContext.class, i); + } + + public List OR() { + return getTokens(ANTLRv4Parser.OR); + } + + public TerminalNode OR(int i) { + return getToken(ANTLRv4Parser.OR, i); + } + + public LexerAltListContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + + @Override + public int getRuleIndex() { + return RULE_lexerAltList; + } + + @Override + public void enterRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).enterLexerAltList(this); + } + + @Override + public void exitRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).exitLexerAltList(this); + } + } + + public final LexerAltListContext lexerAltList() throws RecognitionException { + LexerAltListContext _localctx = new LexerAltListContext(_ctx, getState()); + enterRule(_localctx, 70, RULE_lexerAltList); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(401); + lexerAlt(); + setState(406); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la == OR) { + { + { + setState(402); + match(OR); + setState(403); + lexerAlt(); + } + } + setState(408); + _errHandler.sync(this); + _la = _input.LA(1); + } + } + } catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } finally { + exitRule(); + } + return _localctx; + } + + @SuppressWarnings("CheckReturnValue") + public static class LexerAltContext extends ParserRuleContext { + public LexerElementsContext lexerElements() { + return getRuleContext(LexerElementsContext.class, 0); + } + + public LexerCommandsContext lexerCommands() { + return getRuleContext(LexerCommandsContext.class, 0); + } + + public LexerAltContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + + @Override + public int getRuleIndex() { + return RULE_lexerAlt; + } + + @Override + public void enterRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).enterLexerAlt(this); + } + + @Override + public void exitRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).exitLexerAlt(this); + } + } + + public final LexerAltContext lexerAlt() throws RecognitionException { + LexerAltContext _localctx = new LexerAltContext(_ctx, getState()); + enterRule(_localctx, 72, RULE_lexerAlt); + int _la; + try { + setState(414); + _errHandler.sync(this); + switch (_input.LA(1)) { + case TOKEN_REF: + case RULE_REF: + case LEXER_CHAR_SET: + case STRING_LITERAL: + case BEGIN_ACTION: + case LPAREN: + case DOT: + case NOT: + enterOuterAlt(_localctx, 1); + { + setState(409); + lexerElements(); + setState(411); + _errHandler.sync(this); + _la = _input.LA(1); + if (_la == RARROW) { + { + setState(410); + lexerCommands(); + } + } + } + break; + case SEMI: + case RPAREN: + case OR: + enterOuterAlt(_localctx, 2); + { + } + break; + default: + throw new NoViableAltException(this); + } + } catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } finally { + exitRule(); + } + return _localctx; + } + + @SuppressWarnings("CheckReturnValue") + public static class LexerElementsContext extends ParserRuleContext { + public List lexerElement() { + return getRuleContexts(LexerElementContext.class); + } + + public LexerElementContext lexerElement(int i) { + return getRuleContext(LexerElementContext.class, i); + } + + public LexerElementsContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + + @Override + public int getRuleIndex() { + return RULE_lexerElements; + } + + @Override + public void enterRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).enterLexerElements(this); + } + + @Override + public void exitRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).exitLexerElements(this); + } + } + + public final LexerElementsContext lexerElements() throws RecognitionException { + LexerElementsContext _localctx = new LexerElementsContext(_ctx, getState()); + enterRule(_localctx, 74, RULE_lexerElements); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(417); + _errHandler.sync(this); + _la = _input.LA(1); + do { + { + { + setState(416); + lexerElement(); + } + } + setState(419); + _errHandler.sync(this); + _la = _input.LA(1); + } while ((((_la) & ~0x3f) == 0 && ((1L << _la) & 2533283380332814L) != 0)); + } + } catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } finally { + exitRule(); + } + return _localctx; + } + + @SuppressWarnings("CheckReturnValue") + public static class LexerElementContext extends ParserRuleContext { + public LabeledLexerElementContext labeledLexerElement() { + return getRuleContext(LabeledLexerElementContext.class, 0); + } + + public EbnfSuffixContext ebnfSuffix() { + return getRuleContext(EbnfSuffixContext.class, 0); + } + + public LexerAtomContext lexerAtom() { + return getRuleContext(LexerAtomContext.class, 0); + } + + public LexerBlockContext lexerBlock() { + return getRuleContext(LexerBlockContext.class, 0); + } + + public ActionBlockContext actionBlock() { + return getRuleContext(ActionBlockContext.class, 0); + } + + public TerminalNode QUESTION() { + return getToken(ANTLRv4Parser.QUESTION, 0); + } + + public LexerElementContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + + @Override + public int getRuleIndex() { + return RULE_lexerElement; + } + + @Override + public void enterRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).enterLexerElement(this); + } + + @Override + public void exitRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).exitLexerElement(this); + } + } + + public final LexerElementContext lexerElement() throws RecognitionException { + LexerElementContext _localctx = new LexerElementContext(_ctx, getState()); + enterRule(_localctx, 76, RULE_lexerElement); + int _la; + try { + setState(437); + _errHandler.sync(this); + switch (getInterpreter().adaptivePredict(_input, 45, _ctx)) { + case 1: + enterOuterAlt(_localctx, 1); + { + setState(421); + labeledLexerElement(); + setState(423); + _errHandler.sync(this); + _la = _input.LA(1); + if ((((_la) & ~0x3f) == 0 && ((1L << _la) & 24189255811072L) != 0)) { + { + setState(422); + ebnfSuffix(); + } + } + } + break; + case 2: + enterOuterAlt(_localctx, 2); + { + setState(425); + lexerAtom(); + setState(427); + _errHandler.sync(this); + _la = _input.LA(1); + if ((((_la) & ~0x3f) == 0 && ((1L << _la) & 24189255811072L) != 0)) { + { + setState(426); + ebnfSuffix(); + } + } + } + break; + case 3: + enterOuterAlt(_localctx, 3); + { + setState(429); + lexerBlock(); + setState(431); + _errHandler.sync(this); + _la = _input.LA(1); + if ((((_la) & ~0x3f) == 0 && ((1L << _la) & 24189255811072L) != 0)) { + { + setState(430); + ebnfSuffix(); + } + } + } + break; + case 4: + enterOuterAlt(_localctx, 4); + { + setState(433); + actionBlock(); + setState(435); + _errHandler.sync(this); + _la = _input.LA(1); + if (_la == QUESTION) { + { + setState(434); + match(QUESTION); + } + } + } + break; + } + } catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } finally { + exitRule(); + } + return _localctx; + } + + @SuppressWarnings("CheckReturnValue") + public static class LabeledLexerElementContext extends ParserRuleContext { + public IdentifierContext identifier() { + return getRuleContext(IdentifierContext.class, 0); + } + + public TerminalNode ASSIGN() { + return getToken(ANTLRv4Parser.ASSIGN, 0); + } + + public TerminalNode PLUS_ASSIGN() { + return getToken(ANTLRv4Parser.PLUS_ASSIGN, 0); + } + + public LexerAtomContext lexerAtom() { + return getRuleContext(LexerAtomContext.class, 0); + } + + public LexerBlockContext lexerBlock() { + return getRuleContext(LexerBlockContext.class, 0); + } + + public LabeledLexerElementContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + + @Override + public int getRuleIndex() { + return RULE_labeledLexerElement; + } + + @Override + public void enterRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).enterLabeledLexerElement(this); + } + + @Override + public void exitRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).exitLabeledLexerElement(this); + } + } + + public final LabeledLexerElementContext labeledLexerElement() throws RecognitionException { + LabeledLexerElementContext _localctx = new LabeledLexerElementContext(_ctx, getState()); + enterRule(_localctx, 78, RULE_labeledLexerElement); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(439); + identifier(); + setState(440); + _la = _input.LA(1); + if (!(_la == ASSIGN || _la == PLUS_ASSIGN)) { + _errHandler.recoverInline(this); + } else { + if (_input.LA(1) == Token.EOF) matchedEOF = true; + _errHandler.reportMatch(this); + consume(); + } + setState(443); + _errHandler.sync(this); + switch (_input.LA(1)) { + case TOKEN_REF: + case LEXER_CHAR_SET: + case STRING_LITERAL: + case DOT: + case NOT: + { + setState(441); + lexerAtom(); + } + break; + case LPAREN: + { + setState(442); + lexerBlock(); + } + break; + default: + throw new NoViableAltException(this); + } + } + } catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } finally { + exitRule(); + } + return _localctx; + } + + @SuppressWarnings("CheckReturnValue") + public static class LexerBlockContext extends ParserRuleContext { + public TerminalNode LPAREN() { + return getToken(ANTLRv4Parser.LPAREN, 0); + } + + public LexerAltListContext lexerAltList() { + return getRuleContext(LexerAltListContext.class, 0); + } + + public TerminalNode RPAREN() { + return getToken(ANTLRv4Parser.RPAREN, 0); + } + + public LexerBlockContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + + @Override + public int getRuleIndex() { + return RULE_lexerBlock; + } + + @Override + public void enterRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).enterLexerBlock(this); + } + + @Override + public void exitRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).exitLexerBlock(this); + } + } + + public final LexerBlockContext lexerBlock() throws RecognitionException { + LexerBlockContext _localctx = new LexerBlockContext(_ctx, getState()); + enterRule(_localctx, 80, RULE_lexerBlock); + try { + enterOuterAlt(_localctx, 1); + { + setState(445); + match(LPAREN); + setState(446); + lexerAltList(); + setState(447); + match(RPAREN); + } + } catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } finally { + exitRule(); + } + return _localctx; + } + + @SuppressWarnings("CheckReturnValue") + public static class LexerCommandsContext extends ParserRuleContext { + public TerminalNode RARROW() { + return getToken(ANTLRv4Parser.RARROW, 0); + } + + public List lexerCommand() { + return getRuleContexts(LexerCommandContext.class); + } + + public LexerCommandContext lexerCommand(int i) { + return getRuleContext(LexerCommandContext.class, i); + } + + public List COMMA() { + return getTokens(ANTLRv4Parser.COMMA); + } + + public TerminalNode COMMA(int i) { + return getToken(ANTLRv4Parser.COMMA, i); + } + + public LexerCommandsContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + + @Override + public int getRuleIndex() { + return RULE_lexerCommands; + } + + @Override + public void enterRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).enterLexerCommands(this); + } + + @Override + public void exitRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).exitLexerCommands(this); + } + } + + public final LexerCommandsContext lexerCommands() throws RecognitionException { + LexerCommandsContext _localctx = new LexerCommandsContext(_ctx, getState()); + enterRule(_localctx, 82, RULE_lexerCommands); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(449); + match(RARROW); + setState(450); + lexerCommand(); + setState(455); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la == COMMA) { + { + { + setState(451); + match(COMMA); + setState(452); + lexerCommand(); + } + } + setState(457); + _errHandler.sync(this); + _la = _input.LA(1); + } + } + } catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } finally { + exitRule(); + } + return _localctx; + } + + @SuppressWarnings("CheckReturnValue") + public static class LexerCommandContext extends ParserRuleContext { + public LexerCommandNameContext lexerCommandName() { + return getRuleContext(LexerCommandNameContext.class, 0); + } + + public TerminalNode LPAREN() { + return getToken(ANTLRv4Parser.LPAREN, 0); + } + + public LexerCommandExprContext lexerCommandExpr() { + return getRuleContext(LexerCommandExprContext.class, 0); + } + + public TerminalNode RPAREN() { + return getToken(ANTLRv4Parser.RPAREN, 0); + } + + public LexerCommandContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + + @Override + public int getRuleIndex() { + return RULE_lexerCommand; + } + + @Override + public void enterRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).enterLexerCommand(this); + } + + @Override + public void exitRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).exitLexerCommand(this); + } + } + + public final LexerCommandContext lexerCommand() throws RecognitionException { + LexerCommandContext _localctx = new LexerCommandContext(_ctx, getState()); + enterRule(_localctx, 84, RULE_lexerCommand); + try { + setState(464); + _errHandler.sync(this); + switch (getInterpreter().adaptivePredict(_input, 48, _ctx)) { + case 1: + enterOuterAlt(_localctx, 1); + { + setState(458); + lexerCommandName(); + setState(459); + match(LPAREN); + setState(460); + lexerCommandExpr(); + setState(461); + match(RPAREN); + } + break; + case 2: + enterOuterAlt(_localctx, 2); + { + setState(463); + lexerCommandName(); + } + break; + } + } catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } finally { + exitRule(); + } + return _localctx; + } + + @SuppressWarnings("CheckReturnValue") + public static class LexerCommandNameContext extends ParserRuleContext { + public IdentifierContext identifier() { + return getRuleContext(IdentifierContext.class, 0); + } + + public TerminalNode MODE() { + return getToken(ANTLRv4Parser.MODE, 0); + } + + public LexerCommandNameContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + + @Override + public int getRuleIndex() { + return RULE_lexerCommandName; + } + + @Override + public void enterRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).enterLexerCommandName(this); + } + + @Override + public void exitRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).exitLexerCommandName(this); + } + } + + public final LexerCommandNameContext lexerCommandName() throws RecognitionException { + LexerCommandNameContext _localctx = new LexerCommandNameContext(_ctx, getState()); + enterRule(_localctx, 86, RULE_lexerCommandName); + try { + setState(468); + _errHandler.sync(this); + switch (_input.LA(1)) { + case TOKEN_REF: + case RULE_REF: + enterOuterAlt(_localctx, 1); + { + setState(466); + identifier(); + } + break; + case MODE: + enterOuterAlt(_localctx, 2); + { + setState(467); + match(MODE); + } + break; + default: + throw new NoViableAltException(this); + } + } catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } finally { + exitRule(); + } + return _localctx; + } + + @SuppressWarnings("CheckReturnValue") + public static class LexerCommandExprContext extends ParserRuleContext { + public IdentifierContext identifier() { + return getRuleContext(IdentifierContext.class, 0); + } + + public TerminalNode INT() { + return getToken(ANTLRv4Parser.INT, 0); + } + + public LexerCommandExprContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + + @Override + public int getRuleIndex() { + return RULE_lexerCommandExpr; + } + + @Override + public void enterRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).enterLexerCommandExpr(this); + } + + @Override + public void exitRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).exitLexerCommandExpr(this); + } + } + + public final LexerCommandExprContext lexerCommandExpr() throws RecognitionException { + LexerCommandExprContext _localctx = new LexerCommandExprContext(_ctx, getState()); + enterRule(_localctx, 88, RULE_lexerCommandExpr); + try { + setState(472); + _errHandler.sync(this); + switch (_input.LA(1)) { + case TOKEN_REF: + case RULE_REF: + enterOuterAlt(_localctx, 1); + { + setState(470); + identifier(); + } + break; + case INT: + enterOuterAlt(_localctx, 2); + { + setState(471); + match(INT); + } + break; + default: + throw new NoViableAltException(this); + } + } catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } finally { + exitRule(); + } + return _localctx; + } + + @SuppressWarnings("CheckReturnValue") + public static class AltListContext extends ParserRuleContext { + public List alternative() { + return getRuleContexts(AlternativeContext.class); + } + + public AlternativeContext alternative(int i) { + return getRuleContext(AlternativeContext.class, i); + } + + public List OR() { + return getTokens(ANTLRv4Parser.OR); + } + + public TerminalNode OR(int i) { + return getToken(ANTLRv4Parser.OR, i); + } + + public AltListContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + + @Override + public int getRuleIndex() { + return RULE_altList; + } + + @Override + public void enterRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).enterAltList(this); + } + + @Override + public void exitRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).exitAltList(this); + } + } + + public final AltListContext altList() throws RecognitionException { + AltListContext _localctx = new AltListContext(_ctx, getState()); + enterRule(_localctx, 90, RULE_altList); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(474); + alternative(); + setState(479); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la == OR) { + { + { + setState(475); + match(OR); + setState(476); + alternative(); + } + } + setState(481); + _errHandler.sync(this); + _la = _input.LA(1); + } + } + } catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } finally { + exitRule(); + } + return _localctx; + } + + @SuppressWarnings("CheckReturnValue") + public static class AlternativeContext extends ParserRuleContext { + public ElementOptionsContext elementOptions() { + return getRuleContext(ElementOptionsContext.class, 0); + } + + public List element() { + return getRuleContexts(ElementContext.class); + } + + public ElementContext element(int i) { + return getRuleContext(ElementContext.class, i); + } + + public AlternativeContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + + @Override + public int getRuleIndex() { + return RULE_alternative; + } + + @Override + public void enterRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).enterAlternative(this); + } + + @Override + public void exitRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).exitAlternative(this); + } + } + + public final AlternativeContext alternative() throws RecognitionException { + AlternativeContext _localctx = new AlternativeContext(_ctx, getState()); + enterRule(_localctx, 92, RULE_alternative); + int _la; + try { + setState(491); + _errHandler.sync(this); + switch (_input.LA(1)) { + case TOKEN_REF: + case RULE_REF: + case STRING_LITERAL: + case BEGIN_ACTION: + case LPAREN: + case LT: + case DOT: + case NOT: + enterOuterAlt(_localctx, 1); + { + setState(483); + _errHandler.sync(this); + _la = _input.LA(1); + if (_la == LT) { + { + setState(482); + elementOptions(); + } + } + + setState(486); + _errHandler.sync(this); + _la = _input.LA(1); + do { + { + { + setState(485); + element(); + } + } + setState(488); + _errHandler.sync(this); + _la = _input.LA(1); + } while ((((_la) & ~0x3f) == 0 && ((1L << _la) & 2533283380332806L) != 0)); + } + break; + case SEMI: + case RPAREN: + case OR: + case POUND: + enterOuterAlt(_localctx, 2); + { + } + break; + default: + throw new NoViableAltException(this); + } + } catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } finally { + exitRule(); + } + return _localctx; + } + + @SuppressWarnings("CheckReturnValue") + public static class ElementContext extends ParserRuleContext { + public LabeledElementContext labeledElement() { + return getRuleContext(LabeledElementContext.class, 0); + } + + public EbnfSuffixContext ebnfSuffix() { + return getRuleContext(EbnfSuffixContext.class, 0); + } + + public AtomContext atom() { + return getRuleContext(AtomContext.class, 0); + } + + public EbnfContext ebnf() { + return getRuleContext(EbnfContext.class, 0); + } + + public ActionBlockContext actionBlock() { + return getRuleContext(ActionBlockContext.class, 0); + } + + public TerminalNode QUESTION() { + return getToken(ANTLRv4Parser.QUESTION, 0); + } + + public ElementContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + + @Override + public int getRuleIndex() { + return RULE_element; + } + + @Override + public void enterRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).enterElement(this); + } + + @Override + public void exitRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).exitElement(this); + } + } + + public final ElementContext element() throws RecognitionException { + ElementContext _localctx = new ElementContext(_ctx, getState()); + enterRule(_localctx, 94, RULE_element); + int _la; + try { + setState(508); + _errHandler.sync(this); + switch (getInterpreter().adaptivePredict(_input, 58, _ctx)) { + case 1: + enterOuterAlt(_localctx, 1); + { + setState(493); + labeledElement(); + setState(496); + _errHandler.sync(this); + switch (_input.LA(1)) { + case QUESTION: + case STAR: + case PLUS: + { + setState(494); + ebnfSuffix(); + } + break; + case TOKEN_REF: + case RULE_REF: + case STRING_LITERAL: + case BEGIN_ACTION: + case SEMI: + case LPAREN: + case RPAREN: + case OR: + case DOT: + case POUND: + case NOT: + { + } + break; + default: + throw new NoViableAltException(this); + } + } + break; + case 2: + enterOuterAlt(_localctx, 2); + { + setState(498); + atom(); + setState(501); + _errHandler.sync(this); + switch (_input.LA(1)) { + case QUESTION: + case STAR: + case PLUS: + { + setState(499); + ebnfSuffix(); + } + break; + case TOKEN_REF: + case RULE_REF: + case STRING_LITERAL: + case BEGIN_ACTION: + case SEMI: + case LPAREN: + case RPAREN: + case OR: + case DOT: + case POUND: + case NOT: + { + } + break; + default: + throw new NoViableAltException(this); + } + } + break; + case 3: + enterOuterAlt(_localctx, 3); + { + setState(503); + ebnf(); + } + break; + case 4: + enterOuterAlt(_localctx, 4); + { + setState(504); + actionBlock(); + setState(506); + _errHandler.sync(this); + _la = _input.LA(1); + if (_la == QUESTION) { + { + setState(505); + match(QUESTION); + } + } + } + break; + } + } catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } finally { + exitRule(); + } + return _localctx; + } + + @SuppressWarnings("CheckReturnValue") + public static class LabeledElementContext extends ParserRuleContext { + public IdentifierContext identifier() { + return getRuleContext(IdentifierContext.class, 0); + } + + public TerminalNode ASSIGN() { + return getToken(ANTLRv4Parser.ASSIGN, 0); + } + + public TerminalNode PLUS_ASSIGN() { + return getToken(ANTLRv4Parser.PLUS_ASSIGN, 0); + } + + public AtomContext atom() { + return getRuleContext(AtomContext.class, 0); + } + + public BlockContext block() { + return getRuleContext(BlockContext.class, 0); + } + + public LabeledElementContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + + @Override + public int getRuleIndex() { + return RULE_labeledElement; + } + + @Override + public void enterRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).enterLabeledElement(this); + } + + @Override + public void exitRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).exitLabeledElement(this); + } + } + + public final LabeledElementContext labeledElement() throws RecognitionException { + LabeledElementContext _localctx = new LabeledElementContext(_ctx, getState()); + enterRule(_localctx, 96, RULE_labeledElement); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(510); + identifier(); + setState(511); + _la = _input.LA(1); + if (!(_la == ASSIGN || _la == PLUS_ASSIGN)) { + _errHandler.recoverInline(this); + } else { + if (_input.LA(1) == Token.EOF) matchedEOF = true; + _errHandler.reportMatch(this); + consume(); + } + setState(514); + _errHandler.sync(this); + switch (_input.LA(1)) { + case TOKEN_REF: + case RULE_REF: + case STRING_LITERAL: + case DOT: + case NOT: + { + setState(512); + atom(); + } + break; + case LPAREN: + { + setState(513); + block(); + } + break; + default: + throw new NoViableAltException(this); + } + } + } catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } finally { + exitRule(); + } + return _localctx; + } + + @SuppressWarnings("CheckReturnValue") + public static class EbnfContext extends ParserRuleContext { + public BlockContext block() { + return getRuleContext(BlockContext.class, 0); + } + + public BlockSuffixContext blockSuffix() { + return getRuleContext(BlockSuffixContext.class, 0); + } + + public EbnfContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + + @Override + public int getRuleIndex() { + return RULE_ebnf; + } + + @Override + public void enterRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).enterEbnf(this); + } + + @Override + public void exitRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).exitEbnf(this); + } + } + + public final EbnfContext ebnf() throws RecognitionException { + EbnfContext _localctx = new EbnfContext(_ctx, getState()); + enterRule(_localctx, 98, RULE_ebnf); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(516); + block(); + setState(518); + _errHandler.sync(this); + _la = _input.LA(1); + if ((((_la) & ~0x3f) == 0 && ((1L << _la) & 24189255811072L) != 0)) { + { + setState(517); + blockSuffix(); + } + } + } + } catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } finally { + exitRule(); + } + return _localctx; + } + + @SuppressWarnings("CheckReturnValue") + public static class BlockSuffixContext extends ParserRuleContext { + public EbnfSuffixContext ebnfSuffix() { + return getRuleContext(EbnfSuffixContext.class, 0); + } + + public BlockSuffixContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + + @Override + public int getRuleIndex() { + return RULE_blockSuffix; + } + + @Override + public void enterRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).enterBlockSuffix(this); + } + + @Override + public void exitRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).exitBlockSuffix(this); + } + } + + public final BlockSuffixContext blockSuffix() throws RecognitionException { + BlockSuffixContext _localctx = new BlockSuffixContext(_ctx, getState()); + enterRule(_localctx, 100, RULE_blockSuffix); + try { + enterOuterAlt(_localctx, 1); + { + setState(520); + ebnfSuffix(); + } + } catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } finally { + exitRule(); + } + return _localctx; + } + + @SuppressWarnings("CheckReturnValue") + public static class EbnfSuffixContext extends ParserRuleContext { + public List QUESTION() { + return getTokens(ANTLRv4Parser.QUESTION); + } + + public TerminalNode QUESTION(int i) { + return getToken(ANTLRv4Parser.QUESTION, i); + } + + public TerminalNode STAR() { + return getToken(ANTLRv4Parser.STAR, 0); + } + + public TerminalNode PLUS() { + return getToken(ANTLRv4Parser.PLUS, 0); + } + + public EbnfSuffixContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + + @Override + public int getRuleIndex() { + return RULE_ebnfSuffix; + } + + @Override + public void enterRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).enterEbnfSuffix(this); + } + + @Override + public void exitRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).exitEbnfSuffix(this); + } + } + + public final EbnfSuffixContext ebnfSuffix() throws RecognitionException { + EbnfSuffixContext _localctx = new EbnfSuffixContext(_ctx, getState()); + enterRule(_localctx, 102, RULE_ebnfSuffix); + int _la; + try { + setState(534); + _errHandler.sync(this); + switch (_input.LA(1)) { + case QUESTION: + enterOuterAlt(_localctx, 1); + { + setState(522); + match(QUESTION); + setState(524); + _errHandler.sync(this); + _la = _input.LA(1); + if (_la == QUESTION) { + { + setState(523); + match(QUESTION); + } + } + } + break; + case STAR: + enterOuterAlt(_localctx, 2); + { + setState(526); + match(STAR); + setState(528); + _errHandler.sync(this); + _la = _input.LA(1); + if (_la == QUESTION) { + { + setState(527); + match(QUESTION); + } + } + } + break; + case PLUS: + enterOuterAlt(_localctx, 3); + { + setState(530); + match(PLUS); + setState(532); + _errHandler.sync(this); + _la = _input.LA(1); + if (_la == QUESTION) { + { + setState(531); + match(QUESTION); + } + } + } + break; + default: + throw new NoViableAltException(this); + } + } catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } finally { + exitRule(); + } + return _localctx; + } + + @SuppressWarnings("CheckReturnValue") + public static class LexerAtomContext extends ParserRuleContext { + public CharacterRangeContext characterRange() { + return getRuleContext(CharacterRangeContext.class, 0); + } + + public TerminalContext terminal() { + return getRuleContext(TerminalContext.class, 0); + } + + public NotSetContext notSet() { + return getRuleContext(NotSetContext.class, 0); + } + + public TerminalNode LEXER_CHAR_SET() { + return getToken(ANTLRv4Parser.LEXER_CHAR_SET, 0); + } + + public TerminalNode DOT() { + return getToken(ANTLRv4Parser.DOT, 0); + } + + public ElementOptionsContext elementOptions() { + return getRuleContext(ElementOptionsContext.class, 0); + } + + public LexerAtomContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + + @Override + public int getRuleIndex() { + return RULE_lexerAtom; + } + + @Override + public void enterRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).enterLexerAtom(this); + } + + @Override + public void exitRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).exitLexerAtom(this); + } + } + + public final LexerAtomContext lexerAtom() throws RecognitionException { + LexerAtomContext _localctx = new LexerAtomContext(_ctx, getState()); + enterRule(_localctx, 104, RULE_lexerAtom); + int _la; + try { + setState(544); + _errHandler.sync(this); + switch (getInterpreter().adaptivePredict(_input, 66, _ctx)) { + case 1: + enterOuterAlt(_localctx, 1); + { + setState(536); + characterRange(); + } + break; + case 2: + enterOuterAlt(_localctx, 2); + { + setState(537); + terminal(); + } + break; + case 3: + enterOuterAlt(_localctx, 3); + { + setState(538); + notSet(); + } + break; + case 4: + enterOuterAlt(_localctx, 4); + { + setState(539); + match(LEXER_CHAR_SET); + } + break; + case 5: + enterOuterAlt(_localctx, 5); + { + setState(540); + match(DOT); + setState(542); + _errHandler.sync(this); + _la = _input.LA(1); + if (_la == LT) { + { + setState(541); + elementOptions(); + } + } + } + break; + } + } catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } finally { + exitRule(); + } + return _localctx; + } + + @SuppressWarnings("CheckReturnValue") + public static class AtomContext extends ParserRuleContext { + public TerminalContext terminal() { + return getRuleContext(TerminalContext.class, 0); + } + + public RulerefContext ruleref() { + return getRuleContext(RulerefContext.class, 0); + } + + public NotSetContext notSet() { + return getRuleContext(NotSetContext.class, 0); + } + + public TerminalNode DOT() { + return getToken(ANTLRv4Parser.DOT, 0); + } + + public ElementOptionsContext elementOptions() { + return getRuleContext(ElementOptionsContext.class, 0); + } + + public AtomContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + + @Override + public int getRuleIndex() { + return RULE_atom; + } + + @Override + public void enterRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).enterAtom(this); + } + + @Override + public void exitRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).exitAtom(this); + } + } + + public final AtomContext atom() throws RecognitionException { + AtomContext _localctx = new AtomContext(_ctx, getState()); + enterRule(_localctx, 106, RULE_atom); + int _la; + try { + setState(553); + _errHandler.sync(this); + switch (_input.LA(1)) { + case TOKEN_REF: + case STRING_LITERAL: + enterOuterAlt(_localctx, 1); + { + setState(546); + terminal(); + } + break; + case RULE_REF: + enterOuterAlt(_localctx, 2); + { + setState(547); + ruleref(); + } + break; + case NOT: + enterOuterAlt(_localctx, 3); + { + setState(548); + notSet(); + } + break; + case DOT: + enterOuterAlt(_localctx, 4); + { + setState(549); + match(DOT); + setState(551); + _errHandler.sync(this); + _la = _input.LA(1); + if (_la == LT) { + { + setState(550); + elementOptions(); + } + } + } + break; + default: + throw new NoViableAltException(this); + } + } catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } finally { + exitRule(); + } + return _localctx; + } + + @SuppressWarnings("CheckReturnValue") + public static class NotSetContext extends ParserRuleContext { + public TerminalNode NOT() { + return getToken(ANTLRv4Parser.NOT, 0); + } + + public SetElementContext setElement() { + return getRuleContext(SetElementContext.class, 0); + } + + public BlockSetContext blockSet() { + return getRuleContext(BlockSetContext.class, 0); + } + + public NotSetContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + + @Override + public int getRuleIndex() { + return RULE_notSet; + } + + @Override + public void enterRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).enterNotSet(this); + } + + @Override + public void exitRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).exitNotSet(this); + } + } + + public final NotSetContext notSet() throws RecognitionException { + NotSetContext _localctx = new NotSetContext(_ctx, getState()); + enterRule(_localctx, 108, RULE_notSet); + try { + setState(559); + _errHandler.sync(this); + switch (getInterpreter().adaptivePredict(_input, 69, _ctx)) { + case 1: + enterOuterAlt(_localctx, 1); + { + setState(555); + match(NOT); + setState(556); + setElement(); + } + break; + case 2: + enterOuterAlt(_localctx, 2); + { + setState(557); + match(NOT); + setState(558); + blockSet(); + } + break; + } + } catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } finally { + exitRule(); + } + return _localctx; + } + + @SuppressWarnings("CheckReturnValue") + public static class BlockSetContext extends ParserRuleContext { + public TerminalNode LPAREN() { + return getToken(ANTLRv4Parser.LPAREN, 0); + } + + public List setElement() { + return getRuleContexts(SetElementContext.class); + } + + public SetElementContext setElement(int i) { + return getRuleContext(SetElementContext.class, i); + } + + public TerminalNode RPAREN() { + return getToken(ANTLRv4Parser.RPAREN, 0); + } + + public List OR() { + return getTokens(ANTLRv4Parser.OR); + } + + public TerminalNode OR(int i) { + return getToken(ANTLRv4Parser.OR, i); + } + + public BlockSetContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + + @Override + public int getRuleIndex() { + return RULE_blockSet; + } + + @Override + public void enterRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).enterBlockSet(this); + } + + @Override + public void exitRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).exitBlockSet(this); + } + } + + public final BlockSetContext blockSet() throws RecognitionException { + BlockSetContext _localctx = new BlockSetContext(_ctx, getState()); + enterRule(_localctx, 110, RULE_blockSet); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(561); + match(LPAREN); + setState(562); + setElement(); + setState(567); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la == OR) { + { + { + setState(563); + match(OR); + setState(564); + setElement(); + } + } + setState(569); + _errHandler.sync(this); + _la = _input.LA(1); + } + setState(570); + match(RPAREN); + } + } catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } finally { + exitRule(); + } + return _localctx; + } + + @SuppressWarnings("CheckReturnValue") + public static class SetElementContext extends ParserRuleContext { + public TerminalNode TOKEN_REF() { + return getToken(ANTLRv4Parser.TOKEN_REF, 0); + } + + public ElementOptionsContext elementOptions() { + return getRuleContext(ElementOptionsContext.class, 0); + } + + public TerminalNode STRING_LITERAL() { + return getToken(ANTLRv4Parser.STRING_LITERAL, 0); + } + + public CharacterRangeContext characterRange() { + return getRuleContext(CharacterRangeContext.class, 0); + } + + public TerminalNode LEXER_CHAR_SET() { + return getToken(ANTLRv4Parser.LEXER_CHAR_SET, 0); + } + + public SetElementContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + + @Override + public int getRuleIndex() { + return RULE_setElement; + } + + @Override + public void enterRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).enterSetElement(this); + } + + @Override + public void exitRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).exitSetElement(this); + } + } + + public final SetElementContext setElement() throws RecognitionException { + SetElementContext _localctx = new SetElementContext(_ctx, getState()); + enterRule(_localctx, 112, RULE_setElement); + int _la; + try { + setState(582); + _errHandler.sync(this); + switch (getInterpreter().adaptivePredict(_input, 73, _ctx)) { + case 1: + enterOuterAlt(_localctx, 1); + { + setState(572); + match(TOKEN_REF); + setState(574); + _errHandler.sync(this); + _la = _input.LA(1); + if (_la == LT) { + { + setState(573); + elementOptions(); + } + } + } + break; + case 2: + enterOuterAlt(_localctx, 2); + { + setState(576); + match(STRING_LITERAL); + setState(578); + _errHandler.sync(this); + _la = _input.LA(1); + if (_la == LT) { + { + setState(577); + elementOptions(); + } + } + } + break; + case 3: + enterOuterAlt(_localctx, 3); + { + setState(580); + characterRange(); + } + break; + case 4: + enterOuterAlt(_localctx, 4); + { + setState(581); + match(LEXER_CHAR_SET); + } + break; + } + } catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } finally { + exitRule(); + } + return _localctx; + } + + @SuppressWarnings("CheckReturnValue") + public static class BlockContext extends ParserRuleContext { + public TerminalNode LPAREN() { + return getToken(ANTLRv4Parser.LPAREN, 0); + } + + public AltListContext altList() { + return getRuleContext(AltListContext.class, 0); + } + + public TerminalNode RPAREN() { + return getToken(ANTLRv4Parser.RPAREN, 0); + } + + public TerminalNode COLON() { + return getToken(ANTLRv4Parser.COLON, 0); + } + + public OptionsSpecContext optionsSpec() { + return getRuleContext(OptionsSpecContext.class, 0); + } + + public List ruleAction() { + return getRuleContexts(RuleActionContext.class); + } + + public RuleActionContext ruleAction(int i) { + return getRuleContext(RuleActionContext.class, i); + } + + public BlockContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + + @Override + public int getRuleIndex() { + return RULE_block; + } + + @Override + public void enterRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).enterBlock(this); + } + + @Override + public void exitRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).exitBlock(this); + } + } + + public final BlockContext block() throws RecognitionException { + BlockContext _localctx = new BlockContext(_ctx, getState()); + enterRule(_localctx, 114, RULE_block); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(584); + match(LPAREN); + setState(595); + _errHandler.sync(this); + _la = _input.LA(1); + if ((((_la) & ~0x3f) == 0 && ((1L << _la) & 562950490296320L) != 0)) { + { + setState(586); + _errHandler.sync(this); + _la = _input.LA(1); + if (_la == OPTIONS) { + { + setState(585); + optionsSpec(); + } + } + + setState(591); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la == AT) { + { + { + setState(588); + ruleAction(); + } + } + setState(593); + _errHandler.sync(this); + _la = _input.LA(1); + } + setState(594); + match(COLON); + } + } + + setState(597); + altList(); + setState(598); + match(RPAREN); + } + } catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } finally { + exitRule(); + } + return _localctx; + } + + @SuppressWarnings("CheckReturnValue") + public static class RulerefContext extends ParserRuleContext { + public TerminalNode RULE_REF() { + return getToken(ANTLRv4Parser.RULE_REF, 0); + } + + public ArgActionBlockContext argActionBlock() { + return getRuleContext(ArgActionBlockContext.class, 0); + } + + public ElementOptionsContext elementOptions() { + return getRuleContext(ElementOptionsContext.class, 0); + } + + public RulerefContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + + @Override + public int getRuleIndex() { + return RULE_ruleref; + } + + @Override + public void enterRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).enterRuleref(this); + } + + @Override + public void exitRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).exitRuleref(this); + } + } + + public final RulerefContext ruleref() throws RecognitionException { + RulerefContext _localctx = new RulerefContext(_ctx, getState()); + enterRule(_localctx, 116, RULE_ruleref); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(600); + match(RULE_REF); + setState(602); + _errHandler.sync(this); + _la = _input.LA(1); + if (_la == BEGIN_ARGUMENT) { + { + setState(601); + argActionBlock(); + } + } + + setState(605); + _errHandler.sync(this); + _la = _input.LA(1); + if (_la == LT) { + { + setState(604); + elementOptions(); + } + } + } + } catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } finally { + exitRule(); + } + return _localctx; + } + + @SuppressWarnings("CheckReturnValue") + public static class CharacterRangeContext extends ParserRuleContext { + public List STRING_LITERAL() { + return getTokens(ANTLRv4Parser.STRING_LITERAL); + } + + public TerminalNode STRING_LITERAL(int i) { + return getToken(ANTLRv4Parser.STRING_LITERAL, i); + } + + public TerminalNode RANGE() { + return getToken(ANTLRv4Parser.RANGE, 0); + } + + public CharacterRangeContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + + @Override + public int getRuleIndex() { + return RULE_characterRange; + } + + @Override + public void enterRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).enterCharacterRange(this); + } + + @Override + public void exitRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).exitCharacterRange(this); + } + } + + public final CharacterRangeContext characterRange() throws RecognitionException { + CharacterRangeContext _localctx = new CharacterRangeContext(_ctx, getState()); + enterRule(_localctx, 118, RULE_characterRange); + try { + enterOuterAlt(_localctx, 1); + { + setState(607); + match(STRING_LITERAL); + setState(608); + match(RANGE); + setState(609); + match(STRING_LITERAL); + } + } catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } finally { + exitRule(); + } + return _localctx; + } + + @SuppressWarnings("CheckReturnValue") + public static class TerminalContext extends ParserRuleContext { + public TerminalNode TOKEN_REF() { + return getToken(ANTLRv4Parser.TOKEN_REF, 0); + } + + public ElementOptionsContext elementOptions() { + return getRuleContext(ElementOptionsContext.class, 0); + } + + public TerminalNode STRING_LITERAL() { + return getToken(ANTLRv4Parser.STRING_LITERAL, 0); + } + + public TerminalContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + + @Override + public int getRuleIndex() { + return RULE_terminal; + } + + @Override + public void enterRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).enterTerminal(this); + } + + @Override + public void exitRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).exitTerminal(this); + } + } + + public final TerminalContext terminal() throws RecognitionException { + TerminalContext _localctx = new TerminalContext(_ctx, getState()); + enterRule(_localctx, 120, RULE_terminal); + int _la; + try { + setState(619); + _errHandler.sync(this); + switch (_input.LA(1)) { + case TOKEN_REF: + enterOuterAlt(_localctx, 1); + { + setState(611); + match(TOKEN_REF); + setState(613); + _errHandler.sync(this); + _la = _input.LA(1); + if (_la == LT) { + { + setState(612); + elementOptions(); + } + } + } + break; + case STRING_LITERAL: + enterOuterAlt(_localctx, 2); + { + setState(615); + match(STRING_LITERAL); + setState(617); + _errHandler.sync(this); + _la = _input.LA(1); + if (_la == LT) { + { + setState(616); + elementOptions(); + } + } + } + break; + default: + throw new NoViableAltException(this); + } + } catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } finally { + exitRule(); + } + return _localctx; + } + + @SuppressWarnings("CheckReturnValue") + public static class ElementOptionsContext extends ParserRuleContext { + public TerminalNode LT() { + return getToken(ANTLRv4Parser.LT, 0); + } + + public List elementOption() { + return getRuleContexts(ElementOptionContext.class); + } + + public ElementOptionContext elementOption(int i) { + return getRuleContext(ElementOptionContext.class, i); + } + + public TerminalNode GT() { + return getToken(ANTLRv4Parser.GT, 0); + } + + public List COMMA() { + return getTokens(ANTLRv4Parser.COMMA); + } + + public TerminalNode COMMA(int i) { + return getToken(ANTLRv4Parser.COMMA, i); + } + + public ElementOptionsContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + + @Override + public int getRuleIndex() { + return RULE_elementOptions; + } + + @Override + public void enterRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).enterElementOptions(this); + } + + @Override + public void exitRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).exitElementOptions(this); + } + } + + public final ElementOptionsContext elementOptions() throws RecognitionException { + ElementOptionsContext _localctx = new ElementOptionsContext(_ctx, getState()); + enterRule(_localctx, 122, RULE_elementOptions); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(621); + match(LT); + setState(622); + elementOption(); + setState(627); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la == COMMA) { + { + { + setState(623); + match(COMMA); + setState(624); + elementOption(); + } + } + setState(629); + _errHandler.sync(this); + _la = _input.LA(1); + } + setState(630); + match(GT); + } + } catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } finally { + exitRule(); + } + return _localctx; + } + + @SuppressWarnings("CheckReturnValue") + public static class ElementOptionContext extends ParserRuleContext { + public List identifier() { + return getRuleContexts(IdentifierContext.class); + } + + public IdentifierContext identifier(int i) { + return getRuleContext(IdentifierContext.class, i); + } + + public TerminalNode ASSIGN() { + return getToken(ANTLRv4Parser.ASSIGN, 0); + } + + public TerminalNode STRING_LITERAL() { + return getToken(ANTLRv4Parser.STRING_LITERAL, 0); + } + + public ElementOptionContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + + @Override + public int getRuleIndex() { + return RULE_elementOption; + } + + @Override + public void enterRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).enterElementOption(this); + } + + @Override + public void exitRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).exitElementOption(this); + } + } + + public final ElementOptionContext elementOption() throws RecognitionException { + ElementOptionContext _localctx = new ElementOptionContext(_ctx, getState()); + enterRule(_localctx, 124, RULE_elementOption); + try { + setState(639); + _errHandler.sync(this); + switch (getInterpreter().adaptivePredict(_input, 84, _ctx)) { + case 1: + enterOuterAlt(_localctx, 1); + { + setState(632); + identifier(); + } + break; + case 2: + enterOuterAlt(_localctx, 2); + { + setState(633); + identifier(); + setState(634); + match(ASSIGN); + setState(637); + _errHandler.sync(this); + switch (_input.LA(1)) { + case TOKEN_REF: + case RULE_REF: + { + setState(635); + identifier(); + } + break; + case STRING_LITERAL: + { + setState(636); + match(STRING_LITERAL); + } + break; + default: + throw new NoViableAltException(this); + } + } + break; + } + } catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } finally { + exitRule(); + } + return _localctx; + } + + @SuppressWarnings("CheckReturnValue") + public static class IdentifierContext extends ParserRuleContext { + public TerminalNode RULE_REF() { + return getToken(ANTLRv4Parser.RULE_REF, 0); + } + + public TerminalNode TOKEN_REF() { + return getToken(ANTLRv4Parser.TOKEN_REF, 0); + } + + public IdentifierContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + + @Override + public int getRuleIndex() { + return RULE_identifier; + } + + @Override + public void enterRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).enterIdentifier(this); + } + + @Override + public void exitRule(ParseTreeListener listener) { + if (listener instanceof ANTLRv4ParserListener) + ((ANTLRv4ParserListener) listener).exitIdentifier(this); + } + } + + public final IdentifierContext identifier() throws RecognitionException { + IdentifierContext _localctx = new IdentifierContext(_ctx, getState()); + enterRule(_localctx, 126, RULE_identifier); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(641); + _la = _input.LA(1); + if (!(_la == TOKEN_REF || _la == RULE_REF)) { + _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 final String _serializedATN = + "\u0004\u0001>\u0284\u0002\u0000\u0007\u0000\u0002\u0001\u0007\u0001\u0002" + + "\u0002\u0007\u0002\u0002\u0003\u0007\u0003\u0002\u0004\u0007\u0004\u0002" + + "\u0005\u0007\u0005\u0002\u0006\u0007\u0006\u0002\u0007\u0007\u0007\u0002" + + "\b\u0007\b\u0002\t\u0007\t\u0002\n\u0007\n\u0002\u000b\u0007\u000b\u0002" + + "\f\u0007\f\u0002\r\u0007\r\u0002\u000e\u0007\u000e\u0002\u000f\u0007\u000f" + + "\u0002\u0010\u0007\u0010\u0002\u0011\u0007\u0011\u0002\u0012\u0007\u0012" + + "\u0002\u0013\u0007\u0013\u0002\u0014\u0007\u0014\u0002\u0015\u0007\u0015" + + "\u0002\u0016\u0007\u0016\u0002\u0017\u0007\u0017\u0002\u0018\u0007\u0018" + + "\u0002\u0019\u0007\u0019\u0002\u001a\u0007\u001a\u0002\u001b\u0007\u001b" + + "\u0002\u001c\u0007\u001c\u0002\u001d\u0007\u001d\u0002\u001e\u0007\u001e" + + "\u0002\u001f\u0007\u001f\u0002 \u0007 \u0002!\u0007!\u0002\"\u0007\"\u0002" + + "#\u0007#\u0002$\u0007$\u0002%\u0007%\u0002&\u0007&\u0002\'\u0007\'\u0002" + + "(\u0007(\u0002)\u0007)\u0002*\u0007*\u0002+\u0007+\u0002,\u0007,\u0002" + + "-\u0007-\u0002.\u0007.\u0002/\u0007/\u00020\u00070\u00021\u00071\u0002" + + "2\u00072\u00023\u00073\u00024\u00074\u00025\u00075\u00026\u00076\u0002" + + "7\u00077\u00028\u00078\u00029\u00079\u0002:\u0007:\u0002;\u0007;\u0002" + + "<\u0007<\u0002=\u0007=\u0002>\u0007>\u0002?\u0007?\u0001\u0000\u0005\u0000" + + "\u0082\b\u0000\n\u0000\f\u0000\u0085\t\u0000\u0001\u0000\u0001\u0000\u0005" + + "\u0000\u0089\b\u0000\n\u0000\f\u0000\u008c\t\u0000\u0001\u0000\u0001\u0000" + + "\u0005\u0000\u0090\b\u0000\n\u0000\f\u0000\u0093\t\u0000\u0001\u0000\u0001" + + "\u0000\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0002\u0001" + + "\u0002\u0001\u0002\u0001\u0002\u0001\u0002\u0003\u0002\u00a0\b\u0002\u0001" + + "\u0003\u0001\u0003\u0001\u0003\u0001\u0003\u0001\u0003\u0003\u0003\u00a7" + + "\b\u0003\u0001\u0004\u0001\u0004\u0001\u0004\u0001\u0004\u0001\u0004\u0005" + + "\u0004\u00ae\b\u0004\n\u0004\f\u0004\u00b1\t\u0004\u0001\u0004\u0001\u0004" + + "\u0001\u0005\u0001\u0005\u0001\u0005\u0001\u0005\u0001\u0006\u0001\u0006" + + "\u0001\u0006\u0005\u0006\u00bc\b\u0006\n\u0006\f\u0006\u00bf\t\u0006\u0001" + + "\u0006\u0001\u0006\u0001\u0006\u0003\u0006\u00c4\b\u0006\u0001\u0007\u0001" + + "\u0007\u0001\u0007\u0001\u0007\u0005\u0007\u00ca\b\u0007\n\u0007\f\u0007" + + "\u00cd\t\u0007\u0001\u0007\u0001\u0007\u0001\b\u0001\b\u0001\b\u0001\b" + + "\u0001\b\u0003\b\u00d6\b\b\u0001\t\u0001\t\u0001\t\u0003\t\u00db\b\t\u0001" + + "\t\u0001\t\u0001\n\u0001\n\u0001\n\u0003\n\u00e2\b\n\u0001\n\u0001\n\u0001" + + "\u000b\u0001\u000b\u0001\u000b\u0005\u000b\u00e9\b\u000b\n\u000b\f\u000b" + + "\u00ec\t\u000b\u0001\u000b\u0003\u000b\u00ef\b\u000b\u0001\f\u0001\f\u0001" + + "\f\u0001\f\u0003\f\u00f5\b\f\u0001\f\u0001\f\u0001\f\u0001\r\u0001\r\u0001" + + "\r\u0003\r\u00fd\b\r\u0001\u000e\u0001\u000e\u0005\u000e\u0101\b\u000e" + + "\n\u000e\f\u000e\u0104\t\u000e\u0001\u000e\u0001\u000e\u0001\u000f\u0001" + + "\u000f\u0005\u000f\u010a\b\u000f\n\u000f\f\u000f\u010d\t\u000f\u0001\u000f" + + "\u0001\u000f\u0001\u0010\u0001\u0010\u0001\u0010\u0001\u0010\u0005\u0010" + + "\u0115\b\u0010\n\u0010\f\u0010\u0118\t\u0010\u0001\u0011\u0005\u0011\u011b" + + "\b\u0011\n\u0011\f\u0011\u011e\t\u0011\u0001\u0012\u0001\u0012\u0003\u0012" + + "\u0122\b\u0012\u0001\u0013\u0005\u0013\u0125\b\u0013\n\u0013\f\u0013\u0128" + + "\t\u0013\u0001\u0013\u0003\u0013\u012b\b\u0013\u0001\u0013\u0001\u0013" + + "\u0003\u0013\u012f\b\u0013\u0001\u0013\u0003\u0013\u0132\b\u0013\u0001" + + "\u0013\u0003\u0013\u0135\b\u0013\u0001\u0013\u0003\u0013\u0138\b\u0013" + + "\u0001\u0013\u0005\u0013\u013b\b\u0013\n\u0013\f\u0013\u013e\t\u0013\u0001" + + "\u0013\u0001\u0013\u0001\u0013\u0001\u0013\u0001\u0013\u0001\u0014\u0005" + + "\u0014\u0146\b\u0014\n\u0014\f\u0014\u0149\t\u0014\u0001\u0014\u0003\u0014" + + "\u014c\b\u0014\u0001\u0015\u0001\u0015\u0001\u0015\u0001\u0015\u0001\u0016" + + "\u0001\u0016\u0001\u0016\u0001\u0017\u0001\u0017\u0003\u0017\u0157\b\u0017" + + "\u0001\u0018\u0001\u0018\u0001\u0018\u0001\u0019\u0001\u0019\u0001\u0019" + + "\u0001\u0019\u0005\u0019\u0160\b\u0019\n\u0019\f\u0019\u0163\t\u0019\u0001" + + "\u001a\u0001\u001a\u0001\u001a\u0001\u001b\u0001\u001b\u0001\u001b\u0001" + + "\u001b\u0001\u001c\u0004\u001c\u016d\b\u001c\u000b\u001c\f\u001c\u016e" + + "\u0001\u001d\u0001\u001d\u0001\u001e\u0001\u001e\u0001\u001f\u0001\u001f" + + "\u0001\u001f\u0005\u001f\u0178\b\u001f\n\u001f\f\u001f\u017b\t\u001f\u0001" + + " \u0001 \u0001 \u0003 \u0180\b \u0001!\u0005!\u0183\b!\n!\f!\u0186\t!" + + "\u0001!\u0003!\u0189\b!\u0001!\u0001!\u0001!\u0001!\u0001!\u0001\"\u0001" + + "\"\u0001#\u0001#\u0001#\u0005#\u0195\b#\n#\f#\u0198\t#\u0001$\u0001$\u0003" + + "$\u019c\b$\u0001$\u0003$\u019f\b$\u0001%\u0004%\u01a2\b%\u000b%\f%\u01a3" + + "\u0001&\u0001&\u0003&\u01a8\b&\u0001&\u0001&\u0003&\u01ac\b&\u0001&\u0001" + + "&\u0003&\u01b0\b&\u0001&\u0001&\u0003&\u01b4\b&\u0003&\u01b6\b&\u0001" + + "\'\u0001\'\u0001\'\u0001\'\u0003\'\u01bc\b\'\u0001(\u0001(\u0001(\u0001" + + "(\u0001)\u0001)\u0001)\u0001)\u0005)\u01c6\b)\n)\f)\u01c9\t)\u0001*\u0001" + + "*\u0001*\u0001*\u0001*\u0001*\u0003*\u01d1\b*\u0001+\u0001+\u0003+\u01d5" + + "\b+\u0001,\u0001,\u0003,\u01d9\b,\u0001-\u0001-\u0001-\u0005-\u01de\b" + + "-\n-\f-\u01e1\t-\u0001.\u0003.\u01e4\b.\u0001.\u0004.\u01e7\b.\u000b." + + "\f.\u01e8\u0001.\u0003.\u01ec\b.\u0001/\u0001/\u0001/\u0003/\u01f1\b/" + + "\u0001/\u0001/\u0001/\u0003/\u01f6\b/\u0001/\u0001/\u0001/\u0003/\u01fb" + + "\b/\u0003/\u01fd\b/\u00010\u00010\u00010\u00010\u00030\u0203\b0\u0001" + + "1\u00011\u00031\u0207\b1\u00012\u00012\u00013\u00013\u00033\u020d\b3\u0001" + + "3\u00013\u00033\u0211\b3\u00013\u00013\u00033\u0215\b3\u00033\u0217\b" + + "3\u00014\u00014\u00014\u00014\u00014\u00014\u00034\u021f\b4\u00034\u0221" + + "\b4\u00015\u00015\u00015\u00015\u00015\u00035\u0228\b5\u00035\u022a\b" + + "5\u00016\u00016\u00016\u00016\u00036\u0230\b6\u00017\u00017\u00017\u0001" + + "7\u00057\u0236\b7\n7\f7\u0239\t7\u00017\u00017\u00018\u00018\u00038\u023f" + + "\b8\u00018\u00018\u00038\u0243\b8\u00018\u00018\u00038\u0247\b8\u0001" + + "9\u00019\u00039\u024b\b9\u00019\u00059\u024e\b9\n9\f9\u0251\t9\u00019" + + "\u00039\u0254\b9\u00019\u00019\u00019\u0001:\u0001:\u0003:\u025b\b:\u0001" + + ":\u0003:\u025e\b:\u0001;\u0001;\u0001;\u0001;\u0001<\u0001<\u0003<\u0266" + + "\b<\u0001<\u0001<\u0003<\u026a\b<\u0003<\u026c\b<\u0001=\u0001=\u0001" + + "=\u0001=\u0005=\u0272\b=\n=\f=\u0275\t=\u0001=\u0001=\u0001>\u0001>\u0001" + + ">\u0001>\u0001>\u0003>\u027e\b>\u0003>\u0280\b>\u0001?\u0001?\u0001?\u0000" + + "\u0000@\u0000\u0002\u0004\u0006\b\n\f\u000e\u0010\u0012\u0014\u0016\u0018" + + "\u001a\u001c\u001e \"$&(*,.02468:<>@BDFHJLNPRTVXZ\\^`bdfhjlnprtvxz|~\u0000" + + "\u0003\u0002\u0000\u0010\u0010\u0014\u0016\u0002\u0000((++\u0001\u0000" + + "\u0001\u0002\u02ab\u0000\u0083\u0001\u0000\u0000\u0000\u0002\u0096\u0001" + + "\u0000\u0000\u0000\u0004\u009f\u0001\u0000\u0000\u0000\u0006\u00a6\u0001" + + "\u0000\u0000\u0000\b\u00a8\u0001\u0000\u0000\u0000\n\u00b4\u0001\u0000" + + "\u0000\u0000\f\u00c3\u0001\u0000\u0000\u0000\u000e\u00c5\u0001\u0000\u0000" + + "\u0000\u0010\u00d5\u0001\u0000\u0000\u0000\u0012\u00d7\u0001\u0000\u0000" + + "\u0000\u0014\u00de\u0001\u0000\u0000\u0000\u0016\u00e5\u0001\u0000\u0000" + + "\u0000\u0018\u00f0\u0001\u0000\u0000\u0000\u001a\u00fc\u0001\u0000\u0000" + + "\u0000\u001c\u00fe\u0001\u0000\u0000\u0000\u001e\u0107\u0001\u0000\u0000" + + "\u0000 \u0110\u0001\u0000\u0000\u0000\"\u011c\u0001\u0000\u0000\u0000" + + "$\u0121\u0001\u0000\u0000\u0000&\u0126\u0001\u0000\u0000\u0000(\u0147" + + "\u0001\u0000\u0000\u0000*\u014d\u0001\u0000\u0000\u0000,\u0151\u0001\u0000" + + "\u0000\u0000.\u0156\u0001\u0000\u0000\u00000\u0158\u0001\u0000\u0000\u0000" + + "2\u015b\u0001\u0000\u0000\u00004\u0164\u0001\u0000\u0000\u00006\u0167" + + "\u0001\u0000\u0000\u00008\u016c\u0001\u0000\u0000\u0000:\u0170\u0001\u0000" + + "\u0000\u0000<\u0172\u0001\u0000\u0000\u0000>\u0174\u0001\u0000\u0000\u0000" + + "@\u017c\u0001\u0000\u0000\u0000B\u0184\u0001\u0000\u0000\u0000D\u018f" + + "\u0001\u0000\u0000\u0000F\u0191\u0001\u0000\u0000\u0000H\u019e\u0001\u0000" + + "\u0000\u0000J\u01a1\u0001\u0000\u0000\u0000L\u01b5\u0001\u0000\u0000\u0000" + + "N\u01b7\u0001\u0000\u0000\u0000P\u01bd\u0001\u0000\u0000\u0000R\u01c1" + + "\u0001\u0000\u0000\u0000T\u01d0\u0001\u0000\u0000\u0000V\u01d4\u0001\u0000" + + "\u0000\u0000X\u01d8\u0001\u0000\u0000\u0000Z\u01da\u0001\u0000\u0000\u0000" + + "\\\u01eb\u0001\u0000\u0000\u0000^\u01fc\u0001\u0000\u0000\u0000`\u01fe" + + "\u0001\u0000\u0000\u0000b\u0204\u0001\u0000\u0000\u0000d\u0208\u0001\u0000" + + "\u0000\u0000f\u0216\u0001\u0000\u0000\u0000h\u0220\u0001\u0000\u0000\u0000" + + "j\u0229\u0001\u0000\u0000\u0000l\u022f\u0001\u0000\u0000\u0000n\u0231" + + "\u0001\u0000\u0000\u0000p\u0246\u0001\u0000\u0000\u0000r\u0248\u0001\u0000" + + "\u0000\u0000t\u0258\u0001\u0000\u0000\u0000v\u025f\u0001\u0000\u0000\u0000" + + "x\u026b\u0001\u0000\u0000\u0000z\u026d\u0001\u0000\u0000\u0000|\u027f" + + "\u0001\u0000\u0000\u0000~\u0281\u0001\u0000\u0000\u0000\u0080\u0082\u0005" + + "\u0004\u0000\u0000\u0081\u0080\u0001\u0000\u0000\u0000\u0082\u0085\u0001" + + "\u0000\u0000\u0000\u0083\u0081\u0001\u0000\u0000\u0000\u0083\u0084\u0001" + + "\u0000\u0000\u0000\u0084\u0086\u0001\u0000\u0000\u0000\u0085\u0083\u0001" + + "\u0000\u0000\u0000\u0086\u008a\u0003\u0002\u0001\u0000\u0087\u0089\u0003" + + "\u0006\u0003\u0000\u0088\u0087\u0001\u0000\u0000\u0000\u0089\u008c\u0001" + + "\u0000\u0000\u0000\u008a\u0088\u0001\u0000\u0000\u0000\u008a\u008b\u0001" + + "\u0000\u0000\u0000\u008b\u008d\u0001\u0000\u0000\u0000\u008c\u008a\u0001" + + "\u0000\u0000\u0000\u008d\u0091\u0003\"\u0011\u0000\u008e\u0090\u0003 " + + "\u0010\u0000\u008f\u008e\u0001\u0000\u0000\u0000\u0090\u0093\u0001\u0000" + + "\u0000\u0000\u0091\u008f\u0001\u0000\u0000\u0000\u0091\u0092\u0001\u0000" + + "\u0000\u0000\u0092\u0094\u0001\u0000\u0000\u0000\u0093\u0091\u0001\u0000" + + "\u0000\u0000\u0094\u0095\u0005\u0000\u0000\u0001\u0095\u0001\u0001\u0000" + + "\u0000\u0000\u0096\u0097\u0003\u0004\u0002\u0000\u0097\u0098\u0003~?\u0000" + + "\u0098\u0099\u0005 \u0000\u0000\u0099\u0003\u0001\u0000\u0000\u0000\u009a" + + "\u009b\u0005\u0011\u0000\u0000\u009b\u00a0\u0005\u0013\u0000\u0000\u009c" + + "\u009d\u0005\u0012\u0000\u0000\u009d\u00a0\u0005\u0013\u0000\u0000\u009e" + + "\u00a0\u0005\u0013\u0000\u0000\u009f\u009a\u0001\u0000\u0000\u0000\u009f" + + "\u009c\u0001\u0000\u0000\u0000\u009f\u009e\u0001\u0000\u0000\u0000\u00a0" + + "\u0005\u0001\u0000\u0000\u0000\u00a1\u00a7\u0003\b\u0004\u0000\u00a2\u00a7" + + "\u0003\u000e\u0007\u0000\u00a3\u00a7\u0003\u0012\t\u0000\u00a4\u00a7\u0003" + + "\u0014\n\u0000\u00a5\u00a7\u0003\u0018\f\u0000\u00a6\u00a1\u0001\u0000" + + "\u0000\u0000\u00a6\u00a2\u0001\u0000\u0000\u0000\u00a6\u00a3\u0001\u0000" + + "\u0000\u0000\u00a6\u00a4\u0001\u0000\u0000\u0000\u00a6\u00a5\u0001\u0000" + + "\u0000\u0000\u00a7\u0007\u0001\u0000\u0000\u0000\u00a8\u00a9\u0005\f\u0000" + + "\u0000\u00a9\u00af\u0005#\u0000\u0000\u00aa\u00ab\u0003\n\u0005\u0000" + + "\u00ab\u00ac\u0005 \u0000\u0000\u00ac\u00ae\u0001\u0000\u0000\u0000\u00ad" + + "\u00aa\u0001\u0000\u0000\u0000\u00ae\u00b1\u0001\u0000\u0000\u0000\u00af" + + "\u00ad\u0001\u0000\u0000\u0000\u00af\u00b0\u0001\u0000\u0000\u0000\u00b0" + + "\u00b2\u0001\u0000\u0000\u0000\u00b1\u00af\u0001\u0000\u0000\u0000\u00b2" + + "\u00b3\u0005$\u0000\u0000\u00b3\t\u0001\u0000\u0000\u0000\u00b4\u00b5" + + "\u0003~?\u0000\u00b5\u00b6\u0005(\u0000\u0000\u00b6\u00b7\u0003\f\u0006" + + "\u0000\u00b7\u000b\u0001\u0000\u0000\u0000\u00b8\u00bd\u0003~?\u0000\u00b9" + + "\u00ba\u00050\u0000\u0000\u00ba\u00bc\u0003~?\u0000\u00bb\u00b9\u0001" + + "\u0000\u0000\u0000\u00bc\u00bf\u0001\u0000\u0000\u0000\u00bd\u00bb\u0001" + + "\u0000\u0000\u0000\u00bd\u00be\u0001\u0000\u0000\u0000\u00be\u00c4\u0001" + + "\u0000\u0000\u0000\u00bf\u00bd\u0001\u0000\u0000\u0000\u00c0\u00c4\u0005" + + "\b\u0000\u0000\u00c1\u00c4\u0003\u001c\u000e\u0000\u00c2\u00c4\u0005\u0007" + + "\u0000\u0000\u00c3\u00b8\u0001\u0000\u0000\u0000\u00c3\u00c0\u0001\u0000" + + "\u0000\u0000\u00c3\u00c1\u0001\u0000\u0000\u0000\u00c3\u00c2\u0001\u0000" + + "\u0000\u0000\u00c4\r\u0001\u0000\u0000\u0000\u00c5\u00c6\u0005\u000f\u0000" + + "\u0000\u00c6\u00cb\u0003\u0010\b\u0000\u00c7\u00c8\u0005\u001f\u0000\u0000" + + "\u00c8\u00ca\u0003\u0010\b\u0000\u00c9\u00c7\u0001\u0000\u0000\u0000\u00ca" + + "\u00cd\u0001\u0000\u0000\u0000\u00cb\u00c9\u0001\u0000\u0000\u0000\u00cb" + + "\u00cc\u0001\u0000\u0000\u0000\u00cc\u00ce\u0001\u0000\u0000\u0000\u00cd" + + "\u00cb\u0001\u0000\u0000\u0000\u00ce\u00cf\u0005 \u0000\u0000\u00cf\u000f" + + "\u0001\u0000\u0000\u0000\u00d0\u00d1\u0003~?\u0000\u00d1\u00d2\u0005(" + + "\u0000\u0000\u00d2\u00d3\u0003~?\u0000\u00d3\u00d6\u0001\u0000\u0000\u0000" + + "\u00d4\u00d6\u0003~?\u0000\u00d5\u00d0\u0001\u0000\u0000\u0000\u00d5\u00d4" + + "\u0001\u0000\u0000\u0000\u00d6\u0011\u0001\u0000\u0000\u0000\u00d7\u00d8" + + "\u0005\r\u0000\u0000\u00d8\u00da\u0005#\u0000\u0000\u00d9\u00db\u0003" + + "\u0016\u000b\u0000\u00da\u00d9\u0001\u0000\u0000\u0000\u00da\u00db\u0001" + + "\u0000\u0000\u0000\u00db\u00dc\u0001\u0000\u0000\u0000\u00dc\u00dd\u0005" + + "$\u0000\u0000\u00dd\u0013\u0001\u0000\u0000\u0000\u00de\u00df\u0005\u000e" + + "\u0000\u0000\u00df\u00e1\u0005#\u0000\u0000\u00e0\u00e2\u0003\u0016\u000b" + + "\u0000\u00e1\u00e0\u0001\u0000\u0000\u0000\u00e1\u00e2\u0001\u0000\u0000" + + "\u0000\u00e2\u00e3\u0001\u0000\u0000\u0000\u00e3\u00e4\u0005$\u0000\u0000" + + "\u00e4\u0015\u0001\u0000\u0000\u0000\u00e5\u00ea\u0003~?\u0000\u00e6\u00e7" + + "\u0005\u001f\u0000\u0000\u00e7\u00e9\u0003~?\u0000\u00e8\u00e6\u0001\u0000" + + "\u0000\u0000\u00e9\u00ec\u0001\u0000\u0000\u0000\u00ea\u00e8\u0001\u0000" + + "\u0000\u0000\u00ea\u00eb\u0001\u0000\u0000\u0000\u00eb\u00ee\u0001\u0000" + + "\u0000\u0000\u00ec\u00ea\u0001\u0000\u0000\u0000\u00ed\u00ef\u0005\u001f" + + "\u0000\u0000\u00ee\u00ed\u0001\u0000\u0000\u0000\u00ee\u00ef\u0001\u0000" + + "\u0000\u0000\u00ef\u0017\u0001\u0000\u0000\u0000\u00f0\u00f4\u00051\u0000" + + "\u0000\u00f1\u00f2\u0003\u001a\r\u0000\u00f2\u00f3\u0005\u001e\u0000\u0000" + + "\u00f3\u00f5\u0001\u0000\u0000\u0000\u00f4\u00f1\u0001\u0000\u0000\u0000" + + "\u00f4\u00f5\u0001\u0000\u0000\u0000\u00f5\u00f6\u0001\u0000\u0000\u0000" + + "\u00f6\u00f7\u0003~?\u0000\u00f7\u00f8\u0003\u001c\u000e\u0000\u00f8\u0019" + + "\u0001\u0000\u0000\u0000\u00f9\u00fd\u0003~?\u0000\u00fa\u00fd\u0005\u0011" + + "\u0000\u0000\u00fb\u00fd\u0005\u0012\u0000\u0000\u00fc\u00f9\u0001\u0000" + + "\u0000\u0000\u00fc\u00fa\u0001\u0000\u0000\u0000\u00fc\u00fb\u0001\u0000" + + "\u0000\u0000\u00fd\u001b\u0001\u0000\u0000\u0000\u00fe\u0102\u0005\u000b" + + "\u0000\u0000\u00ff\u0101\u0005<\u0000\u0000\u0100\u00ff\u0001\u0000\u0000" + + "\u0000\u0101\u0104\u0001\u0000\u0000\u0000\u0102\u0100\u0001\u0000\u0000" + + "\u0000\u0102\u0103\u0001\u0000\u0000\u0000\u0103\u0105\u0001\u0000\u0000" + + "\u0000\u0104\u0102\u0001\u0000\u0000\u0000\u0105\u0106\u0005:\u0000\u0000" + + "\u0106\u001d\u0001\u0000\u0000\u0000\u0107\u010b\u0005\n\u0000\u0000\u0108" + + "\u010a\u00059\u0000\u0000\u0109\u0108\u0001\u0000\u0000\u0000\u010a\u010d" + + "\u0001\u0000\u0000\u0000\u010b\u0109\u0001\u0000\u0000\u0000\u010b\u010c" + + "\u0001\u0000\u0000\u0000\u010c\u010e\u0001\u0000\u0000\u0000\u010d\u010b" + + "\u0001\u0000\u0000\u0000\u010e\u010f\u00057\u0000\u0000\u010f\u001f\u0001" + + "\u0000\u0000\u0000\u0110\u0111\u0005\u001c\u0000\u0000\u0111\u0112\u0003" + + "~?\u0000\u0112\u0116\u0005 \u0000\u0000\u0113\u0115\u0003B!\u0000\u0114" + + "\u0113\u0001\u0000\u0000\u0000\u0115\u0118\u0001\u0000\u0000\u0000\u0116" + + "\u0114\u0001\u0000\u0000\u0000\u0116\u0117\u0001\u0000\u0000\u0000\u0117" + + "!\u0001\u0000\u0000\u0000\u0118\u0116\u0001\u0000\u0000\u0000\u0119\u011b" + + "\u0003$\u0012\u0000\u011a\u0119\u0001\u0000\u0000\u0000\u011b\u011e\u0001" + + "\u0000\u0000\u0000\u011c\u011a\u0001\u0000\u0000\u0000\u011c\u011d\u0001" + + "\u0000\u0000\u0000\u011d#\u0001\u0000\u0000\u0000\u011e\u011c\u0001\u0000" + + "\u0000\u0000\u011f\u0122\u0003&\u0013\u0000\u0120\u0122\u0003B!\u0000" + + "\u0121\u011f\u0001\u0000\u0000\u0000\u0121\u0120\u0001\u0000\u0000\u0000" + + "\u0122%\u0001\u0000\u0000\u0000\u0123\u0125\u0005\u0004\u0000\u0000\u0124" + + "\u0123\u0001\u0000\u0000\u0000\u0125\u0128\u0001\u0000\u0000\u0000\u0126" + + "\u0124\u0001\u0000\u0000\u0000\u0126\u0127\u0001\u0000\u0000\u0000\u0127" + + "\u012a\u0001\u0000\u0000\u0000\u0128\u0126\u0001\u0000\u0000\u0000\u0129" + + "\u012b\u00038\u001c\u0000\u012a\u0129\u0001\u0000\u0000\u0000\u012a\u012b" + + "\u0001\u0000\u0000\u0000\u012b\u012c\u0001\u0000\u0000\u0000\u012c\u012e" + + "\u0005\u0002\u0000\u0000\u012d\u012f\u0003\u001e\u000f\u0000\u012e\u012d" + + "\u0001\u0000\u0000\u0000\u012e\u012f\u0001\u0000\u0000\u0000\u012f\u0131" + + "\u0001\u0000\u0000\u0000\u0130\u0132\u00030\u0018\u0000\u0131\u0130\u0001" + + "\u0000\u0000\u0000\u0131\u0132\u0001\u0000\u0000\u0000\u0132\u0134\u0001" + + "\u0000\u0000\u0000\u0133\u0135\u00032\u0019\u0000\u0134\u0133\u0001\u0000" + + "\u0000\u0000\u0134\u0135\u0001\u0000\u0000\u0000\u0135\u0137\u0001\u0000" + + "\u0000\u0000\u0136\u0138\u00034\u001a\u0000\u0137\u0136\u0001\u0000\u0000" + + "\u0000\u0137\u0138\u0001\u0000\u0000\u0000\u0138\u013c\u0001\u0000\u0000" + + "\u0000\u0139\u013b\u0003.\u0017\u0000\u013a\u0139\u0001\u0000\u0000\u0000" + + "\u013b\u013e\u0001\u0000\u0000\u0000\u013c\u013a\u0001\u0000\u0000\u0000" + + "\u013c\u013d\u0001\u0000\u0000\u0000\u013d\u013f\u0001\u0000\u0000\u0000" + + "\u013e\u013c\u0001\u0000\u0000\u0000\u013f\u0140\u0005\u001d\u0000\u0000" + + "\u0140\u0141\u0003<\u001e\u0000\u0141\u0142\u0005 \u0000\u0000\u0142\u0143" + + "\u0003(\u0014\u0000\u0143\'\u0001\u0000\u0000\u0000\u0144\u0146\u0003" + + "*\u0015\u0000\u0145\u0144\u0001\u0000\u0000\u0000\u0146\u0149\u0001\u0000" + + "\u0000\u0000\u0147\u0145\u0001\u0000\u0000\u0000\u0147\u0148\u0001\u0000" + + "\u0000\u0000\u0148\u014b\u0001\u0000\u0000\u0000\u0149\u0147\u0001\u0000" + + "\u0000\u0000\u014a\u014c\u0003,\u0016\u0000\u014b\u014a\u0001\u0000\u0000" + + "\u0000\u014b\u014c\u0001\u0000\u0000\u0000\u014c)\u0001\u0000\u0000\u0000" + + "\u014d\u014e\u0005\u001a\u0000\u0000\u014e\u014f\u0003\u001e\u000f\u0000" + + "\u014f\u0150\u0003\u001c\u000e\u0000\u0150+\u0001\u0000\u0000\u0000\u0151" + + "\u0152\u0005\u001b\u0000\u0000\u0152\u0153\u0003\u001c\u000e\u0000\u0153" + + "-\u0001\u0000\u0000\u0000\u0154\u0157\u0003\b\u0004\u0000\u0155\u0157" + + "\u00036\u001b\u0000\u0156\u0154\u0001\u0000\u0000\u0000\u0156\u0155\u0001" + + "\u0000\u0000\u0000\u0157/\u0001\u0000\u0000\u0000\u0158\u0159\u0005\u0017" + + "\u0000\u0000\u0159\u015a\u0003\u001e\u000f\u0000\u015a1\u0001\u0000\u0000" + + "\u0000\u015b\u015c\u0005\u0019\u0000\u0000\u015c\u0161\u0003~?\u0000\u015d" + + "\u015e\u0005\u001f\u0000\u0000\u015e\u0160\u0003~?\u0000\u015f\u015d\u0001" + + "\u0000\u0000\u0000\u0160\u0163\u0001\u0000\u0000\u0000\u0161\u015f\u0001" + + "\u0000\u0000\u0000\u0161\u0162\u0001\u0000\u0000\u0000\u01623\u0001\u0000" + + "\u0000\u0000\u0163\u0161\u0001\u0000\u0000\u0000\u0164\u0165\u0005\u0018" + + "\u0000\u0000\u0165\u0166\u0003\u001e\u000f\u0000\u01665\u0001\u0000\u0000" + + "\u0000\u0167\u0168\u00051\u0000\u0000\u0168\u0169\u0003~?\u0000\u0169" + + "\u016a\u0003\u001c\u000e\u0000\u016a7\u0001\u0000\u0000\u0000\u016b\u016d" + + "\u0003:\u001d\u0000\u016c\u016b\u0001\u0000\u0000\u0000\u016d\u016e\u0001" + + "\u0000\u0000\u0000\u016e\u016c\u0001\u0000\u0000\u0000\u016e\u016f\u0001" + + "\u0000\u0000\u0000\u016f9\u0001\u0000\u0000\u0000\u0170\u0171\u0007\u0000" + + "\u0000\u0000\u0171;\u0001\u0000\u0000\u0000\u0172\u0173\u0003>\u001f\u0000" + + "\u0173=\u0001\u0000\u0000\u0000\u0174\u0179\u0003@ \u0000\u0175\u0176" + + "\u0005-\u0000\u0000\u0176\u0178\u0003@ \u0000\u0177\u0175\u0001\u0000" + + "\u0000\u0000\u0178\u017b\u0001\u0000\u0000\u0000\u0179\u0177\u0001\u0000" + + "\u0000\u0000\u0179\u017a\u0001\u0000\u0000\u0000\u017a?\u0001\u0000\u0000" + + "\u0000\u017b\u0179\u0001\u0000\u0000\u0000\u017c\u017f\u0003\\.\u0000" + + "\u017d\u017e\u00052\u0000\u0000\u017e\u0180\u0003~?\u0000\u017f\u017d" + + "\u0001\u0000\u0000\u0000\u017f\u0180\u0001\u0000\u0000\u0000\u0180A\u0001" + + "\u0000\u0000\u0000\u0181\u0183\u0005\u0004\u0000\u0000\u0182\u0181\u0001" + + "\u0000\u0000\u0000\u0183\u0186\u0001\u0000\u0000\u0000\u0184\u0182\u0001" + + "\u0000\u0000\u0000\u0184\u0185\u0001\u0000\u0000\u0000\u0185\u0188\u0001" + + "\u0000\u0000\u0000\u0186\u0184\u0001\u0000\u0000\u0000\u0187\u0189\u0005" + + "\u0010\u0000\u0000\u0188\u0187\u0001\u0000\u0000\u0000\u0188\u0189\u0001" + + "\u0000\u0000\u0000\u0189\u018a\u0001\u0000\u0000\u0000\u018a\u018b\u0005" + + "\u0001\u0000\u0000\u018b\u018c\u0005\u001d\u0000\u0000\u018c\u018d\u0003" + + "D\"\u0000\u018d\u018e\u0005 \u0000\u0000\u018eC\u0001\u0000\u0000\u0000" + + "\u018f\u0190\u0003F#\u0000\u0190E\u0001\u0000\u0000\u0000\u0191\u0196" + + "\u0003H$\u0000\u0192\u0193\u0005-\u0000\u0000\u0193\u0195\u0003H$\u0000" + + "\u0194\u0192\u0001\u0000\u0000\u0000\u0195\u0198\u0001\u0000\u0000\u0000" + + "\u0196\u0194\u0001\u0000\u0000\u0000\u0196\u0197\u0001\u0000\u0000\u0000" + + "\u0197G\u0001\u0000\u0000\u0000\u0198\u0196\u0001\u0000\u0000\u0000\u0199" + + "\u019b\u0003J%\u0000\u019a\u019c\u0003R)\u0000\u019b\u019a\u0001\u0000" + + "\u0000\u0000\u019b\u019c\u0001\u0000\u0000\u0000\u019c\u019f\u0001\u0000" + + "\u0000\u0000\u019d\u019f\u0001\u0000\u0000\u0000\u019e\u0199\u0001\u0000" + + "\u0000\u0000\u019e\u019d\u0001\u0000\u0000\u0000\u019fI\u0001\u0000\u0000" + + "\u0000\u01a0\u01a2\u0003L&\u0000\u01a1\u01a0\u0001\u0000\u0000\u0000\u01a2" + + "\u01a3\u0001\u0000\u0000\u0000\u01a3\u01a1\u0001\u0000\u0000\u0000\u01a3" + + "\u01a4\u0001\u0000\u0000\u0000\u01a4K\u0001\u0000\u0000\u0000\u01a5\u01a7" + + "\u0003N\'\u0000\u01a6\u01a8\u0003f3\u0000\u01a7\u01a6\u0001\u0000\u0000" + + "\u0000\u01a7\u01a8\u0001\u0000\u0000\u0000\u01a8\u01b6\u0001\u0000\u0000" + + "\u0000\u01a9\u01ab\u0003h4\u0000\u01aa\u01ac\u0003f3\u0000\u01ab\u01aa" + + "\u0001\u0000\u0000\u0000\u01ab\u01ac\u0001\u0000\u0000\u0000\u01ac\u01b6" + + "\u0001\u0000\u0000\u0000\u01ad\u01af\u0003P(\u0000\u01ae\u01b0\u0003f" + + "3\u0000\u01af\u01ae\u0001\u0000\u0000\u0000\u01af\u01b0\u0001\u0000\u0000" + + "\u0000\u01b0\u01b6\u0001\u0000\u0000\u0000\u01b1\u01b3\u0003\u001c\u000e" + + "\u0000\u01b2\u01b4\u0005)\u0000\u0000\u01b3\u01b2\u0001\u0000\u0000\u0000" + + "\u01b3\u01b4\u0001\u0000\u0000\u0000\u01b4\u01b6\u0001\u0000\u0000\u0000" + + "\u01b5\u01a5\u0001\u0000\u0000\u0000\u01b5\u01a9\u0001\u0000\u0000\u0000" + + "\u01b5\u01ad\u0001\u0000\u0000\u0000\u01b5\u01b1\u0001\u0000\u0000\u0000" + + "\u01b6M\u0001\u0000\u0000\u0000\u01b7\u01b8\u0003~?\u0000\u01b8\u01bb" + + "\u0007\u0001\u0000\u0000\u01b9\u01bc\u0003h4\u0000\u01ba\u01bc\u0003P" + + "(\u0000\u01bb\u01b9\u0001\u0000\u0000\u0000\u01bb\u01ba\u0001\u0000\u0000" + + "\u0000\u01bcO\u0001\u0000\u0000\u0000\u01bd\u01be\u0005!\u0000\u0000\u01be" + + "\u01bf\u0003F#\u0000\u01bf\u01c0\u0005\"\u0000\u0000\u01c0Q\u0001\u0000" + + "\u0000\u0000\u01c1\u01c2\u0005%\u0000\u0000\u01c2\u01c7\u0003T*\u0000" + + "\u01c3\u01c4\u0005\u001f\u0000\u0000\u01c4\u01c6\u0003T*\u0000\u01c5\u01c3" + + "\u0001\u0000\u0000\u0000\u01c6\u01c9\u0001\u0000\u0000\u0000\u01c7\u01c5" + + "\u0001\u0000\u0000\u0000\u01c7\u01c8\u0001\u0000\u0000\u0000\u01c8S\u0001" + + "\u0000\u0000\u0000\u01c9\u01c7\u0001\u0000\u0000\u0000\u01ca\u01cb\u0003" + + "V+\u0000\u01cb\u01cc\u0005!\u0000\u0000\u01cc\u01cd\u0003X,\u0000\u01cd" + + "\u01ce\u0005\"\u0000\u0000\u01ce\u01d1\u0001\u0000\u0000\u0000\u01cf\u01d1" + + "\u0003V+\u0000\u01d0\u01ca\u0001\u0000\u0000\u0000\u01d0\u01cf\u0001\u0000" + + "\u0000\u0000\u01d1U\u0001\u0000\u0000\u0000\u01d2\u01d5\u0003~?\u0000" + + "\u01d3\u01d5\u0005\u001c\u0000\u0000\u01d4\u01d2\u0001\u0000\u0000\u0000" + + "\u01d4\u01d3\u0001\u0000\u0000\u0000\u01d5W\u0001\u0000\u0000\u0000\u01d6" + + "\u01d9\u0003~?\u0000\u01d7\u01d9\u0005\u0007\u0000\u0000\u01d8\u01d6\u0001" + + "\u0000\u0000\u0000\u01d8\u01d7\u0001\u0000\u0000\u0000\u01d9Y\u0001\u0000" + + "\u0000\u0000\u01da\u01df\u0003\\.\u0000\u01db\u01dc\u0005-\u0000\u0000" + + "\u01dc\u01de\u0003\\.\u0000\u01dd\u01db\u0001\u0000\u0000\u0000\u01de" + + "\u01e1\u0001\u0000\u0000\u0000\u01df\u01dd\u0001\u0000\u0000\u0000\u01df" + + "\u01e0\u0001\u0000\u0000\u0000\u01e0[\u0001\u0000\u0000\u0000\u01e1\u01df" + + "\u0001\u0000\u0000\u0000\u01e2\u01e4\u0003z=\u0000\u01e3\u01e2\u0001\u0000" + + "\u0000\u0000\u01e3\u01e4\u0001\u0000\u0000\u0000\u01e4\u01e6\u0001\u0000" + + "\u0000\u0000\u01e5\u01e7\u0003^/\u0000\u01e6\u01e5\u0001\u0000\u0000\u0000" + + "\u01e7\u01e8\u0001\u0000\u0000\u0000\u01e8\u01e6\u0001\u0000\u0000\u0000" + + "\u01e8\u01e9\u0001\u0000\u0000\u0000\u01e9\u01ec\u0001\u0000\u0000\u0000" + + "\u01ea\u01ec\u0001\u0000\u0000\u0000\u01eb\u01e3\u0001\u0000\u0000\u0000" + + "\u01eb\u01ea\u0001\u0000\u0000\u0000\u01ec]\u0001\u0000\u0000\u0000\u01ed" + + "\u01f0\u0003`0\u0000\u01ee\u01f1\u0003f3\u0000\u01ef\u01f1\u0001\u0000" + + "\u0000\u0000\u01f0\u01ee\u0001\u0000\u0000\u0000\u01f0\u01ef\u0001\u0000" + + "\u0000\u0000\u01f1\u01fd\u0001\u0000\u0000\u0000\u01f2\u01f5\u0003j5\u0000" + + "\u01f3\u01f6\u0003f3\u0000\u01f4\u01f6\u0001\u0000\u0000\u0000\u01f5\u01f3" + + "\u0001\u0000\u0000\u0000\u01f5\u01f4\u0001\u0000\u0000\u0000\u01f6\u01fd" + + "\u0001\u0000\u0000\u0000\u01f7\u01fd\u0003b1\u0000\u01f8\u01fa\u0003\u001c" + + "\u000e\u0000\u01f9\u01fb\u0005)\u0000\u0000\u01fa\u01f9\u0001\u0000\u0000" + + "\u0000\u01fa\u01fb\u0001\u0000\u0000\u0000\u01fb\u01fd\u0001\u0000\u0000" + + "\u0000\u01fc\u01ed\u0001\u0000\u0000\u0000\u01fc\u01f2\u0001\u0000\u0000" + + "\u0000\u01fc\u01f7\u0001\u0000\u0000\u0000\u01fc\u01f8\u0001\u0000\u0000" + + "\u0000\u01fd_\u0001\u0000\u0000\u0000\u01fe\u01ff\u0003~?\u0000\u01ff" + + "\u0202\u0007\u0001\u0000\u0000\u0200\u0203\u0003j5\u0000\u0201\u0203\u0003" + + "r9\u0000\u0202\u0200\u0001\u0000\u0000\u0000\u0202\u0201\u0001\u0000\u0000" + + "\u0000\u0203a\u0001\u0000\u0000\u0000\u0204\u0206\u0003r9\u0000\u0205" + + "\u0207\u0003d2\u0000\u0206\u0205\u0001\u0000\u0000\u0000\u0206\u0207\u0001" + + "\u0000\u0000\u0000\u0207c\u0001\u0000\u0000\u0000\u0208\u0209\u0003f3" + + "\u0000\u0209e\u0001\u0000\u0000\u0000\u020a\u020c\u0005)\u0000\u0000\u020b" + + "\u020d\u0005)\u0000\u0000\u020c\u020b\u0001\u0000\u0000\u0000\u020c\u020d" + + "\u0001\u0000\u0000\u0000\u020d\u0217\u0001\u0000\u0000\u0000\u020e\u0210" + + "\u0005*\u0000\u0000\u020f\u0211\u0005)\u0000\u0000\u0210\u020f\u0001\u0000" + + "\u0000\u0000\u0210\u0211\u0001\u0000\u0000\u0000\u0211\u0217\u0001\u0000" + + "\u0000\u0000\u0212\u0214\u0005,\u0000\u0000\u0213\u0215\u0005)\u0000\u0000" + + "\u0214\u0213\u0001\u0000\u0000\u0000\u0214\u0215\u0001\u0000\u0000\u0000" + + "\u0215\u0217\u0001\u0000\u0000\u0000\u0216\u020a\u0001\u0000\u0000\u0000" + + "\u0216\u020e\u0001\u0000\u0000\u0000\u0216\u0212\u0001\u0000\u0000\u0000" + + "\u0217g\u0001\u0000\u0000\u0000\u0218\u0221\u0003v;\u0000\u0219\u0221" + + "\u0003x<\u0000\u021a\u0221\u0003l6\u0000\u021b\u0221\u0005\u0003\u0000" + + "\u0000\u021c\u021e\u00050\u0000\u0000\u021d\u021f\u0003z=\u0000\u021e" + + "\u021d\u0001\u0000\u0000\u0000\u021e\u021f\u0001\u0000\u0000\u0000\u021f" + + "\u0221\u0001\u0000\u0000\u0000\u0220\u0218\u0001\u0000\u0000\u0000\u0220" + + "\u0219\u0001\u0000\u0000\u0000\u0220\u021a\u0001\u0000\u0000\u0000\u0220" + + "\u021b\u0001\u0000\u0000\u0000\u0220\u021c\u0001\u0000\u0000\u0000\u0221" + + "i\u0001\u0000\u0000\u0000\u0222\u022a\u0003x<\u0000\u0223\u022a\u0003" + + "t:\u0000\u0224\u022a\u0003l6\u0000\u0225\u0227\u00050\u0000\u0000\u0226" + + "\u0228\u0003z=\u0000\u0227\u0226\u0001\u0000\u0000\u0000\u0227\u0228\u0001" + + "\u0000\u0000\u0000\u0228\u022a\u0001\u0000\u0000\u0000\u0229\u0222\u0001" + + "\u0000\u0000\u0000\u0229\u0223\u0001\u0000\u0000\u0000\u0229\u0224\u0001" + + "\u0000\u0000\u0000\u0229\u0225\u0001\u0000\u0000\u0000\u022ak\u0001\u0000" + + "\u0000\u0000\u022b\u022c\u00053\u0000\u0000\u022c\u0230\u0003p8\u0000" + + "\u022d\u022e\u00053\u0000\u0000\u022e\u0230\u0003n7\u0000\u022f\u022b" + + "\u0001\u0000\u0000\u0000\u022f\u022d\u0001\u0000\u0000\u0000\u0230m\u0001" + + "\u0000\u0000\u0000\u0231\u0232\u0005!\u0000\u0000\u0232\u0237\u0003p8" + + "\u0000\u0233\u0234\u0005-\u0000\u0000\u0234\u0236\u0003p8\u0000\u0235" + + "\u0233\u0001\u0000\u0000\u0000\u0236\u0239\u0001\u0000\u0000\u0000\u0237" + + "\u0235\u0001\u0000\u0000\u0000\u0237\u0238\u0001\u0000\u0000\u0000\u0238" + + "\u023a\u0001\u0000\u0000\u0000\u0239\u0237\u0001\u0000\u0000\u0000\u023a" + + "\u023b\u0005\"\u0000\u0000\u023bo\u0001\u0000\u0000\u0000\u023c\u023e" + + "\u0005\u0001\u0000\u0000\u023d\u023f\u0003z=\u0000\u023e\u023d\u0001\u0000" + + "\u0000\u0000\u023e\u023f\u0001\u0000\u0000\u0000\u023f\u0247\u0001\u0000" + + "\u0000\u0000\u0240\u0242\u0005\b\u0000\u0000\u0241\u0243\u0003z=\u0000" + + "\u0242\u0241\u0001\u0000\u0000\u0000\u0242\u0243\u0001\u0000\u0000\u0000" + + "\u0243\u0247\u0001\u0000\u0000\u0000\u0244\u0247\u0003v;\u0000\u0245\u0247" + + "\u0005\u0003\u0000\u0000\u0246\u023c\u0001\u0000\u0000\u0000\u0246\u0240" + + "\u0001\u0000\u0000\u0000\u0246\u0244\u0001\u0000\u0000\u0000\u0246\u0245" + + "\u0001\u0000\u0000\u0000\u0247q\u0001\u0000\u0000\u0000\u0248\u0253\u0005" + + "!\u0000\u0000\u0249\u024b\u0003\b\u0004\u0000\u024a\u0249\u0001\u0000" + + "\u0000\u0000\u024a\u024b\u0001\u0000\u0000\u0000\u024b\u024f\u0001\u0000" + + "\u0000\u0000\u024c\u024e\u00036\u001b\u0000\u024d\u024c\u0001\u0000\u0000" + + "\u0000\u024e\u0251\u0001\u0000\u0000\u0000\u024f\u024d\u0001\u0000\u0000" + + "\u0000\u024f\u0250\u0001\u0000\u0000\u0000\u0250\u0252\u0001\u0000\u0000" + + "\u0000\u0251\u024f\u0001\u0000\u0000\u0000\u0252\u0254\u0005\u001d\u0000" + + "\u0000\u0253\u024a\u0001\u0000\u0000\u0000\u0253\u0254\u0001\u0000\u0000" + + "\u0000\u0254\u0255\u0001\u0000\u0000\u0000\u0255\u0256\u0003Z-\u0000\u0256" + + "\u0257\u0005\"\u0000\u0000\u0257s\u0001\u0000\u0000\u0000\u0258\u025a" + + "\u0005\u0002\u0000\u0000\u0259\u025b\u0003\u001e\u000f\u0000\u025a\u0259" + + "\u0001\u0000\u0000\u0000\u025a\u025b\u0001\u0000\u0000\u0000\u025b\u025d" + + "\u0001\u0000\u0000\u0000\u025c\u025e\u0003z=\u0000\u025d\u025c\u0001\u0000" + + "\u0000\u0000\u025d\u025e\u0001\u0000\u0000\u0000\u025eu\u0001\u0000\u0000" + + "\u0000\u025f\u0260\u0005\b\u0000\u0000\u0260\u0261\u0005/\u0000\u0000" + + "\u0261\u0262\u0005\b\u0000\u0000\u0262w\u0001\u0000\u0000\u0000\u0263" + + "\u0265\u0005\u0001\u0000\u0000\u0264\u0266\u0003z=\u0000\u0265\u0264\u0001" + + "\u0000\u0000\u0000\u0265\u0266\u0001\u0000\u0000\u0000\u0266\u026c\u0001" + + "\u0000\u0000\u0000\u0267\u0269\u0005\b\u0000\u0000\u0268\u026a\u0003z" + + "=\u0000\u0269\u0268\u0001\u0000\u0000\u0000\u0269\u026a\u0001\u0000\u0000" + + "\u0000\u026a\u026c\u0001\u0000\u0000\u0000\u026b\u0263\u0001\u0000\u0000" + + "\u0000\u026b\u0267\u0001\u0000\u0000\u0000\u026cy\u0001\u0000\u0000\u0000" + + "\u026d\u026e\u0005&\u0000\u0000\u026e\u0273\u0003|>\u0000\u026f\u0270" + + "\u0005\u001f\u0000\u0000\u0270\u0272\u0003|>\u0000\u0271\u026f\u0001\u0000" + + "\u0000\u0000\u0272\u0275\u0001\u0000\u0000\u0000\u0273\u0271\u0001\u0000" + + "\u0000\u0000\u0273\u0274\u0001\u0000\u0000\u0000\u0274\u0276\u0001\u0000" + + "\u0000\u0000\u0275\u0273\u0001\u0000\u0000\u0000\u0276\u0277\u0005\'\u0000" + + "\u0000\u0277{\u0001\u0000\u0000\u0000\u0278\u0280\u0003~?\u0000\u0279" + + "\u027a\u0003~?\u0000\u027a\u027d\u0005(\u0000\u0000\u027b\u027e\u0003" + + "~?\u0000\u027c\u027e\u0005\b\u0000\u0000\u027d\u027b\u0001\u0000\u0000" + + "\u0000\u027d\u027c\u0001\u0000\u0000\u0000\u027e\u0280\u0001\u0000\u0000" + + "\u0000\u027f\u0278\u0001\u0000\u0000\u0000\u027f\u0279\u0001\u0000\u0000" + + "\u0000\u0280}\u0001\u0000\u0000\u0000\u0281\u0282\u0007\u0002\u0000\u0000" + + "\u0282\u007f\u0001\u0000\u0000\u0000U\u0083\u008a\u0091\u009f\u00a6\u00af" + + "\u00bd\u00c3\u00cb\u00d5\u00da\u00e1\u00ea\u00ee\u00f4\u00fc\u0102\u010b" + + "\u0116\u011c\u0121\u0126\u012a\u012e\u0131\u0134\u0137\u013c\u0147\u014b" + + "\u0156\u0161\u016e\u0179\u017f\u0184\u0188\u0196\u019b\u019e\u01a3\u01a7" + + "\u01ab\u01af\u01b3\u01b5\u01bb\u01c7\u01d0\u01d4\u01d8\u01df\u01e3\u01e8" + + "\u01eb\u01f0\u01f5\u01fa\u01fc\u0202\u0206\u020c\u0210\u0214\u0216\u021e" + + "\u0220\u0227\u0229\u022f\u0237\u023e\u0242\u0246\u024a\u024f\u0253\u025a" + + "\u025d\u0265\u0269\u026b\u0273\u027d\u027f"; + 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); + } + } +} diff --git a/android-app/anter4codeformat/app/src/main/java/org/antlr/parser/antlr4/ANTLRv4ParserBaseListener.java b/android-app/anter4codeformat/app/src/main/java/org/antlr/parser/antlr4/ANTLRv4ParserBaseListener.java new file mode 100644 index 0000000..8063623 --- /dev/null +++ b/android-app/anter4codeformat/app/src/main/java/org/antlr/parser/antlr4/ANTLRv4ParserBaseListener.java @@ -0,0 +1,808 @@ +// Generated from ./ANTLRv4Parser.g4 by ANTLR 4.13.1 +package org.antlr.parser.antlr4; + +import org.antlr.v4.runtime.ParserRuleContext; +import org.antlr.v4.runtime.tree.ErrorNode; +import org.antlr.v4.runtime.tree.TerminalNode; + +/** + * This class provides an empty implementation of {@link ANTLRv4ParserListener}, + * which can be extended to create a listener which only needs to handle a subset + * of the available methods. + */ +@SuppressWarnings("CheckReturnValue") +public class ANTLRv4ParserBaseListener implements ANTLRv4ParserListener { + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void enterGrammarSpec(ANTLRv4Parser.GrammarSpecContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void exitGrammarSpec(ANTLRv4Parser.GrammarSpecContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void enterGrammarDecl(ANTLRv4Parser.GrammarDeclContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void exitGrammarDecl(ANTLRv4Parser.GrammarDeclContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void enterGrammarType(ANTLRv4Parser.GrammarTypeContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void exitGrammarType(ANTLRv4Parser.GrammarTypeContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void enterPrequelConstruct(ANTLRv4Parser.PrequelConstructContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void exitPrequelConstruct(ANTLRv4Parser.PrequelConstructContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void enterOptionsSpec(ANTLRv4Parser.OptionsSpecContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void exitOptionsSpec(ANTLRv4Parser.OptionsSpecContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void enterOption(ANTLRv4Parser.OptionContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void exitOption(ANTLRv4Parser.OptionContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void enterOptionValue(ANTLRv4Parser.OptionValueContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void exitOptionValue(ANTLRv4Parser.OptionValueContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void enterDelegateGrammars(ANTLRv4Parser.DelegateGrammarsContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void exitDelegateGrammars(ANTLRv4Parser.DelegateGrammarsContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void enterDelegateGrammar(ANTLRv4Parser.DelegateGrammarContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void exitDelegateGrammar(ANTLRv4Parser.DelegateGrammarContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void enterTokensSpec(ANTLRv4Parser.TokensSpecContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void exitTokensSpec(ANTLRv4Parser.TokensSpecContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void enterChannelsSpec(ANTLRv4Parser.ChannelsSpecContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void exitChannelsSpec(ANTLRv4Parser.ChannelsSpecContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void enterIdList(ANTLRv4Parser.IdListContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void exitIdList(ANTLRv4Parser.IdListContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void enterAction_(ANTLRv4Parser.Action_Context ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void exitAction_(ANTLRv4Parser.Action_Context ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void enterActionScopeName(ANTLRv4Parser.ActionScopeNameContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void exitActionScopeName(ANTLRv4Parser.ActionScopeNameContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void enterActionBlock(ANTLRv4Parser.ActionBlockContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void exitActionBlock(ANTLRv4Parser.ActionBlockContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void enterArgActionBlock(ANTLRv4Parser.ArgActionBlockContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void exitArgActionBlock(ANTLRv4Parser.ArgActionBlockContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void enterModeSpec(ANTLRv4Parser.ModeSpecContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void exitModeSpec(ANTLRv4Parser.ModeSpecContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void enterRules(ANTLRv4Parser.RulesContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void exitRules(ANTLRv4Parser.RulesContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void enterRuleSpec(ANTLRv4Parser.RuleSpecContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void exitRuleSpec(ANTLRv4Parser.RuleSpecContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void enterParserRuleSpec(ANTLRv4Parser.ParserRuleSpecContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void exitParserRuleSpec(ANTLRv4Parser.ParserRuleSpecContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void enterExceptionGroup(ANTLRv4Parser.ExceptionGroupContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void exitExceptionGroup(ANTLRv4Parser.ExceptionGroupContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void enterExceptionHandler(ANTLRv4Parser.ExceptionHandlerContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void exitExceptionHandler(ANTLRv4Parser.ExceptionHandlerContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void enterFinallyClause(ANTLRv4Parser.FinallyClauseContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void exitFinallyClause(ANTLRv4Parser.FinallyClauseContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void enterRulePrequel(ANTLRv4Parser.RulePrequelContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void exitRulePrequel(ANTLRv4Parser.RulePrequelContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void enterRuleReturns(ANTLRv4Parser.RuleReturnsContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void exitRuleReturns(ANTLRv4Parser.RuleReturnsContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void enterThrowsSpec(ANTLRv4Parser.ThrowsSpecContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void exitThrowsSpec(ANTLRv4Parser.ThrowsSpecContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void enterLocalsSpec(ANTLRv4Parser.LocalsSpecContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void exitLocalsSpec(ANTLRv4Parser.LocalsSpecContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void enterRuleAction(ANTLRv4Parser.RuleActionContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void exitRuleAction(ANTLRv4Parser.RuleActionContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void enterRuleModifiers(ANTLRv4Parser.RuleModifiersContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void exitRuleModifiers(ANTLRv4Parser.RuleModifiersContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void enterRuleModifier(ANTLRv4Parser.RuleModifierContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void exitRuleModifier(ANTLRv4Parser.RuleModifierContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void enterRuleBlock(ANTLRv4Parser.RuleBlockContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void exitRuleBlock(ANTLRv4Parser.RuleBlockContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void enterRuleAltList(ANTLRv4Parser.RuleAltListContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void exitRuleAltList(ANTLRv4Parser.RuleAltListContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void enterLabeledAlt(ANTLRv4Parser.LabeledAltContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void exitLabeledAlt(ANTLRv4Parser.LabeledAltContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void enterLexerRuleSpec(ANTLRv4Parser.LexerRuleSpecContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void exitLexerRuleSpec(ANTLRv4Parser.LexerRuleSpecContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void enterLexerRuleBlock(ANTLRv4Parser.LexerRuleBlockContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void exitLexerRuleBlock(ANTLRv4Parser.LexerRuleBlockContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void enterLexerAltList(ANTLRv4Parser.LexerAltListContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void exitLexerAltList(ANTLRv4Parser.LexerAltListContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void enterLexerAlt(ANTLRv4Parser.LexerAltContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void exitLexerAlt(ANTLRv4Parser.LexerAltContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void enterLexerElements(ANTLRv4Parser.LexerElementsContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void exitLexerElements(ANTLRv4Parser.LexerElementsContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void enterLexerElement(ANTLRv4Parser.LexerElementContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void exitLexerElement(ANTLRv4Parser.LexerElementContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void enterLabeledLexerElement(ANTLRv4Parser.LabeledLexerElementContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void exitLabeledLexerElement(ANTLRv4Parser.LabeledLexerElementContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void enterLexerBlock(ANTLRv4Parser.LexerBlockContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void exitLexerBlock(ANTLRv4Parser.LexerBlockContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void enterLexerCommands(ANTLRv4Parser.LexerCommandsContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void exitLexerCommands(ANTLRv4Parser.LexerCommandsContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void enterLexerCommand(ANTLRv4Parser.LexerCommandContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void exitLexerCommand(ANTLRv4Parser.LexerCommandContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void enterLexerCommandName(ANTLRv4Parser.LexerCommandNameContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void exitLexerCommandName(ANTLRv4Parser.LexerCommandNameContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void enterLexerCommandExpr(ANTLRv4Parser.LexerCommandExprContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void exitLexerCommandExpr(ANTLRv4Parser.LexerCommandExprContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void enterAltList(ANTLRv4Parser.AltListContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void exitAltList(ANTLRv4Parser.AltListContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void enterAlternative(ANTLRv4Parser.AlternativeContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void exitAlternative(ANTLRv4Parser.AlternativeContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void enterElement(ANTLRv4Parser.ElementContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void exitElement(ANTLRv4Parser.ElementContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void enterLabeledElement(ANTLRv4Parser.LabeledElementContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void exitLabeledElement(ANTLRv4Parser.LabeledElementContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void enterEbnf(ANTLRv4Parser.EbnfContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void exitEbnf(ANTLRv4Parser.EbnfContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void enterBlockSuffix(ANTLRv4Parser.BlockSuffixContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void exitBlockSuffix(ANTLRv4Parser.BlockSuffixContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void enterEbnfSuffix(ANTLRv4Parser.EbnfSuffixContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void exitEbnfSuffix(ANTLRv4Parser.EbnfSuffixContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void enterLexerAtom(ANTLRv4Parser.LexerAtomContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void exitLexerAtom(ANTLRv4Parser.LexerAtomContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void enterAtom(ANTLRv4Parser.AtomContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void exitAtom(ANTLRv4Parser.AtomContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void enterNotSet(ANTLRv4Parser.NotSetContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void exitNotSet(ANTLRv4Parser.NotSetContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void enterBlockSet(ANTLRv4Parser.BlockSetContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void exitBlockSet(ANTLRv4Parser.BlockSetContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void enterSetElement(ANTLRv4Parser.SetElementContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void exitSetElement(ANTLRv4Parser.SetElementContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void enterBlock(ANTLRv4Parser.BlockContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void exitBlock(ANTLRv4Parser.BlockContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void enterRuleref(ANTLRv4Parser.RulerefContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void exitRuleref(ANTLRv4Parser.RulerefContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void enterCharacterRange(ANTLRv4Parser.CharacterRangeContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void exitCharacterRange(ANTLRv4Parser.CharacterRangeContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void enterTerminal(ANTLRv4Parser.TerminalContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void exitTerminal(ANTLRv4Parser.TerminalContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void enterElementOptions(ANTLRv4Parser.ElementOptionsContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void exitElementOptions(ANTLRv4Parser.ElementOptionsContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void enterElementOption(ANTLRv4Parser.ElementOptionContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void exitElementOption(ANTLRv4Parser.ElementOptionContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void enterIdentifier(ANTLRv4Parser.IdentifierContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void exitIdentifier(ANTLRv4Parser.IdentifierContext ctx) { } + + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void enterEveryRule(ParserRuleContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void exitEveryRule(ParserRuleContext ctx) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void visitTerminal(TerminalNode node) { } + /** + * {@inheritDoc} + * + *

The default implementation does nothing.

+ */ + @Override public void visitErrorNode(ErrorNode node) { } +} \ No newline at end of file diff --git a/android-app/anter4codeformat/app/src/main/java/org/antlr/parser/antlr4/ANTLRv4ParserListener.java b/android-app/anter4codeformat/app/src/main/java/org/antlr/parser/antlr4/ANTLRv4ParserListener.java new file mode 100644 index 0000000..097b4fe --- /dev/null +++ b/android-app/anter4codeformat/app/src/main/java/org/antlr/parser/antlr4/ANTLRv4ParserListener.java @@ -0,0 +1,650 @@ +// Generated from ./ANTLRv4Parser.g4 by ANTLR 4.13.1 +package org.antlr.parser.antlr4; +import org.antlr.v4.runtime.tree.ParseTreeListener; + +/** + * This interface defines a complete listener for a parse tree produced by + * {@link ANTLRv4Parser}. + */ +public interface ANTLRv4ParserListener extends ParseTreeListener { + /** + * Enter a parse tree produced by {@link ANTLRv4Parser#grammarSpec}. + * @param ctx the parse tree + */ + void enterGrammarSpec(ANTLRv4Parser.GrammarSpecContext ctx); + /** + * Exit a parse tree produced by {@link ANTLRv4Parser#grammarSpec}. + * @param ctx the parse tree + */ + void exitGrammarSpec(ANTLRv4Parser.GrammarSpecContext ctx); + /** + * Enter a parse tree produced by {@link ANTLRv4Parser#grammarDecl}. + * @param ctx the parse tree + */ + void enterGrammarDecl(ANTLRv4Parser.GrammarDeclContext ctx); + /** + * Exit a parse tree produced by {@link ANTLRv4Parser#grammarDecl}. + * @param ctx the parse tree + */ + void exitGrammarDecl(ANTLRv4Parser.GrammarDeclContext ctx); + /** + * Enter a parse tree produced by {@link ANTLRv4Parser#grammarType}. + * @param ctx the parse tree + */ + void enterGrammarType(ANTLRv4Parser.GrammarTypeContext ctx); + /** + * Exit a parse tree produced by {@link ANTLRv4Parser#grammarType}. + * @param ctx the parse tree + */ + void exitGrammarType(ANTLRv4Parser.GrammarTypeContext ctx); + /** + * Enter a parse tree produced by {@link ANTLRv4Parser#prequelConstruct}. + * @param ctx the parse tree + */ + void enterPrequelConstruct(ANTLRv4Parser.PrequelConstructContext ctx); + /** + * Exit a parse tree produced by {@link ANTLRv4Parser#prequelConstruct}. + * @param ctx the parse tree + */ + void exitPrequelConstruct(ANTLRv4Parser.PrequelConstructContext ctx); + /** + * Enter a parse tree produced by {@link ANTLRv4Parser#optionsSpec}. + * @param ctx the parse tree + */ + void enterOptionsSpec(ANTLRv4Parser.OptionsSpecContext ctx); + /** + * Exit a parse tree produced by {@link ANTLRv4Parser#optionsSpec}. + * @param ctx the parse tree + */ + void exitOptionsSpec(ANTLRv4Parser.OptionsSpecContext ctx); + /** + * Enter a parse tree produced by {@link ANTLRv4Parser#option}. + * @param ctx the parse tree + */ + void enterOption(ANTLRv4Parser.OptionContext ctx); + /** + * Exit a parse tree produced by {@link ANTLRv4Parser#option}. + * @param ctx the parse tree + */ + void exitOption(ANTLRv4Parser.OptionContext ctx); + /** + * Enter a parse tree produced by {@link ANTLRv4Parser#optionValue}. + * @param ctx the parse tree + */ + void enterOptionValue(ANTLRv4Parser.OptionValueContext ctx); + /** + * Exit a parse tree produced by {@link ANTLRv4Parser#optionValue}. + * @param ctx the parse tree + */ + void exitOptionValue(ANTLRv4Parser.OptionValueContext ctx); + /** + * Enter a parse tree produced by {@link ANTLRv4Parser#delegateGrammars}. + * @param ctx the parse tree + */ + void enterDelegateGrammars(ANTLRv4Parser.DelegateGrammarsContext ctx); + /** + * Exit a parse tree produced by {@link ANTLRv4Parser#delegateGrammars}. + * @param ctx the parse tree + */ + void exitDelegateGrammars(ANTLRv4Parser.DelegateGrammarsContext ctx); + /** + * Enter a parse tree produced by {@link ANTLRv4Parser#delegateGrammar}. + * @param ctx the parse tree + */ + void enterDelegateGrammar(ANTLRv4Parser.DelegateGrammarContext ctx); + /** + * Exit a parse tree produced by {@link ANTLRv4Parser#delegateGrammar}. + * @param ctx the parse tree + */ + void exitDelegateGrammar(ANTLRv4Parser.DelegateGrammarContext ctx); + /** + * Enter a parse tree produced by {@link ANTLRv4Parser#tokensSpec}. + * @param ctx the parse tree + */ + void enterTokensSpec(ANTLRv4Parser.TokensSpecContext ctx); + /** + * Exit a parse tree produced by {@link ANTLRv4Parser#tokensSpec}. + * @param ctx the parse tree + */ + void exitTokensSpec(ANTLRv4Parser.TokensSpecContext ctx); + /** + * Enter a parse tree produced by {@link ANTLRv4Parser#channelsSpec}. + * @param ctx the parse tree + */ + void enterChannelsSpec(ANTLRv4Parser.ChannelsSpecContext ctx); + /** + * Exit a parse tree produced by {@link ANTLRv4Parser#channelsSpec}. + * @param ctx the parse tree + */ + void exitChannelsSpec(ANTLRv4Parser.ChannelsSpecContext ctx); + /** + * Enter a parse tree produced by {@link ANTLRv4Parser#idList}. + * @param ctx the parse tree + */ + void enterIdList(ANTLRv4Parser.IdListContext ctx); + /** + * Exit a parse tree produced by {@link ANTLRv4Parser#idList}. + * @param ctx the parse tree + */ + void exitIdList(ANTLRv4Parser.IdListContext ctx); + /** + * Enter a parse tree produced by {@link ANTLRv4Parser#action_}. + * @param ctx the parse tree + */ + void enterAction_(ANTLRv4Parser.Action_Context ctx); + /** + * Exit a parse tree produced by {@link ANTLRv4Parser#action_}. + * @param ctx the parse tree + */ + void exitAction_(ANTLRv4Parser.Action_Context ctx); + /** + * Enter a parse tree produced by {@link ANTLRv4Parser#actionScopeName}. + * @param ctx the parse tree + */ + void enterActionScopeName(ANTLRv4Parser.ActionScopeNameContext ctx); + /** + * Exit a parse tree produced by {@link ANTLRv4Parser#actionScopeName}. + * @param ctx the parse tree + */ + void exitActionScopeName(ANTLRv4Parser.ActionScopeNameContext ctx); + /** + * Enter a parse tree produced by {@link ANTLRv4Parser#actionBlock}. + * @param ctx the parse tree + */ + void enterActionBlock(ANTLRv4Parser.ActionBlockContext ctx); + /** + * Exit a parse tree produced by {@link ANTLRv4Parser#actionBlock}. + * @param ctx the parse tree + */ + void exitActionBlock(ANTLRv4Parser.ActionBlockContext ctx); + /** + * Enter a parse tree produced by {@link ANTLRv4Parser#argActionBlock}. + * @param ctx the parse tree + */ + void enterArgActionBlock(ANTLRv4Parser.ArgActionBlockContext ctx); + /** + * Exit a parse tree produced by {@link ANTLRv4Parser#argActionBlock}. + * @param ctx the parse tree + */ + void exitArgActionBlock(ANTLRv4Parser.ArgActionBlockContext ctx); + /** + * Enter a parse tree produced by {@link ANTLRv4Parser#modeSpec}. + * @param ctx the parse tree + */ + void enterModeSpec(ANTLRv4Parser.ModeSpecContext ctx); + /** + * Exit a parse tree produced by {@link ANTLRv4Parser#modeSpec}. + * @param ctx the parse tree + */ + void exitModeSpec(ANTLRv4Parser.ModeSpecContext ctx); + /** + * Enter a parse tree produced by {@link ANTLRv4Parser#rules}. + * @param ctx the parse tree + */ + void enterRules(ANTLRv4Parser.RulesContext ctx); + /** + * Exit a parse tree produced by {@link ANTLRv4Parser#rules}. + * @param ctx the parse tree + */ + void exitRules(ANTLRv4Parser.RulesContext ctx); + /** + * Enter a parse tree produced by {@link ANTLRv4Parser#ruleSpec}. + * @param ctx the parse tree + */ + void enterRuleSpec(ANTLRv4Parser.RuleSpecContext ctx); + /** + * Exit a parse tree produced by {@link ANTLRv4Parser#ruleSpec}. + * @param ctx the parse tree + */ + void exitRuleSpec(ANTLRv4Parser.RuleSpecContext ctx); + /** + * Enter a parse tree produced by {@link ANTLRv4Parser#parserRuleSpec}. + * @param ctx the parse tree + */ + void enterParserRuleSpec(ANTLRv4Parser.ParserRuleSpecContext ctx); + /** + * Exit a parse tree produced by {@link ANTLRv4Parser#parserRuleSpec}. + * @param ctx the parse tree + */ + void exitParserRuleSpec(ANTLRv4Parser.ParserRuleSpecContext ctx); + /** + * Enter a parse tree produced by {@link ANTLRv4Parser#exceptionGroup}. + * @param ctx the parse tree + */ + void enterExceptionGroup(ANTLRv4Parser.ExceptionGroupContext ctx); + /** + * Exit a parse tree produced by {@link ANTLRv4Parser#exceptionGroup}. + * @param ctx the parse tree + */ + void exitExceptionGroup(ANTLRv4Parser.ExceptionGroupContext ctx); + /** + * Enter a parse tree produced by {@link ANTLRv4Parser#exceptionHandler}. + * @param ctx the parse tree + */ + void enterExceptionHandler(ANTLRv4Parser.ExceptionHandlerContext ctx); + /** + * Exit a parse tree produced by {@link ANTLRv4Parser#exceptionHandler}. + * @param ctx the parse tree + */ + void exitExceptionHandler(ANTLRv4Parser.ExceptionHandlerContext ctx); + /** + * Enter a parse tree produced by {@link ANTLRv4Parser#finallyClause}. + * @param ctx the parse tree + */ + void enterFinallyClause(ANTLRv4Parser.FinallyClauseContext ctx); + /** + * Exit a parse tree produced by {@link ANTLRv4Parser#finallyClause}. + * @param ctx the parse tree + */ + void exitFinallyClause(ANTLRv4Parser.FinallyClauseContext ctx); + /** + * Enter a parse tree produced by {@link ANTLRv4Parser#rulePrequel}. + * @param ctx the parse tree + */ + void enterRulePrequel(ANTLRv4Parser.RulePrequelContext ctx); + /** + * Exit a parse tree produced by {@link ANTLRv4Parser#rulePrequel}. + * @param ctx the parse tree + */ + void exitRulePrequel(ANTLRv4Parser.RulePrequelContext ctx); + /** + * Enter a parse tree produced by {@link ANTLRv4Parser#ruleReturns}. + * @param ctx the parse tree + */ + void enterRuleReturns(ANTLRv4Parser.RuleReturnsContext ctx); + /** + * Exit a parse tree produced by {@link ANTLRv4Parser#ruleReturns}. + * @param ctx the parse tree + */ + void exitRuleReturns(ANTLRv4Parser.RuleReturnsContext ctx); + /** + * Enter a parse tree produced by {@link ANTLRv4Parser#throwsSpec}. + * @param ctx the parse tree + */ + void enterThrowsSpec(ANTLRv4Parser.ThrowsSpecContext ctx); + /** + * Exit a parse tree produced by {@link ANTLRv4Parser#throwsSpec}. + * @param ctx the parse tree + */ + void exitThrowsSpec(ANTLRv4Parser.ThrowsSpecContext ctx); + /** + * Enter a parse tree produced by {@link ANTLRv4Parser#localsSpec}. + * @param ctx the parse tree + */ + void enterLocalsSpec(ANTLRv4Parser.LocalsSpecContext ctx); + /** + * Exit a parse tree produced by {@link ANTLRv4Parser#localsSpec}. + * @param ctx the parse tree + */ + void exitLocalsSpec(ANTLRv4Parser.LocalsSpecContext ctx); + /** + * Enter a parse tree produced by {@link ANTLRv4Parser#ruleAction}. + * @param ctx the parse tree + */ + void enterRuleAction(ANTLRv4Parser.RuleActionContext ctx); + /** + * Exit a parse tree produced by {@link ANTLRv4Parser#ruleAction}. + * @param ctx the parse tree + */ + void exitRuleAction(ANTLRv4Parser.RuleActionContext ctx); + /** + * Enter a parse tree produced by {@link ANTLRv4Parser#ruleModifiers}. + * @param ctx the parse tree + */ + void enterRuleModifiers(ANTLRv4Parser.RuleModifiersContext ctx); + /** + * Exit a parse tree produced by {@link ANTLRv4Parser#ruleModifiers}. + * @param ctx the parse tree + */ + void exitRuleModifiers(ANTLRv4Parser.RuleModifiersContext ctx); + /** + * Enter a parse tree produced by {@link ANTLRv4Parser#ruleModifier}. + * @param ctx the parse tree + */ + void enterRuleModifier(ANTLRv4Parser.RuleModifierContext ctx); + /** + * Exit a parse tree produced by {@link ANTLRv4Parser#ruleModifier}. + * @param ctx the parse tree + */ + void exitRuleModifier(ANTLRv4Parser.RuleModifierContext ctx); + /** + * Enter a parse tree produced by {@link ANTLRv4Parser#ruleBlock}. + * @param ctx the parse tree + */ + void enterRuleBlock(ANTLRv4Parser.RuleBlockContext ctx); + /** + * Exit a parse tree produced by {@link ANTLRv4Parser#ruleBlock}. + * @param ctx the parse tree + */ + void exitRuleBlock(ANTLRv4Parser.RuleBlockContext ctx); + /** + * Enter a parse tree produced by {@link ANTLRv4Parser#ruleAltList}. + * @param ctx the parse tree + */ + void enterRuleAltList(ANTLRv4Parser.RuleAltListContext ctx); + /** + * Exit a parse tree produced by {@link ANTLRv4Parser#ruleAltList}. + * @param ctx the parse tree + */ + void exitRuleAltList(ANTLRv4Parser.RuleAltListContext ctx); + /** + * Enter a parse tree produced by {@link ANTLRv4Parser#labeledAlt}. + * @param ctx the parse tree + */ + void enterLabeledAlt(ANTLRv4Parser.LabeledAltContext ctx); + /** + * Exit a parse tree produced by {@link ANTLRv4Parser#labeledAlt}. + * @param ctx the parse tree + */ + void exitLabeledAlt(ANTLRv4Parser.LabeledAltContext ctx); + /** + * Enter a parse tree produced by {@link ANTLRv4Parser#lexerRuleSpec}. + * @param ctx the parse tree + */ + void enterLexerRuleSpec(ANTLRv4Parser.LexerRuleSpecContext ctx); + /** + * Exit a parse tree produced by {@link ANTLRv4Parser#lexerRuleSpec}. + * @param ctx the parse tree + */ + void exitLexerRuleSpec(ANTLRv4Parser.LexerRuleSpecContext ctx); + /** + * Enter a parse tree produced by {@link ANTLRv4Parser#lexerRuleBlock}. + * @param ctx the parse tree + */ + void enterLexerRuleBlock(ANTLRv4Parser.LexerRuleBlockContext ctx); + /** + * Exit a parse tree produced by {@link ANTLRv4Parser#lexerRuleBlock}. + * @param ctx the parse tree + */ + void exitLexerRuleBlock(ANTLRv4Parser.LexerRuleBlockContext ctx); + /** + * Enter a parse tree produced by {@link ANTLRv4Parser#lexerAltList}. + * @param ctx the parse tree + */ + void enterLexerAltList(ANTLRv4Parser.LexerAltListContext ctx); + /** + * Exit a parse tree produced by {@link ANTLRv4Parser#lexerAltList}. + * @param ctx the parse tree + */ + void exitLexerAltList(ANTLRv4Parser.LexerAltListContext ctx); + /** + * Enter a parse tree produced by {@link ANTLRv4Parser#lexerAlt}. + * @param ctx the parse tree + */ + void enterLexerAlt(ANTLRv4Parser.LexerAltContext ctx); + /** + * Exit a parse tree produced by {@link ANTLRv4Parser#lexerAlt}. + * @param ctx the parse tree + */ + void exitLexerAlt(ANTLRv4Parser.LexerAltContext ctx); + /** + * Enter a parse tree produced by {@link ANTLRv4Parser#lexerElements}. + * @param ctx the parse tree + */ + void enterLexerElements(ANTLRv4Parser.LexerElementsContext ctx); + /** + * Exit a parse tree produced by {@link ANTLRv4Parser#lexerElements}. + * @param ctx the parse tree + */ + void exitLexerElements(ANTLRv4Parser.LexerElementsContext ctx); + /** + * Enter a parse tree produced by {@link ANTLRv4Parser#lexerElement}. + * @param ctx the parse tree + */ + void enterLexerElement(ANTLRv4Parser.LexerElementContext ctx); + /** + * Exit a parse tree produced by {@link ANTLRv4Parser#lexerElement}. + * @param ctx the parse tree + */ + void exitLexerElement(ANTLRv4Parser.LexerElementContext ctx); + /** + * Enter a parse tree produced by {@link ANTLRv4Parser#labeledLexerElement}. + * @param ctx the parse tree + */ + void enterLabeledLexerElement(ANTLRv4Parser.LabeledLexerElementContext ctx); + /** + * Exit a parse tree produced by {@link ANTLRv4Parser#labeledLexerElement}. + * @param ctx the parse tree + */ + void exitLabeledLexerElement(ANTLRv4Parser.LabeledLexerElementContext ctx); + /** + * Enter a parse tree produced by {@link ANTLRv4Parser#lexerBlock}. + * @param ctx the parse tree + */ + void enterLexerBlock(ANTLRv4Parser.LexerBlockContext ctx); + /** + * Exit a parse tree produced by {@link ANTLRv4Parser#lexerBlock}. + * @param ctx the parse tree + */ + void exitLexerBlock(ANTLRv4Parser.LexerBlockContext ctx); + /** + * Enter a parse tree produced by {@link ANTLRv4Parser#lexerCommands}. + * @param ctx the parse tree + */ + void enterLexerCommands(ANTLRv4Parser.LexerCommandsContext ctx); + /** + * Exit a parse tree produced by {@link ANTLRv4Parser#lexerCommands}. + * @param ctx the parse tree + */ + void exitLexerCommands(ANTLRv4Parser.LexerCommandsContext ctx); + /** + * Enter a parse tree produced by {@link ANTLRv4Parser#lexerCommand}. + * @param ctx the parse tree + */ + void enterLexerCommand(ANTLRv4Parser.LexerCommandContext ctx); + /** + * Exit a parse tree produced by {@link ANTLRv4Parser#lexerCommand}. + * @param ctx the parse tree + */ + void exitLexerCommand(ANTLRv4Parser.LexerCommandContext ctx); + /** + * Enter a parse tree produced by {@link ANTLRv4Parser#lexerCommandName}. + * @param ctx the parse tree + */ + void enterLexerCommandName(ANTLRv4Parser.LexerCommandNameContext ctx); + /** + * Exit a parse tree produced by {@link ANTLRv4Parser#lexerCommandName}. + * @param ctx the parse tree + */ + void exitLexerCommandName(ANTLRv4Parser.LexerCommandNameContext ctx); + /** + * Enter a parse tree produced by {@link ANTLRv4Parser#lexerCommandExpr}. + * @param ctx the parse tree + */ + void enterLexerCommandExpr(ANTLRv4Parser.LexerCommandExprContext ctx); + /** + * Exit a parse tree produced by {@link ANTLRv4Parser#lexerCommandExpr}. + * @param ctx the parse tree + */ + void exitLexerCommandExpr(ANTLRv4Parser.LexerCommandExprContext ctx); + /** + * Enter a parse tree produced by {@link ANTLRv4Parser#altList}. + * @param ctx the parse tree + */ + void enterAltList(ANTLRv4Parser.AltListContext ctx); + /** + * Exit a parse tree produced by {@link ANTLRv4Parser#altList}. + * @param ctx the parse tree + */ + void exitAltList(ANTLRv4Parser.AltListContext ctx); + /** + * Enter a parse tree produced by {@link ANTLRv4Parser#alternative}. + * @param ctx the parse tree + */ + void enterAlternative(ANTLRv4Parser.AlternativeContext ctx); + /** + * Exit a parse tree produced by {@link ANTLRv4Parser#alternative}. + * @param ctx the parse tree + */ + void exitAlternative(ANTLRv4Parser.AlternativeContext ctx); + /** + * Enter a parse tree produced by {@link ANTLRv4Parser#element}. + * @param ctx the parse tree + */ + void enterElement(ANTLRv4Parser.ElementContext ctx); + /** + * Exit a parse tree produced by {@link ANTLRv4Parser#element}. + * @param ctx the parse tree + */ + void exitElement(ANTLRv4Parser.ElementContext ctx); + /** + * Enter a parse tree produced by {@link ANTLRv4Parser#labeledElement}. + * @param ctx the parse tree + */ + void enterLabeledElement(ANTLRv4Parser.LabeledElementContext ctx); + /** + * Exit a parse tree produced by {@link ANTLRv4Parser#labeledElement}. + * @param ctx the parse tree + */ + void exitLabeledElement(ANTLRv4Parser.LabeledElementContext ctx); + /** + * Enter a parse tree produced by {@link ANTLRv4Parser#ebnf}. + * @param ctx the parse tree + */ + void enterEbnf(ANTLRv4Parser.EbnfContext ctx); + /** + * Exit a parse tree produced by {@link ANTLRv4Parser#ebnf}. + * @param ctx the parse tree + */ + void exitEbnf(ANTLRv4Parser.EbnfContext ctx); + /** + * Enter a parse tree produced by {@link ANTLRv4Parser#blockSuffix}. + * @param ctx the parse tree + */ + void enterBlockSuffix(ANTLRv4Parser.BlockSuffixContext ctx); + /** + * Exit a parse tree produced by {@link ANTLRv4Parser#blockSuffix}. + * @param ctx the parse tree + */ + void exitBlockSuffix(ANTLRv4Parser.BlockSuffixContext ctx); + /** + * Enter a parse tree produced by {@link ANTLRv4Parser#ebnfSuffix}. + * @param ctx the parse tree + */ + void enterEbnfSuffix(ANTLRv4Parser.EbnfSuffixContext ctx); + /** + * Exit a parse tree produced by {@link ANTLRv4Parser#ebnfSuffix}. + * @param ctx the parse tree + */ + void exitEbnfSuffix(ANTLRv4Parser.EbnfSuffixContext ctx); + /** + * Enter a parse tree produced by {@link ANTLRv4Parser#lexerAtom}. + * @param ctx the parse tree + */ + void enterLexerAtom(ANTLRv4Parser.LexerAtomContext ctx); + /** + * Exit a parse tree produced by {@link ANTLRv4Parser#lexerAtom}. + * @param ctx the parse tree + */ + void exitLexerAtom(ANTLRv4Parser.LexerAtomContext ctx); + /** + * Enter a parse tree produced by {@link ANTLRv4Parser#atom}. + * @param ctx the parse tree + */ + void enterAtom(ANTLRv4Parser.AtomContext ctx); + /** + * Exit a parse tree produced by {@link ANTLRv4Parser#atom}. + * @param ctx the parse tree + */ + void exitAtom(ANTLRv4Parser.AtomContext ctx); + /** + * Enter a parse tree produced by {@link ANTLRv4Parser#notSet}. + * @param ctx the parse tree + */ + void enterNotSet(ANTLRv4Parser.NotSetContext ctx); + /** + * Exit a parse tree produced by {@link ANTLRv4Parser#notSet}. + * @param ctx the parse tree + */ + void exitNotSet(ANTLRv4Parser.NotSetContext ctx); + /** + * Enter a parse tree produced by {@link ANTLRv4Parser#blockSet}. + * @param ctx the parse tree + */ + void enterBlockSet(ANTLRv4Parser.BlockSetContext ctx); + /** + * Exit a parse tree produced by {@link ANTLRv4Parser#blockSet}. + * @param ctx the parse tree + */ + void exitBlockSet(ANTLRv4Parser.BlockSetContext ctx); + /** + * Enter a parse tree produced by {@link ANTLRv4Parser#setElement}. + * @param ctx the parse tree + */ + void enterSetElement(ANTLRv4Parser.SetElementContext ctx); + /** + * Exit a parse tree produced by {@link ANTLRv4Parser#setElement}. + * @param ctx the parse tree + */ + void exitSetElement(ANTLRv4Parser.SetElementContext ctx); + /** + * Enter a parse tree produced by {@link ANTLRv4Parser#block}. + * @param ctx the parse tree + */ + void enterBlock(ANTLRv4Parser.BlockContext ctx); + /** + * Exit a parse tree produced by {@link ANTLRv4Parser#block}. + * @param ctx the parse tree + */ + void exitBlock(ANTLRv4Parser.BlockContext ctx); + /** + * Enter a parse tree produced by {@link ANTLRv4Parser#ruleref}. + * @param ctx the parse tree + */ + void enterRuleref(ANTLRv4Parser.RulerefContext ctx); + /** + * Exit a parse tree produced by {@link ANTLRv4Parser#ruleref}. + * @param ctx the parse tree + */ + void exitRuleref(ANTLRv4Parser.RulerefContext ctx); + /** + * Enter a parse tree produced by {@link ANTLRv4Parser#characterRange}. + * @param ctx the parse tree + */ + void enterCharacterRange(ANTLRv4Parser.CharacterRangeContext ctx); + /** + * Exit a parse tree produced by {@link ANTLRv4Parser#characterRange}. + * @param ctx the parse tree + */ + void exitCharacterRange(ANTLRv4Parser.CharacterRangeContext ctx); + /** + * Enter a parse tree produced by {@link ANTLRv4Parser#terminal}. + * @param ctx the parse tree + */ + void enterTerminal(ANTLRv4Parser.TerminalContext ctx); + /** + * Exit a parse tree produced by {@link ANTLRv4Parser#terminal}. + * @param ctx the parse tree + */ + void exitTerminal(ANTLRv4Parser.TerminalContext ctx); + /** + * Enter a parse tree produced by {@link ANTLRv4Parser#elementOptions}. + * @param ctx the parse tree + */ + void enterElementOptions(ANTLRv4Parser.ElementOptionsContext ctx); + /** + * Exit a parse tree produced by {@link ANTLRv4Parser#elementOptions}. + * @param ctx the parse tree + */ + void exitElementOptions(ANTLRv4Parser.ElementOptionsContext ctx); + /** + * Enter a parse tree produced by {@link ANTLRv4Parser#elementOption}. + * @param ctx the parse tree + */ + void enterElementOption(ANTLRv4Parser.ElementOptionContext ctx); + /** + * Exit a parse tree produced by {@link ANTLRv4Parser#elementOption}. + * @param ctx the parse tree + */ + void exitElementOption(ANTLRv4Parser.ElementOptionContext ctx); + /** + * Enter a parse tree produced by {@link ANTLRv4Parser#identifier}. + * @param ctx the parse tree + */ + void enterIdentifier(ANTLRv4Parser.IdentifierContext ctx); + /** + * Exit a parse tree produced by {@link ANTLRv4Parser#identifier}. + * @param ctx the parse tree + */ + void exitIdentifier(ANTLRv4Parser.IdentifierContext ctx); +} \ No newline at end of file diff --git a/android-app/anter4codeformat/app/src/main/java/org/antlr/parser/antlr4/LexerAdaptor.java b/android-app/anter4codeformat/app/src/main/java/org/antlr/parser/antlr4/LexerAdaptor.java new file mode 100644 index 0000000..c6492ae --- /dev/null +++ b/android-app/anter4codeformat/app/src/main/java/org/antlr/parser/antlr4/LexerAdaptor.java @@ -0,0 +1,144 @@ +/* + [The "BSD licence"] + Copyright (c) 2005-2007 Terence Parr + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + 1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + 3. The name of the author may not be used to endorse or promote products + derived from this software without specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR + IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. + IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, + INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT + NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF + THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ +package org.antlr.parser.antlr4; + +import org.antlr.v4.runtime.*; +import org.antlr.v4.runtime.misc.*; + +public abstract class LexerAdaptor extends Lexer { + /** Generic type for OPTIONS, TOKENS and CHANNELS */ + private static final int PREQUEL_CONSTRUCT = -10; + + /** + * Track whether we are inside of a rule and whether it is lexical parser. + * _currentRuleType==Token.INVALID_TYPE means that we are outside of a rule. At the first sign of + * a rule name reference and _currentRuleType==invalid, we can assume that we are starting a + * parser rule. Similarly, seeing a token reference when not already in rule means starting a + * token rule. The terminating ';' of a rule, flips this back to invalid type. This is not perfect + * logic but works. For example, "grammar T;" means that we start and stop a lexical rule for the + * "T;". Dangerous but works. The whole point of this state information is to distinguish between + * [..arg actions..] and [charsets]. Char sets can only occur in lexical rules and arg actions + * cannot occur. + */ + private int _currentRuleType = Token.INVALID_TYPE; + + private boolean insideOptionsBlock = false; + + public LexerAdaptor(CharStream input) { + super(input); + } + + @Override + public Token emit() { + if (((_type == ANTLRv4Lexer.OPTIONS) + || (_type == ANTLRv4Lexer.TOKENS) + || (_type == ANTLRv4Lexer.CHANNELS)) + && (_currentRuleType == Token.INVALID_TYPE)) { // enter + // prequel + // construct + // ending + // with + // an + // RBRACE + _currentRuleType = PREQUEL_CONSTRUCT; + } else if ((_type == ANTLRv4Lexer.RBRACE) && (_currentRuleType == PREQUEL_CONSTRUCT)) { // exit + // prequel + // construct + _currentRuleType = Token.INVALID_TYPE; + } else if ((_type == ANTLRv4Lexer.AT) && (_currentRuleType == Token.INVALID_TYPE)) { // enter + // action + _currentRuleType = ANTLRv4Lexer.AT; + } else if ((_type == ANTLRv4Lexer.END_ACTION) + && (_currentRuleType == ANTLRv4Lexer.AT)) { // exit + // action + _currentRuleType = Token.INVALID_TYPE; + } else if (_type == ANTLRv4Lexer.ID) { + final String firstChar = + _input.getText(Interval.of(_tokenStartCharIndex, _tokenStartCharIndex)); + if (Character.isUpperCase(firstChar.charAt(0))) { + _type = ANTLRv4Lexer.TOKEN_REF; + } else { + _type = ANTLRv4Lexer.RULE_REF; + } + if (_currentRuleType == Token.INVALID_TYPE) { // if outside of rule def + _currentRuleType = _type; // set to inside lexer or parser rule + } + } else if (_type == ANTLRv4Lexer.SEMI) { // exit rule def + _currentRuleType = Token.INVALID_TYPE; + } + return super.emit(); + } + + public int getCurrentRuleType() { + return _currentRuleType; + } + + protected void handleBeginArgument() { + if (inLexerRule()) { + pushMode(ANTLRv4Lexer.LexerCharSet); + more(); + } else { + pushMode(ANTLRv4Lexer.Argument); + } + } + + protected void handleEndAction() { + final int oldMode = _mode; + final int newMode = popMode(); + final boolean isActionWithinAction = + (_modeStack.size() > 0) && (newMode == ANTLRv4Lexer.Action) && (oldMode == newMode); + if (isActionWithinAction) { + setType(ANTLRv4Lexer.ACTION_CONTENT); + } + } + + protected void handleEndArgument() { + popMode(); + if (_modeStack.size() > 0) { + setType(ANTLRv4Lexer.ARGUMENT_CONTENT); + } + } + + protected void handleOptionsLBrace() { + if (insideOptionsBlock) { + setType(ANTLRv4Lexer.BEGIN_ACTION); + pushMode(ANTLRv4Lexer.Action); + } else { + setType(ANTLRv4Lexer.LBRACE); + insideOptionsBlock = true; + } + } + + private boolean inLexerRule() { + return _currentRuleType == ANTLRv4Lexer.TOKEN_REF; + } + + public void setCurrentRuleType(int ruleType) { + _currentRuleType = ruleType; + } +} diff --git a/android-app/anter4codeformat/app/src/main/res/drawable-v24/ic_launcher_foreground.xml b/android-app/anter4codeformat/app/src/main/res/drawable-v24/ic_launcher_foreground.xml new file mode 100644 index 0000000..2b068d1 --- /dev/null +++ b/android-app/anter4codeformat/app/src/main/res/drawable-v24/ic_launcher_foreground.xml @@ -0,0 +1,30 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/android-app/anter4codeformat/app/src/main/res/drawable/ic_launcher_background.xml b/android-app/anter4codeformat/app/src/main/res/drawable/ic_launcher_background.xml new file mode 100644 index 0000000..07d5da9 --- /dev/null +++ b/android-app/anter4codeformat/app/src/main/res/drawable/ic_launcher_background.xml @@ -0,0 +1,170 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/android-app/anter4codeformat/app/src/main/res/layout/activity_main.xml b/android-app/anter4codeformat/app/src/main/res/layout/activity_main.xml new file mode 100644 index 0000000..5521e64 --- /dev/null +++ b/android-app/anter4codeformat/app/src/main/res/layout/activity_main.xml @@ -0,0 +1,21 @@ + + + +