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,961 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Generated from src/grammar/BlendApi.g4 by ANTLR 4.9.0-SNAPSHOT
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.PrimitiveTypeContext = exports.TypeContext = exports.FieldContext = exports.DirectOutputDefenitionContext = exports.OutputDefinitionContext = exports.InputDefinitionContext = exports.AuthenticatedContext = exports.ApiDefinitionContext = exports.ModuleDefinitionContext = exports.SectionDefinitionContext = exports.ProgramContext = exports.BlendApiParser = void 0;
|
|
38
|
+
const ATNDeserializer_1 = require("antlr4ts/atn/ATNDeserializer");
|
|
39
|
+
const FailedPredicateException_1 = require("antlr4ts/FailedPredicateException");
|
|
40
|
+
const Parser_1 = require("antlr4ts/Parser");
|
|
41
|
+
const ParserRuleContext_1 = require("antlr4ts/ParserRuleContext");
|
|
42
|
+
const ParserATNSimulator_1 = require("antlr4ts/atn/ParserATNSimulator");
|
|
43
|
+
const RecognitionException_1 = require("antlr4ts/RecognitionException");
|
|
44
|
+
const Token_1 = require("antlr4ts/Token");
|
|
45
|
+
const VocabularyImpl_1 = require("antlr4ts/VocabularyImpl");
|
|
46
|
+
const Utils = __importStar(require("antlr4ts/misc/Utils"));
|
|
47
|
+
class BlendApiParser extends Parser_1.Parser {
|
|
48
|
+
// @Override
|
|
49
|
+
// @NotNull
|
|
50
|
+
get vocabulary() {
|
|
51
|
+
return BlendApiParser.VOCABULARY;
|
|
52
|
+
}
|
|
53
|
+
// tslint:enable:no-trailing-whitespace
|
|
54
|
+
// @Override
|
|
55
|
+
get grammarFileName() { return "BlendApi.g4"; }
|
|
56
|
+
// @Override
|
|
57
|
+
get ruleNames() { return BlendApiParser.ruleNames; }
|
|
58
|
+
// @Override
|
|
59
|
+
get serializedATN() { return BlendApiParser._serializedATN; }
|
|
60
|
+
createFailedPredicateException(predicate, message) {
|
|
61
|
+
return new FailedPredicateException_1.FailedPredicateException(this, predicate, message);
|
|
62
|
+
}
|
|
63
|
+
constructor(input) {
|
|
64
|
+
super(input);
|
|
65
|
+
this._interp = new ParserATNSimulator_1.ParserATNSimulator(BlendApiParser._ATN, this);
|
|
66
|
+
}
|
|
67
|
+
// @RuleVersion(0)
|
|
68
|
+
program() {
|
|
69
|
+
let _localctx = new ProgramContext(this._ctx, this.state);
|
|
70
|
+
this.enterRule(_localctx, 0, BlendApiParser.RULE_program);
|
|
71
|
+
let _la;
|
|
72
|
+
try {
|
|
73
|
+
this.enterOuterAlt(_localctx, 1);
|
|
74
|
+
{
|
|
75
|
+
this.state = 22;
|
|
76
|
+
this.moduleDefinition();
|
|
77
|
+
this.state = 26;
|
|
78
|
+
this._errHandler.sync(this);
|
|
79
|
+
_la = this._input.LA(1);
|
|
80
|
+
while (_la === BlendApiParser.T__0) {
|
|
81
|
+
{
|
|
82
|
+
{
|
|
83
|
+
this.state = 23;
|
|
84
|
+
this.sectionDefinition();
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
this.state = 28;
|
|
88
|
+
this._errHandler.sync(this);
|
|
89
|
+
_la = this._input.LA(1);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
catch (re) {
|
|
94
|
+
if (re instanceof RecognitionException_1.RecognitionException) {
|
|
95
|
+
_localctx.exception = re;
|
|
96
|
+
this._errHandler.reportError(this, re);
|
|
97
|
+
this._errHandler.recover(this, re);
|
|
98
|
+
}
|
|
99
|
+
else {
|
|
100
|
+
throw re;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
finally {
|
|
104
|
+
this.exitRule();
|
|
105
|
+
}
|
|
106
|
+
return _localctx;
|
|
107
|
+
}
|
|
108
|
+
// @RuleVersion(0)
|
|
109
|
+
sectionDefinition() {
|
|
110
|
+
let _localctx = new SectionDefinitionContext(this._ctx, this.state);
|
|
111
|
+
this.enterRule(_localctx, 2, BlendApiParser.RULE_sectionDefinition);
|
|
112
|
+
let _la;
|
|
113
|
+
try {
|
|
114
|
+
this.enterOuterAlt(_localctx, 1);
|
|
115
|
+
{
|
|
116
|
+
this.state = 29;
|
|
117
|
+
this.match(BlendApiParser.T__0);
|
|
118
|
+
this.state = 30;
|
|
119
|
+
this.match(BlendApiParser.CAPITAL_IDENTIFIER);
|
|
120
|
+
this.state = 31;
|
|
121
|
+
this.match(BlendApiParser.T__1);
|
|
122
|
+
this.state = 35;
|
|
123
|
+
this._errHandler.sync(this);
|
|
124
|
+
_la = this._input.LA(1);
|
|
125
|
+
while (_la === BlendApiParser.T__4) {
|
|
126
|
+
{
|
|
127
|
+
{
|
|
128
|
+
this.state = 32;
|
|
129
|
+
this.apiDefinition();
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
this.state = 37;
|
|
133
|
+
this._errHandler.sync(this);
|
|
134
|
+
_la = this._input.LA(1);
|
|
135
|
+
}
|
|
136
|
+
this.state = 38;
|
|
137
|
+
this.match(BlendApiParser.T__2);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
catch (re) {
|
|
141
|
+
if (re instanceof RecognitionException_1.RecognitionException) {
|
|
142
|
+
_localctx.exception = re;
|
|
143
|
+
this._errHandler.reportError(this, re);
|
|
144
|
+
this._errHandler.recover(this, re);
|
|
145
|
+
}
|
|
146
|
+
else {
|
|
147
|
+
throw re;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
finally {
|
|
151
|
+
this.exitRule();
|
|
152
|
+
}
|
|
153
|
+
return _localctx;
|
|
154
|
+
}
|
|
155
|
+
// @RuleVersion(0)
|
|
156
|
+
moduleDefinition() {
|
|
157
|
+
let _localctx = new ModuleDefinitionContext(this._ctx, this.state);
|
|
158
|
+
this.enterRule(_localctx, 4, BlendApiParser.RULE_moduleDefinition);
|
|
159
|
+
try {
|
|
160
|
+
this.enterOuterAlt(_localctx, 1);
|
|
161
|
+
{
|
|
162
|
+
this.state = 40;
|
|
163
|
+
this.match(BlendApiParser.T__3);
|
|
164
|
+
this.state = 41;
|
|
165
|
+
this.match(BlendApiParser.CAPITAL_IDENTIFIER);
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
catch (re) {
|
|
169
|
+
if (re instanceof RecognitionException_1.RecognitionException) {
|
|
170
|
+
_localctx.exception = re;
|
|
171
|
+
this._errHandler.reportError(this, re);
|
|
172
|
+
this._errHandler.recover(this, re);
|
|
173
|
+
}
|
|
174
|
+
else {
|
|
175
|
+
throw re;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
finally {
|
|
179
|
+
this.exitRule();
|
|
180
|
+
}
|
|
181
|
+
return _localctx;
|
|
182
|
+
}
|
|
183
|
+
// @RuleVersion(0)
|
|
184
|
+
apiDefinition() {
|
|
185
|
+
let _localctx = new ApiDefinitionContext(this._ctx, this.state);
|
|
186
|
+
this.enterRule(_localctx, 6, BlendApiParser.RULE_apiDefinition);
|
|
187
|
+
let _la;
|
|
188
|
+
try {
|
|
189
|
+
this.enterOuterAlt(_localctx, 1);
|
|
190
|
+
{
|
|
191
|
+
this.state = 43;
|
|
192
|
+
this.match(BlendApiParser.T__4);
|
|
193
|
+
this.state = 44;
|
|
194
|
+
this.match(BlendApiParser.IDENTIFIER);
|
|
195
|
+
this.state = 45;
|
|
196
|
+
this.match(BlendApiParser.T__5);
|
|
197
|
+
this.state = 46;
|
|
198
|
+
this.match(BlendApiParser.HTTP_METHOD);
|
|
199
|
+
this.state = 47;
|
|
200
|
+
this.match(BlendApiParser.T__6);
|
|
201
|
+
this.state = 48;
|
|
202
|
+
this.match(BlendApiParser.T__1);
|
|
203
|
+
this.state = 50;
|
|
204
|
+
this._errHandler.sync(this);
|
|
205
|
+
_la = this._input.LA(1);
|
|
206
|
+
if (_la === BlendApiParser.T__7) {
|
|
207
|
+
{
|
|
208
|
+
this.state = 49;
|
|
209
|
+
this.authenticated();
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
this.state = 53;
|
|
213
|
+
this._errHandler.sync(this);
|
|
214
|
+
_la = this._input.LA(1);
|
|
215
|
+
if (_la === BlendApiParser.T__8) {
|
|
216
|
+
{
|
|
217
|
+
this.state = 52;
|
|
218
|
+
this.inputDefinition();
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
this.state = 56;
|
|
222
|
+
this._errHandler.sync(this);
|
|
223
|
+
_la = this._input.LA(1);
|
|
224
|
+
if (_la === BlendApiParser.T__10) {
|
|
225
|
+
{
|
|
226
|
+
this.state = 55;
|
|
227
|
+
this.outputDefinition();
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
this.state = 58;
|
|
231
|
+
this.match(BlendApiParser.T__2);
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
catch (re) {
|
|
235
|
+
if (re instanceof RecognitionException_1.RecognitionException) {
|
|
236
|
+
_localctx.exception = re;
|
|
237
|
+
this._errHandler.reportError(this, re);
|
|
238
|
+
this._errHandler.recover(this, re);
|
|
239
|
+
}
|
|
240
|
+
else {
|
|
241
|
+
throw re;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
finally {
|
|
245
|
+
this.exitRule();
|
|
246
|
+
}
|
|
247
|
+
return _localctx;
|
|
248
|
+
}
|
|
249
|
+
// @RuleVersion(0)
|
|
250
|
+
authenticated() {
|
|
251
|
+
let _localctx = new AuthenticatedContext(this._ctx, this.state);
|
|
252
|
+
this.enterRule(_localctx, 8, BlendApiParser.RULE_authenticated);
|
|
253
|
+
try {
|
|
254
|
+
this.enterOuterAlt(_localctx, 1);
|
|
255
|
+
{
|
|
256
|
+
this.state = 60;
|
|
257
|
+
this.match(BlendApiParser.T__7);
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
catch (re) {
|
|
261
|
+
if (re instanceof RecognitionException_1.RecognitionException) {
|
|
262
|
+
_localctx.exception = re;
|
|
263
|
+
this._errHandler.reportError(this, re);
|
|
264
|
+
this._errHandler.recover(this, re);
|
|
265
|
+
}
|
|
266
|
+
else {
|
|
267
|
+
throw re;
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
finally {
|
|
271
|
+
this.exitRule();
|
|
272
|
+
}
|
|
273
|
+
return _localctx;
|
|
274
|
+
}
|
|
275
|
+
// @RuleVersion(0)
|
|
276
|
+
inputDefinition() {
|
|
277
|
+
let _localctx = new InputDefinitionContext(this._ctx, this.state);
|
|
278
|
+
this.enterRule(_localctx, 10, BlendApiParser.RULE_inputDefinition);
|
|
279
|
+
let _la;
|
|
280
|
+
try {
|
|
281
|
+
this.enterOuterAlt(_localctx, 1);
|
|
282
|
+
{
|
|
283
|
+
this.state = 62;
|
|
284
|
+
this.match(BlendApiParser.T__8);
|
|
285
|
+
this.state = 63;
|
|
286
|
+
this.field();
|
|
287
|
+
this.state = 68;
|
|
288
|
+
this._errHandler.sync(this);
|
|
289
|
+
_la = this._input.LA(1);
|
|
290
|
+
while (_la === BlendApiParser.T__9) {
|
|
291
|
+
{
|
|
292
|
+
{
|
|
293
|
+
this.state = 64;
|
|
294
|
+
this.match(BlendApiParser.T__9);
|
|
295
|
+
this.state = 65;
|
|
296
|
+
this.field();
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
this.state = 70;
|
|
300
|
+
this._errHandler.sync(this);
|
|
301
|
+
_la = this._input.LA(1);
|
|
302
|
+
}
|
|
303
|
+
this.state = 71;
|
|
304
|
+
this.match(BlendApiParser.T__6);
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
catch (re) {
|
|
308
|
+
if (re instanceof RecognitionException_1.RecognitionException) {
|
|
309
|
+
_localctx.exception = re;
|
|
310
|
+
this._errHandler.reportError(this, re);
|
|
311
|
+
this._errHandler.recover(this, re);
|
|
312
|
+
}
|
|
313
|
+
else {
|
|
314
|
+
throw re;
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
finally {
|
|
318
|
+
this.exitRule();
|
|
319
|
+
}
|
|
320
|
+
return _localctx;
|
|
321
|
+
}
|
|
322
|
+
// @RuleVersion(0)
|
|
323
|
+
outputDefinition() {
|
|
324
|
+
let _localctx = new OutputDefinitionContext(this._ctx, this.state);
|
|
325
|
+
this.enterRule(_localctx, 12, BlendApiParser.RULE_outputDefinition);
|
|
326
|
+
let _la;
|
|
327
|
+
try {
|
|
328
|
+
this.state = 88;
|
|
329
|
+
this._errHandler.sync(this);
|
|
330
|
+
switch (this.interpreter.adaptivePredict(this._input, 7, this._ctx)) {
|
|
331
|
+
case 1:
|
|
332
|
+
this.enterOuterAlt(_localctx, 1);
|
|
333
|
+
{
|
|
334
|
+
this.state = 73;
|
|
335
|
+
this.match(BlendApiParser.T__10);
|
|
336
|
+
this.state = 74;
|
|
337
|
+
this.field();
|
|
338
|
+
this.state = 79;
|
|
339
|
+
this._errHandler.sync(this);
|
|
340
|
+
_la = this._input.LA(1);
|
|
341
|
+
while (_la === BlendApiParser.T__9) {
|
|
342
|
+
{
|
|
343
|
+
{
|
|
344
|
+
this.state = 75;
|
|
345
|
+
this.match(BlendApiParser.T__9);
|
|
346
|
+
this.state = 76;
|
|
347
|
+
this.field();
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
this.state = 81;
|
|
351
|
+
this._errHandler.sync(this);
|
|
352
|
+
_la = this._input.LA(1);
|
|
353
|
+
}
|
|
354
|
+
this.state = 82;
|
|
355
|
+
this.match(BlendApiParser.T__6);
|
|
356
|
+
}
|
|
357
|
+
break;
|
|
358
|
+
case 2:
|
|
359
|
+
this.enterOuterAlt(_localctx, 2);
|
|
360
|
+
{
|
|
361
|
+
this.state = 84;
|
|
362
|
+
this.match(BlendApiParser.T__10);
|
|
363
|
+
this.state = 85;
|
|
364
|
+
this.directOutputDefenition();
|
|
365
|
+
this.state = 86;
|
|
366
|
+
this.match(BlendApiParser.T__6);
|
|
367
|
+
}
|
|
368
|
+
break;
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
catch (re) {
|
|
372
|
+
if (re instanceof RecognitionException_1.RecognitionException) {
|
|
373
|
+
_localctx.exception = re;
|
|
374
|
+
this._errHandler.reportError(this, re);
|
|
375
|
+
this._errHandler.recover(this, re);
|
|
376
|
+
}
|
|
377
|
+
else {
|
|
378
|
+
throw re;
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
finally {
|
|
382
|
+
this.exitRule();
|
|
383
|
+
}
|
|
384
|
+
return _localctx;
|
|
385
|
+
}
|
|
386
|
+
// @RuleVersion(0)
|
|
387
|
+
directOutputDefenition() {
|
|
388
|
+
let _localctx = new DirectOutputDefenitionContext(this._ctx, this.state);
|
|
389
|
+
this.enterRule(_localctx, 14, BlendApiParser.RULE_directOutputDefenition);
|
|
390
|
+
try {
|
|
391
|
+
this.enterOuterAlt(_localctx, 1);
|
|
392
|
+
{
|
|
393
|
+
this.state = 90;
|
|
394
|
+
this.type();
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
catch (re) {
|
|
398
|
+
if (re instanceof RecognitionException_1.RecognitionException) {
|
|
399
|
+
_localctx.exception = re;
|
|
400
|
+
this._errHandler.reportError(this, re);
|
|
401
|
+
this._errHandler.recover(this, re);
|
|
402
|
+
}
|
|
403
|
+
else {
|
|
404
|
+
throw re;
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
finally {
|
|
408
|
+
this.exitRule();
|
|
409
|
+
}
|
|
410
|
+
return _localctx;
|
|
411
|
+
}
|
|
412
|
+
// @RuleVersion(0)
|
|
413
|
+
field() {
|
|
414
|
+
let _localctx = new FieldContext(this._ctx, this.state);
|
|
415
|
+
this.enterRule(_localctx, 16, BlendApiParser.RULE_field);
|
|
416
|
+
try {
|
|
417
|
+
this.enterOuterAlt(_localctx, 1);
|
|
418
|
+
{
|
|
419
|
+
this.state = 92;
|
|
420
|
+
this.match(BlendApiParser.IDENTIFIER);
|
|
421
|
+
this.state = 93;
|
|
422
|
+
this.match(BlendApiParser.T__11);
|
|
423
|
+
this.state = 94;
|
|
424
|
+
this.type();
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
catch (re) {
|
|
428
|
+
if (re instanceof RecognitionException_1.RecognitionException) {
|
|
429
|
+
_localctx.exception = re;
|
|
430
|
+
this._errHandler.reportError(this, re);
|
|
431
|
+
this._errHandler.recover(this, re);
|
|
432
|
+
}
|
|
433
|
+
else {
|
|
434
|
+
throw re;
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
finally {
|
|
438
|
+
this.exitRule();
|
|
439
|
+
}
|
|
440
|
+
return _localctx;
|
|
441
|
+
}
|
|
442
|
+
// @RuleVersion(0)
|
|
443
|
+
type() {
|
|
444
|
+
let _localctx = new TypeContext(this._ctx, this.state);
|
|
445
|
+
this.enterRule(_localctx, 18, BlendApiParser.RULE_type);
|
|
446
|
+
try {
|
|
447
|
+
this.state = 114;
|
|
448
|
+
this._errHandler.sync(this);
|
|
449
|
+
switch (this.interpreter.adaptivePredict(this._input, 8, this._ctx)) {
|
|
450
|
+
case 1:
|
|
451
|
+
this.enterOuterAlt(_localctx, 1);
|
|
452
|
+
{
|
|
453
|
+
this.state = 96;
|
|
454
|
+
this.primitiveType();
|
|
455
|
+
}
|
|
456
|
+
break;
|
|
457
|
+
case 2:
|
|
458
|
+
this.enterOuterAlt(_localctx, 2);
|
|
459
|
+
{
|
|
460
|
+
this.state = 97;
|
|
461
|
+
this.primitiveType();
|
|
462
|
+
this.state = 98;
|
|
463
|
+
this.match(BlendApiParser.T__12);
|
|
464
|
+
}
|
|
465
|
+
break;
|
|
466
|
+
case 3:
|
|
467
|
+
this.enterOuterAlt(_localctx, 3);
|
|
468
|
+
{
|
|
469
|
+
this.state = 100;
|
|
470
|
+
this.primitiveType();
|
|
471
|
+
this.state = 101;
|
|
472
|
+
this.match(BlendApiParser.T__13);
|
|
473
|
+
}
|
|
474
|
+
break;
|
|
475
|
+
case 4:
|
|
476
|
+
this.enterOuterAlt(_localctx, 4);
|
|
477
|
+
{
|
|
478
|
+
this.state = 103;
|
|
479
|
+
this.match(BlendApiParser.CAPITAL_IDENTIFIER);
|
|
480
|
+
this.state = 104;
|
|
481
|
+
this.match(BlendApiParser.T__14);
|
|
482
|
+
this.state = 105;
|
|
483
|
+
this.match(BlendApiParser.CAPITAL_IDENTIFIER);
|
|
484
|
+
}
|
|
485
|
+
break;
|
|
486
|
+
case 5:
|
|
487
|
+
this.enterOuterAlt(_localctx, 5);
|
|
488
|
+
{
|
|
489
|
+
this.state = 106;
|
|
490
|
+
this.match(BlendApiParser.CAPITAL_IDENTIFIER);
|
|
491
|
+
this.state = 107;
|
|
492
|
+
this.match(BlendApiParser.T__14);
|
|
493
|
+
this.state = 108;
|
|
494
|
+
this.match(BlendApiParser.CAPITAL_IDENTIFIER);
|
|
495
|
+
this.state = 109;
|
|
496
|
+
this.match(BlendApiParser.T__13);
|
|
497
|
+
}
|
|
498
|
+
break;
|
|
499
|
+
case 6:
|
|
500
|
+
this.enterOuterAlt(_localctx, 6);
|
|
501
|
+
{
|
|
502
|
+
this.state = 110;
|
|
503
|
+
this.match(BlendApiParser.CAPITAL_IDENTIFIER);
|
|
504
|
+
this.state = 111;
|
|
505
|
+
this.match(BlendApiParser.T__14);
|
|
506
|
+
this.state = 112;
|
|
507
|
+
this.match(BlendApiParser.CAPITAL_IDENTIFIER);
|
|
508
|
+
this.state = 113;
|
|
509
|
+
this.match(BlendApiParser.T__12);
|
|
510
|
+
}
|
|
511
|
+
break;
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
catch (re) {
|
|
515
|
+
if (re instanceof RecognitionException_1.RecognitionException) {
|
|
516
|
+
_localctx.exception = re;
|
|
517
|
+
this._errHandler.reportError(this, re);
|
|
518
|
+
this._errHandler.recover(this, re);
|
|
519
|
+
}
|
|
520
|
+
else {
|
|
521
|
+
throw re;
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
finally {
|
|
525
|
+
this.exitRule();
|
|
526
|
+
}
|
|
527
|
+
return _localctx;
|
|
528
|
+
}
|
|
529
|
+
// @RuleVersion(0)
|
|
530
|
+
primitiveType() {
|
|
531
|
+
let _localctx = new PrimitiveTypeContext(this._ctx, this.state);
|
|
532
|
+
this.enterRule(_localctx, 20, BlendApiParser.RULE_primitiveType);
|
|
533
|
+
let _la;
|
|
534
|
+
try {
|
|
535
|
+
this.enterOuterAlt(_localctx, 1);
|
|
536
|
+
{
|
|
537
|
+
this.state = 116;
|
|
538
|
+
_la = this._input.LA(1);
|
|
539
|
+
if (!((((_la) & ~0x1F) === 0 && ((1 << _la) & ((1 << BlendApiParser.T__15) | (1 << BlendApiParser.T__16) | (1 << BlendApiParser.T__17) | (1 << BlendApiParser.T__18) | (1 << BlendApiParser.T__19))) !== 0))) {
|
|
540
|
+
this._errHandler.recoverInline(this);
|
|
541
|
+
}
|
|
542
|
+
else {
|
|
543
|
+
if (this._input.LA(1) === Token_1.Token.EOF) {
|
|
544
|
+
this.matchedEOF = true;
|
|
545
|
+
}
|
|
546
|
+
this._errHandler.reportMatch(this);
|
|
547
|
+
this.consume();
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
catch (re) {
|
|
552
|
+
if (re instanceof RecognitionException_1.RecognitionException) {
|
|
553
|
+
_localctx.exception = re;
|
|
554
|
+
this._errHandler.reportError(this, re);
|
|
555
|
+
this._errHandler.recover(this, re);
|
|
556
|
+
}
|
|
557
|
+
else {
|
|
558
|
+
throw re;
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
finally {
|
|
562
|
+
this.exitRule();
|
|
563
|
+
}
|
|
564
|
+
return _localctx;
|
|
565
|
+
}
|
|
566
|
+
static get _ATN() {
|
|
567
|
+
if (!BlendApiParser.__ATN) {
|
|
568
|
+
BlendApiParser.__ATN = new ATNDeserializer_1.ATNDeserializer().deserialize(Utils.toCharArray(BlendApiParser._serializedATN));
|
|
569
|
+
}
|
|
570
|
+
return BlendApiParser.__ATN;
|
|
571
|
+
}
|
|
572
|
+
}
|
|
573
|
+
exports.BlendApiParser = BlendApiParser;
|
|
574
|
+
BlendApiParser.T__0 = 1;
|
|
575
|
+
BlendApiParser.T__1 = 2;
|
|
576
|
+
BlendApiParser.T__2 = 3;
|
|
577
|
+
BlendApiParser.T__3 = 4;
|
|
578
|
+
BlendApiParser.T__4 = 5;
|
|
579
|
+
BlendApiParser.T__5 = 6;
|
|
580
|
+
BlendApiParser.T__6 = 7;
|
|
581
|
+
BlendApiParser.T__7 = 8;
|
|
582
|
+
BlendApiParser.T__8 = 9;
|
|
583
|
+
BlendApiParser.T__9 = 10;
|
|
584
|
+
BlendApiParser.T__10 = 11;
|
|
585
|
+
BlendApiParser.T__11 = 12;
|
|
586
|
+
BlendApiParser.T__12 = 13;
|
|
587
|
+
BlendApiParser.T__13 = 14;
|
|
588
|
+
BlendApiParser.T__14 = 15;
|
|
589
|
+
BlendApiParser.T__15 = 16;
|
|
590
|
+
BlendApiParser.T__16 = 17;
|
|
591
|
+
BlendApiParser.T__17 = 18;
|
|
592
|
+
BlendApiParser.T__18 = 19;
|
|
593
|
+
BlendApiParser.T__19 = 20;
|
|
594
|
+
BlendApiParser.HTTP_METHOD = 21;
|
|
595
|
+
BlendApiParser.IDENTIFIER = 22;
|
|
596
|
+
BlendApiParser.CAPITAL_IDENTIFIER = 23;
|
|
597
|
+
BlendApiParser.WS = 24;
|
|
598
|
+
BlendApiParser.RULE_program = 0;
|
|
599
|
+
BlendApiParser.RULE_sectionDefinition = 1;
|
|
600
|
+
BlendApiParser.RULE_moduleDefinition = 2;
|
|
601
|
+
BlendApiParser.RULE_apiDefinition = 3;
|
|
602
|
+
BlendApiParser.RULE_authenticated = 4;
|
|
603
|
+
BlendApiParser.RULE_inputDefinition = 5;
|
|
604
|
+
BlendApiParser.RULE_outputDefinition = 6;
|
|
605
|
+
BlendApiParser.RULE_directOutputDefenition = 7;
|
|
606
|
+
BlendApiParser.RULE_field = 8;
|
|
607
|
+
BlendApiParser.RULE_type = 9;
|
|
608
|
+
BlendApiParser.RULE_primitiveType = 10;
|
|
609
|
+
// tslint:disable:no-trailing-whitespace
|
|
610
|
+
BlendApiParser.ruleNames = [
|
|
611
|
+
"program", "sectionDefinition", "moduleDefinition", "apiDefinition", "authenticated",
|
|
612
|
+
"inputDefinition", "outputDefinition", "directOutputDefenition", "field",
|
|
613
|
+
"type", "primitiveType",
|
|
614
|
+
];
|
|
615
|
+
BlendApiParser._LITERAL_NAMES = [
|
|
616
|
+
undefined, "'section'", "'{'", "'}'", "'module'", "'api'", "'('", "')'",
|
|
617
|
+
"'authenticated'", "'input('", "','", "'output('", "':'", "'[]'", "'?'",
|
|
618
|
+
"'->'", "'string'", "'number'", "'boolean'", "'any'", "'object'",
|
|
619
|
+
];
|
|
620
|
+
BlendApiParser._SYMBOLIC_NAMES = [
|
|
621
|
+
undefined, undefined, undefined, undefined, undefined, undefined, undefined,
|
|
622
|
+
undefined, undefined, undefined, undefined, undefined, undefined, undefined,
|
|
623
|
+
undefined, undefined, undefined, undefined, undefined, undefined, undefined,
|
|
624
|
+
"HTTP_METHOD", "IDENTIFIER", "CAPITAL_IDENTIFIER", "WS",
|
|
625
|
+
];
|
|
626
|
+
BlendApiParser.VOCABULARY = new VocabularyImpl_1.VocabularyImpl(BlendApiParser._LITERAL_NAMES, BlendApiParser._SYMBOLIC_NAMES, []);
|
|
627
|
+
BlendApiParser._serializedATN = "\x03\uC91D\uCABA\u058D\uAFBA\u4F53\u0607\uEA8B\uC241\x03\x1Ay\x04\x02" +
|
|
628
|
+
"\t\x02\x04\x03\t\x03\x04\x04\t\x04\x04\x05\t\x05\x04\x06\t\x06\x04\x07" +
|
|
629
|
+
"\t\x07\x04\b\t\b\x04\t\t\t\x04\n\t\n\x04\v\t\v\x04\f\t\f\x03\x02\x03\x02" +
|
|
630
|
+
"\x07\x02\x1B\n\x02\f\x02\x0E\x02\x1E\v\x02\x03\x03\x03\x03\x03\x03\x03" +
|
|
631
|
+
"\x03\x07\x03$\n\x03\f\x03\x0E\x03\'\v\x03\x03\x03\x03\x03\x03\x04\x03" +
|
|
632
|
+
"\x04\x03\x04\x03\x05\x03\x05\x03\x05\x03\x05\x03\x05\x03\x05\x03\x05\x05" +
|
|
633
|
+
"\x055\n\x05\x03\x05\x05\x058\n\x05\x03\x05\x05\x05;\n\x05\x03\x05\x03" +
|
|
634
|
+
"\x05\x03\x06\x03\x06\x03\x07\x03\x07\x03\x07\x03\x07\x07\x07E\n\x07\f" +
|
|
635
|
+
"\x07\x0E\x07H\v\x07\x03\x07\x03\x07\x03\b\x03\b\x03\b\x03\b\x07\bP\n\b" +
|
|
636
|
+
"\f\b\x0E\bS\v\b\x03\b\x03\b\x03\b\x03\b\x03\b\x03\b\x05\b[\n\b\x03\t\x03" +
|
|
637
|
+
"\t\x03\n\x03\n\x03\n\x03\n\x03\v\x03\v\x03\v\x03\v\x03\v\x03\v\x03\v\x03" +
|
|
638
|
+
"\v\x03\v\x03\v\x03\v\x03\v\x03\v\x03\v\x03\v\x03\v\x03\v\x03\v\x05\vu" +
|
|
639
|
+
"\n\v\x03\f\x03\f\x03\f\x02\x02\x02\r\x02\x02\x04\x02\x06\x02\b\x02\n\x02" +
|
|
640
|
+
"\f\x02\x0E\x02\x10\x02\x12\x02\x14\x02\x16\x02\x02\x03\x03\x02\x12\x16" +
|
|
641
|
+
"\x02z\x02\x18\x03\x02\x02\x02\x04\x1F\x03\x02\x02\x02\x06*\x03\x02\x02" +
|
|
642
|
+
"\x02\b-\x03\x02\x02\x02\n>\x03\x02\x02\x02\f@\x03\x02\x02\x02\x0EZ\x03" +
|
|
643
|
+
"\x02\x02\x02\x10\\\x03\x02\x02\x02\x12^\x03\x02\x02\x02\x14t\x03\x02\x02" +
|
|
644
|
+
"\x02\x16v\x03\x02\x02\x02\x18\x1C\x05\x06\x04\x02\x19\x1B\x05\x04\x03" +
|
|
645
|
+
"\x02\x1A\x19\x03\x02\x02\x02\x1B\x1E\x03\x02\x02\x02\x1C\x1A\x03\x02\x02" +
|
|
646
|
+
"\x02\x1C\x1D\x03\x02\x02\x02\x1D\x03\x03\x02\x02\x02\x1E\x1C\x03\x02\x02" +
|
|
647
|
+
"\x02\x1F \x07\x03\x02\x02 !\x07\x19\x02\x02!%\x07\x04\x02\x02\"$\x05\b" +
|
|
648
|
+
"\x05\x02#\"\x03\x02\x02\x02$\'\x03\x02\x02\x02%#\x03\x02\x02\x02%&\x03" +
|
|
649
|
+
"\x02\x02\x02&(\x03\x02\x02\x02\'%\x03\x02\x02\x02()\x07\x05\x02\x02)\x05" +
|
|
650
|
+
"\x03\x02\x02\x02*+\x07\x06\x02\x02+,\x07\x19\x02\x02,\x07\x03\x02\x02" +
|
|
651
|
+
"\x02-.\x07\x07\x02\x02./\x07\x18\x02\x02/0\x07\b\x02\x0201\x07\x17\x02" +
|
|
652
|
+
"\x0212\x07\t\x02\x0224\x07\x04\x02\x0235\x05\n\x06\x0243\x03\x02\x02\x02" +
|
|
653
|
+
"45\x03\x02\x02\x0257\x03\x02\x02\x0268\x05\f\x07\x0276\x03\x02\x02\x02" +
|
|
654
|
+
"78\x03\x02\x02\x028:\x03\x02\x02\x029;\x05\x0E\b\x02:9\x03\x02\x02\x02" +
|
|
655
|
+
":;\x03\x02\x02\x02;<\x03\x02\x02\x02<=\x07\x05\x02\x02=\t\x03\x02\x02" +
|
|
656
|
+
"\x02>?\x07\n\x02\x02?\v\x03\x02\x02\x02@A\x07\v\x02\x02AF\x05\x12\n\x02" +
|
|
657
|
+
"BC\x07\f\x02\x02CE\x05\x12\n\x02DB\x03\x02\x02\x02EH\x03\x02\x02\x02F" +
|
|
658
|
+
"D\x03\x02\x02\x02FG\x03\x02\x02\x02GI\x03\x02\x02\x02HF\x03\x02\x02\x02" +
|
|
659
|
+
"IJ\x07\t\x02\x02J\r\x03\x02\x02\x02KL\x07\r\x02\x02LQ\x05\x12\n\x02MN" +
|
|
660
|
+
"\x07\f\x02\x02NP\x05\x12\n\x02OM\x03\x02\x02\x02PS\x03\x02\x02\x02QO\x03" +
|
|
661
|
+
"\x02\x02\x02QR\x03\x02\x02\x02RT\x03\x02\x02\x02SQ\x03\x02\x02\x02TU\x07" +
|
|
662
|
+
"\t\x02\x02U[\x03\x02\x02\x02VW\x07\r\x02\x02WX\x05\x10\t\x02XY\x07\t\x02" +
|
|
663
|
+
"\x02Y[\x03\x02\x02\x02ZK\x03\x02\x02\x02ZV\x03\x02\x02\x02[\x0F\x03\x02" +
|
|
664
|
+
"\x02\x02\\]\x05\x14\v\x02]\x11\x03\x02\x02\x02^_\x07\x18\x02\x02_`\x07" +
|
|
665
|
+
"\x0E\x02\x02`a\x05\x14\v\x02a\x13\x03\x02\x02\x02bu\x05\x16\f\x02cd\x05" +
|
|
666
|
+
"\x16\f\x02de\x07\x0F\x02\x02eu\x03\x02\x02\x02fg\x05\x16\f\x02gh\x07\x10" +
|
|
667
|
+
"\x02\x02hu\x03\x02\x02\x02ij\x07\x19\x02\x02jk\x07\x11\x02\x02ku\x07\x19" +
|
|
668
|
+
"\x02\x02lm\x07\x19\x02\x02mn\x07\x11\x02\x02no\x07\x19\x02\x02ou\x07\x10" +
|
|
669
|
+
"\x02\x02pq\x07\x19\x02\x02qr\x07\x11\x02\x02rs\x07\x19\x02\x02su\x07\x0F" +
|
|
670
|
+
"\x02\x02tb\x03\x02\x02\x02tc\x03\x02\x02\x02tf\x03\x02\x02\x02ti\x03\x02" +
|
|
671
|
+
"\x02\x02tl\x03\x02\x02\x02tp\x03\x02\x02\x02u\x15\x03\x02\x02\x02vw\t" +
|
|
672
|
+
"\x02\x02\x02w\x17\x03\x02\x02\x02\v\x1C%47:FQZt";
|
|
673
|
+
class ProgramContext extends ParserRuleContext_1.ParserRuleContext {
|
|
674
|
+
moduleDefinition() {
|
|
675
|
+
return this.getRuleContext(0, ModuleDefinitionContext);
|
|
676
|
+
}
|
|
677
|
+
sectionDefinition(i) {
|
|
678
|
+
if (i === undefined) {
|
|
679
|
+
return this.getRuleContexts(SectionDefinitionContext);
|
|
680
|
+
}
|
|
681
|
+
else {
|
|
682
|
+
return this.getRuleContext(i, SectionDefinitionContext);
|
|
683
|
+
}
|
|
684
|
+
}
|
|
685
|
+
constructor(parent, invokingState) {
|
|
686
|
+
super(parent, invokingState);
|
|
687
|
+
}
|
|
688
|
+
// @Override
|
|
689
|
+
get ruleIndex() { return BlendApiParser.RULE_program; }
|
|
690
|
+
// @Override
|
|
691
|
+
enterRule(listener) {
|
|
692
|
+
if (listener.enterProgram) {
|
|
693
|
+
listener.enterProgram(this);
|
|
694
|
+
}
|
|
695
|
+
}
|
|
696
|
+
// @Override
|
|
697
|
+
exitRule(listener) {
|
|
698
|
+
if (listener.exitProgram) {
|
|
699
|
+
listener.exitProgram(this);
|
|
700
|
+
}
|
|
701
|
+
}
|
|
702
|
+
}
|
|
703
|
+
exports.ProgramContext = ProgramContext;
|
|
704
|
+
class SectionDefinitionContext extends ParserRuleContext_1.ParserRuleContext {
|
|
705
|
+
CAPITAL_IDENTIFIER() { return this.getToken(BlendApiParser.CAPITAL_IDENTIFIER, 0); }
|
|
706
|
+
apiDefinition(i) {
|
|
707
|
+
if (i === undefined) {
|
|
708
|
+
return this.getRuleContexts(ApiDefinitionContext);
|
|
709
|
+
}
|
|
710
|
+
else {
|
|
711
|
+
return this.getRuleContext(i, ApiDefinitionContext);
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
constructor(parent, invokingState) {
|
|
715
|
+
super(parent, invokingState);
|
|
716
|
+
}
|
|
717
|
+
// @Override
|
|
718
|
+
get ruleIndex() { return BlendApiParser.RULE_sectionDefinition; }
|
|
719
|
+
// @Override
|
|
720
|
+
enterRule(listener) {
|
|
721
|
+
if (listener.enterSectionDefinition) {
|
|
722
|
+
listener.enterSectionDefinition(this);
|
|
723
|
+
}
|
|
724
|
+
}
|
|
725
|
+
// @Override
|
|
726
|
+
exitRule(listener) {
|
|
727
|
+
if (listener.exitSectionDefinition) {
|
|
728
|
+
listener.exitSectionDefinition(this);
|
|
729
|
+
}
|
|
730
|
+
}
|
|
731
|
+
}
|
|
732
|
+
exports.SectionDefinitionContext = SectionDefinitionContext;
|
|
733
|
+
class ModuleDefinitionContext extends ParserRuleContext_1.ParserRuleContext {
|
|
734
|
+
CAPITAL_IDENTIFIER() { return this.getToken(BlendApiParser.CAPITAL_IDENTIFIER, 0); }
|
|
735
|
+
constructor(parent, invokingState) {
|
|
736
|
+
super(parent, invokingState);
|
|
737
|
+
}
|
|
738
|
+
// @Override
|
|
739
|
+
get ruleIndex() { return BlendApiParser.RULE_moduleDefinition; }
|
|
740
|
+
// @Override
|
|
741
|
+
enterRule(listener) {
|
|
742
|
+
if (listener.enterModuleDefinition) {
|
|
743
|
+
listener.enterModuleDefinition(this);
|
|
744
|
+
}
|
|
745
|
+
}
|
|
746
|
+
// @Override
|
|
747
|
+
exitRule(listener) {
|
|
748
|
+
if (listener.exitModuleDefinition) {
|
|
749
|
+
listener.exitModuleDefinition(this);
|
|
750
|
+
}
|
|
751
|
+
}
|
|
752
|
+
}
|
|
753
|
+
exports.ModuleDefinitionContext = ModuleDefinitionContext;
|
|
754
|
+
class ApiDefinitionContext extends ParserRuleContext_1.ParserRuleContext {
|
|
755
|
+
IDENTIFIER() { return this.getToken(BlendApiParser.IDENTIFIER, 0); }
|
|
756
|
+
HTTP_METHOD() { return this.getToken(BlendApiParser.HTTP_METHOD, 0); }
|
|
757
|
+
authenticated() {
|
|
758
|
+
return this.tryGetRuleContext(0, AuthenticatedContext);
|
|
759
|
+
}
|
|
760
|
+
inputDefinition() {
|
|
761
|
+
return this.tryGetRuleContext(0, InputDefinitionContext);
|
|
762
|
+
}
|
|
763
|
+
outputDefinition() {
|
|
764
|
+
return this.tryGetRuleContext(0, OutputDefinitionContext);
|
|
765
|
+
}
|
|
766
|
+
constructor(parent, invokingState) {
|
|
767
|
+
super(parent, invokingState);
|
|
768
|
+
}
|
|
769
|
+
// @Override
|
|
770
|
+
get ruleIndex() { return BlendApiParser.RULE_apiDefinition; }
|
|
771
|
+
// @Override
|
|
772
|
+
enterRule(listener) {
|
|
773
|
+
if (listener.enterApiDefinition) {
|
|
774
|
+
listener.enterApiDefinition(this);
|
|
775
|
+
}
|
|
776
|
+
}
|
|
777
|
+
// @Override
|
|
778
|
+
exitRule(listener) {
|
|
779
|
+
if (listener.exitApiDefinition) {
|
|
780
|
+
listener.exitApiDefinition(this);
|
|
781
|
+
}
|
|
782
|
+
}
|
|
783
|
+
}
|
|
784
|
+
exports.ApiDefinitionContext = ApiDefinitionContext;
|
|
785
|
+
class AuthenticatedContext extends ParserRuleContext_1.ParserRuleContext {
|
|
786
|
+
constructor(parent, invokingState) {
|
|
787
|
+
super(parent, invokingState);
|
|
788
|
+
}
|
|
789
|
+
// @Override
|
|
790
|
+
get ruleIndex() { return BlendApiParser.RULE_authenticated; }
|
|
791
|
+
// @Override
|
|
792
|
+
enterRule(listener) {
|
|
793
|
+
if (listener.enterAuthenticated) {
|
|
794
|
+
listener.enterAuthenticated(this);
|
|
795
|
+
}
|
|
796
|
+
}
|
|
797
|
+
// @Override
|
|
798
|
+
exitRule(listener) {
|
|
799
|
+
if (listener.exitAuthenticated) {
|
|
800
|
+
listener.exitAuthenticated(this);
|
|
801
|
+
}
|
|
802
|
+
}
|
|
803
|
+
}
|
|
804
|
+
exports.AuthenticatedContext = AuthenticatedContext;
|
|
805
|
+
class InputDefinitionContext extends ParserRuleContext_1.ParserRuleContext {
|
|
806
|
+
field(i) {
|
|
807
|
+
if (i === undefined) {
|
|
808
|
+
return this.getRuleContexts(FieldContext);
|
|
809
|
+
}
|
|
810
|
+
else {
|
|
811
|
+
return this.getRuleContext(i, FieldContext);
|
|
812
|
+
}
|
|
813
|
+
}
|
|
814
|
+
constructor(parent, invokingState) {
|
|
815
|
+
super(parent, invokingState);
|
|
816
|
+
}
|
|
817
|
+
// @Override
|
|
818
|
+
get ruleIndex() { return BlendApiParser.RULE_inputDefinition; }
|
|
819
|
+
// @Override
|
|
820
|
+
enterRule(listener) {
|
|
821
|
+
if (listener.enterInputDefinition) {
|
|
822
|
+
listener.enterInputDefinition(this);
|
|
823
|
+
}
|
|
824
|
+
}
|
|
825
|
+
// @Override
|
|
826
|
+
exitRule(listener) {
|
|
827
|
+
if (listener.exitInputDefinition) {
|
|
828
|
+
listener.exitInputDefinition(this);
|
|
829
|
+
}
|
|
830
|
+
}
|
|
831
|
+
}
|
|
832
|
+
exports.InputDefinitionContext = InputDefinitionContext;
|
|
833
|
+
class OutputDefinitionContext extends ParserRuleContext_1.ParserRuleContext {
|
|
834
|
+
field(i) {
|
|
835
|
+
if (i === undefined) {
|
|
836
|
+
return this.getRuleContexts(FieldContext);
|
|
837
|
+
}
|
|
838
|
+
else {
|
|
839
|
+
return this.getRuleContext(i, FieldContext);
|
|
840
|
+
}
|
|
841
|
+
}
|
|
842
|
+
directOutputDefenition() {
|
|
843
|
+
return this.tryGetRuleContext(0, DirectOutputDefenitionContext);
|
|
844
|
+
}
|
|
845
|
+
constructor(parent, invokingState) {
|
|
846
|
+
super(parent, invokingState);
|
|
847
|
+
}
|
|
848
|
+
// @Override
|
|
849
|
+
get ruleIndex() { return BlendApiParser.RULE_outputDefinition; }
|
|
850
|
+
// @Override
|
|
851
|
+
enterRule(listener) {
|
|
852
|
+
if (listener.enterOutputDefinition) {
|
|
853
|
+
listener.enterOutputDefinition(this);
|
|
854
|
+
}
|
|
855
|
+
}
|
|
856
|
+
// @Override
|
|
857
|
+
exitRule(listener) {
|
|
858
|
+
if (listener.exitOutputDefinition) {
|
|
859
|
+
listener.exitOutputDefinition(this);
|
|
860
|
+
}
|
|
861
|
+
}
|
|
862
|
+
}
|
|
863
|
+
exports.OutputDefinitionContext = OutputDefinitionContext;
|
|
864
|
+
class DirectOutputDefenitionContext extends ParserRuleContext_1.ParserRuleContext {
|
|
865
|
+
type() {
|
|
866
|
+
return this.getRuleContext(0, TypeContext);
|
|
867
|
+
}
|
|
868
|
+
constructor(parent, invokingState) {
|
|
869
|
+
super(parent, invokingState);
|
|
870
|
+
}
|
|
871
|
+
// @Override
|
|
872
|
+
get ruleIndex() { return BlendApiParser.RULE_directOutputDefenition; }
|
|
873
|
+
// @Override
|
|
874
|
+
enterRule(listener) {
|
|
875
|
+
if (listener.enterDirectOutputDefenition) {
|
|
876
|
+
listener.enterDirectOutputDefenition(this);
|
|
877
|
+
}
|
|
878
|
+
}
|
|
879
|
+
// @Override
|
|
880
|
+
exitRule(listener) {
|
|
881
|
+
if (listener.exitDirectOutputDefenition) {
|
|
882
|
+
listener.exitDirectOutputDefenition(this);
|
|
883
|
+
}
|
|
884
|
+
}
|
|
885
|
+
}
|
|
886
|
+
exports.DirectOutputDefenitionContext = DirectOutputDefenitionContext;
|
|
887
|
+
class FieldContext extends ParserRuleContext_1.ParserRuleContext {
|
|
888
|
+
IDENTIFIER() { return this.getToken(BlendApiParser.IDENTIFIER, 0); }
|
|
889
|
+
type() {
|
|
890
|
+
return this.getRuleContext(0, TypeContext);
|
|
891
|
+
}
|
|
892
|
+
constructor(parent, invokingState) {
|
|
893
|
+
super(parent, invokingState);
|
|
894
|
+
}
|
|
895
|
+
// @Override
|
|
896
|
+
get ruleIndex() { return BlendApiParser.RULE_field; }
|
|
897
|
+
// @Override
|
|
898
|
+
enterRule(listener) {
|
|
899
|
+
if (listener.enterField) {
|
|
900
|
+
listener.enterField(this);
|
|
901
|
+
}
|
|
902
|
+
}
|
|
903
|
+
// @Override
|
|
904
|
+
exitRule(listener) {
|
|
905
|
+
if (listener.exitField) {
|
|
906
|
+
listener.exitField(this);
|
|
907
|
+
}
|
|
908
|
+
}
|
|
909
|
+
}
|
|
910
|
+
exports.FieldContext = FieldContext;
|
|
911
|
+
class TypeContext extends ParserRuleContext_1.ParserRuleContext {
|
|
912
|
+
primitiveType() {
|
|
913
|
+
return this.tryGetRuleContext(0, PrimitiveTypeContext);
|
|
914
|
+
}
|
|
915
|
+
CAPITAL_IDENTIFIER(i) {
|
|
916
|
+
if (i === undefined) {
|
|
917
|
+
return this.getTokens(BlendApiParser.CAPITAL_IDENTIFIER);
|
|
918
|
+
}
|
|
919
|
+
else {
|
|
920
|
+
return this.getToken(BlendApiParser.CAPITAL_IDENTIFIER, i);
|
|
921
|
+
}
|
|
922
|
+
}
|
|
923
|
+
constructor(parent, invokingState) {
|
|
924
|
+
super(parent, invokingState);
|
|
925
|
+
}
|
|
926
|
+
// @Override
|
|
927
|
+
get ruleIndex() { return BlendApiParser.RULE_type; }
|
|
928
|
+
// @Override
|
|
929
|
+
enterRule(listener) {
|
|
930
|
+
if (listener.enterType) {
|
|
931
|
+
listener.enterType(this);
|
|
932
|
+
}
|
|
933
|
+
}
|
|
934
|
+
// @Override
|
|
935
|
+
exitRule(listener) {
|
|
936
|
+
if (listener.exitType) {
|
|
937
|
+
listener.exitType(this);
|
|
938
|
+
}
|
|
939
|
+
}
|
|
940
|
+
}
|
|
941
|
+
exports.TypeContext = TypeContext;
|
|
942
|
+
class PrimitiveTypeContext extends ParserRuleContext_1.ParserRuleContext {
|
|
943
|
+
constructor(parent, invokingState) {
|
|
944
|
+
super(parent, invokingState);
|
|
945
|
+
}
|
|
946
|
+
// @Override
|
|
947
|
+
get ruleIndex() { return BlendApiParser.RULE_primitiveType; }
|
|
948
|
+
// @Override
|
|
949
|
+
enterRule(listener) {
|
|
950
|
+
if (listener.enterPrimitiveType) {
|
|
951
|
+
listener.enterPrimitiveType(this);
|
|
952
|
+
}
|
|
953
|
+
}
|
|
954
|
+
// @Override
|
|
955
|
+
exitRule(listener) {
|
|
956
|
+
if (listener.exitPrimitiveType) {
|
|
957
|
+
listener.exitPrimitiveType(this);
|
|
958
|
+
}
|
|
959
|
+
}
|
|
960
|
+
}
|
|
961
|
+
exports.PrimitiveTypeContext = PrimitiveTypeContext;
|