blend-kit 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/helper/ApiHelper.js +0 -0
- package/dist/helper/BasicHelper.js +28 -0
- package/dist/helper/CommonHelper.js +10 -0
- package/dist/helper/DataHelper.js +241 -0
- package/dist/helper/ExpressHelper.js +728 -0
- package/dist/helper/FrontEndApiHelper.js +485 -0
- package/dist/helper/FrontEndReactApiHelper.js +483 -0
- package/dist/helper/MongoHelper.js +143 -0
- package/dist/helper/RNHelper.js +560 -0
- package/dist/helper/ReactHelper.js +524 -0
- package/dist/helper/SectionHelper.js +152 -0
- package/dist/helper/fileHelper.js +127 -0
- package/dist/helper/grammarHelper/BlendApiGrammarHelper.js +48 -0
- package/dist/helper/grammarHelper/BlendBasicGrammarHelper.js +98 -0
- package/dist/helper/grammarHelper/BlendDataGrammarHelper.js +47 -0
- package/dist/helper/grammarHelper/BlendMDPGrammarHelper.js +29 -0
- package/dist/helper/grammarHelper/BlendMongoGrammarHelper.js +51 -0
- package/dist/helper/grammarHelper/BlendRNGrammarHelper.js +56 -0
- package/dist/helper/grammarHelper/BlendReactGrammarHelper.js +55 -0
- package/dist/helper/grammarHelper/GrammarErrorHelper.js +16 -0
- package/dist/index.js +159 -0
- package/dist/parser/blendApi/src/grammar/BlendApiLexer.js +201 -0
- package/dist/parser/blendApi/src/grammar/BlendApiListener.js +3 -0
- package/dist/parser/blendApi/src/grammar/BlendApiParser.js +961 -0
- package/dist/parser/blendData/src/grammar/BlendDataLexer.js +154 -0
- package/dist/parser/blendData/src/grammar/BlendDataListener.js +3 -0
- package/dist/parser/blendData/src/grammar/BlendDataParser.js +641 -0
- package/dist/parser/blendMDP/src/grammar/BlendMDPLexer.js +151 -0
- package/dist/parser/blendMDP/src/grammar/BlendMDPListener.js +3 -0
- package/dist/parser/blendMDP/src/grammar/BlendMDPParser.js +490 -0
- package/dist/parser/blendMongo/src/grammar/BlendMongoLexer.js +187 -0
- package/dist/parser/blendMongo/src/grammar/BlendMongoListener.js +3 -0
- package/dist/parser/blendMongo/src/grammar/BlendMongoParser.js +848 -0
- package/dist/parser/blendRN/src/grammar/BlendRNLexer.js +172 -0
- package/dist/parser/blendRN/src/grammar/BlendRNListener.js +3 -0
- package/dist/parser/blendRN/src/grammar/BlendRNParser.js +657 -0
- package/dist/parser/blendReact/src/grammar/BlendReactLexer.js +159 -0
- package/dist/parser/blendReact/src/grammar/BlendReactListener.js +3 -0
- package/dist/parser/blendReact/src/grammar/BlendReactParser.js +644 -0
- package/dist/parser/blendbasic/src/grammar/BlendBasicLexer.js +147 -0
- package/dist/parser/blendbasic/src/grammar/BlendBasicListener.js +3 -0
- package/dist/parser/blendbasic/src/grammar/BlendBasicParser.js +747 -0
- package/dist/src/app.js +76 -0
- package/dist/src/app.ts +54 -0
- package/dist/types/apiOperationTypes.js +13 -0
- package/dist/types/basicOperationTypes.js +2 -0
- package/dist/types/dataOperationTypes.js +2 -0
- package/dist/types/frontendOperationTypes.js +4 -0
- package/dist/types/generalTypes.js +0 -0
- package/dist/types/mongoOperationTypes.js +12 -0
- package/package.json +29 -0
- package/src/grammar/.antlr/ApiModuleLexer.interp +71 -0
- package/src/grammar/.antlr/ApiModuleLexer.java +194 -0
- package/src/grammar/.antlr/ApiModuleLexer.tokens +32 -0
- package/src/grammar/.antlr/BlendApi.interp +70 -0
- package/src/grammar/.antlr/BlendApi.tokens +44 -0
- package/src/grammar/.antlr/BlendApiLexer.interp +89 -0
- package/src/grammar/.antlr/BlendApiLexer.java +237 -0
- package/src/grammar/.antlr/BlendApiLexer.tokens +44 -0
- package/src/grammar/.antlr/BlendApiParser.java +767 -0
- package/src/grammar/.antlr/BlendBasic.interp +41 -0
- package/src/grammar/.antlr/BlendBasic.tokens +20 -0
- package/src/grammar/.antlr/BlendBasicLexer.interp +50 -0
- package/src/grammar/.antlr/BlendBasicLexer.java +179 -0
- package/src/grammar/.antlr/BlendBasicLexer.tokens +20 -0
- package/src/grammar/.antlr/BlendBasicParser.java +599 -0
- package/src/grammar/.antlr/BlendData.interp +50 -0
- package/src/grammar/.antlr/BlendData.tokens +29 -0
- package/src/grammar/.antlr/BlendDataLexer.interp +65 -0
- package/src/grammar/.antlr/BlendDataLexer.java +181 -0
- package/src/grammar/.antlr/BlendDataLexer.tokens +29 -0
- package/src/grammar/.antlr/BlendDataParser.java +520 -0
- package/src/grammar/.antlr/BlendMDP.interp +45 -0
- package/src/grammar/.antlr/BlendMDP.tokens +25 -0
- package/src/grammar/.antlr/BlendMDPLexer.interp +59 -0
- package/src/grammar/.antlr/BlendMDPLexer.java +178 -0
- package/src/grammar/.antlr/BlendMDPLexer.tokens +25 -0
- package/src/grammar/.antlr/BlendMDPParser.java +386 -0
- package/src/grammar/.antlr/BlendMongo.interp +65 -0
- package/src/grammar/.antlr/BlendMongo.tokens +41 -0
- package/src/grammar/.antlr/BlendMongoLexer.interp +83 -0
- package/src/grammar/.antlr/BlendMongoLexer.java +219 -0
- package/src/grammar/.antlr/BlendMongoLexer.tokens +41 -0
- package/src/grammar/.antlr/BlendMongoParser.java +669 -0
- package/src/grammar/.antlr/BlendRN.interp +53 -0
- package/src/grammar/.antlr/BlendRN.tokens +31 -0
- package/src/grammar/.antlr/BlendRNLexer.interp +71 -0
- package/src/grammar/.antlr/BlendRNLexer.java +202 -0
- package/src/grammar/.antlr/BlendRNLexer.tokens +31 -0
- package/src/grammar/.antlr/BlendRNParser.java +542 -0
- package/src/grammar/.antlr/BlendReact.interp +49 -0
- package/src/grammar/.antlr/BlendReact.tokens +28 -0
- package/src/grammar/.antlr/BlendReactLexer.interp +65 -0
- package/src/grammar/.antlr/BlendReactLexer.java +188 -0
- package/src/grammar/.antlr/BlendReactLexer.tokens +28 -0
- package/src/grammar/.antlr/BlendReactParser.java +530 -0
- package/src/grammar/BlendApi.g4 +26 -0
- package/src/grammar/BlendBasic.g4 +16 -0
- package/src/grammar/BlendData.g4 +24 -0
- package/src/grammar/BlendMDP.g4 +12 -0
- package/src/grammar/BlendMongo.g4 +24 -0
- package/src/grammar/BlendRN.g4 +18 -0
- package/src/grammar/BlendReact.g4 +16 -0
- package/src/helper/BasicHelper.ts +35 -0
- package/src/helper/CommonHelper.ts +5 -0
- package/src/helper/DataHelper.ts +268 -0
- package/src/helper/ExpressHelper.ts +807 -0
- package/src/helper/FrontEndApiHelper.ts +526 -0
- package/src/helper/FrontEndReactApiHelper.ts +532 -0
- package/src/helper/MongoHelper.ts +165 -0
- package/src/helper/RNHelper.ts +651 -0
- package/src/helper/ReactHelper.ts +597 -0
- package/src/helper/SectionHelper.ts +154 -0
- package/src/helper/fileHelper.ts +111 -0
- package/src/helper/grammarHelper/BlendApiGrammarHelper.ts +45 -0
- package/src/helper/grammarHelper/BlendBasicGrammarHelper.ts +101 -0
- package/src/helper/grammarHelper/BlendDataGrammarHelper.ts +49 -0
- package/src/helper/grammarHelper/BlendMDPGrammarHelper.ts +33 -0
- package/src/helper/grammarHelper/BlendMongoGrammarHelper.ts +50 -0
- package/src/helper/grammarHelper/BlendRNGrammarHelper.ts +65 -0
- package/src/helper/grammarHelper/BlendReactGrammarHelper.ts +65 -0
- package/src/helper/grammarHelper/GrammarErrorHelper.ts +13 -0
- package/src/index.ts +168 -0
- package/src/parser/blendApi/src/grammar/BlendApi.interp +70 -0
- package/src/parser/blendApi/src/grammar/BlendApi.tokens +44 -0
- package/src/parser/blendApi/src/grammar/BlendApiLexer.interp +89 -0
- package/src/parser/blendApi/src/grammar/BlendApiLexer.tokens +44 -0
- package/src/parser/blendApi/src/grammar/BlendApiLexer.ts +193 -0
- package/src/parser/blendApi/src/grammar/BlendApiListener.ts +145 -0
- package/src/parser/blendApi/src/grammar/BlendApiParser.ts +968 -0
- package/src/parser/blendData/src/grammar/BlendData.interp +50 -0
- package/src/parser/blendData/src/grammar/BlendData.tokens +29 -0
- package/src/parser/blendData/src/grammar/BlendDataLexer.interp +65 -0
- package/src/parser/blendData/src/grammar/BlendDataLexer.tokens +29 -0
- package/src/parser/blendData/src/grammar/BlendDataLexer.ts +146 -0
- package/src/parser/blendData/src/grammar/BlendDataListener.ts +97 -0
- package/src/parser/blendData/src/grammar/BlendDataParser.ts +641 -0
- package/src/parser/blendMDP/src/grammar/BlendMDP.interp +45 -0
- package/src/parser/blendMDP/src/grammar/BlendMDP.tokens +25 -0
- package/src/parser/blendMDP/src/grammar/BlendMDPLexer.interp +59 -0
- package/src/parser/blendMDP/src/grammar/BlendMDPLexer.tokens +25 -0
- package/src/parser/blendMDP/src/grammar/BlendMDPLexer.ts +143 -0
- package/src/parser/blendMDP/src/grammar/BlendMDPListener.ts +85 -0
- package/src/parser/blendMDP/src/grammar/BlendMDPParser.ts +483 -0
- package/src/parser/blendMongo/src/grammar/BlendMongo.interp +65 -0
- package/src/parser/blendMongo/src/grammar/BlendMongo.tokens +41 -0
- package/src/parser/blendMongo/src/grammar/BlendMongoLexer.interp +83 -0
- package/src/parser/blendMongo/src/grammar/BlendMongoLexer.tokens +41 -0
- package/src/parser/blendMongo/src/grammar/BlendMongoLexer.ts +179 -0
- package/src/parser/blendMongo/src/grammar/BlendMongoListener.ts +133 -0
- package/src/parser/blendMongo/src/grammar/BlendMongoParser.ts +849 -0
- package/src/parser/blendRN/src/grammar/BlendRN.interp +53 -0
- package/src/parser/blendRN/src/grammar/BlendRN.tokens +31 -0
- package/src/parser/blendRN/src/grammar/BlendRNLexer.interp +71 -0
- package/src/parser/blendRN/src/grammar/BlendRNLexer.tokens +31 -0
- package/src/parser/blendRN/src/grammar/BlendRNLexer.ts +164 -0
- package/src/parser/blendRN/src/grammar/BlendRNListener.ts +85 -0
- package/src/parser/blendRN/src/grammar/BlendRNParser.ts +659 -0
- package/src/parser/blendReact/src/grammar/BlendReact.interp +49 -0
- package/src/parser/blendReact/src/grammar/BlendReact.tokens +28 -0
- package/src/parser/blendReact/src/grammar/BlendReactLexer.interp +65 -0
- package/src/parser/blendReact/src/grammar/BlendReactLexer.tokens +28 -0
- package/src/parser/blendReact/src/grammar/BlendReactLexer.ts +151 -0
- package/src/parser/blendReact/src/grammar/BlendReactListener.ts +85 -0
- package/src/parser/blendReact/src/grammar/BlendReactParser.ts +646 -0
- package/src/parser/blendbasic/src/grammar/BlendBasic.interp +41 -0
- package/src/parser/blendbasic/src/grammar/BlendBasic.tokens +20 -0
- package/src/parser/blendbasic/src/grammar/BlendBasicLexer.interp +50 -0
- package/src/parser/blendbasic/src/grammar/BlendBasicLexer.tokens +20 -0
- package/src/parser/blendbasic/src/grammar/BlendBasicLexer.ts +139 -0
- package/src/parser/blendbasic/src/grammar/BlendBasicListener.ts +109 -0
- package/src/parser/blendbasic/src/grammar/BlendBasicParser.ts +747 -0
- package/src/types/apiOperationTypes.ts +43 -0
- package/src/types/basicOperationTypes.ts +15 -0
- package/src/types/dataOperationTypes.ts +20 -0
- package/src/types/frontendOperationTypes.ts +92 -0
- package/src/types/generalTypes.ts +0 -0
- package/src/types/mongoOperationTypes.ts +36 -0
- package/template/.env.dev +1 -0
- package/template/package.json +36 -0
- package/template/src/app.js +76 -0
- package/template/src/app.ts +54 -0
- package/template/src/config/app.config.js +0 -0
- package/template/src/config/app.config.ts +0 -0
- package/template/src/config/database.config.js +6 -0
- package/template/src/config/database.config.ts +4 -0
- package/template/src/data/interfaces.js +2 -0
- package/template/src/data/interfaces.ts +23 -0
- package/template/src/middlewares/auth.js +22 -0
- package/template/src/middlewares/auth.ts +21 -0
- package/template/src/models/Database.js +10 -0
- package/template/src/models/Database.ts +8 -0
- package/template/src/models/User/Permission.model.js +13 -0
- package/template/src/models/User/Permission.model.ts +14 -0
- package/template/src/models/User/Role.model.js +13 -0
- package/template/src/models/User/Role.model.ts +14 -0
- package/template/src/models/User/User.model.js +17 -0
- package/template/src/models/User/User.model.ts +18 -0
- package/template/src/routes/User.routes.js +47 -0
- package/template/src/routes/User.routes.ts +41 -0
- package/template/src/routes/common/common.routes.config.js +14 -0
- package/template/src/routes/common/common.routes.config.ts +15 -0
- package/template/src/services/User/User.service.js +75 -0
- package/template/src/services/User/User.service.ts +68 -0
- package/template/src/services/User/api.data.js +72 -0
- package/template/src/services/User/api.data.ts +79 -0
- package/template/src/services/User/api.interface.js +3 -0
- package/template/src/services/User/api.interface.ts +10 -0
- package/template/tsconfig.json +10 -0
- package/tsconfig.json +13 -0
|
@@ -0,0 +1,767 @@
|
|
|
1
|
+
// Generated from /Users/govindve/govi/Projects/NodeProjects/blend-cli/src/grammar/BlendApi.g4 by ANTLR 4.13.1
|
|
2
|
+
import org.antlr.v4.runtime.atn.*;
|
|
3
|
+
import org.antlr.v4.runtime.dfa.DFA;
|
|
4
|
+
import org.antlr.v4.runtime.*;
|
|
5
|
+
import org.antlr.v4.runtime.misc.*;
|
|
6
|
+
import org.antlr.v4.runtime.tree.*;
|
|
7
|
+
import java.util.List;
|
|
8
|
+
import java.util.Iterator;
|
|
9
|
+
import java.util.ArrayList;
|
|
10
|
+
|
|
11
|
+
@SuppressWarnings({"all", "warnings", "unchecked", "unused", "cast", "CheckReturnValue"})
|
|
12
|
+
public class BlendApiParser extends Parser {
|
|
13
|
+
static { RuntimeMetaData.checkVersion("4.13.1", RuntimeMetaData.VERSION); }
|
|
14
|
+
|
|
15
|
+
protected static final DFA[] _decisionToDFA;
|
|
16
|
+
protected static final PredictionContextCache _sharedContextCache =
|
|
17
|
+
new PredictionContextCache();
|
|
18
|
+
public static final int
|
|
19
|
+
T__0=1, T__1=2, T__2=3, T__3=4, T__4=5, T__5=6, T__6=7, T__7=8, T__8=9,
|
|
20
|
+
T__9=10, T__10=11, T__11=12, T__12=13, T__13=14, T__14=15, T__15=16, T__16=17,
|
|
21
|
+
T__17=18, T__18=19, T__19=20, HTTP_METHOD=21, IDENTIFIER=22, CAPITAL_IDENTIFIER=23,
|
|
22
|
+
WS=24;
|
|
23
|
+
public static final int
|
|
24
|
+
RULE_program = 0, RULE_sectionDefinition = 1, RULE_moduleDefinition = 2,
|
|
25
|
+
RULE_apiDefinition = 3, RULE_authenticated = 4, RULE_inputDefinition = 5,
|
|
26
|
+
RULE_outputDefinition = 6, RULE_directOutputDefenition = 7, RULE_field = 8,
|
|
27
|
+
RULE_type = 9, RULE_primitiveType = 10;
|
|
28
|
+
private static String[] makeRuleNames() {
|
|
29
|
+
return new String[] {
|
|
30
|
+
"program", "sectionDefinition", "moduleDefinition", "apiDefinition",
|
|
31
|
+
"authenticated", "inputDefinition", "outputDefinition", "directOutputDefenition",
|
|
32
|
+
"field", "type", "primitiveType"
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
public static final String[] ruleNames = makeRuleNames();
|
|
36
|
+
|
|
37
|
+
private static String[] makeLiteralNames() {
|
|
38
|
+
return new String[] {
|
|
39
|
+
null, "'section'", "'{'", "'}'", "'module'", "'api'", "'('", "')'", "'authenticated'",
|
|
40
|
+
"'input('", "','", "'output('", "':'", "'[]'", "'?'", "'->'", "'string'",
|
|
41
|
+
"'number'", "'boolean'", "'any'", "'object'"
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
private static final String[] _LITERAL_NAMES = makeLiteralNames();
|
|
45
|
+
private static String[] makeSymbolicNames() {
|
|
46
|
+
return new String[] {
|
|
47
|
+
null, null, null, null, null, null, null, null, null, null, null, null,
|
|
48
|
+
null, null, null, null, null, null, null, null, null, "HTTP_METHOD",
|
|
49
|
+
"IDENTIFIER", "CAPITAL_IDENTIFIER", "WS"
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
private static final String[] _SYMBOLIC_NAMES = makeSymbolicNames();
|
|
53
|
+
public static final Vocabulary VOCABULARY = new VocabularyImpl(_LITERAL_NAMES, _SYMBOLIC_NAMES);
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* @deprecated Use {@link #VOCABULARY} instead.
|
|
57
|
+
*/
|
|
58
|
+
@Deprecated
|
|
59
|
+
public static final String[] tokenNames;
|
|
60
|
+
static {
|
|
61
|
+
tokenNames = new String[_SYMBOLIC_NAMES.length];
|
|
62
|
+
for (int i = 0; i < tokenNames.length; i++) {
|
|
63
|
+
tokenNames[i] = VOCABULARY.getLiteralName(i);
|
|
64
|
+
if (tokenNames[i] == null) {
|
|
65
|
+
tokenNames[i] = VOCABULARY.getSymbolicName(i);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
if (tokenNames[i] == null) {
|
|
69
|
+
tokenNames[i] = "<INVALID>";
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
@Override
|
|
75
|
+
@Deprecated
|
|
76
|
+
public String[] getTokenNames() {
|
|
77
|
+
return tokenNames;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
@Override
|
|
81
|
+
|
|
82
|
+
public Vocabulary getVocabulary() {
|
|
83
|
+
return VOCABULARY;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
@Override
|
|
87
|
+
public String getGrammarFileName() { return "BlendApi.g4"; }
|
|
88
|
+
|
|
89
|
+
@Override
|
|
90
|
+
public String[] getRuleNames() { return ruleNames; }
|
|
91
|
+
|
|
92
|
+
@Override
|
|
93
|
+
public String getSerializedATN() { return _serializedATN; }
|
|
94
|
+
|
|
95
|
+
@Override
|
|
96
|
+
public ATN getATN() { return _ATN; }
|
|
97
|
+
|
|
98
|
+
public BlendApiParser(TokenStream input) {
|
|
99
|
+
super(input);
|
|
100
|
+
_interp = new ParserATNSimulator(this,_ATN,_decisionToDFA,_sharedContextCache);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
@SuppressWarnings("CheckReturnValue")
|
|
104
|
+
public static class ProgramContext extends ParserRuleContext {
|
|
105
|
+
public ModuleDefinitionContext moduleDefinition() {
|
|
106
|
+
return getRuleContext(ModuleDefinitionContext.class,0);
|
|
107
|
+
}
|
|
108
|
+
public List<SectionDefinitionContext> sectionDefinition() {
|
|
109
|
+
return getRuleContexts(SectionDefinitionContext.class);
|
|
110
|
+
}
|
|
111
|
+
public SectionDefinitionContext sectionDefinition(int i) {
|
|
112
|
+
return getRuleContext(SectionDefinitionContext.class,i);
|
|
113
|
+
}
|
|
114
|
+
public ProgramContext(ParserRuleContext parent, int invokingState) {
|
|
115
|
+
super(parent, invokingState);
|
|
116
|
+
}
|
|
117
|
+
@Override public int getRuleIndex() { return RULE_program; }
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
public final ProgramContext program() throws RecognitionException {
|
|
121
|
+
ProgramContext _localctx = new ProgramContext(_ctx, getState());
|
|
122
|
+
enterRule(_localctx, 0, RULE_program);
|
|
123
|
+
int _la;
|
|
124
|
+
try {
|
|
125
|
+
enterOuterAlt(_localctx, 1);
|
|
126
|
+
{
|
|
127
|
+
setState(22);
|
|
128
|
+
moduleDefinition();
|
|
129
|
+
setState(26);
|
|
130
|
+
_errHandler.sync(this);
|
|
131
|
+
_la = _input.LA(1);
|
|
132
|
+
while (_la==T__0) {
|
|
133
|
+
{
|
|
134
|
+
{
|
|
135
|
+
setState(23);
|
|
136
|
+
sectionDefinition();
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
setState(28);
|
|
140
|
+
_errHandler.sync(this);
|
|
141
|
+
_la = _input.LA(1);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
catch (RecognitionException re) {
|
|
146
|
+
_localctx.exception = re;
|
|
147
|
+
_errHandler.reportError(this, re);
|
|
148
|
+
_errHandler.recover(this, re);
|
|
149
|
+
}
|
|
150
|
+
finally {
|
|
151
|
+
exitRule();
|
|
152
|
+
}
|
|
153
|
+
return _localctx;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
@SuppressWarnings("CheckReturnValue")
|
|
157
|
+
public static class SectionDefinitionContext extends ParserRuleContext {
|
|
158
|
+
public TerminalNode CAPITAL_IDENTIFIER() { return getToken(BlendApiParser.CAPITAL_IDENTIFIER, 0); }
|
|
159
|
+
public List<ApiDefinitionContext> apiDefinition() {
|
|
160
|
+
return getRuleContexts(ApiDefinitionContext.class);
|
|
161
|
+
}
|
|
162
|
+
public ApiDefinitionContext apiDefinition(int i) {
|
|
163
|
+
return getRuleContext(ApiDefinitionContext.class,i);
|
|
164
|
+
}
|
|
165
|
+
public SectionDefinitionContext(ParserRuleContext parent, int invokingState) {
|
|
166
|
+
super(parent, invokingState);
|
|
167
|
+
}
|
|
168
|
+
@Override public int getRuleIndex() { return RULE_sectionDefinition; }
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
public final SectionDefinitionContext sectionDefinition() throws RecognitionException {
|
|
172
|
+
SectionDefinitionContext _localctx = new SectionDefinitionContext(_ctx, getState());
|
|
173
|
+
enterRule(_localctx, 2, RULE_sectionDefinition);
|
|
174
|
+
int _la;
|
|
175
|
+
try {
|
|
176
|
+
enterOuterAlt(_localctx, 1);
|
|
177
|
+
{
|
|
178
|
+
setState(29);
|
|
179
|
+
match(T__0);
|
|
180
|
+
setState(30);
|
|
181
|
+
match(CAPITAL_IDENTIFIER);
|
|
182
|
+
setState(31);
|
|
183
|
+
match(T__1);
|
|
184
|
+
setState(35);
|
|
185
|
+
_errHandler.sync(this);
|
|
186
|
+
_la = _input.LA(1);
|
|
187
|
+
while (_la==T__4) {
|
|
188
|
+
{
|
|
189
|
+
{
|
|
190
|
+
setState(32);
|
|
191
|
+
apiDefinition();
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
setState(37);
|
|
195
|
+
_errHandler.sync(this);
|
|
196
|
+
_la = _input.LA(1);
|
|
197
|
+
}
|
|
198
|
+
setState(38);
|
|
199
|
+
match(T__2);
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
catch (RecognitionException re) {
|
|
203
|
+
_localctx.exception = re;
|
|
204
|
+
_errHandler.reportError(this, re);
|
|
205
|
+
_errHandler.recover(this, re);
|
|
206
|
+
}
|
|
207
|
+
finally {
|
|
208
|
+
exitRule();
|
|
209
|
+
}
|
|
210
|
+
return _localctx;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
@SuppressWarnings("CheckReturnValue")
|
|
214
|
+
public static class ModuleDefinitionContext extends ParserRuleContext {
|
|
215
|
+
public TerminalNode CAPITAL_IDENTIFIER() { return getToken(BlendApiParser.CAPITAL_IDENTIFIER, 0); }
|
|
216
|
+
public ModuleDefinitionContext(ParserRuleContext parent, int invokingState) {
|
|
217
|
+
super(parent, invokingState);
|
|
218
|
+
}
|
|
219
|
+
@Override public int getRuleIndex() { return RULE_moduleDefinition; }
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
public final ModuleDefinitionContext moduleDefinition() throws RecognitionException {
|
|
223
|
+
ModuleDefinitionContext _localctx = new ModuleDefinitionContext(_ctx, getState());
|
|
224
|
+
enterRule(_localctx, 4, RULE_moduleDefinition);
|
|
225
|
+
try {
|
|
226
|
+
enterOuterAlt(_localctx, 1);
|
|
227
|
+
{
|
|
228
|
+
setState(40);
|
|
229
|
+
match(T__3);
|
|
230
|
+
setState(41);
|
|
231
|
+
match(CAPITAL_IDENTIFIER);
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
catch (RecognitionException re) {
|
|
235
|
+
_localctx.exception = re;
|
|
236
|
+
_errHandler.reportError(this, re);
|
|
237
|
+
_errHandler.recover(this, re);
|
|
238
|
+
}
|
|
239
|
+
finally {
|
|
240
|
+
exitRule();
|
|
241
|
+
}
|
|
242
|
+
return _localctx;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
@SuppressWarnings("CheckReturnValue")
|
|
246
|
+
public static class ApiDefinitionContext extends ParserRuleContext {
|
|
247
|
+
public TerminalNode IDENTIFIER() { return getToken(BlendApiParser.IDENTIFIER, 0); }
|
|
248
|
+
public TerminalNode HTTP_METHOD() { return getToken(BlendApiParser.HTTP_METHOD, 0); }
|
|
249
|
+
public AuthenticatedContext authenticated() {
|
|
250
|
+
return getRuleContext(AuthenticatedContext.class,0);
|
|
251
|
+
}
|
|
252
|
+
public InputDefinitionContext inputDefinition() {
|
|
253
|
+
return getRuleContext(InputDefinitionContext.class,0);
|
|
254
|
+
}
|
|
255
|
+
public OutputDefinitionContext outputDefinition() {
|
|
256
|
+
return getRuleContext(OutputDefinitionContext.class,0);
|
|
257
|
+
}
|
|
258
|
+
public ApiDefinitionContext(ParserRuleContext parent, int invokingState) {
|
|
259
|
+
super(parent, invokingState);
|
|
260
|
+
}
|
|
261
|
+
@Override public int getRuleIndex() { return RULE_apiDefinition; }
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
public final ApiDefinitionContext apiDefinition() throws RecognitionException {
|
|
265
|
+
ApiDefinitionContext _localctx = new ApiDefinitionContext(_ctx, getState());
|
|
266
|
+
enterRule(_localctx, 6, RULE_apiDefinition);
|
|
267
|
+
int _la;
|
|
268
|
+
try {
|
|
269
|
+
enterOuterAlt(_localctx, 1);
|
|
270
|
+
{
|
|
271
|
+
setState(43);
|
|
272
|
+
match(T__4);
|
|
273
|
+
setState(44);
|
|
274
|
+
match(IDENTIFIER);
|
|
275
|
+
setState(45);
|
|
276
|
+
match(T__5);
|
|
277
|
+
setState(46);
|
|
278
|
+
match(HTTP_METHOD);
|
|
279
|
+
setState(47);
|
|
280
|
+
match(T__6);
|
|
281
|
+
setState(48);
|
|
282
|
+
match(T__1);
|
|
283
|
+
setState(50);
|
|
284
|
+
_errHandler.sync(this);
|
|
285
|
+
_la = _input.LA(1);
|
|
286
|
+
if (_la==T__7) {
|
|
287
|
+
{
|
|
288
|
+
setState(49);
|
|
289
|
+
authenticated();
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
setState(53);
|
|
294
|
+
_errHandler.sync(this);
|
|
295
|
+
_la = _input.LA(1);
|
|
296
|
+
if (_la==T__8) {
|
|
297
|
+
{
|
|
298
|
+
setState(52);
|
|
299
|
+
inputDefinition();
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
setState(56);
|
|
304
|
+
_errHandler.sync(this);
|
|
305
|
+
_la = _input.LA(1);
|
|
306
|
+
if (_la==T__10) {
|
|
307
|
+
{
|
|
308
|
+
setState(55);
|
|
309
|
+
outputDefinition();
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
setState(58);
|
|
314
|
+
match(T__2);
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
catch (RecognitionException re) {
|
|
318
|
+
_localctx.exception = re;
|
|
319
|
+
_errHandler.reportError(this, re);
|
|
320
|
+
_errHandler.recover(this, re);
|
|
321
|
+
}
|
|
322
|
+
finally {
|
|
323
|
+
exitRule();
|
|
324
|
+
}
|
|
325
|
+
return _localctx;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
@SuppressWarnings("CheckReturnValue")
|
|
329
|
+
public static class AuthenticatedContext extends ParserRuleContext {
|
|
330
|
+
public AuthenticatedContext(ParserRuleContext parent, int invokingState) {
|
|
331
|
+
super(parent, invokingState);
|
|
332
|
+
}
|
|
333
|
+
@Override public int getRuleIndex() { return RULE_authenticated; }
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
public final AuthenticatedContext authenticated() throws RecognitionException {
|
|
337
|
+
AuthenticatedContext _localctx = new AuthenticatedContext(_ctx, getState());
|
|
338
|
+
enterRule(_localctx, 8, RULE_authenticated);
|
|
339
|
+
try {
|
|
340
|
+
enterOuterAlt(_localctx, 1);
|
|
341
|
+
{
|
|
342
|
+
setState(60);
|
|
343
|
+
match(T__7);
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
catch (RecognitionException re) {
|
|
347
|
+
_localctx.exception = re;
|
|
348
|
+
_errHandler.reportError(this, re);
|
|
349
|
+
_errHandler.recover(this, re);
|
|
350
|
+
}
|
|
351
|
+
finally {
|
|
352
|
+
exitRule();
|
|
353
|
+
}
|
|
354
|
+
return _localctx;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
@SuppressWarnings("CheckReturnValue")
|
|
358
|
+
public static class InputDefinitionContext extends ParserRuleContext {
|
|
359
|
+
public List<FieldContext> field() {
|
|
360
|
+
return getRuleContexts(FieldContext.class);
|
|
361
|
+
}
|
|
362
|
+
public FieldContext field(int i) {
|
|
363
|
+
return getRuleContext(FieldContext.class,i);
|
|
364
|
+
}
|
|
365
|
+
public InputDefinitionContext(ParserRuleContext parent, int invokingState) {
|
|
366
|
+
super(parent, invokingState);
|
|
367
|
+
}
|
|
368
|
+
@Override public int getRuleIndex() { return RULE_inputDefinition; }
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
public final InputDefinitionContext inputDefinition() throws RecognitionException {
|
|
372
|
+
InputDefinitionContext _localctx = new InputDefinitionContext(_ctx, getState());
|
|
373
|
+
enterRule(_localctx, 10, RULE_inputDefinition);
|
|
374
|
+
int _la;
|
|
375
|
+
try {
|
|
376
|
+
enterOuterAlt(_localctx, 1);
|
|
377
|
+
{
|
|
378
|
+
setState(62);
|
|
379
|
+
match(T__8);
|
|
380
|
+
setState(63);
|
|
381
|
+
field();
|
|
382
|
+
setState(68);
|
|
383
|
+
_errHandler.sync(this);
|
|
384
|
+
_la = _input.LA(1);
|
|
385
|
+
while (_la==T__9) {
|
|
386
|
+
{
|
|
387
|
+
{
|
|
388
|
+
setState(64);
|
|
389
|
+
match(T__9);
|
|
390
|
+
setState(65);
|
|
391
|
+
field();
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
setState(70);
|
|
395
|
+
_errHandler.sync(this);
|
|
396
|
+
_la = _input.LA(1);
|
|
397
|
+
}
|
|
398
|
+
setState(71);
|
|
399
|
+
match(T__6);
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
catch (RecognitionException re) {
|
|
403
|
+
_localctx.exception = re;
|
|
404
|
+
_errHandler.reportError(this, re);
|
|
405
|
+
_errHandler.recover(this, re);
|
|
406
|
+
}
|
|
407
|
+
finally {
|
|
408
|
+
exitRule();
|
|
409
|
+
}
|
|
410
|
+
return _localctx;
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
@SuppressWarnings("CheckReturnValue")
|
|
414
|
+
public static class OutputDefinitionContext extends ParserRuleContext {
|
|
415
|
+
public List<FieldContext> field() {
|
|
416
|
+
return getRuleContexts(FieldContext.class);
|
|
417
|
+
}
|
|
418
|
+
public FieldContext field(int i) {
|
|
419
|
+
return getRuleContext(FieldContext.class,i);
|
|
420
|
+
}
|
|
421
|
+
public DirectOutputDefenitionContext directOutputDefenition() {
|
|
422
|
+
return getRuleContext(DirectOutputDefenitionContext.class,0);
|
|
423
|
+
}
|
|
424
|
+
public OutputDefinitionContext(ParserRuleContext parent, int invokingState) {
|
|
425
|
+
super(parent, invokingState);
|
|
426
|
+
}
|
|
427
|
+
@Override public int getRuleIndex() { return RULE_outputDefinition; }
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
public final OutputDefinitionContext outputDefinition() throws RecognitionException {
|
|
431
|
+
OutputDefinitionContext _localctx = new OutputDefinitionContext(_ctx, getState());
|
|
432
|
+
enterRule(_localctx, 12, RULE_outputDefinition);
|
|
433
|
+
int _la;
|
|
434
|
+
try {
|
|
435
|
+
setState(88);
|
|
436
|
+
_errHandler.sync(this);
|
|
437
|
+
switch ( getInterpreter().adaptivePredict(_input,7,_ctx) ) {
|
|
438
|
+
case 1:
|
|
439
|
+
enterOuterAlt(_localctx, 1);
|
|
440
|
+
{
|
|
441
|
+
setState(73);
|
|
442
|
+
match(T__10);
|
|
443
|
+
setState(74);
|
|
444
|
+
field();
|
|
445
|
+
setState(79);
|
|
446
|
+
_errHandler.sync(this);
|
|
447
|
+
_la = _input.LA(1);
|
|
448
|
+
while (_la==T__9) {
|
|
449
|
+
{
|
|
450
|
+
{
|
|
451
|
+
setState(75);
|
|
452
|
+
match(T__9);
|
|
453
|
+
setState(76);
|
|
454
|
+
field();
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
setState(81);
|
|
458
|
+
_errHandler.sync(this);
|
|
459
|
+
_la = _input.LA(1);
|
|
460
|
+
}
|
|
461
|
+
setState(82);
|
|
462
|
+
match(T__6);
|
|
463
|
+
}
|
|
464
|
+
break;
|
|
465
|
+
case 2:
|
|
466
|
+
enterOuterAlt(_localctx, 2);
|
|
467
|
+
{
|
|
468
|
+
setState(84);
|
|
469
|
+
match(T__10);
|
|
470
|
+
setState(85);
|
|
471
|
+
directOutputDefenition();
|
|
472
|
+
setState(86);
|
|
473
|
+
match(T__6);
|
|
474
|
+
}
|
|
475
|
+
break;
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
catch (RecognitionException re) {
|
|
479
|
+
_localctx.exception = re;
|
|
480
|
+
_errHandler.reportError(this, re);
|
|
481
|
+
_errHandler.recover(this, re);
|
|
482
|
+
}
|
|
483
|
+
finally {
|
|
484
|
+
exitRule();
|
|
485
|
+
}
|
|
486
|
+
return _localctx;
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
@SuppressWarnings("CheckReturnValue")
|
|
490
|
+
public static class DirectOutputDefenitionContext extends ParserRuleContext {
|
|
491
|
+
public TypeContext type() {
|
|
492
|
+
return getRuleContext(TypeContext.class,0);
|
|
493
|
+
}
|
|
494
|
+
public DirectOutputDefenitionContext(ParserRuleContext parent, int invokingState) {
|
|
495
|
+
super(parent, invokingState);
|
|
496
|
+
}
|
|
497
|
+
@Override public int getRuleIndex() { return RULE_directOutputDefenition; }
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
public final DirectOutputDefenitionContext directOutputDefenition() throws RecognitionException {
|
|
501
|
+
DirectOutputDefenitionContext _localctx = new DirectOutputDefenitionContext(_ctx, getState());
|
|
502
|
+
enterRule(_localctx, 14, RULE_directOutputDefenition);
|
|
503
|
+
try {
|
|
504
|
+
enterOuterAlt(_localctx, 1);
|
|
505
|
+
{
|
|
506
|
+
setState(90);
|
|
507
|
+
type();
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
catch (RecognitionException re) {
|
|
511
|
+
_localctx.exception = re;
|
|
512
|
+
_errHandler.reportError(this, re);
|
|
513
|
+
_errHandler.recover(this, re);
|
|
514
|
+
}
|
|
515
|
+
finally {
|
|
516
|
+
exitRule();
|
|
517
|
+
}
|
|
518
|
+
return _localctx;
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
@SuppressWarnings("CheckReturnValue")
|
|
522
|
+
public static class FieldContext extends ParserRuleContext {
|
|
523
|
+
public TerminalNode IDENTIFIER() { return getToken(BlendApiParser.IDENTIFIER, 0); }
|
|
524
|
+
public TypeContext type() {
|
|
525
|
+
return getRuleContext(TypeContext.class,0);
|
|
526
|
+
}
|
|
527
|
+
public FieldContext(ParserRuleContext parent, int invokingState) {
|
|
528
|
+
super(parent, invokingState);
|
|
529
|
+
}
|
|
530
|
+
@Override public int getRuleIndex() { return RULE_field; }
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
public final FieldContext field() throws RecognitionException {
|
|
534
|
+
FieldContext _localctx = new FieldContext(_ctx, getState());
|
|
535
|
+
enterRule(_localctx, 16, RULE_field);
|
|
536
|
+
try {
|
|
537
|
+
enterOuterAlt(_localctx, 1);
|
|
538
|
+
{
|
|
539
|
+
setState(92);
|
|
540
|
+
match(IDENTIFIER);
|
|
541
|
+
setState(93);
|
|
542
|
+
match(T__11);
|
|
543
|
+
setState(94);
|
|
544
|
+
type();
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
catch (RecognitionException re) {
|
|
548
|
+
_localctx.exception = re;
|
|
549
|
+
_errHandler.reportError(this, re);
|
|
550
|
+
_errHandler.recover(this, re);
|
|
551
|
+
}
|
|
552
|
+
finally {
|
|
553
|
+
exitRule();
|
|
554
|
+
}
|
|
555
|
+
return _localctx;
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
@SuppressWarnings("CheckReturnValue")
|
|
559
|
+
public static class TypeContext extends ParserRuleContext {
|
|
560
|
+
public PrimitiveTypeContext primitiveType() {
|
|
561
|
+
return getRuleContext(PrimitiveTypeContext.class,0);
|
|
562
|
+
}
|
|
563
|
+
public List<TerminalNode> CAPITAL_IDENTIFIER() { return getTokens(BlendApiParser.CAPITAL_IDENTIFIER); }
|
|
564
|
+
public TerminalNode CAPITAL_IDENTIFIER(int i) {
|
|
565
|
+
return getToken(BlendApiParser.CAPITAL_IDENTIFIER, i);
|
|
566
|
+
}
|
|
567
|
+
public TypeContext(ParserRuleContext parent, int invokingState) {
|
|
568
|
+
super(parent, invokingState);
|
|
569
|
+
}
|
|
570
|
+
@Override public int getRuleIndex() { return RULE_type; }
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
public final TypeContext type() throws RecognitionException {
|
|
574
|
+
TypeContext _localctx = new TypeContext(_ctx, getState());
|
|
575
|
+
enterRule(_localctx, 18, RULE_type);
|
|
576
|
+
try {
|
|
577
|
+
setState(114);
|
|
578
|
+
_errHandler.sync(this);
|
|
579
|
+
switch ( getInterpreter().adaptivePredict(_input,8,_ctx) ) {
|
|
580
|
+
case 1:
|
|
581
|
+
enterOuterAlt(_localctx, 1);
|
|
582
|
+
{
|
|
583
|
+
setState(96);
|
|
584
|
+
primitiveType();
|
|
585
|
+
}
|
|
586
|
+
break;
|
|
587
|
+
case 2:
|
|
588
|
+
enterOuterAlt(_localctx, 2);
|
|
589
|
+
{
|
|
590
|
+
setState(97);
|
|
591
|
+
primitiveType();
|
|
592
|
+
setState(98);
|
|
593
|
+
match(T__12);
|
|
594
|
+
}
|
|
595
|
+
break;
|
|
596
|
+
case 3:
|
|
597
|
+
enterOuterAlt(_localctx, 3);
|
|
598
|
+
{
|
|
599
|
+
setState(100);
|
|
600
|
+
primitiveType();
|
|
601
|
+
setState(101);
|
|
602
|
+
match(T__13);
|
|
603
|
+
}
|
|
604
|
+
break;
|
|
605
|
+
case 4:
|
|
606
|
+
enterOuterAlt(_localctx, 4);
|
|
607
|
+
{
|
|
608
|
+
setState(103);
|
|
609
|
+
match(CAPITAL_IDENTIFIER);
|
|
610
|
+
setState(104);
|
|
611
|
+
match(T__14);
|
|
612
|
+
setState(105);
|
|
613
|
+
match(CAPITAL_IDENTIFIER);
|
|
614
|
+
}
|
|
615
|
+
break;
|
|
616
|
+
case 5:
|
|
617
|
+
enterOuterAlt(_localctx, 5);
|
|
618
|
+
{
|
|
619
|
+
setState(106);
|
|
620
|
+
match(CAPITAL_IDENTIFIER);
|
|
621
|
+
setState(107);
|
|
622
|
+
match(T__14);
|
|
623
|
+
setState(108);
|
|
624
|
+
match(CAPITAL_IDENTIFIER);
|
|
625
|
+
setState(109);
|
|
626
|
+
match(T__13);
|
|
627
|
+
}
|
|
628
|
+
break;
|
|
629
|
+
case 6:
|
|
630
|
+
enterOuterAlt(_localctx, 6);
|
|
631
|
+
{
|
|
632
|
+
setState(110);
|
|
633
|
+
match(CAPITAL_IDENTIFIER);
|
|
634
|
+
setState(111);
|
|
635
|
+
match(T__14);
|
|
636
|
+
setState(112);
|
|
637
|
+
match(CAPITAL_IDENTIFIER);
|
|
638
|
+
setState(113);
|
|
639
|
+
match(T__12);
|
|
640
|
+
}
|
|
641
|
+
break;
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
catch (RecognitionException re) {
|
|
645
|
+
_localctx.exception = re;
|
|
646
|
+
_errHandler.reportError(this, re);
|
|
647
|
+
_errHandler.recover(this, re);
|
|
648
|
+
}
|
|
649
|
+
finally {
|
|
650
|
+
exitRule();
|
|
651
|
+
}
|
|
652
|
+
return _localctx;
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
@SuppressWarnings("CheckReturnValue")
|
|
656
|
+
public static class PrimitiveTypeContext extends ParserRuleContext {
|
|
657
|
+
public PrimitiveTypeContext(ParserRuleContext parent, int invokingState) {
|
|
658
|
+
super(parent, invokingState);
|
|
659
|
+
}
|
|
660
|
+
@Override public int getRuleIndex() { return RULE_primitiveType; }
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
public final PrimitiveTypeContext primitiveType() throws RecognitionException {
|
|
664
|
+
PrimitiveTypeContext _localctx = new PrimitiveTypeContext(_ctx, getState());
|
|
665
|
+
enterRule(_localctx, 20, RULE_primitiveType);
|
|
666
|
+
int _la;
|
|
667
|
+
try {
|
|
668
|
+
enterOuterAlt(_localctx, 1);
|
|
669
|
+
{
|
|
670
|
+
setState(116);
|
|
671
|
+
_la = _input.LA(1);
|
|
672
|
+
if ( !((((_la) & ~0x3f) == 0 && ((1L << _la) & 2031616L) != 0)) ) {
|
|
673
|
+
_errHandler.recoverInline(this);
|
|
674
|
+
}
|
|
675
|
+
else {
|
|
676
|
+
if ( _input.LA(1)==Token.EOF ) matchedEOF = true;
|
|
677
|
+
_errHandler.reportMatch(this);
|
|
678
|
+
consume();
|
|
679
|
+
}
|
|
680
|
+
}
|
|
681
|
+
}
|
|
682
|
+
catch (RecognitionException re) {
|
|
683
|
+
_localctx.exception = re;
|
|
684
|
+
_errHandler.reportError(this, re);
|
|
685
|
+
_errHandler.recover(this, re);
|
|
686
|
+
}
|
|
687
|
+
finally {
|
|
688
|
+
exitRule();
|
|
689
|
+
}
|
|
690
|
+
return _localctx;
|
|
691
|
+
}
|
|
692
|
+
|
|
693
|
+
public static final String _serializedATN =
|
|
694
|
+
"\u0004\u0001\u0018w\u0002\u0000\u0007\u0000\u0002\u0001\u0007\u0001\u0002"+
|
|
695
|
+
"\u0002\u0007\u0002\u0002\u0003\u0007\u0003\u0002\u0004\u0007\u0004\u0002"+
|
|
696
|
+
"\u0005\u0007\u0005\u0002\u0006\u0007\u0006\u0002\u0007\u0007\u0007\u0002"+
|
|
697
|
+
"\b\u0007\b\u0002\t\u0007\t\u0002\n\u0007\n\u0001\u0000\u0001\u0000\u0005"+
|
|
698
|
+
"\u0000\u0019\b\u0000\n\u0000\f\u0000\u001c\t\u0000\u0001\u0001\u0001\u0001"+
|
|
699
|
+
"\u0001\u0001\u0001\u0001\u0005\u0001\"\b\u0001\n\u0001\f\u0001%\t\u0001"+
|
|
700
|
+
"\u0001\u0001\u0001\u0001\u0001\u0002\u0001\u0002\u0001\u0002\u0001\u0003"+
|
|
701
|
+
"\u0001\u0003\u0001\u0003\u0001\u0003\u0001\u0003\u0001\u0003\u0001\u0003"+
|
|
702
|
+
"\u0003\u00033\b\u0003\u0001\u0003\u0003\u00036\b\u0003\u0001\u0003\u0003"+
|
|
703
|
+
"\u00039\b\u0003\u0001\u0003\u0001\u0003\u0001\u0004\u0001\u0004\u0001"+
|
|
704
|
+
"\u0005\u0001\u0005\u0001\u0005\u0001\u0005\u0005\u0005C\b\u0005\n\u0005"+
|
|
705
|
+
"\f\u0005F\t\u0005\u0001\u0005\u0001\u0005\u0001\u0006\u0001\u0006\u0001"+
|
|
706
|
+
"\u0006\u0001\u0006\u0005\u0006N\b\u0006\n\u0006\f\u0006Q\t\u0006\u0001"+
|
|
707
|
+
"\u0006\u0001\u0006\u0001\u0006\u0001\u0006\u0001\u0006\u0001\u0006\u0003"+
|
|
708
|
+
"\u0006Y\b\u0006\u0001\u0007\u0001\u0007\u0001\b\u0001\b\u0001\b\u0001"+
|
|
709
|
+
"\b\u0001\t\u0001\t\u0001\t\u0001\t\u0001\t\u0001\t\u0001\t\u0001\t\u0001"+
|
|
710
|
+
"\t\u0001\t\u0001\t\u0001\t\u0001\t\u0001\t\u0001\t\u0001\t\u0001\t\u0001"+
|
|
711
|
+
"\t\u0003\ts\b\t\u0001\n\u0001\n\u0001\n\u0000\u0000\u000b\u0000\u0002"+
|
|
712
|
+
"\u0004\u0006\b\n\f\u000e\u0010\u0012\u0014\u0000\u0001\u0001\u0000\u0010"+
|
|
713
|
+
"\u0014x\u0000\u0016\u0001\u0000\u0000\u0000\u0002\u001d\u0001\u0000\u0000"+
|
|
714
|
+
"\u0000\u0004(\u0001\u0000\u0000\u0000\u0006+\u0001\u0000\u0000\u0000\b"+
|
|
715
|
+
"<\u0001\u0000\u0000\u0000\n>\u0001\u0000\u0000\u0000\fX\u0001\u0000\u0000"+
|
|
716
|
+
"\u0000\u000eZ\u0001\u0000\u0000\u0000\u0010\\\u0001\u0000\u0000\u0000"+
|
|
717
|
+
"\u0012r\u0001\u0000\u0000\u0000\u0014t\u0001\u0000\u0000\u0000\u0016\u001a"+
|
|
718
|
+
"\u0003\u0004\u0002\u0000\u0017\u0019\u0003\u0002\u0001\u0000\u0018\u0017"+
|
|
719
|
+
"\u0001\u0000\u0000\u0000\u0019\u001c\u0001\u0000\u0000\u0000\u001a\u0018"+
|
|
720
|
+
"\u0001\u0000\u0000\u0000\u001a\u001b\u0001\u0000\u0000\u0000\u001b\u0001"+
|
|
721
|
+
"\u0001\u0000\u0000\u0000\u001c\u001a\u0001\u0000\u0000\u0000\u001d\u001e"+
|
|
722
|
+
"\u0005\u0001\u0000\u0000\u001e\u001f\u0005\u0017\u0000\u0000\u001f#\u0005"+
|
|
723
|
+
"\u0002\u0000\u0000 \"\u0003\u0006\u0003\u0000! \u0001\u0000\u0000\u0000"+
|
|
724
|
+
"\"%\u0001\u0000\u0000\u0000#!\u0001\u0000\u0000\u0000#$\u0001\u0000\u0000"+
|
|
725
|
+
"\u0000$&\u0001\u0000\u0000\u0000%#\u0001\u0000\u0000\u0000&\'\u0005\u0003"+
|
|
726
|
+
"\u0000\u0000\'\u0003\u0001\u0000\u0000\u0000()\u0005\u0004\u0000\u0000"+
|
|
727
|
+
")*\u0005\u0017\u0000\u0000*\u0005\u0001\u0000\u0000\u0000+,\u0005\u0005"+
|
|
728
|
+
"\u0000\u0000,-\u0005\u0016\u0000\u0000-.\u0005\u0006\u0000\u0000./\u0005"+
|
|
729
|
+
"\u0015\u0000\u0000/0\u0005\u0007\u0000\u000002\u0005\u0002\u0000\u0000"+
|
|
730
|
+
"13\u0003\b\u0004\u000021\u0001\u0000\u0000\u000023\u0001\u0000\u0000\u0000"+
|
|
731
|
+
"35\u0001\u0000\u0000\u000046\u0003\n\u0005\u000054\u0001\u0000\u0000\u0000"+
|
|
732
|
+
"56\u0001\u0000\u0000\u000068\u0001\u0000\u0000\u000079\u0003\f\u0006\u0000"+
|
|
733
|
+
"87\u0001\u0000\u0000\u000089\u0001\u0000\u0000\u00009:\u0001\u0000\u0000"+
|
|
734
|
+
"\u0000:;\u0005\u0003\u0000\u0000;\u0007\u0001\u0000\u0000\u0000<=\u0005"+
|
|
735
|
+
"\b\u0000\u0000=\t\u0001\u0000\u0000\u0000>?\u0005\t\u0000\u0000?D\u0003"+
|
|
736
|
+
"\u0010\b\u0000@A\u0005\n\u0000\u0000AC\u0003\u0010\b\u0000B@\u0001\u0000"+
|
|
737
|
+
"\u0000\u0000CF\u0001\u0000\u0000\u0000DB\u0001\u0000\u0000\u0000DE\u0001"+
|
|
738
|
+
"\u0000\u0000\u0000EG\u0001\u0000\u0000\u0000FD\u0001\u0000\u0000\u0000"+
|
|
739
|
+
"GH\u0005\u0007\u0000\u0000H\u000b\u0001\u0000\u0000\u0000IJ\u0005\u000b"+
|
|
740
|
+
"\u0000\u0000JO\u0003\u0010\b\u0000KL\u0005\n\u0000\u0000LN\u0003\u0010"+
|
|
741
|
+
"\b\u0000MK\u0001\u0000\u0000\u0000NQ\u0001\u0000\u0000\u0000OM\u0001\u0000"+
|
|
742
|
+
"\u0000\u0000OP\u0001\u0000\u0000\u0000PR\u0001\u0000\u0000\u0000QO\u0001"+
|
|
743
|
+
"\u0000\u0000\u0000RS\u0005\u0007\u0000\u0000SY\u0001\u0000\u0000\u0000"+
|
|
744
|
+
"TU\u0005\u000b\u0000\u0000UV\u0003\u000e\u0007\u0000VW\u0005\u0007\u0000"+
|
|
745
|
+
"\u0000WY\u0001\u0000\u0000\u0000XI\u0001\u0000\u0000\u0000XT\u0001\u0000"+
|
|
746
|
+
"\u0000\u0000Y\r\u0001\u0000\u0000\u0000Z[\u0003\u0012\t\u0000[\u000f\u0001"+
|
|
747
|
+
"\u0000\u0000\u0000\\]\u0005\u0016\u0000\u0000]^\u0005\f\u0000\u0000^_"+
|
|
748
|
+
"\u0003\u0012\t\u0000_\u0011\u0001\u0000\u0000\u0000`s\u0003\u0014\n\u0000"+
|
|
749
|
+
"ab\u0003\u0014\n\u0000bc\u0005\r\u0000\u0000cs\u0001\u0000\u0000\u0000"+
|
|
750
|
+
"de\u0003\u0014\n\u0000ef\u0005\u000e\u0000\u0000fs\u0001\u0000\u0000\u0000"+
|
|
751
|
+
"gh\u0005\u0017\u0000\u0000hi\u0005\u000f\u0000\u0000is\u0005\u0017\u0000"+
|
|
752
|
+
"\u0000jk\u0005\u0017\u0000\u0000kl\u0005\u000f\u0000\u0000lm\u0005\u0017"+
|
|
753
|
+
"\u0000\u0000ms\u0005\u000e\u0000\u0000no\u0005\u0017\u0000\u0000op\u0005"+
|
|
754
|
+
"\u000f\u0000\u0000pq\u0005\u0017\u0000\u0000qs\u0005\r\u0000\u0000r`\u0001"+
|
|
755
|
+
"\u0000\u0000\u0000ra\u0001\u0000\u0000\u0000rd\u0001\u0000\u0000\u0000"+
|
|
756
|
+
"rg\u0001\u0000\u0000\u0000rj\u0001\u0000\u0000\u0000rn\u0001\u0000\u0000"+
|
|
757
|
+
"\u0000s\u0013\u0001\u0000\u0000\u0000tu\u0007\u0000\u0000\u0000u\u0015"+
|
|
758
|
+
"\u0001\u0000\u0000\u0000\t\u001a#258DOXr";
|
|
759
|
+
public static final ATN _ATN =
|
|
760
|
+
new ATNDeserializer().deserialize(_serializedATN.toCharArray());
|
|
761
|
+
static {
|
|
762
|
+
_decisionToDFA = new DFA[_ATN.getNumberOfDecisions()];
|
|
763
|
+
for (int i = 0; i < _ATN.getNumberOfDecisions(); i++) {
|
|
764
|
+
_decisionToDFA[i] = new DFA(_ATN.getDecisionState(i), i);
|
|
765
|
+
}
|
|
766
|
+
}
|
|
767
|
+
}
|