14 #pragma warning disable 0162
16 #pragma warning disable 0219
18 #pragma warning disable 1591
20 #pragma warning disable 419
25 using System.Diagnostics;
26 using System.Collections.Generic;
28 using Antlr4.Runtime.Atn;
29 using Antlr4.Runtime.Misc;
30 using Antlr4.Runtime.Tree;
31 using DFA = Antlr4.Runtime.Dfa.DFA;
33 [System.CodeDom.Compiler.GeneratedCode(
"ANTLR",
"4.7")]
34 [System.CLSCompliant(
false)]
36 protected static DFA[] decisionToDFA;
37 protected static PredictionContextCache sharedContextCache =
new PredictionContextCache();
39 T__0=1, T__1=2, IDENTIFIER=3, SEPARATOR=4;
41 RULE_atom = 0, RULE_output = 1;
42 public static readonly
string[] ruleNames = {
46 private static readonly
string[] _LiteralNames = {
49 private static readonly
string[] _SymbolicNames = {
50 null,
null,
null,
"IDENTIFIER",
"SEPARATOR"
52 public static readonly IVocabulary DefaultVocabulary =
new Vocabulary(_LiteralNames, _SymbolicNames);
55 public override IVocabulary Vocabulary
59 return DefaultVocabulary;
63 public override string GrammarFileName {
get {
return "PDDLGrammar.g4"; } }
65 public override string[] RuleNames {
get {
return ruleNames; } }
67 public override string SerializedAtn {
get {
return new string(_serializedATN); } }
70 decisionToDFA =
new DFA[_ATN.NumberOfDecisions];
71 for (
int i = 0; i < _ATN.NumberOfDecisions; i++) {
72 decisionToDFA[i] =
new DFA(_ATN.GetDecisionState(i), i);
76 public PDDLGrammarParser(ITokenStream input) :
this(input, Console.Out, Console.Error) { }
78 public PDDLGrammarParser(ITokenStream input, TextWriter output, TextWriter errorOutput)
79 :
base(input, output, errorOutput)
81 Interpreter =
new ParserATNSimulator(
this, _ATN, decisionToDFA, sharedContextCache);
84 public ITerminalNode[] IDENTIFIER() {
return GetTokens(
PDDLGrammarParser.IDENTIFIER); }
85 public ITerminalNode IDENTIFIER(
int i) {
88 public AtomContext(ParserRuleContext parent,
int invokingState)
89 :
base(parent, invokingState)
92 public override int RuleIndex {
get {
return RULE_atom; } }
93 public override TResult Accept<TResult>(IParseTreeVisitor<TResult> visitor) {
95 if (typedVisitor !=
null)
return typedVisitor.
VisitAtom(
this);
96 else return visitor.VisitChildren(
this);
103 EnterRule(_localctx, 0, RULE_atom);
106 EnterOuterAlt(_localctx, 1);
108 State = 4; Match(T__0);
110 ErrorHandler.Sync(
this);
111 _la = TokenStream.LA(1);
112 while (_la==IDENTIFIER) {
115 State = 5; Match(IDENTIFIER);
119 ErrorHandler.Sync(
this);
120 _la = TokenStream.LA(1);
122 State = 11; Match(T__1);
125 catch (RecognitionException re) {
126 _localctx.exception = re;
127 ErrorHandler.ReportError(
this, re);
128 ErrorHandler.Recover(
this, re);
138 return GetRuleContexts<AtomContext>();
141 return GetRuleContext<AtomContext>(i);
143 public OutputContext(ParserRuleContext parent,
int invokingState)
144 :
base(parent, invokingState)
147 public override int RuleIndex {
get {
return RULE_output; } }
148 public override TResult Accept<TResult>(IParseTreeVisitor<TResult> visitor) {
150 if (typedVisitor !=
null)
return typedVisitor.
VisitOutput(
this);
151 else return visitor.VisitChildren(
this);
158 EnterRule(_localctx, 2, RULE_output);
161 EnterOuterAlt(_localctx, 1);
164 ErrorHandler.Sync(
this);
165 _la = TokenStream.LA(1);
173 ErrorHandler.Sync(
this);
174 _la = TokenStream.LA(1);
178 catch (RecognitionException re) {
179 _localctx.exception = re;
180 ErrorHandler.ReportError(
this, re);
181 ErrorHandler.Recover(
this, re);
189 private static char[] _serializedATN = {
190 '\x3',
'\x608B',
'\xA72A',
'\x8133',
'\xB9ED',
'\x417C',
'\x3BE7',
'\x7786',
191 '\x5964',
'\x3',
'\x6',
'\x16',
'\x4',
'\x2',
'\t',
'\x2',
'\x4',
'\x3',
192 '\t',
'\x3',
'\x3',
'\x2',
'\x3',
'\x2',
'\a',
'\x2',
'\t',
'\n',
'\x2',
193 '\f',
'\x2',
'\xE',
'\x2',
'\f',
'\v',
'\x2',
'\x3',
'\x2',
'\x3',
'\x2',
194 '\x3',
'\x3',
'\a',
'\x3',
'\x11',
'\n',
'\x3',
'\f',
'\x3',
'\xE',
'\x3',
195 '\x14',
'\v',
'\x3',
'\x3',
'\x3',
'\x2',
'\x2',
'\x4',
'\x2',
'\x4',
196 '\x2',
'\x2',
'\x2',
'\x15',
'\x2',
'\x6',
'\x3',
'\x2',
'\x2',
'\x2',
197 '\x4',
'\x12',
'\x3',
'\x2',
'\x2',
'\x2',
'\x6',
'\n',
'\a',
'\x3',
'\x2',
198 '\x2',
'\a',
'\t',
'\a',
'\x5',
'\x2',
'\x2',
'\b',
'\a',
'\x3',
'\x2',
199 '\x2',
'\x2',
'\t',
'\f',
'\x3',
'\x2',
'\x2',
'\x2',
'\n',
'\b',
'\x3',
200 '\x2',
'\x2',
'\x2',
'\n',
'\v',
'\x3',
'\x2',
'\x2',
'\x2',
'\v',
'\r',
201 '\x3',
'\x2',
'\x2',
'\x2',
'\f',
'\n',
'\x3',
'\x2',
'\x2',
'\x2',
'\r',
202 '\xE',
'\a',
'\x4',
'\x2',
'\x2',
'\xE',
'\x3',
'\x3',
'\x2',
'\x2',
'\x2',
203 '\xF',
'\x11',
'\x5',
'\x2',
'\x2',
'\x2',
'\x10',
'\xF',
'\x3',
'\x2',
204 '\x2',
'\x2',
'\x11',
'\x14',
'\x3',
'\x2',
'\x2',
'\x2',
'\x12',
'\x10',
205 '\x3',
'\x2',
'\x2',
'\x2',
'\x12',
'\x13',
'\x3',
'\x2',
'\x2',
'\x2',
206 '\x13',
'\x5',
'\x3',
'\x2',
'\x2',
'\x2',
'\x14',
'\x12',
'\x3',
'\x2',
207 '\x2',
'\x2',
'\x4',
'\n',
'\x12',
210 public static readonly ATN _ATN =
211 new ATNDeserializer().Deserialize(_serializedATN);