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
package/dist/src/app.js
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
const express_1 = __importDefault(require("express"));
|
|
40
|
+
const http = __importStar(require("http"));
|
|
41
|
+
const cors_1 = __importDefault(require("cors"));
|
|
42
|
+
const debug_1 = __importDefault(require("debug"));
|
|
43
|
+
const body_parser_1 = require("body-parser");
|
|
44
|
+
const mongoose_1 = __importDefault(require("mongoose"));
|
|
45
|
+
const dotenv_1 = __importDefault(require("dotenv"));
|
|
46
|
+
const app = (0, express_1.default)();
|
|
47
|
+
const port = 3000;
|
|
48
|
+
const routes = [];
|
|
49
|
+
const debugLog = (0, debug_1.default)('app');
|
|
50
|
+
app.use((err, req, res, next) => {
|
|
51
|
+
console.error(err.stack);
|
|
52
|
+
res.status(500).send('Something broke!');
|
|
53
|
+
});
|
|
54
|
+
app.use(express_1.default.json());
|
|
55
|
+
app.use((0, cors_1.default)());
|
|
56
|
+
app.use((0, body_parser_1.urlencoded)());
|
|
57
|
+
app.use((0, body_parser_1.json)());
|
|
58
|
+
dotenv_1.default.config({ path: `.env.${process.env.NODE_ENV}` });
|
|
59
|
+
mongoose_1.default.set('strictQuery', false);
|
|
60
|
+
const runningMessage = `Server running ats http://localhost:${port}`;
|
|
61
|
+
app.get('/', (req, res) => {
|
|
62
|
+
res.send("Hello World");
|
|
63
|
+
});
|
|
64
|
+
const server = http.createServer(app);
|
|
65
|
+
server.listen(port, () => {
|
|
66
|
+
if (process.env.MONGO_DB_URL) {
|
|
67
|
+
mongoose_1.default.connect(process.env.MONGO_DB_URL).then(mongoConnection => {
|
|
68
|
+
console.log("Succesfully connected to the data base", routes);
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
console.log(runningMessage);
|
|
72
|
+
routes.forEach((route) => {
|
|
73
|
+
});
|
|
74
|
+
// our only exception to avoiding console.log(), because we
|
|
75
|
+
// always want to know when the server is done starting up
|
|
76
|
+
});
|
package/dist/src/app.ts
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import express from 'express';
|
|
2
|
+
import * as http from 'http';
|
|
3
|
+
|
|
4
|
+
import * as winston from 'winston';
|
|
5
|
+
import * as expressWinston from 'express-winston';
|
|
6
|
+
import cors from 'cors';
|
|
7
|
+
import debug from 'debug';
|
|
8
|
+
|
|
9
|
+
import bodyParser, {json, urlencoded} from 'body-parser';
|
|
10
|
+
import mongoose from 'mongoose';
|
|
11
|
+
import { CommonRoutesConfig } from './routes/common/common.routes.config';
|
|
12
|
+
import dotenv from "dotenv";
|
|
13
|
+
|
|
14
|
+
const app: express.Application = express();
|
|
15
|
+
|
|
16
|
+
const port = 3000;
|
|
17
|
+
const routes: Array<CommonRoutesConfig> = [];
|
|
18
|
+
const debugLog: debug.IDebugger = debug('app');
|
|
19
|
+
app.use((err: any, req:express.Request, res:express.Response, next:any) => {
|
|
20
|
+
console.error(err.stack)
|
|
21
|
+
res.status(500).send('Something broke!')
|
|
22
|
+
});
|
|
23
|
+
app.use(express.json());
|
|
24
|
+
|
|
25
|
+
app.use(cors());
|
|
26
|
+
app.use(urlencoded());
|
|
27
|
+
app.use(json());
|
|
28
|
+
dotenv.config({ path: `.env.${process.env.NODE_ENV}` });
|
|
29
|
+
mongoose.set('strictQuery', false);
|
|
30
|
+
|
|
31
|
+
const runningMessage = `Server running ats http://localhost:${port}`;
|
|
32
|
+
app.get('/', (req: express.Request, res: express.Response) => {
|
|
33
|
+
|
|
34
|
+
res.send("Hello World")
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
const server: http.Server = http.createServer(app);
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
server.listen(port, () => {
|
|
42
|
+
if(process.env.MONGO_DB_URL) {
|
|
43
|
+
mongoose.connect(process.env.MONGO_DB_URL).then(mongoConnection => {
|
|
44
|
+
console.log("Succesfully connected to the data base",routes)
|
|
45
|
+
})
|
|
46
|
+
}
|
|
47
|
+
console.log(runningMessage);
|
|
48
|
+
routes.forEach((route: CommonRoutesConfig) => {
|
|
49
|
+
|
|
50
|
+
});
|
|
51
|
+
// our only exception to avoiding console.log(), because we
|
|
52
|
+
// always want to know when the server is done starting up
|
|
53
|
+
|
|
54
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ApiType = void 0;
|
|
4
|
+
// export type IApiModule = {
|
|
5
|
+
// name: string;
|
|
6
|
+
// apiList: IApiSpec[];
|
|
7
|
+
// }
|
|
8
|
+
var ApiType;
|
|
9
|
+
(function (ApiType) {
|
|
10
|
+
ApiType["Get"] = "GET";
|
|
11
|
+
ApiType["Post"] = "POST";
|
|
12
|
+
ApiType["Put"] = "PUT";
|
|
13
|
+
})(ApiType || (exports.ApiType = ApiType = {}));
|
|
File without changes
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FieldType = void 0;
|
|
4
|
+
var FieldType;
|
|
5
|
+
(function (FieldType) {
|
|
6
|
+
FieldType["String"] = "String";
|
|
7
|
+
FieldType["Number"] = "Number";
|
|
8
|
+
FieldType["Date"] = "Date";
|
|
9
|
+
FieldType["Object"] = "Object";
|
|
10
|
+
FieldType["StringArray"] = "[String]";
|
|
11
|
+
FieldType["Boolean"] = "Boolean";
|
|
12
|
+
})(FieldType || (exports.FieldType = FieldType = {}));
|
package/package.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "blend-kit",
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"main": "index.js",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
7
|
+
"build": "tsc && copyfiles -u 1 template/**/* dist/",
|
|
8
|
+
"start": "node dist/index.js"
|
|
9
|
+
},
|
|
10
|
+
"keywords": [],
|
|
11
|
+
"author": "Govind VE",
|
|
12
|
+
"license": "ISC",
|
|
13
|
+
"description": "",
|
|
14
|
+
"dependencies": {
|
|
15
|
+
"commander": "^12.1.0",
|
|
16
|
+
"fs-extra": "^11.2.0"
|
|
17
|
+
},
|
|
18
|
+
"devDependencies": {
|
|
19
|
+
"@types/node": "^22.13.1",
|
|
20
|
+
"antlr4ts": "^0.5.0-alpha.4",
|
|
21
|
+
"antlr4ts-cli": "^0.5.0-alpha.4",
|
|
22
|
+
"copyfiles": "^2.4.1",
|
|
23
|
+
"ts-node": "^10.9.2",
|
|
24
|
+
"typescript": "^5.7.3"
|
|
25
|
+
},
|
|
26
|
+
"bin": {
|
|
27
|
+
"blend-cli": "./dist/index.js"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
token literal names:
|
|
2
|
+
null
|
|
3
|
+
'module'
|
|
4
|
+
'section'
|
|
5
|
+
'{'
|
|
6
|
+
'}'
|
|
7
|
+
'api'
|
|
8
|
+
'('
|
|
9
|
+
')'
|
|
10
|
+
'input'
|
|
11
|
+
'output'
|
|
12
|
+
','
|
|
13
|
+
':'
|
|
14
|
+
'->'
|
|
15
|
+
'[]'
|
|
16
|
+
'?'
|
|
17
|
+
null
|
|
18
|
+
null
|
|
19
|
+
null
|
|
20
|
+
null
|
|
21
|
+
|
|
22
|
+
token symbolic names:
|
|
23
|
+
null
|
|
24
|
+
null
|
|
25
|
+
null
|
|
26
|
+
null
|
|
27
|
+
null
|
|
28
|
+
null
|
|
29
|
+
null
|
|
30
|
+
null
|
|
31
|
+
null
|
|
32
|
+
null
|
|
33
|
+
null
|
|
34
|
+
null
|
|
35
|
+
null
|
|
36
|
+
null
|
|
37
|
+
null
|
|
38
|
+
HTTP_METHOD
|
|
39
|
+
IDENTIFIER
|
|
40
|
+
CAPITAL_IDENTIFIER
|
|
41
|
+
WS
|
|
42
|
+
|
|
43
|
+
rule names:
|
|
44
|
+
T__0
|
|
45
|
+
T__1
|
|
46
|
+
T__2
|
|
47
|
+
T__3
|
|
48
|
+
T__4
|
|
49
|
+
T__5
|
|
50
|
+
T__6
|
|
51
|
+
T__7
|
|
52
|
+
T__8
|
|
53
|
+
T__9
|
|
54
|
+
T__10
|
|
55
|
+
T__11
|
|
56
|
+
T__12
|
|
57
|
+
T__13
|
|
58
|
+
HTTP_METHOD
|
|
59
|
+
IDENTIFIER
|
|
60
|
+
CAPITAL_IDENTIFIER
|
|
61
|
+
WS
|
|
62
|
+
|
|
63
|
+
channel names:
|
|
64
|
+
DEFAULT_TOKEN_CHANNEL
|
|
65
|
+
HIDDEN
|
|
66
|
+
|
|
67
|
+
mode names:
|
|
68
|
+
DEFAULT_MODE
|
|
69
|
+
|
|
70
|
+
atn:
|
|
71
|
+
[4, 0, 18, 128, 6, -1, 2, 0, 7, 0, 2, 1, 7, 1, 2, 2, 7, 2, 2, 3, 7, 3, 2, 4, 7, 4, 2, 5, 7, 5, 2, 6, 7, 6, 2, 7, 7, 7, 2, 8, 7, 8, 2, 9, 7, 9, 2, 10, 7, 10, 2, 11, 7, 11, 2, 12, 7, 12, 2, 13, 7, 13, 2, 14, 7, 14, 2, 15, 7, 15, 2, 16, 7, 16, 2, 17, 7, 17, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 2, 1, 3, 1, 3, 1, 4, 1, 4, 1, 4, 1, 4, 1, 5, 1, 5, 1, 6, 1, 6, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 9, 1, 9, 1, 10, 1, 10, 1, 11, 1, 11, 1, 11, 1, 12, 1, 12, 1, 12, 1, 13, 1, 13, 1, 14, 1, 14, 1, 14, 1, 14, 1, 14, 1, 14, 1, 14, 1, 14, 1, 14, 1, 14, 1, 14, 1, 14, 1, 14, 1, 14, 1, 14, 1, 14, 3, 14, 106, 8, 14, 1, 15, 1, 15, 5, 15, 110, 8, 15, 10, 15, 12, 15, 113, 9, 15, 1, 16, 1, 16, 5, 16, 117, 8, 16, 10, 16, 12, 16, 120, 9, 16, 1, 17, 4, 17, 123, 8, 17, 11, 17, 12, 17, 124, 1, 17, 1, 17, 0, 0, 18, 1, 1, 3, 2, 5, 3, 7, 4, 9, 5, 11, 6, 13, 7, 15, 8, 17, 9, 19, 10, 21, 11, 23, 12, 25, 13, 27, 14, 29, 15, 31, 16, 33, 17, 35, 18, 1, 0, 4, 3, 0, 65, 90, 95, 95, 97, 122, 4, 0, 48, 57, 65, 90, 95, 95, 97, 122, 1, 0, 65, 90, 3, 0, 9, 10, 13, 13, 32, 32, 133, 0, 1, 1, 0, 0, 0, 0, 3, 1, 0, 0, 0, 0, 5, 1, 0, 0, 0, 0, 7, 1, 0, 0, 0, 0, 9, 1, 0, 0, 0, 0, 11, 1, 0, 0, 0, 0, 13, 1, 0, 0, 0, 0, 15, 1, 0, 0, 0, 0, 17, 1, 0, 0, 0, 0, 19, 1, 0, 0, 0, 0, 21, 1, 0, 0, 0, 0, 23, 1, 0, 0, 0, 0, 25, 1, 0, 0, 0, 0, 27, 1, 0, 0, 0, 0, 29, 1, 0, 0, 0, 0, 31, 1, 0, 0, 0, 0, 33, 1, 0, 0, 0, 0, 35, 1, 0, 0, 0, 1, 37, 1, 0, 0, 0, 3, 44, 1, 0, 0, 0, 5, 52, 1, 0, 0, 0, 7, 54, 1, 0, 0, 0, 9, 56, 1, 0, 0, 0, 11, 60, 1, 0, 0, 0, 13, 62, 1, 0, 0, 0, 15, 64, 1, 0, 0, 0, 17, 70, 1, 0, 0, 0, 19, 77, 1, 0, 0, 0, 21, 79, 1, 0, 0, 0, 23, 81, 1, 0, 0, 0, 25, 84, 1, 0, 0, 0, 27, 87, 1, 0, 0, 0, 29, 105, 1, 0, 0, 0, 31, 107, 1, 0, 0, 0, 33, 114, 1, 0, 0, 0, 35, 122, 1, 0, 0, 0, 37, 38, 5, 109, 0, 0, 38, 39, 5, 111, 0, 0, 39, 40, 5, 100, 0, 0, 40, 41, 5, 117, 0, 0, 41, 42, 5, 108, 0, 0, 42, 43, 5, 101, 0, 0, 43, 2, 1, 0, 0, 0, 44, 45, 5, 115, 0, 0, 45, 46, 5, 101, 0, 0, 46, 47, 5, 99, 0, 0, 47, 48, 5, 116, 0, 0, 48, 49, 5, 105, 0, 0, 49, 50, 5, 111, 0, 0, 50, 51, 5, 110, 0, 0, 51, 4, 1, 0, 0, 0, 52, 53, 5, 123, 0, 0, 53, 6, 1, 0, 0, 0, 54, 55, 5, 125, 0, 0, 55, 8, 1, 0, 0, 0, 56, 57, 5, 97, 0, 0, 57, 58, 5, 112, 0, 0, 58, 59, 5, 105, 0, 0, 59, 10, 1, 0, 0, 0, 60, 61, 5, 40, 0, 0, 61, 12, 1, 0, 0, 0, 62, 63, 5, 41, 0, 0, 63, 14, 1, 0, 0, 0, 64, 65, 5, 105, 0, 0, 65, 66, 5, 110, 0, 0, 66, 67, 5, 112, 0, 0, 67, 68, 5, 117, 0, 0, 68, 69, 5, 116, 0, 0, 69, 16, 1, 0, 0, 0, 70, 71, 5, 111, 0, 0, 71, 72, 5, 117, 0, 0, 72, 73, 5, 116, 0, 0, 73, 74, 5, 112, 0, 0, 74, 75, 5, 117, 0, 0, 75, 76, 5, 116, 0, 0, 76, 18, 1, 0, 0, 0, 77, 78, 5, 44, 0, 0, 78, 20, 1, 0, 0, 0, 79, 80, 5, 58, 0, 0, 80, 22, 1, 0, 0, 0, 81, 82, 5, 45, 0, 0, 82, 83, 5, 62, 0, 0, 83, 24, 1, 0, 0, 0, 84, 85, 5, 91, 0, 0, 85, 86, 5, 93, 0, 0, 86, 26, 1, 0, 0, 0, 87, 88, 5, 63, 0, 0, 88, 28, 1, 0, 0, 0, 89, 90, 5, 71, 0, 0, 90, 91, 5, 69, 0, 0, 91, 106, 5, 84, 0, 0, 92, 93, 5, 80, 0, 0, 93, 94, 5, 79, 0, 0, 94, 95, 5, 83, 0, 0, 95, 106, 5, 84, 0, 0, 96, 97, 5, 80, 0, 0, 97, 98, 5, 85, 0, 0, 98, 106, 5, 84, 0, 0, 99, 100, 5, 68, 0, 0, 100, 101, 5, 69, 0, 0, 101, 102, 5, 76, 0, 0, 102, 103, 5, 69, 0, 0, 103, 104, 5, 84, 0, 0, 104, 106, 5, 69, 0, 0, 105, 89, 1, 0, 0, 0, 105, 92, 1, 0, 0, 0, 105, 96, 1, 0, 0, 0, 105, 99, 1, 0, 0, 0, 106, 30, 1, 0, 0, 0, 107, 111, 7, 0, 0, 0, 108, 110, 7, 1, 0, 0, 109, 108, 1, 0, 0, 0, 110, 113, 1, 0, 0, 0, 111, 109, 1, 0, 0, 0, 111, 112, 1, 0, 0, 0, 112, 32, 1, 0, 0, 0, 113, 111, 1, 0, 0, 0, 114, 118, 7, 2, 0, 0, 115, 117, 7, 1, 0, 0, 116, 115, 1, 0, 0, 0, 117, 120, 1, 0, 0, 0, 118, 116, 1, 0, 0, 0, 118, 119, 1, 0, 0, 0, 119, 34, 1, 0, 0, 0, 120, 118, 1, 0, 0, 0, 121, 123, 7, 3, 0, 0, 122, 121, 1, 0, 0, 0, 123, 124, 1, 0, 0, 0, 124, 122, 1, 0, 0, 0, 124, 125, 1, 0, 0, 0, 125, 126, 1, 0, 0, 0, 126, 127, 6, 17, 0, 0, 127, 36, 1, 0, 0, 0, 5, 0, 105, 111, 118, 124, 1, 6, 0, 0]
|
|
@@ -0,0 +1,194 @@
|
|
|
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.Lexer;
|
|
3
|
+
import org.antlr.v4.runtime.CharStream;
|
|
4
|
+
import org.antlr.v4.runtime.Token;
|
|
5
|
+
import org.antlr.v4.runtime.TokenStream;
|
|
6
|
+
import org.antlr.v4.runtime.*;
|
|
7
|
+
import org.antlr.v4.runtime.atn.*;
|
|
8
|
+
import org.antlr.v4.runtime.dfa.DFA;
|
|
9
|
+
import org.antlr.v4.runtime.misc.*;
|
|
10
|
+
|
|
11
|
+
@SuppressWarnings({"all", "warnings", "unchecked", "unused", "cast", "CheckReturnValue", "this-escape"})
|
|
12
|
+
public class ApiModuleLexer extends Lexer {
|
|
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, HTTP_METHOD=15, IDENTIFIER=16,
|
|
21
|
+
CAPITAL_IDENTIFIER=17, WS=18;
|
|
22
|
+
public static String[] channelNames = {
|
|
23
|
+
"DEFAULT_TOKEN_CHANNEL", "HIDDEN"
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
public static String[] modeNames = {
|
|
27
|
+
"DEFAULT_MODE"
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
private static String[] makeRuleNames() {
|
|
31
|
+
return new String[] {
|
|
32
|
+
"T__0", "T__1", "T__2", "T__3", "T__4", "T__5", "T__6", "T__7", "T__8",
|
|
33
|
+
"T__9", "T__10", "T__11", "T__12", "T__13", "HTTP_METHOD", "IDENTIFIER",
|
|
34
|
+
"CAPITAL_IDENTIFIER", "WS"
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
public static final String[] ruleNames = makeRuleNames();
|
|
38
|
+
|
|
39
|
+
private static String[] makeLiteralNames() {
|
|
40
|
+
return new String[] {
|
|
41
|
+
null, "'module'", "'section'", "'{'", "'}'", "'api'", "'('", "')'", "'input'",
|
|
42
|
+
"'output'", "','", "':'", "'->'", "'[]'", "'?'"
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
private static final String[] _LITERAL_NAMES = makeLiteralNames();
|
|
46
|
+
private static String[] makeSymbolicNames() {
|
|
47
|
+
return new String[] {
|
|
48
|
+
null, null, null, null, null, null, null, null, null, null, null, null,
|
|
49
|
+
null, null, null, "HTTP_METHOD", "IDENTIFIER", "CAPITAL_IDENTIFIER",
|
|
50
|
+
"WS"
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
private static final String[] _SYMBOLIC_NAMES = makeSymbolicNames();
|
|
54
|
+
public static final Vocabulary VOCABULARY = new VocabularyImpl(_LITERAL_NAMES, _SYMBOLIC_NAMES);
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* @deprecated Use {@link #VOCABULARY} instead.
|
|
58
|
+
*/
|
|
59
|
+
@Deprecated
|
|
60
|
+
public static final String[] tokenNames;
|
|
61
|
+
static {
|
|
62
|
+
tokenNames = new String[_SYMBOLIC_NAMES.length];
|
|
63
|
+
for (int i = 0; i < tokenNames.length; i++) {
|
|
64
|
+
tokenNames[i] = VOCABULARY.getLiteralName(i);
|
|
65
|
+
if (tokenNames[i] == null) {
|
|
66
|
+
tokenNames[i] = VOCABULARY.getSymbolicName(i);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
if (tokenNames[i] == null) {
|
|
70
|
+
tokenNames[i] = "<INVALID>";
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
@Override
|
|
76
|
+
@Deprecated
|
|
77
|
+
public String[] getTokenNames() {
|
|
78
|
+
return tokenNames;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
@Override
|
|
82
|
+
|
|
83
|
+
public Vocabulary getVocabulary() {
|
|
84
|
+
return VOCABULARY;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
public ApiModuleLexer(CharStream input) {
|
|
89
|
+
super(input);
|
|
90
|
+
_interp = new LexerATNSimulator(this,_ATN,_decisionToDFA,_sharedContextCache);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
@Override
|
|
94
|
+
public String getGrammarFileName() { return "BlendApi.g4"; }
|
|
95
|
+
|
|
96
|
+
@Override
|
|
97
|
+
public String[] getRuleNames() { return ruleNames; }
|
|
98
|
+
|
|
99
|
+
@Override
|
|
100
|
+
public String getSerializedATN() { return _serializedATN; }
|
|
101
|
+
|
|
102
|
+
@Override
|
|
103
|
+
public String[] getChannelNames() { return channelNames; }
|
|
104
|
+
|
|
105
|
+
@Override
|
|
106
|
+
public String[] getModeNames() { return modeNames; }
|
|
107
|
+
|
|
108
|
+
@Override
|
|
109
|
+
public ATN getATN() { return _ATN; }
|
|
110
|
+
|
|
111
|
+
public static final String _serializedATN =
|
|
112
|
+
"\u0004\u0000\u0012\u0080\u0006\uffff\uffff\u0002\u0000\u0007\u0000\u0002"+
|
|
113
|
+
"\u0001\u0007\u0001\u0002\u0002\u0007\u0002\u0002\u0003\u0007\u0003\u0002"+
|
|
114
|
+
"\u0004\u0007\u0004\u0002\u0005\u0007\u0005\u0002\u0006\u0007\u0006\u0002"+
|
|
115
|
+
"\u0007\u0007\u0007\u0002\b\u0007\b\u0002\t\u0007\t\u0002\n\u0007\n\u0002"+
|
|
116
|
+
"\u000b\u0007\u000b\u0002\f\u0007\f\u0002\r\u0007\r\u0002\u000e\u0007\u000e"+
|
|
117
|
+
"\u0002\u000f\u0007\u000f\u0002\u0010\u0007\u0010\u0002\u0011\u0007\u0011"+
|
|
118
|
+
"\u0001\u0000\u0001\u0000\u0001\u0000\u0001\u0000\u0001\u0000\u0001\u0000"+
|
|
119
|
+
"\u0001\u0000\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001"+
|
|
120
|
+
"\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0002\u0001\u0002\u0001\u0003"+
|
|
121
|
+
"\u0001\u0003\u0001\u0004\u0001\u0004\u0001\u0004\u0001\u0004\u0001\u0005"+
|
|
122
|
+
"\u0001\u0005\u0001\u0006\u0001\u0006\u0001\u0007\u0001\u0007\u0001\u0007"+
|
|
123
|
+
"\u0001\u0007\u0001\u0007\u0001\u0007\u0001\b\u0001\b\u0001\b\u0001\b\u0001"+
|
|
124
|
+
"\b\u0001\b\u0001\b\u0001\t\u0001\t\u0001\n\u0001\n\u0001\u000b\u0001\u000b"+
|
|
125
|
+
"\u0001\u000b\u0001\f\u0001\f\u0001\f\u0001\r\u0001\r\u0001\u000e\u0001"+
|
|
126
|
+
"\u000e\u0001\u000e\u0001\u000e\u0001\u000e\u0001\u000e\u0001\u000e\u0001"+
|
|
127
|
+
"\u000e\u0001\u000e\u0001\u000e\u0001\u000e\u0001\u000e\u0001\u000e\u0001"+
|
|
128
|
+
"\u000e\u0001\u000e\u0001\u000e\u0003\u000ej\b\u000e\u0001\u000f\u0001"+
|
|
129
|
+
"\u000f\u0005\u000fn\b\u000f\n\u000f\f\u000fq\t\u000f\u0001\u0010\u0001"+
|
|
130
|
+
"\u0010\u0005\u0010u\b\u0010\n\u0010\f\u0010x\t\u0010\u0001\u0011\u0004"+
|
|
131
|
+
"\u0011{\b\u0011\u000b\u0011\f\u0011|\u0001\u0011\u0001\u0011\u0000\u0000"+
|
|
132
|
+
"\u0012\u0001\u0001\u0003\u0002\u0005\u0003\u0007\u0004\t\u0005\u000b\u0006"+
|
|
133
|
+
"\r\u0007\u000f\b\u0011\t\u0013\n\u0015\u000b\u0017\f\u0019\r\u001b\u000e"+
|
|
134
|
+
"\u001d\u000f\u001f\u0010!\u0011#\u0012\u0001\u0000\u0004\u0003\u0000A"+
|
|
135
|
+
"Z__az\u0004\u000009AZ__az\u0001\u0000AZ\u0003\u0000\t\n\r\r \u0085\u0000"+
|
|
136
|
+
"\u0001\u0001\u0000\u0000\u0000\u0000\u0003\u0001\u0000\u0000\u0000\u0000"+
|
|
137
|
+
"\u0005\u0001\u0000\u0000\u0000\u0000\u0007\u0001\u0000\u0000\u0000\u0000"+
|
|
138
|
+
"\t\u0001\u0000\u0000\u0000\u0000\u000b\u0001\u0000\u0000\u0000\u0000\r"+
|
|
139
|
+
"\u0001\u0000\u0000\u0000\u0000\u000f\u0001\u0000\u0000\u0000\u0000\u0011"+
|
|
140
|
+
"\u0001\u0000\u0000\u0000\u0000\u0013\u0001\u0000\u0000\u0000\u0000\u0015"+
|
|
141
|
+
"\u0001\u0000\u0000\u0000\u0000\u0017\u0001\u0000\u0000\u0000\u0000\u0019"+
|
|
142
|
+
"\u0001\u0000\u0000\u0000\u0000\u001b\u0001\u0000\u0000\u0000\u0000\u001d"+
|
|
143
|
+
"\u0001\u0000\u0000\u0000\u0000\u001f\u0001\u0000\u0000\u0000\u0000!\u0001"+
|
|
144
|
+
"\u0000\u0000\u0000\u0000#\u0001\u0000\u0000\u0000\u0001%\u0001\u0000\u0000"+
|
|
145
|
+
"\u0000\u0003,\u0001\u0000\u0000\u0000\u00054\u0001\u0000\u0000\u0000\u0007"+
|
|
146
|
+
"6\u0001\u0000\u0000\u0000\t8\u0001\u0000\u0000\u0000\u000b<\u0001\u0000"+
|
|
147
|
+
"\u0000\u0000\r>\u0001\u0000\u0000\u0000\u000f@\u0001\u0000\u0000\u0000"+
|
|
148
|
+
"\u0011F\u0001\u0000\u0000\u0000\u0013M\u0001\u0000\u0000\u0000\u0015O"+
|
|
149
|
+
"\u0001\u0000\u0000\u0000\u0017Q\u0001\u0000\u0000\u0000\u0019T\u0001\u0000"+
|
|
150
|
+
"\u0000\u0000\u001bW\u0001\u0000\u0000\u0000\u001di\u0001\u0000\u0000\u0000"+
|
|
151
|
+
"\u001fk\u0001\u0000\u0000\u0000!r\u0001\u0000\u0000\u0000#z\u0001\u0000"+
|
|
152
|
+
"\u0000\u0000%&\u0005m\u0000\u0000&\'\u0005o\u0000\u0000\'(\u0005d\u0000"+
|
|
153
|
+
"\u0000()\u0005u\u0000\u0000)*\u0005l\u0000\u0000*+\u0005e\u0000\u0000"+
|
|
154
|
+
"+\u0002\u0001\u0000\u0000\u0000,-\u0005s\u0000\u0000-.\u0005e\u0000\u0000"+
|
|
155
|
+
"./\u0005c\u0000\u0000/0\u0005t\u0000\u000001\u0005i\u0000\u000012\u0005"+
|
|
156
|
+
"o\u0000\u000023\u0005n\u0000\u00003\u0004\u0001\u0000\u0000\u000045\u0005"+
|
|
157
|
+
"{\u0000\u00005\u0006\u0001\u0000\u0000\u000067\u0005}\u0000\u00007\b\u0001"+
|
|
158
|
+
"\u0000\u0000\u000089\u0005a\u0000\u00009:\u0005p\u0000\u0000:;\u0005i"+
|
|
159
|
+
"\u0000\u0000;\n\u0001\u0000\u0000\u0000<=\u0005(\u0000\u0000=\f\u0001"+
|
|
160
|
+
"\u0000\u0000\u0000>?\u0005)\u0000\u0000?\u000e\u0001\u0000\u0000\u0000"+
|
|
161
|
+
"@A\u0005i\u0000\u0000AB\u0005n\u0000\u0000BC\u0005p\u0000\u0000CD\u0005"+
|
|
162
|
+
"u\u0000\u0000DE\u0005t\u0000\u0000E\u0010\u0001\u0000\u0000\u0000FG\u0005"+
|
|
163
|
+
"o\u0000\u0000GH\u0005u\u0000\u0000HI\u0005t\u0000\u0000IJ\u0005p\u0000"+
|
|
164
|
+
"\u0000JK\u0005u\u0000\u0000KL\u0005t\u0000\u0000L\u0012\u0001\u0000\u0000"+
|
|
165
|
+
"\u0000MN\u0005,\u0000\u0000N\u0014\u0001\u0000\u0000\u0000OP\u0005:\u0000"+
|
|
166
|
+
"\u0000P\u0016\u0001\u0000\u0000\u0000QR\u0005-\u0000\u0000RS\u0005>\u0000"+
|
|
167
|
+
"\u0000S\u0018\u0001\u0000\u0000\u0000TU\u0005[\u0000\u0000UV\u0005]\u0000"+
|
|
168
|
+
"\u0000V\u001a\u0001\u0000\u0000\u0000WX\u0005?\u0000\u0000X\u001c\u0001"+
|
|
169
|
+
"\u0000\u0000\u0000YZ\u0005G\u0000\u0000Z[\u0005E\u0000\u0000[j\u0005T"+
|
|
170
|
+
"\u0000\u0000\\]\u0005P\u0000\u0000]^\u0005O\u0000\u0000^_\u0005S\u0000"+
|
|
171
|
+
"\u0000_j\u0005T\u0000\u0000`a\u0005P\u0000\u0000ab\u0005U\u0000\u0000"+
|
|
172
|
+
"bj\u0005T\u0000\u0000cd\u0005D\u0000\u0000de\u0005E\u0000\u0000ef\u0005"+
|
|
173
|
+
"L\u0000\u0000fg\u0005E\u0000\u0000gh\u0005T\u0000\u0000hj\u0005E\u0000"+
|
|
174
|
+
"\u0000iY\u0001\u0000\u0000\u0000i\\\u0001\u0000\u0000\u0000i`\u0001\u0000"+
|
|
175
|
+
"\u0000\u0000ic\u0001\u0000\u0000\u0000j\u001e\u0001\u0000\u0000\u0000"+
|
|
176
|
+
"ko\u0007\u0000\u0000\u0000ln\u0007\u0001\u0000\u0000ml\u0001\u0000\u0000"+
|
|
177
|
+
"\u0000nq\u0001\u0000\u0000\u0000om\u0001\u0000\u0000\u0000op\u0001\u0000"+
|
|
178
|
+
"\u0000\u0000p \u0001\u0000\u0000\u0000qo\u0001\u0000\u0000\u0000rv\u0007"+
|
|
179
|
+
"\u0002\u0000\u0000su\u0007\u0001\u0000\u0000ts\u0001\u0000\u0000\u0000"+
|
|
180
|
+
"ux\u0001\u0000\u0000\u0000vt\u0001\u0000\u0000\u0000vw\u0001\u0000\u0000"+
|
|
181
|
+
"\u0000w\"\u0001\u0000\u0000\u0000xv\u0001\u0000\u0000\u0000y{\u0007\u0003"+
|
|
182
|
+
"\u0000\u0000zy\u0001\u0000\u0000\u0000{|\u0001\u0000\u0000\u0000|z\u0001"+
|
|
183
|
+
"\u0000\u0000\u0000|}\u0001\u0000\u0000\u0000}~\u0001\u0000\u0000\u0000"+
|
|
184
|
+
"~\u007f\u0006\u0011\u0000\u0000\u007f$\u0001\u0000\u0000\u0000\u0005\u0000"+
|
|
185
|
+
"iov|\u0001\u0006\u0000\u0000";
|
|
186
|
+
public static final ATN _ATN =
|
|
187
|
+
new ATNDeserializer().deserialize(_serializedATN.toCharArray());
|
|
188
|
+
static {
|
|
189
|
+
_decisionToDFA = new DFA[_ATN.getNumberOfDecisions()];
|
|
190
|
+
for (int i = 0; i < _ATN.getNumberOfDecisions(); i++) {
|
|
191
|
+
_decisionToDFA[i] = new DFA(_ATN.getDecisionState(i), i);
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
T__0=1
|
|
2
|
+
T__1=2
|
|
3
|
+
T__2=3
|
|
4
|
+
T__3=4
|
|
5
|
+
T__4=5
|
|
6
|
+
T__5=6
|
|
7
|
+
T__6=7
|
|
8
|
+
T__7=8
|
|
9
|
+
T__8=9
|
|
10
|
+
T__9=10
|
|
11
|
+
T__10=11
|
|
12
|
+
T__11=12
|
|
13
|
+
T__12=13
|
|
14
|
+
T__13=14
|
|
15
|
+
HTTP_METHOD=15
|
|
16
|
+
IDENTIFIER=16
|
|
17
|
+
CAPITAL_IDENTIFIER=17
|
|
18
|
+
WS=18
|
|
19
|
+
'module'=1
|
|
20
|
+
'section'=2
|
|
21
|
+
'{'=3
|
|
22
|
+
'}'=4
|
|
23
|
+
'api'=5
|
|
24
|
+
'('=6
|
|
25
|
+
')'=7
|
|
26
|
+
'input'=8
|
|
27
|
+
'output'=9
|
|
28
|
+
','=10
|
|
29
|
+
':'=11
|
|
30
|
+
'->'=12
|
|
31
|
+
'[]'=13
|
|
32
|
+
'?'=14
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
token literal names:
|
|
2
|
+
null
|
|
3
|
+
'section'
|
|
4
|
+
'{'
|
|
5
|
+
'}'
|
|
6
|
+
'module'
|
|
7
|
+
'api'
|
|
8
|
+
'('
|
|
9
|
+
')'
|
|
10
|
+
'authenticated'
|
|
11
|
+
'input('
|
|
12
|
+
','
|
|
13
|
+
'output('
|
|
14
|
+
':'
|
|
15
|
+
'[]'
|
|
16
|
+
'?'
|
|
17
|
+
'->'
|
|
18
|
+
'string'
|
|
19
|
+
'number'
|
|
20
|
+
'boolean'
|
|
21
|
+
'any'
|
|
22
|
+
'object'
|
|
23
|
+
null
|
|
24
|
+
null
|
|
25
|
+
null
|
|
26
|
+
null
|
|
27
|
+
|
|
28
|
+
token symbolic names:
|
|
29
|
+
null
|
|
30
|
+
null
|
|
31
|
+
null
|
|
32
|
+
null
|
|
33
|
+
null
|
|
34
|
+
null
|
|
35
|
+
null
|
|
36
|
+
null
|
|
37
|
+
null
|
|
38
|
+
null
|
|
39
|
+
null
|
|
40
|
+
null
|
|
41
|
+
null
|
|
42
|
+
null
|
|
43
|
+
null
|
|
44
|
+
null
|
|
45
|
+
null
|
|
46
|
+
null
|
|
47
|
+
null
|
|
48
|
+
null
|
|
49
|
+
null
|
|
50
|
+
HTTP_METHOD
|
|
51
|
+
IDENTIFIER
|
|
52
|
+
CAPITAL_IDENTIFIER
|
|
53
|
+
WS
|
|
54
|
+
|
|
55
|
+
rule names:
|
|
56
|
+
program
|
|
57
|
+
sectionDefinition
|
|
58
|
+
moduleDefinition
|
|
59
|
+
apiDefinition
|
|
60
|
+
authenticated
|
|
61
|
+
inputDefinition
|
|
62
|
+
outputDefinition
|
|
63
|
+
directOutputDefenition
|
|
64
|
+
field
|
|
65
|
+
type
|
|
66
|
+
primitiveType
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
atn:
|
|
70
|
+
[4, 1, 24, 119, 2, 0, 7, 0, 2, 1, 7, 1, 2, 2, 7, 2, 2, 3, 7, 3, 2, 4, 7, 4, 2, 5, 7, 5, 2, 6, 7, 6, 2, 7, 7, 7, 2, 8, 7, 8, 2, 9, 7, 9, 2, 10, 7, 10, 1, 0, 1, 0, 5, 0, 25, 8, 0, 10, 0, 12, 0, 28, 9, 0, 1, 1, 1, 1, 1, 1, 1, 1, 5, 1, 34, 8, 1, 10, 1, 12, 1, 37, 9, 1, 1, 1, 1, 1, 1, 2, 1, 2, 1, 2, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 3, 3, 51, 8, 3, 1, 3, 3, 3, 54, 8, 3, 1, 3, 3, 3, 57, 8, 3, 1, 3, 1, 3, 1, 4, 1, 4, 1, 5, 1, 5, 1, 5, 1, 5, 5, 5, 67, 8, 5, 10, 5, 12, 5, 70, 9, 5, 1, 5, 1, 5, 1, 6, 1, 6, 1, 6, 1, 6, 5, 6, 78, 8, 6, 10, 6, 12, 6, 81, 9, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 3, 6, 89, 8, 6, 1, 7, 1, 7, 1, 8, 1, 8, 1, 8, 1, 8, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 3, 9, 115, 8, 9, 1, 10, 1, 10, 1, 10, 0, 0, 11, 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 0, 1, 1, 0, 16, 20, 120, 0, 22, 1, 0, 0, 0, 2, 29, 1, 0, 0, 0, 4, 40, 1, 0, 0, 0, 6, 43, 1, 0, 0, 0, 8, 60, 1, 0, 0, 0, 10, 62, 1, 0, 0, 0, 12, 88, 1, 0, 0, 0, 14, 90, 1, 0, 0, 0, 16, 92, 1, 0, 0, 0, 18, 114, 1, 0, 0, 0, 20, 116, 1, 0, 0, 0, 22, 26, 3, 4, 2, 0, 23, 25, 3, 2, 1, 0, 24, 23, 1, 0, 0, 0, 25, 28, 1, 0, 0, 0, 26, 24, 1, 0, 0, 0, 26, 27, 1, 0, 0, 0, 27, 1, 1, 0, 0, 0, 28, 26, 1, 0, 0, 0, 29, 30, 5, 1, 0, 0, 30, 31, 5, 23, 0, 0, 31, 35, 5, 2, 0, 0, 32, 34, 3, 6, 3, 0, 33, 32, 1, 0, 0, 0, 34, 37, 1, 0, 0, 0, 35, 33, 1, 0, 0, 0, 35, 36, 1, 0, 0, 0, 36, 38, 1, 0, 0, 0, 37, 35, 1, 0, 0, 0, 38, 39, 5, 3, 0, 0, 39, 3, 1, 0, 0, 0, 40, 41, 5, 4, 0, 0, 41, 42, 5, 23, 0, 0, 42, 5, 1, 0, 0, 0, 43, 44, 5, 5, 0, 0, 44, 45, 5, 22, 0, 0, 45, 46, 5, 6, 0, 0, 46, 47, 5, 21, 0, 0, 47, 48, 5, 7, 0, 0, 48, 50, 5, 2, 0, 0, 49, 51, 3, 8, 4, 0, 50, 49, 1, 0, 0, 0, 50, 51, 1, 0, 0, 0, 51, 53, 1, 0, 0, 0, 52, 54, 3, 10, 5, 0, 53, 52, 1, 0, 0, 0, 53, 54, 1, 0, 0, 0, 54, 56, 1, 0, 0, 0, 55, 57, 3, 12, 6, 0, 56, 55, 1, 0, 0, 0, 56, 57, 1, 0, 0, 0, 57, 58, 1, 0, 0, 0, 58, 59, 5, 3, 0, 0, 59, 7, 1, 0, 0, 0, 60, 61, 5, 8, 0, 0, 61, 9, 1, 0, 0, 0, 62, 63, 5, 9, 0, 0, 63, 68, 3, 16, 8, 0, 64, 65, 5, 10, 0, 0, 65, 67, 3, 16, 8, 0, 66, 64, 1, 0, 0, 0, 67, 70, 1, 0, 0, 0, 68, 66, 1, 0, 0, 0, 68, 69, 1, 0, 0, 0, 69, 71, 1, 0, 0, 0, 70, 68, 1, 0, 0, 0, 71, 72, 5, 7, 0, 0, 72, 11, 1, 0, 0, 0, 73, 74, 5, 11, 0, 0, 74, 79, 3, 16, 8, 0, 75, 76, 5, 10, 0, 0, 76, 78, 3, 16, 8, 0, 77, 75, 1, 0, 0, 0, 78, 81, 1, 0, 0, 0, 79, 77, 1, 0, 0, 0, 79, 80, 1, 0, 0, 0, 80, 82, 1, 0, 0, 0, 81, 79, 1, 0, 0, 0, 82, 83, 5, 7, 0, 0, 83, 89, 1, 0, 0, 0, 84, 85, 5, 11, 0, 0, 85, 86, 3, 14, 7, 0, 86, 87, 5, 7, 0, 0, 87, 89, 1, 0, 0, 0, 88, 73, 1, 0, 0, 0, 88, 84, 1, 0, 0, 0, 89, 13, 1, 0, 0, 0, 90, 91, 3, 18, 9, 0, 91, 15, 1, 0, 0, 0, 92, 93, 5, 22, 0, 0, 93, 94, 5, 12, 0, 0, 94, 95, 3, 18, 9, 0, 95, 17, 1, 0, 0, 0, 96, 115, 3, 20, 10, 0, 97, 98, 3, 20, 10, 0, 98, 99, 5, 13, 0, 0, 99, 115, 1, 0, 0, 0, 100, 101, 3, 20, 10, 0, 101, 102, 5, 14, 0, 0, 102, 115, 1, 0, 0, 0, 103, 104, 5, 23, 0, 0, 104, 105, 5, 15, 0, 0, 105, 115, 5, 23, 0, 0, 106, 107, 5, 23, 0, 0, 107, 108, 5, 15, 0, 0, 108, 109, 5, 23, 0, 0, 109, 115, 5, 14, 0, 0, 110, 111, 5, 23, 0, 0, 111, 112, 5, 15, 0, 0, 112, 113, 5, 23, 0, 0, 113, 115, 5, 13, 0, 0, 114, 96, 1, 0, 0, 0, 114, 97, 1, 0, 0, 0, 114, 100, 1, 0, 0, 0, 114, 103, 1, 0, 0, 0, 114, 106, 1, 0, 0, 0, 114, 110, 1, 0, 0, 0, 115, 19, 1, 0, 0, 0, 116, 117, 7, 0, 0, 0, 117, 21, 1, 0, 0, 0, 9, 26, 35, 50, 53, 56, 68, 79, 88, 114]
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
T__0=1
|
|
2
|
+
T__1=2
|
|
3
|
+
T__2=3
|
|
4
|
+
T__3=4
|
|
5
|
+
T__4=5
|
|
6
|
+
T__5=6
|
|
7
|
+
T__6=7
|
|
8
|
+
T__7=8
|
|
9
|
+
T__8=9
|
|
10
|
+
T__9=10
|
|
11
|
+
T__10=11
|
|
12
|
+
T__11=12
|
|
13
|
+
T__12=13
|
|
14
|
+
T__13=14
|
|
15
|
+
T__14=15
|
|
16
|
+
T__15=16
|
|
17
|
+
T__16=17
|
|
18
|
+
T__17=18
|
|
19
|
+
T__18=19
|
|
20
|
+
T__19=20
|
|
21
|
+
HTTP_METHOD=21
|
|
22
|
+
IDENTIFIER=22
|
|
23
|
+
CAPITAL_IDENTIFIER=23
|
|
24
|
+
WS=24
|
|
25
|
+
'section'=1
|
|
26
|
+
'{'=2
|
|
27
|
+
'}'=3
|
|
28
|
+
'module'=4
|
|
29
|
+
'api'=5
|
|
30
|
+
'('=6
|
|
31
|
+
')'=7
|
|
32
|
+
'authenticated'=8
|
|
33
|
+
'input('=9
|
|
34
|
+
','=10
|
|
35
|
+
'output('=11
|
|
36
|
+
':'=12
|
|
37
|
+
'[]'=13
|
|
38
|
+
'?'=14
|
|
39
|
+
'->'=15
|
|
40
|
+
'string'=16
|
|
41
|
+
'number'=17
|
|
42
|
+
'boolean'=18
|
|
43
|
+
'any'=19
|
|
44
|
+
'object'=20
|