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.
Files changed (210) hide show
  1. package/dist/helper/ApiHelper.js +0 -0
  2. package/dist/helper/BasicHelper.js +28 -0
  3. package/dist/helper/CommonHelper.js +10 -0
  4. package/dist/helper/DataHelper.js +241 -0
  5. package/dist/helper/ExpressHelper.js +728 -0
  6. package/dist/helper/FrontEndApiHelper.js +485 -0
  7. package/dist/helper/FrontEndReactApiHelper.js +483 -0
  8. package/dist/helper/MongoHelper.js +143 -0
  9. package/dist/helper/RNHelper.js +560 -0
  10. package/dist/helper/ReactHelper.js +524 -0
  11. package/dist/helper/SectionHelper.js +152 -0
  12. package/dist/helper/fileHelper.js +127 -0
  13. package/dist/helper/grammarHelper/BlendApiGrammarHelper.js +48 -0
  14. package/dist/helper/grammarHelper/BlendBasicGrammarHelper.js +98 -0
  15. package/dist/helper/grammarHelper/BlendDataGrammarHelper.js +47 -0
  16. package/dist/helper/grammarHelper/BlendMDPGrammarHelper.js +29 -0
  17. package/dist/helper/grammarHelper/BlendMongoGrammarHelper.js +51 -0
  18. package/dist/helper/grammarHelper/BlendRNGrammarHelper.js +56 -0
  19. package/dist/helper/grammarHelper/BlendReactGrammarHelper.js +55 -0
  20. package/dist/helper/grammarHelper/GrammarErrorHelper.js +16 -0
  21. package/dist/index.js +159 -0
  22. package/dist/parser/blendApi/src/grammar/BlendApiLexer.js +201 -0
  23. package/dist/parser/blendApi/src/grammar/BlendApiListener.js +3 -0
  24. package/dist/parser/blendApi/src/grammar/BlendApiParser.js +961 -0
  25. package/dist/parser/blendData/src/grammar/BlendDataLexer.js +154 -0
  26. package/dist/parser/blendData/src/grammar/BlendDataListener.js +3 -0
  27. package/dist/parser/blendData/src/grammar/BlendDataParser.js +641 -0
  28. package/dist/parser/blendMDP/src/grammar/BlendMDPLexer.js +151 -0
  29. package/dist/parser/blendMDP/src/grammar/BlendMDPListener.js +3 -0
  30. package/dist/parser/blendMDP/src/grammar/BlendMDPParser.js +490 -0
  31. package/dist/parser/blendMongo/src/grammar/BlendMongoLexer.js +187 -0
  32. package/dist/parser/blendMongo/src/grammar/BlendMongoListener.js +3 -0
  33. package/dist/parser/blendMongo/src/grammar/BlendMongoParser.js +848 -0
  34. package/dist/parser/blendRN/src/grammar/BlendRNLexer.js +172 -0
  35. package/dist/parser/blendRN/src/grammar/BlendRNListener.js +3 -0
  36. package/dist/parser/blendRN/src/grammar/BlendRNParser.js +657 -0
  37. package/dist/parser/blendReact/src/grammar/BlendReactLexer.js +159 -0
  38. package/dist/parser/blendReact/src/grammar/BlendReactListener.js +3 -0
  39. package/dist/parser/blendReact/src/grammar/BlendReactParser.js +644 -0
  40. package/dist/parser/blendbasic/src/grammar/BlendBasicLexer.js +147 -0
  41. package/dist/parser/blendbasic/src/grammar/BlendBasicListener.js +3 -0
  42. package/dist/parser/blendbasic/src/grammar/BlendBasicParser.js +747 -0
  43. package/dist/src/app.js +76 -0
  44. package/dist/src/app.ts +54 -0
  45. package/dist/types/apiOperationTypes.js +13 -0
  46. package/dist/types/basicOperationTypes.js +2 -0
  47. package/dist/types/dataOperationTypes.js +2 -0
  48. package/dist/types/frontendOperationTypes.js +4 -0
  49. package/dist/types/generalTypes.js +0 -0
  50. package/dist/types/mongoOperationTypes.js +12 -0
  51. package/package.json +29 -0
  52. package/src/grammar/.antlr/ApiModuleLexer.interp +71 -0
  53. package/src/grammar/.antlr/ApiModuleLexer.java +194 -0
  54. package/src/grammar/.antlr/ApiModuleLexer.tokens +32 -0
  55. package/src/grammar/.antlr/BlendApi.interp +70 -0
  56. package/src/grammar/.antlr/BlendApi.tokens +44 -0
  57. package/src/grammar/.antlr/BlendApiLexer.interp +89 -0
  58. package/src/grammar/.antlr/BlendApiLexer.java +237 -0
  59. package/src/grammar/.antlr/BlendApiLexer.tokens +44 -0
  60. package/src/grammar/.antlr/BlendApiParser.java +767 -0
  61. package/src/grammar/.antlr/BlendBasic.interp +41 -0
  62. package/src/grammar/.antlr/BlendBasic.tokens +20 -0
  63. package/src/grammar/.antlr/BlendBasicLexer.interp +50 -0
  64. package/src/grammar/.antlr/BlendBasicLexer.java +179 -0
  65. package/src/grammar/.antlr/BlendBasicLexer.tokens +20 -0
  66. package/src/grammar/.antlr/BlendBasicParser.java +599 -0
  67. package/src/grammar/.antlr/BlendData.interp +50 -0
  68. package/src/grammar/.antlr/BlendData.tokens +29 -0
  69. package/src/grammar/.antlr/BlendDataLexer.interp +65 -0
  70. package/src/grammar/.antlr/BlendDataLexer.java +181 -0
  71. package/src/grammar/.antlr/BlendDataLexer.tokens +29 -0
  72. package/src/grammar/.antlr/BlendDataParser.java +520 -0
  73. package/src/grammar/.antlr/BlendMDP.interp +45 -0
  74. package/src/grammar/.antlr/BlendMDP.tokens +25 -0
  75. package/src/grammar/.antlr/BlendMDPLexer.interp +59 -0
  76. package/src/grammar/.antlr/BlendMDPLexer.java +178 -0
  77. package/src/grammar/.antlr/BlendMDPLexer.tokens +25 -0
  78. package/src/grammar/.antlr/BlendMDPParser.java +386 -0
  79. package/src/grammar/.antlr/BlendMongo.interp +65 -0
  80. package/src/grammar/.antlr/BlendMongo.tokens +41 -0
  81. package/src/grammar/.antlr/BlendMongoLexer.interp +83 -0
  82. package/src/grammar/.antlr/BlendMongoLexer.java +219 -0
  83. package/src/grammar/.antlr/BlendMongoLexer.tokens +41 -0
  84. package/src/grammar/.antlr/BlendMongoParser.java +669 -0
  85. package/src/grammar/.antlr/BlendRN.interp +53 -0
  86. package/src/grammar/.antlr/BlendRN.tokens +31 -0
  87. package/src/grammar/.antlr/BlendRNLexer.interp +71 -0
  88. package/src/grammar/.antlr/BlendRNLexer.java +202 -0
  89. package/src/grammar/.antlr/BlendRNLexer.tokens +31 -0
  90. package/src/grammar/.antlr/BlendRNParser.java +542 -0
  91. package/src/grammar/.antlr/BlendReact.interp +49 -0
  92. package/src/grammar/.antlr/BlendReact.tokens +28 -0
  93. package/src/grammar/.antlr/BlendReactLexer.interp +65 -0
  94. package/src/grammar/.antlr/BlendReactLexer.java +188 -0
  95. package/src/grammar/.antlr/BlendReactLexer.tokens +28 -0
  96. package/src/grammar/.antlr/BlendReactParser.java +530 -0
  97. package/src/grammar/BlendApi.g4 +26 -0
  98. package/src/grammar/BlendBasic.g4 +16 -0
  99. package/src/grammar/BlendData.g4 +24 -0
  100. package/src/grammar/BlendMDP.g4 +12 -0
  101. package/src/grammar/BlendMongo.g4 +24 -0
  102. package/src/grammar/BlendRN.g4 +18 -0
  103. package/src/grammar/BlendReact.g4 +16 -0
  104. package/src/helper/BasicHelper.ts +35 -0
  105. package/src/helper/CommonHelper.ts +5 -0
  106. package/src/helper/DataHelper.ts +268 -0
  107. package/src/helper/ExpressHelper.ts +807 -0
  108. package/src/helper/FrontEndApiHelper.ts +526 -0
  109. package/src/helper/FrontEndReactApiHelper.ts +532 -0
  110. package/src/helper/MongoHelper.ts +165 -0
  111. package/src/helper/RNHelper.ts +651 -0
  112. package/src/helper/ReactHelper.ts +597 -0
  113. package/src/helper/SectionHelper.ts +154 -0
  114. package/src/helper/fileHelper.ts +111 -0
  115. package/src/helper/grammarHelper/BlendApiGrammarHelper.ts +45 -0
  116. package/src/helper/grammarHelper/BlendBasicGrammarHelper.ts +101 -0
  117. package/src/helper/grammarHelper/BlendDataGrammarHelper.ts +49 -0
  118. package/src/helper/grammarHelper/BlendMDPGrammarHelper.ts +33 -0
  119. package/src/helper/grammarHelper/BlendMongoGrammarHelper.ts +50 -0
  120. package/src/helper/grammarHelper/BlendRNGrammarHelper.ts +65 -0
  121. package/src/helper/grammarHelper/BlendReactGrammarHelper.ts +65 -0
  122. package/src/helper/grammarHelper/GrammarErrorHelper.ts +13 -0
  123. package/src/index.ts +168 -0
  124. package/src/parser/blendApi/src/grammar/BlendApi.interp +70 -0
  125. package/src/parser/blendApi/src/grammar/BlendApi.tokens +44 -0
  126. package/src/parser/blendApi/src/grammar/BlendApiLexer.interp +89 -0
  127. package/src/parser/blendApi/src/grammar/BlendApiLexer.tokens +44 -0
  128. package/src/parser/blendApi/src/grammar/BlendApiLexer.ts +193 -0
  129. package/src/parser/blendApi/src/grammar/BlendApiListener.ts +145 -0
  130. package/src/parser/blendApi/src/grammar/BlendApiParser.ts +968 -0
  131. package/src/parser/blendData/src/grammar/BlendData.interp +50 -0
  132. package/src/parser/blendData/src/grammar/BlendData.tokens +29 -0
  133. package/src/parser/blendData/src/grammar/BlendDataLexer.interp +65 -0
  134. package/src/parser/blendData/src/grammar/BlendDataLexer.tokens +29 -0
  135. package/src/parser/blendData/src/grammar/BlendDataLexer.ts +146 -0
  136. package/src/parser/blendData/src/grammar/BlendDataListener.ts +97 -0
  137. package/src/parser/blendData/src/grammar/BlendDataParser.ts +641 -0
  138. package/src/parser/blendMDP/src/grammar/BlendMDP.interp +45 -0
  139. package/src/parser/blendMDP/src/grammar/BlendMDP.tokens +25 -0
  140. package/src/parser/blendMDP/src/grammar/BlendMDPLexer.interp +59 -0
  141. package/src/parser/blendMDP/src/grammar/BlendMDPLexer.tokens +25 -0
  142. package/src/parser/blendMDP/src/grammar/BlendMDPLexer.ts +143 -0
  143. package/src/parser/blendMDP/src/grammar/BlendMDPListener.ts +85 -0
  144. package/src/parser/blendMDP/src/grammar/BlendMDPParser.ts +483 -0
  145. package/src/parser/blendMongo/src/grammar/BlendMongo.interp +65 -0
  146. package/src/parser/blendMongo/src/grammar/BlendMongo.tokens +41 -0
  147. package/src/parser/blendMongo/src/grammar/BlendMongoLexer.interp +83 -0
  148. package/src/parser/blendMongo/src/grammar/BlendMongoLexer.tokens +41 -0
  149. package/src/parser/blendMongo/src/grammar/BlendMongoLexer.ts +179 -0
  150. package/src/parser/blendMongo/src/grammar/BlendMongoListener.ts +133 -0
  151. package/src/parser/blendMongo/src/grammar/BlendMongoParser.ts +849 -0
  152. package/src/parser/blendRN/src/grammar/BlendRN.interp +53 -0
  153. package/src/parser/blendRN/src/grammar/BlendRN.tokens +31 -0
  154. package/src/parser/blendRN/src/grammar/BlendRNLexer.interp +71 -0
  155. package/src/parser/blendRN/src/grammar/BlendRNLexer.tokens +31 -0
  156. package/src/parser/blendRN/src/grammar/BlendRNLexer.ts +164 -0
  157. package/src/parser/blendRN/src/grammar/BlendRNListener.ts +85 -0
  158. package/src/parser/blendRN/src/grammar/BlendRNParser.ts +659 -0
  159. package/src/parser/blendReact/src/grammar/BlendReact.interp +49 -0
  160. package/src/parser/blendReact/src/grammar/BlendReact.tokens +28 -0
  161. package/src/parser/blendReact/src/grammar/BlendReactLexer.interp +65 -0
  162. package/src/parser/blendReact/src/grammar/BlendReactLexer.tokens +28 -0
  163. package/src/parser/blendReact/src/grammar/BlendReactLexer.ts +151 -0
  164. package/src/parser/blendReact/src/grammar/BlendReactListener.ts +85 -0
  165. package/src/parser/blendReact/src/grammar/BlendReactParser.ts +646 -0
  166. package/src/parser/blendbasic/src/grammar/BlendBasic.interp +41 -0
  167. package/src/parser/blendbasic/src/grammar/BlendBasic.tokens +20 -0
  168. package/src/parser/blendbasic/src/grammar/BlendBasicLexer.interp +50 -0
  169. package/src/parser/blendbasic/src/grammar/BlendBasicLexer.tokens +20 -0
  170. package/src/parser/blendbasic/src/grammar/BlendBasicLexer.ts +139 -0
  171. package/src/parser/blendbasic/src/grammar/BlendBasicListener.ts +109 -0
  172. package/src/parser/blendbasic/src/grammar/BlendBasicParser.ts +747 -0
  173. package/src/types/apiOperationTypes.ts +43 -0
  174. package/src/types/basicOperationTypes.ts +15 -0
  175. package/src/types/dataOperationTypes.ts +20 -0
  176. package/src/types/frontendOperationTypes.ts +92 -0
  177. package/src/types/generalTypes.ts +0 -0
  178. package/src/types/mongoOperationTypes.ts +36 -0
  179. package/template/.env.dev +1 -0
  180. package/template/package.json +36 -0
  181. package/template/src/app.js +76 -0
  182. package/template/src/app.ts +54 -0
  183. package/template/src/config/app.config.js +0 -0
  184. package/template/src/config/app.config.ts +0 -0
  185. package/template/src/config/database.config.js +6 -0
  186. package/template/src/config/database.config.ts +4 -0
  187. package/template/src/data/interfaces.js +2 -0
  188. package/template/src/data/interfaces.ts +23 -0
  189. package/template/src/middlewares/auth.js +22 -0
  190. package/template/src/middlewares/auth.ts +21 -0
  191. package/template/src/models/Database.js +10 -0
  192. package/template/src/models/Database.ts +8 -0
  193. package/template/src/models/User/Permission.model.js +13 -0
  194. package/template/src/models/User/Permission.model.ts +14 -0
  195. package/template/src/models/User/Role.model.js +13 -0
  196. package/template/src/models/User/Role.model.ts +14 -0
  197. package/template/src/models/User/User.model.js +17 -0
  198. package/template/src/models/User/User.model.ts +18 -0
  199. package/template/src/routes/User.routes.js +47 -0
  200. package/template/src/routes/User.routes.ts +41 -0
  201. package/template/src/routes/common/common.routes.config.js +14 -0
  202. package/template/src/routes/common/common.routes.config.ts +15 -0
  203. package/template/src/services/User/User.service.js +75 -0
  204. package/template/src/services/User/User.service.ts +68 -0
  205. package/template/src/services/User/api.data.js +72 -0
  206. package/template/src/services/User/api.data.ts +79 -0
  207. package/template/src/services/User/api.interface.js +3 -0
  208. package/template/src/services/User/api.interface.ts +10 -0
  209. package/template/tsconfig.json +10 -0
  210. package/tsconfig.json +13 -0
@@ -0,0 +1,13 @@
1
+ export default class GrammarErrorHelper {
2
+ static validateSyntax(parser: any): string[] {
3
+ const syntaxErrors: string[] = [];
4
+ parser.removeErrorListeners();
5
+ parser.addErrorListener({
6
+ syntaxError: (recognizer, offendingSymbol, line, charPositionInLine, msg, e) => {
7
+ syntaxErrors.push(`Line ${line}:${charPositionInLine} - ${msg}`);
8
+ }
9
+ });
10
+ console.log(syntaxErrors,"syntaxErrors")
11
+ return syntaxErrors;
12
+ }
13
+ }
package/src/index.ts ADDED
@@ -0,0 +1,168 @@
1
+ #!/usr/bin/env node
2
+ import { Command } from 'commander';
3
+ import path from 'path';
4
+ import { FileHelper } from './helper/fileHelper';
5
+ import DataHelper from './helper/DataHelper';
6
+ import SectionHelper from './helper/SectionHelper';
7
+ import ExpressHelper from './helper/ExpressHelper';
8
+ import BasicHelper from './helper/BasicHelper';
9
+ import RNHelper from './helper/RNHelper';
10
+ import FrontEndApiHelper from './helper/FrontEndApiHelper';
11
+ import MongoHelper from './helper/MongoHelper';
12
+ import ReactHelper from './helper/ReactHelper';
13
+ import FrontEndReactApiHelper from './helper/FrontEndReactApiHelper';
14
+
15
+ const program = new Command();
16
+
17
+ program
18
+ .name('blend-cli')
19
+ .description('CLI for creating and editing files')
20
+ .version('1.0.0');
21
+
22
+ // Command 1: blend-init
23
+ program.command('init <folderName>')
24
+ .description('Initialize the folder with a .basic file, spec folder, .basicConfig, and data files')
25
+ .action((folderName) => {
26
+ const folderPath = path.join(process.cwd(), folderName);
27
+ // Create .basic file
28
+ const basicFilePath = path.join(folderPath, `${folderName}.basic`);
29
+ const basicFileContent = `section test {
30
+
31
+ }`;
32
+ FileHelper.writeFile(basicFilePath, basicFileContent);
33
+
34
+ // Create spec folder
35
+ const specFolderPath = path.join(folderPath, 'spec');
36
+ FileHelper.ensureDir(specFolderPath);
37
+
38
+ // Create .basicConfig folder inside the main folder
39
+ const basicConfigFolderPath = path.join(folderPath, '.basicConfig');
40
+ FileHelper.ensureDir(basicConfigFolderPath);
41
+
42
+ // Create basicConfig.json file inside .basicConfig folder
43
+ const basicConfigPath = path.join(basicConfigFolderPath, 'basicConfig.json');
44
+ const basicConfigData = {
45
+ name: folderName,
46
+ description: `Basic config for ${folderName}`,
47
+ createdAt: new Date().toISOString(),
48
+ };
49
+ FileHelper.writeJson(basicConfigPath, basicConfigData);
50
+
51
+ // Parse .basic file content for data-module and create .data files
52
+ // const dataModuleRegex = /data-module\s+([a-zA-Z0-9,]+)/;
53
+ // const match = basicFileContent.match(dataModuleRegex);
54
+
55
+ // if (match && match[1]) {
56
+ // const modules = match[1].split(',');
57
+ // const dataFolderPath = path.join(specFolderPath, 'data');
58
+ // FileHelper.ensureDir(dataFolderPath);
59
+
60
+ // // Create .data files for each module
61
+ // modules.forEach(module => {
62
+ // const dataFilePath = path.join(dataFolderPath, `${module}.data`);
63
+ // FileHelper.writeFile(dataFilePath, `// Data file for ${module}`);
64
+ // });
65
+ // }
66
+
67
+ console.log(`Initialized ${folderName} with .basic file, spec folder, .basicConfig/basicConfig.json, and .data files.`);
68
+ });
69
+
70
+ // Command 2: blend-prepare (set up and validate environment)
71
+ program.command('prepare')
72
+ .description('Prepare the environment (e.g., validating setup, etc.)')
73
+ .action(() => {
74
+ const folderPath = path.join(process.cwd());
75
+ const folderName = path.basename(folderPath);
76
+
77
+ // Check if the .basic file exists
78
+ const basicFilePath = path.join(folderPath, `${folderName}.basic`);
79
+ if (!FileHelper.exists(basicFilePath)) {
80
+ console.log(`The .basic file for ${folderName} is missing.`);
81
+ return;
82
+ }
83
+ const dataHelper = new DataHelper();
84
+ const expressHelper = new ExpressHelper();
85
+ const rnHelper = new RNHelper();
86
+ const reactHelper = new ReactHelper();
87
+ const mongoHelper = new MongoHelper();
88
+ const basicFileContent = FileHelper.readFile(basicFilePath);
89
+ dataHelper.doDataOperations(basicFileContent);
90
+ expressHelper.doExpressOperations(basicFileContent);
91
+ rnHelper.doRNOperations();
92
+ reactHelper.doReactOperations();
93
+ mongoHelper.doMongoOperations(basicFileContent);
94
+
95
+
96
+ // Ensure the .basicConfig folder and its contents exist
97
+ const basicConfigFolderPath = path.join(folderPath, '.basicConfig');
98
+ const basicConfigPath = path.join(basicConfigFolderPath, 'basicConfig.json');
99
+ if (!FileHelper.exists(basicConfigFolderPath)) {
100
+ console.log(`The .basicConfig folder is missing.`);
101
+ } else if (!FileHelper.exists(basicConfigPath)) {
102
+ console.log(`The basicConfig.json file is missing in .basicConfig.`);
103
+ } else {
104
+ console.log(`The .basicConfig folder and basicConfig.json file are present.`);
105
+ }
106
+
107
+ // Check if the spec/data folder exists
108
+ // const specDataFolderPath = path.join(folderPath, 'spec', 'data');
109
+ // if (!FileHelper.exists(specDataFolderPath)) {
110
+ // console.error(`The spec/data folder is missing.`);
111
+ // } else {
112
+ // console.log(`The spec/data folder exists.`);
113
+ // }
114
+
115
+ console.log(`Environment preparation complete.`);
116
+ });
117
+
118
+ // Command 3: blend-generate (add your logic here)
119
+ program.command('generate')
120
+ .description('Generate files or configurations based on existing ones')
121
+ .action(async () => {
122
+ const folderPath = path.join(process.cwd());
123
+ const folderName = path.basename(folderPath);
124
+ const basicFilePath = path.join(folderPath, `${folderName}.basic`);
125
+ const basicFileContent = FileHelper.readFile(basicFilePath);
126
+ const expressHelper = new ExpressHelper();
127
+ const dataHelper = new DataHelper();
128
+ const rnHelper = new RNHelper();
129
+ const reactHelper = new ReactHelper();
130
+ const frontEndApiHelper = new FrontEndApiHelper();
131
+ const frontEndReactApiHelper = new FrontEndReactApiHelper();
132
+ const mongoHelper = new MongoHelper();
133
+ expressHelper.doExpressGenerations(basicFileContent);
134
+ mongoHelper.parseJSONAndGenerateFiles();
135
+ rnHelper.checkForFolderAndCreateReactNativeApp().then(res => {
136
+ reactHelper.checkForFolderAndCreateReactApp().then(res => {
137
+ dataHelper.parseJSONAndGenerateFiles();
138
+ rnHelper.doRNGenerations();
139
+ frontEndApiHelper.doFrontEndApiGenerations();
140
+ frontEndReactApiHelper.doFrontEndApiGenerations();
141
+ reactHelper.doReactGenerations()
142
+ })
143
+
144
+ })
145
+
146
+ // SectionHelper.createProject(basicFileContent);
147
+ // Add your custom logic here
148
+ });
149
+
150
+ program.command('cook')
151
+ .description('Generate files or configurations based on existing ones')
152
+ .action(() => {
153
+ const folderPath = path.join(process.cwd());
154
+ const folderName = path.basename(folderPath);
155
+ const basicFilePath = path.join(folderPath, `${folderName}.basic`);
156
+ const basicFileContent = FileHelper.readFile(basicFilePath);
157
+ const basicHelper = new BasicHelper();
158
+ // const rnHelper = new RNHelper();
159
+
160
+
161
+
162
+ basicHelper.parseSpec(basicFileContent);
163
+ // rnHelper.parseSpec(basicFileContent);
164
+ // SectionHelper.createProject(basicFileContent);
165
+ // Add your custom logic here
166
+ });
167
+
168
+ program.parse(process.argv);
@@ -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
+ [3, 51485, 51898, 1421, 44986, 20307, 1543, 60043, 49729, 3, 26, 121, 4, 2, 9, 2, 4, 3, 9, 3, 4, 4, 9, 4, 4, 5, 9, 5, 4, 6, 9, 6, 4, 7, 9, 7, 4, 8, 9, 8, 4, 9, 9, 9, 4, 10, 9, 10, 4, 11, 9, 11, 4, 12, 9, 12, 3, 2, 3, 2, 7, 2, 27, 10, 2, 12, 2, 14, 2, 30, 11, 2, 3, 3, 3, 3, 3, 3, 3, 3, 7, 3, 36, 10, 3, 12, 3, 14, 3, 39, 11, 3, 3, 3, 3, 3, 3, 4, 3, 4, 3, 4, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 5, 5, 53, 10, 5, 3, 5, 5, 5, 56, 10, 5, 3, 5, 5, 5, 59, 10, 5, 3, 5, 3, 5, 3, 6, 3, 6, 3, 7, 3, 7, 3, 7, 3, 7, 7, 7, 69, 10, 7, 12, 7, 14, 7, 72, 11, 7, 3, 7, 3, 7, 3, 8, 3, 8, 3, 8, 3, 8, 7, 8, 80, 10, 8, 12, 8, 14, 8, 83, 11, 8, 3, 8, 3, 8, 3, 8, 3, 8, 3, 8, 3, 8, 5, 8, 91, 10, 8, 3, 9, 3, 9, 3, 10, 3, 10, 3, 10, 3, 10, 3, 11, 3, 11, 3, 11, 3, 11, 3, 11, 3, 11, 3, 11, 3, 11, 3, 11, 3, 11, 3, 11, 3, 11, 3, 11, 3, 11, 3, 11, 3, 11, 3, 11, 3, 11, 5, 11, 117, 10, 11, 3, 12, 3, 12, 3, 12, 2, 2, 2, 13, 2, 2, 4, 2, 6, 2, 8, 2, 10, 2, 12, 2, 14, 2, 16, 2, 18, 2, 20, 2, 22, 2, 2, 3, 3, 2, 18, 22, 2, 122, 2, 24, 3, 2, 2, 2, 4, 31, 3, 2, 2, 2, 6, 42, 3, 2, 2, 2, 8, 45, 3, 2, 2, 2, 10, 62, 3, 2, 2, 2, 12, 64, 3, 2, 2, 2, 14, 90, 3, 2, 2, 2, 16, 92, 3, 2, 2, 2, 18, 94, 3, 2, 2, 2, 20, 116, 3, 2, 2, 2, 22, 118, 3, 2, 2, 2, 24, 28, 5, 6, 4, 2, 25, 27, 5, 4, 3, 2, 26, 25, 3, 2, 2, 2, 27, 30, 3, 2, 2, 2, 28, 26, 3, 2, 2, 2, 28, 29, 3, 2, 2, 2, 29, 3, 3, 2, 2, 2, 30, 28, 3, 2, 2, 2, 31, 32, 7, 3, 2, 2, 32, 33, 7, 25, 2, 2, 33, 37, 7, 4, 2, 2, 34, 36, 5, 8, 5, 2, 35, 34, 3, 2, 2, 2, 36, 39, 3, 2, 2, 2, 37, 35, 3, 2, 2, 2, 37, 38, 3, 2, 2, 2, 38, 40, 3, 2, 2, 2, 39, 37, 3, 2, 2, 2, 40, 41, 7, 5, 2, 2, 41, 5, 3, 2, 2, 2, 42, 43, 7, 6, 2, 2, 43, 44, 7, 25, 2, 2, 44, 7, 3, 2, 2, 2, 45, 46, 7, 7, 2, 2, 46, 47, 7, 24, 2, 2, 47, 48, 7, 8, 2, 2, 48, 49, 7, 23, 2, 2, 49, 50, 7, 9, 2, 2, 50, 52, 7, 4, 2, 2, 51, 53, 5, 10, 6, 2, 52, 51, 3, 2, 2, 2, 52, 53, 3, 2, 2, 2, 53, 55, 3, 2, 2, 2, 54, 56, 5, 12, 7, 2, 55, 54, 3, 2, 2, 2, 55, 56, 3, 2, 2, 2, 56, 58, 3, 2, 2, 2, 57, 59, 5, 14, 8, 2, 58, 57, 3, 2, 2, 2, 58, 59, 3, 2, 2, 2, 59, 60, 3, 2, 2, 2, 60, 61, 7, 5, 2, 2, 61, 9, 3, 2, 2, 2, 62, 63, 7, 10, 2, 2, 63, 11, 3, 2, 2, 2, 64, 65, 7, 11, 2, 2, 65, 70, 5, 18, 10, 2, 66, 67, 7, 12, 2, 2, 67, 69, 5, 18, 10, 2, 68, 66, 3, 2, 2, 2, 69, 72, 3, 2, 2, 2, 70, 68, 3, 2, 2, 2, 70, 71, 3, 2, 2, 2, 71, 73, 3, 2, 2, 2, 72, 70, 3, 2, 2, 2, 73, 74, 7, 9, 2, 2, 74, 13, 3, 2, 2, 2, 75, 76, 7, 13, 2, 2, 76, 81, 5, 18, 10, 2, 77, 78, 7, 12, 2, 2, 78, 80, 5, 18, 10, 2, 79, 77, 3, 2, 2, 2, 80, 83, 3, 2, 2, 2, 81, 79, 3, 2, 2, 2, 81, 82, 3, 2, 2, 2, 82, 84, 3, 2, 2, 2, 83, 81, 3, 2, 2, 2, 84, 85, 7, 9, 2, 2, 85, 91, 3, 2, 2, 2, 86, 87, 7, 13, 2, 2, 87, 88, 5, 16, 9, 2, 88, 89, 7, 9, 2, 2, 89, 91, 3, 2, 2, 2, 90, 75, 3, 2, 2, 2, 90, 86, 3, 2, 2, 2, 91, 15, 3, 2, 2, 2, 92, 93, 5, 20, 11, 2, 93, 17, 3, 2, 2, 2, 94, 95, 7, 24, 2, 2, 95, 96, 7, 14, 2, 2, 96, 97, 5, 20, 11, 2, 97, 19, 3, 2, 2, 2, 98, 117, 5, 22, 12, 2, 99, 100, 5, 22, 12, 2, 100, 101, 7, 15, 2, 2, 101, 117, 3, 2, 2, 2, 102, 103, 5, 22, 12, 2, 103, 104, 7, 16, 2, 2, 104, 117, 3, 2, 2, 2, 105, 106, 7, 25, 2, 2, 106, 107, 7, 17, 2, 2, 107, 117, 7, 25, 2, 2, 108, 109, 7, 25, 2, 2, 109, 110, 7, 17, 2, 2, 110, 111, 7, 25, 2, 2, 111, 117, 7, 16, 2, 2, 112, 113, 7, 25, 2, 2, 113, 114, 7, 17, 2, 2, 114, 115, 7, 25, 2, 2, 115, 117, 7, 15, 2, 2, 116, 98, 3, 2, 2, 2, 116, 99, 3, 2, 2, 2, 116, 102, 3, 2, 2, 2, 116, 105, 3, 2, 2, 2, 116, 108, 3, 2, 2, 2, 116, 112, 3, 2, 2, 2, 117, 21, 3, 2, 2, 2, 118, 119, 9, 2, 2, 2, 119, 23, 3, 2, 2, 2, 11, 28, 37, 52, 55, 58, 70, 81, 90, 116]
@@ -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
@@ -0,0 +1,89 @@
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
+ T__0
57
+ T__1
58
+ T__2
59
+ T__3
60
+ T__4
61
+ T__5
62
+ T__6
63
+ T__7
64
+ T__8
65
+ T__9
66
+ T__10
67
+ T__11
68
+ T__12
69
+ T__13
70
+ T__14
71
+ T__15
72
+ T__16
73
+ T__17
74
+ T__18
75
+ T__19
76
+ HTTP_METHOD
77
+ IDENTIFIER
78
+ CAPITAL_IDENTIFIER
79
+ WS
80
+
81
+ channel names:
82
+ DEFAULT_TOKEN_CHANNEL
83
+ HIDDEN
84
+
85
+ mode names:
86
+ DEFAULT_MODE
87
+
88
+ atn:
89
+ [3, 51485, 51898, 1421, 44986, 20307, 1543, 60043, 49729, 2, 26, 191, 8, 1, 4, 2, 9, 2, 4, 3, 9, 3, 4, 4, 9, 4, 4, 5, 9, 5, 4, 6, 9, 6, 4, 7, 9, 7, 4, 8, 9, 8, 4, 9, 9, 9, 4, 10, 9, 10, 4, 11, 9, 11, 4, 12, 9, 12, 4, 13, 9, 13, 4, 14, 9, 14, 4, 15, 9, 15, 4, 16, 9, 16, 4, 17, 9, 17, 4, 18, 9, 18, 4, 19, 9, 19, 4, 20, 9, 20, 4, 21, 9, 21, 4, 22, 9, 22, 4, 23, 9, 23, 4, 24, 9, 24, 4, 25, 9, 25, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 3, 3, 3, 3, 4, 3, 4, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 6, 3, 6, 3, 6, 3, 6, 3, 7, 3, 7, 3, 8, 3, 8, 3, 9, 3, 9, 3, 9, 3, 9, 3, 9, 3, 9, 3, 9, 3, 9, 3, 9, 3, 9, 3, 9, 3, 9, 3, 9, 3, 9, 3, 10, 3, 10, 3, 10, 3, 10, 3, 10, 3, 10, 3, 10, 3, 11, 3, 11, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 13, 3, 13, 3, 14, 3, 14, 3, 14, 3, 15, 3, 15, 3, 16, 3, 16, 3, 16, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 18, 3, 18, 3, 18, 3, 18, 3, 18, 3, 18, 3, 18, 3, 19, 3, 19, 3, 19, 3, 19, 3, 19, 3, 19, 3, 19, 3, 19, 3, 20, 3, 20, 3, 20, 3, 20, 3, 21, 3, 21, 3, 21, 3, 21, 3, 21, 3, 21, 3, 21, 3, 22, 3, 22, 3, 22, 3, 22, 3, 22, 3, 22, 3, 22, 3, 22, 3, 22, 3, 22, 3, 22, 3, 22, 3, 22, 3, 22, 3, 22, 3, 22, 5, 22, 169, 10, 22, 3, 23, 3, 23, 7, 23, 173, 10, 23, 12, 23, 14, 23, 176, 11, 23, 3, 24, 3, 24, 7, 24, 180, 10, 24, 12, 24, 14, 24, 183, 11, 24, 3, 25, 6, 25, 186, 10, 25, 13, 25, 14, 25, 187, 3, 25, 3, 25, 2, 2, 2, 26, 3, 2, 3, 5, 2, 4, 7, 2, 5, 9, 2, 6, 11, 2, 7, 13, 2, 8, 15, 2, 9, 17, 2, 10, 19, 2, 11, 21, 2, 12, 23, 2, 13, 25, 2, 14, 27, 2, 15, 29, 2, 16, 31, 2, 17, 33, 2, 18, 35, 2, 19, 37, 2, 20, 39, 2, 21, 41, 2, 22, 43, 2, 23, 45, 2, 24, 47, 2, 25, 49, 2, 26, 3, 2, 6, 4, 2, 97, 97, 99, 124, 6, 2, 50, 59, 67, 92, 97, 97, 99, 124, 3, 2, 67, 92, 5, 2, 11, 12, 15, 15, 34, 34, 2, 196, 2, 3, 3, 2, 2, 2, 2, 5, 3, 2, 2, 2, 2, 7, 3, 2, 2, 2, 2, 9, 3, 2, 2, 2, 2, 11, 3, 2, 2, 2, 2, 13, 3, 2, 2, 2, 2, 15, 3, 2, 2, 2, 2, 17, 3, 2, 2, 2, 2, 19, 3, 2, 2, 2, 2, 21, 3, 2, 2, 2, 2, 23, 3, 2, 2, 2, 2, 25, 3, 2, 2, 2, 2, 27, 3, 2, 2, 2, 2, 29, 3, 2, 2, 2, 2, 31, 3, 2, 2, 2, 2, 33, 3, 2, 2, 2, 2, 35, 3, 2, 2, 2, 2, 37, 3, 2, 2, 2, 2, 39, 3, 2, 2, 2, 2, 41, 3, 2, 2, 2, 2, 43, 3, 2, 2, 2, 2, 45, 3, 2, 2, 2, 2, 47, 3, 2, 2, 2, 2, 49, 3, 2, 2, 2, 3, 51, 3, 2, 2, 2, 5, 59, 3, 2, 2, 2, 7, 61, 3, 2, 2, 2, 9, 63, 3, 2, 2, 2, 11, 70, 3, 2, 2, 2, 13, 74, 3, 2, 2, 2, 15, 76, 3, 2, 2, 2, 17, 78, 3, 2, 2, 2, 19, 92, 3, 2, 2, 2, 21, 99, 3, 2, 2, 2, 23, 101, 3, 2, 2, 2, 25, 109, 3, 2, 2, 2, 27, 111, 3, 2, 2, 2, 29, 114, 3, 2, 2, 2, 31, 116, 3, 2, 2, 2, 33, 119, 3, 2, 2, 2, 35, 126, 3, 2, 2, 2, 37, 133, 3, 2, 2, 2, 39, 141, 3, 2, 2, 2, 41, 145, 3, 2, 2, 2, 43, 168, 3, 2, 2, 2, 45, 170, 3, 2, 2, 2, 47, 177, 3, 2, 2, 2, 49, 185, 3, 2, 2, 2, 51, 52, 7, 117, 2, 2, 52, 53, 7, 103, 2, 2, 53, 54, 7, 101, 2, 2, 54, 55, 7, 118, 2, 2, 55, 56, 7, 107, 2, 2, 56, 57, 7, 113, 2, 2, 57, 58, 7, 112, 2, 2, 58, 4, 3, 2, 2, 2, 59, 60, 7, 125, 2, 2, 60, 6, 3, 2, 2, 2, 61, 62, 7, 127, 2, 2, 62, 8, 3, 2, 2, 2, 63, 64, 7, 111, 2, 2, 64, 65, 7, 113, 2, 2, 65, 66, 7, 102, 2, 2, 66, 67, 7, 119, 2, 2, 67, 68, 7, 110, 2, 2, 68, 69, 7, 103, 2, 2, 69, 10, 3, 2, 2, 2, 70, 71, 7, 99, 2, 2, 71, 72, 7, 114, 2, 2, 72, 73, 7, 107, 2, 2, 73, 12, 3, 2, 2, 2, 74, 75, 7, 42, 2, 2, 75, 14, 3, 2, 2, 2, 76, 77, 7, 43, 2, 2, 77, 16, 3, 2, 2, 2, 78, 79, 7, 99, 2, 2, 79, 80, 7, 119, 2, 2, 80, 81, 7, 118, 2, 2, 81, 82, 7, 106, 2, 2, 82, 83, 7, 103, 2, 2, 83, 84, 7, 112, 2, 2, 84, 85, 7, 118, 2, 2, 85, 86, 7, 107, 2, 2, 86, 87, 7, 101, 2, 2, 87, 88, 7, 99, 2, 2, 88, 89, 7, 118, 2, 2, 89, 90, 7, 103, 2, 2, 90, 91, 7, 102, 2, 2, 91, 18, 3, 2, 2, 2, 92, 93, 7, 107, 2, 2, 93, 94, 7, 112, 2, 2, 94, 95, 7, 114, 2, 2, 95, 96, 7, 119, 2, 2, 96, 97, 7, 118, 2, 2, 97, 98, 7, 42, 2, 2, 98, 20, 3, 2, 2, 2, 99, 100, 7, 46, 2, 2, 100, 22, 3, 2, 2, 2, 101, 102, 7, 113, 2, 2, 102, 103, 7, 119, 2, 2, 103, 104, 7, 118, 2, 2, 104, 105, 7, 114, 2, 2, 105, 106, 7, 119, 2, 2, 106, 107, 7, 118, 2, 2, 107, 108, 7, 42, 2, 2, 108, 24, 3, 2, 2, 2, 109, 110, 7, 60, 2, 2, 110, 26, 3, 2, 2, 2, 111, 112, 7, 93, 2, 2, 112, 113, 7, 95, 2, 2, 113, 28, 3, 2, 2, 2, 114, 115, 7, 65, 2, 2, 115, 30, 3, 2, 2, 2, 116, 117, 7, 47, 2, 2, 117, 118, 7, 64, 2, 2, 118, 32, 3, 2, 2, 2, 119, 120, 7, 117, 2, 2, 120, 121, 7, 118, 2, 2, 121, 122, 7, 116, 2, 2, 122, 123, 7, 107, 2, 2, 123, 124, 7, 112, 2, 2, 124, 125, 7, 105, 2, 2, 125, 34, 3, 2, 2, 2, 126, 127, 7, 112, 2, 2, 127, 128, 7, 119, 2, 2, 128, 129, 7, 111, 2, 2, 129, 130, 7, 100, 2, 2, 130, 131, 7, 103, 2, 2, 131, 132, 7, 116, 2, 2, 132, 36, 3, 2, 2, 2, 133, 134, 7, 100, 2, 2, 134, 135, 7, 113, 2, 2, 135, 136, 7, 113, 2, 2, 136, 137, 7, 110, 2, 2, 137, 138, 7, 103, 2, 2, 138, 139, 7, 99, 2, 2, 139, 140, 7, 112, 2, 2, 140, 38, 3, 2, 2, 2, 141, 142, 7, 99, 2, 2, 142, 143, 7, 112, 2, 2, 143, 144, 7, 123, 2, 2, 144, 40, 3, 2, 2, 2, 145, 146, 7, 113, 2, 2, 146, 147, 7, 100, 2, 2, 147, 148, 7, 108, 2, 2, 148, 149, 7, 103, 2, 2, 149, 150, 7, 101, 2, 2, 150, 151, 7, 118, 2, 2, 151, 42, 3, 2, 2, 2, 152, 153, 7, 73, 2, 2, 153, 154, 7, 71, 2, 2, 154, 169, 7, 86, 2, 2, 155, 156, 7, 82, 2, 2, 156, 157, 7, 81, 2, 2, 157, 158, 7, 85, 2, 2, 158, 169, 7, 86, 2, 2, 159, 160, 7, 70, 2, 2, 160, 161, 7, 71, 2, 2, 161, 162, 7, 78, 2, 2, 162, 163, 7, 71, 2, 2, 163, 164, 7, 86, 2, 2, 164, 169, 7, 71, 2, 2, 165, 166, 7, 82, 2, 2, 166, 167, 7, 87, 2, 2, 167, 169, 7, 86, 2, 2, 168, 152, 3, 2, 2, 2, 168, 155, 3, 2, 2, 2, 168, 159, 3, 2, 2, 2, 168, 165, 3, 2, 2, 2, 169, 44, 3, 2, 2, 2, 170, 174, 9, 2, 2, 2, 171, 173, 9, 3, 2, 2, 172, 171, 3, 2, 2, 2, 173, 176, 3, 2, 2, 2, 174, 172, 3, 2, 2, 2, 174, 175, 3, 2, 2, 2, 175, 46, 3, 2, 2, 2, 176, 174, 3, 2, 2, 2, 177, 181, 9, 4, 2, 2, 178, 180, 9, 3, 2, 2, 179, 178, 3, 2, 2, 2, 180, 183, 3, 2, 2, 2, 181, 179, 3, 2, 2, 2, 181, 182, 3, 2, 2, 2, 182, 48, 3, 2, 2, 2, 183, 181, 3, 2, 2, 2, 184, 186, 9, 5, 2, 2, 185, 184, 3, 2, 2, 2, 186, 187, 3, 2, 2, 2, 187, 185, 3, 2, 2, 2, 187, 188, 3, 2, 2, 2, 188, 189, 3, 2, 2, 2, 189, 190, 8, 25, 2, 2, 190, 50, 3, 2, 2, 2, 7, 2, 168, 174, 181, 187, 3, 8, 2, 2]
@@ -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
@@ -0,0 +1,193 @@
1
+ // Generated from src/grammar/BlendApi.g4 by ANTLR 4.9.0-SNAPSHOT
2
+
3
+
4
+ import { ATN } from "antlr4ts/atn/ATN";
5
+ import { ATNDeserializer } from "antlr4ts/atn/ATNDeserializer";
6
+ import { CharStream } from "antlr4ts/CharStream";
7
+ import { Lexer } from "antlr4ts/Lexer";
8
+ import { LexerATNSimulator } from "antlr4ts/atn/LexerATNSimulator";
9
+ import { NotNull } from "antlr4ts/Decorators";
10
+ import { Override } from "antlr4ts/Decorators";
11
+ import { RuleContext } from "antlr4ts/RuleContext";
12
+ import { Vocabulary } from "antlr4ts/Vocabulary";
13
+ import { VocabularyImpl } from "antlr4ts/VocabularyImpl";
14
+
15
+ import * as Utils from "antlr4ts/misc/Utils";
16
+
17
+
18
+ export class BlendApiLexer extends Lexer {
19
+ public static readonly T__0 = 1;
20
+ public static readonly T__1 = 2;
21
+ public static readonly T__2 = 3;
22
+ public static readonly T__3 = 4;
23
+ public static readonly T__4 = 5;
24
+ public static readonly T__5 = 6;
25
+ public static readonly T__6 = 7;
26
+ public static readonly T__7 = 8;
27
+ public static readonly T__8 = 9;
28
+ public static readonly T__9 = 10;
29
+ public static readonly T__10 = 11;
30
+ public static readonly T__11 = 12;
31
+ public static readonly T__12 = 13;
32
+ public static readonly T__13 = 14;
33
+ public static readonly T__14 = 15;
34
+ public static readonly T__15 = 16;
35
+ public static readonly T__16 = 17;
36
+ public static readonly T__17 = 18;
37
+ public static readonly T__18 = 19;
38
+ public static readonly T__19 = 20;
39
+ public static readonly HTTP_METHOD = 21;
40
+ public static readonly IDENTIFIER = 22;
41
+ public static readonly CAPITAL_IDENTIFIER = 23;
42
+ public static readonly WS = 24;
43
+
44
+ // tslint:disable:no-trailing-whitespace
45
+ public static readonly channelNames: string[] = [
46
+ "DEFAULT_TOKEN_CHANNEL", "HIDDEN",
47
+ ];
48
+
49
+ // tslint:disable:no-trailing-whitespace
50
+ public static readonly modeNames: string[] = [
51
+ "DEFAULT_MODE",
52
+ ];
53
+
54
+ public static readonly ruleNames: string[] = [
55
+ "T__0", "T__1", "T__2", "T__3", "T__4", "T__5", "T__6", "T__7", "T__8",
56
+ "T__9", "T__10", "T__11", "T__12", "T__13", "T__14", "T__15", "T__16",
57
+ "T__17", "T__18", "T__19", "HTTP_METHOD", "IDENTIFIER", "CAPITAL_IDENTIFIER",
58
+ "WS",
59
+ ];
60
+
61
+ private static readonly _LITERAL_NAMES: Array<string | undefined> = [
62
+ undefined, "'section'", "'{'", "'}'", "'module'", "'api'", "'('", "')'",
63
+ "'authenticated'", "'input('", "','", "'output('", "':'", "'[]'", "'?'",
64
+ "'->'", "'string'", "'number'", "'boolean'", "'any'", "'object'",
65
+ ];
66
+ private static readonly _SYMBOLIC_NAMES: Array<string | undefined> = [
67
+ undefined, undefined, undefined, undefined, undefined, undefined, undefined,
68
+ undefined, undefined, undefined, undefined, undefined, undefined, undefined,
69
+ undefined, undefined, undefined, undefined, undefined, undefined, undefined,
70
+ "HTTP_METHOD", "IDENTIFIER", "CAPITAL_IDENTIFIER", "WS",
71
+ ];
72
+ public static readonly VOCABULARY: Vocabulary = new VocabularyImpl(BlendApiLexer._LITERAL_NAMES, BlendApiLexer._SYMBOLIC_NAMES, []);
73
+
74
+ // @Override
75
+ // @NotNull
76
+ public get vocabulary(): Vocabulary {
77
+ return BlendApiLexer.VOCABULARY;
78
+ }
79
+ // tslint:enable:no-trailing-whitespace
80
+
81
+
82
+ constructor(input: CharStream) {
83
+ super(input);
84
+ this._interp = new LexerATNSimulator(BlendApiLexer._ATN, this);
85
+ }
86
+
87
+ // @Override
88
+ public get grammarFileName(): string { return "BlendApi.g4"; }
89
+
90
+ // @Override
91
+ public get ruleNames(): string[] { return BlendApiLexer.ruleNames; }
92
+
93
+ // @Override
94
+ public get serializedATN(): string { return BlendApiLexer._serializedATN; }
95
+
96
+ // @Override
97
+ public get channelNames(): string[] { return BlendApiLexer.channelNames; }
98
+
99
+ // @Override
100
+ public get modeNames(): string[] { return BlendApiLexer.modeNames; }
101
+
102
+ public static readonly _serializedATN: string =
103
+ "\x03\uC91D\uCABA\u058D\uAFBA\u4F53\u0607\uEA8B\uC241\x02\x1A\xBF\b\x01" +
104
+ "\x04\x02\t\x02\x04\x03\t\x03\x04\x04\t\x04\x04\x05\t\x05\x04\x06\t\x06" +
105
+ "\x04\x07\t\x07\x04\b\t\b\x04\t\t\t\x04\n\t\n\x04\v\t\v\x04\f\t\f\x04\r" +
106
+ "\t\r\x04\x0E\t\x0E\x04\x0F\t\x0F\x04\x10\t\x10\x04\x11\t\x11\x04\x12\t" +
107
+ "\x12\x04\x13\t\x13\x04\x14\t\x14\x04\x15\t\x15\x04\x16\t\x16\x04\x17\t" +
108
+ "\x17\x04\x18\t\x18\x04\x19\t\x19\x03\x02\x03\x02\x03\x02\x03\x02\x03\x02" +
109
+ "\x03\x02\x03\x02\x03\x02\x03\x03\x03\x03\x03\x04\x03\x04\x03\x05\x03\x05" +
110
+ "\x03\x05\x03\x05\x03\x05\x03\x05\x03\x05\x03\x06\x03\x06\x03\x06\x03\x06" +
111
+ "\x03\x07\x03\x07\x03\b\x03\b\x03\t\x03\t\x03\t\x03\t\x03\t\x03\t\x03\t" +
112
+ "\x03\t\x03\t\x03\t\x03\t\x03\t\x03\t\x03\t\x03\n\x03\n\x03\n\x03\n\x03" +
113
+ "\n\x03\n\x03\n\x03\v\x03\v\x03\f\x03\f\x03\f\x03\f\x03\f\x03\f\x03\f\x03" +
114
+ "\f\x03\r\x03\r\x03\x0E\x03\x0E\x03\x0E\x03\x0F\x03\x0F\x03\x10\x03\x10" +
115
+ "\x03\x10\x03\x11\x03\x11\x03\x11\x03\x11\x03\x11\x03\x11\x03\x11\x03\x12" +
116
+ "\x03\x12\x03\x12\x03\x12\x03\x12\x03\x12\x03\x12\x03\x13\x03\x13\x03\x13" +
117
+ "\x03\x13\x03\x13\x03\x13\x03\x13\x03\x13\x03\x14\x03\x14\x03\x14\x03\x14" +
118
+ "\x03\x15\x03\x15\x03\x15\x03\x15\x03\x15\x03\x15\x03\x15\x03\x16\x03\x16" +
119
+ "\x03\x16\x03\x16\x03\x16\x03\x16\x03\x16\x03\x16\x03\x16\x03\x16\x03\x16" +
120
+ "\x03\x16\x03\x16\x03\x16\x03\x16\x03\x16\x05\x16\xA9\n\x16\x03\x17\x03" +
121
+ "\x17\x07\x17\xAD\n\x17\f\x17\x0E\x17\xB0\v\x17\x03\x18\x03\x18\x07\x18" +
122
+ "\xB4\n\x18\f\x18\x0E\x18\xB7\v\x18\x03\x19\x06\x19\xBA\n\x19\r\x19\x0E" +
123
+ "\x19\xBB\x03\x19\x03\x19\x02\x02\x02\x1A\x03\x02\x03\x05\x02\x04\x07\x02" +
124
+ "\x05\t\x02\x06\v\x02\x07\r\x02\b\x0F\x02\t\x11\x02\n\x13\x02\v\x15\x02" +
125
+ "\f\x17\x02\r\x19\x02\x0E\x1B\x02\x0F\x1D\x02\x10\x1F\x02\x11!\x02\x12" +
126
+ "#\x02\x13%\x02\x14\'\x02\x15)\x02\x16+\x02\x17-\x02\x18/\x02\x191\x02" +
127
+ "\x1A\x03\x02\x06\x04\x02aac|\x06\x022;C\\aac|\x03\x02C\\\x05\x02\v\f\x0F" +
128
+ "\x0F\"\"\x02\xC4\x02\x03\x03\x02\x02\x02\x02\x05\x03\x02\x02\x02\x02\x07" +
129
+ "\x03\x02\x02\x02\x02\t\x03\x02\x02\x02\x02\v\x03\x02\x02\x02\x02\r\x03" +
130
+ "\x02\x02\x02\x02\x0F\x03\x02\x02\x02\x02\x11\x03\x02\x02\x02\x02\x13\x03" +
131
+ "\x02\x02\x02\x02\x15\x03\x02\x02\x02\x02\x17\x03\x02\x02\x02\x02\x19\x03" +
132
+ "\x02\x02\x02\x02\x1B\x03\x02\x02\x02\x02\x1D\x03\x02\x02\x02\x02\x1F\x03" +
133
+ "\x02\x02\x02\x02!\x03\x02\x02\x02\x02#\x03\x02\x02\x02\x02%\x03\x02\x02" +
134
+ "\x02\x02\'\x03\x02\x02\x02\x02)\x03\x02\x02\x02\x02+\x03\x02\x02\x02\x02" +
135
+ "-\x03\x02\x02\x02\x02/\x03\x02\x02\x02\x021\x03\x02\x02\x02\x033\x03\x02" +
136
+ "\x02\x02\x05;\x03\x02\x02\x02\x07=\x03\x02\x02\x02\t?\x03\x02\x02\x02" +
137
+ "\vF\x03\x02\x02\x02\rJ\x03\x02\x02\x02\x0FL\x03\x02\x02\x02\x11N\x03\x02" +
138
+ "\x02\x02\x13\\\x03\x02\x02\x02\x15c\x03\x02\x02\x02\x17e\x03\x02\x02\x02" +
139
+ "\x19m\x03\x02\x02\x02\x1Bo\x03\x02\x02\x02\x1Dr\x03\x02\x02\x02\x1Ft\x03" +
140
+ "\x02\x02\x02!w\x03\x02\x02\x02#~\x03\x02\x02\x02%\x85\x03\x02\x02\x02" +
141
+ "\'\x8D\x03\x02\x02\x02)\x91\x03\x02\x02\x02+\xA8\x03\x02\x02\x02-\xAA" +
142
+ "\x03\x02\x02\x02/\xB1\x03\x02\x02\x021\xB9\x03\x02\x02\x0234\x07u\x02" +
143
+ "\x0245\x07g\x02\x0256\x07e\x02\x0267\x07v\x02\x0278\x07k\x02\x0289\x07" +
144
+ "q\x02\x029:\x07p\x02\x02:\x04\x03\x02\x02\x02;<\x07}\x02\x02<\x06\x03" +
145
+ "\x02\x02\x02=>\x07\x7F\x02\x02>\b\x03\x02\x02\x02?@\x07o\x02\x02@A\x07" +
146
+ "q\x02\x02AB\x07f\x02\x02BC\x07w\x02\x02CD\x07n\x02\x02DE\x07g\x02\x02" +
147
+ "E\n\x03\x02\x02\x02FG\x07c\x02\x02GH\x07r\x02\x02HI\x07k\x02\x02I\f\x03" +
148
+ "\x02\x02\x02JK\x07*\x02\x02K\x0E\x03\x02\x02\x02LM\x07+\x02\x02M\x10\x03" +
149
+ "\x02\x02\x02NO\x07c\x02\x02OP\x07w\x02\x02PQ\x07v\x02\x02QR\x07j\x02\x02" +
150
+ "RS\x07g\x02\x02ST\x07p\x02\x02TU\x07v\x02\x02UV\x07k\x02\x02VW\x07e\x02" +
151
+ "\x02WX\x07c\x02\x02XY\x07v\x02\x02YZ\x07g\x02\x02Z[\x07f\x02\x02[\x12" +
152
+ "\x03\x02\x02\x02\\]\x07k\x02\x02]^\x07p\x02\x02^_\x07r\x02\x02_`\x07w" +
153
+ "\x02\x02`a\x07v\x02\x02ab\x07*\x02\x02b\x14\x03\x02\x02\x02cd\x07.\x02" +
154
+ "\x02d\x16\x03\x02\x02\x02ef\x07q\x02\x02fg\x07w\x02\x02gh\x07v\x02\x02" +
155
+ "hi\x07r\x02\x02ij\x07w\x02\x02jk\x07v\x02\x02kl\x07*\x02\x02l\x18\x03" +
156
+ "\x02\x02\x02mn\x07<\x02\x02n\x1A\x03\x02\x02\x02op\x07]\x02\x02pq\x07" +
157
+ "_\x02\x02q\x1C\x03\x02\x02\x02rs\x07A\x02\x02s\x1E\x03\x02\x02\x02tu\x07" +
158
+ "/\x02\x02uv\x07@\x02\x02v \x03\x02\x02\x02wx\x07u\x02\x02xy\x07v\x02\x02" +
159
+ "yz\x07t\x02\x02z{\x07k\x02\x02{|\x07p\x02\x02|}\x07i\x02\x02}\"\x03\x02" +
160
+ "\x02\x02~\x7F\x07p\x02\x02\x7F\x80\x07w\x02\x02\x80\x81\x07o\x02\x02\x81" +
161
+ "\x82\x07d\x02\x02\x82\x83\x07g\x02\x02\x83\x84\x07t\x02\x02\x84$\x03\x02" +
162
+ "\x02\x02\x85\x86\x07d\x02\x02\x86\x87\x07q\x02\x02\x87\x88\x07q\x02\x02" +
163
+ "\x88\x89\x07n\x02\x02\x89\x8A\x07g\x02\x02\x8A\x8B\x07c\x02\x02\x8B\x8C" +
164
+ "\x07p\x02\x02\x8C&\x03\x02\x02\x02\x8D\x8E\x07c\x02\x02\x8E\x8F\x07p\x02" +
165
+ "\x02\x8F\x90\x07{\x02\x02\x90(\x03\x02\x02\x02\x91\x92\x07q\x02\x02\x92" +
166
+ "\x93\x07d\x02\x02\x93\x94\x07l\x02\x02\x94\x95\x07g\x02\x02\x95\x96\x07" +
167
+ "e\x02\x02\x96\x97\x07v\x02\x02\x97*\x03\x02\x02\x02\x98\x99\x07I\x02\x02" +
168
+ "\x99\x9A\x07G\x02\x02\x9A\xA9\x07V\x02\x02\x9B\x9C\x07R\x02\x02\x9C\x9D" +
169
+ "\x07Q\x02\x02\x9D\x9E\x07U\x02\x02\x9E\xA9\x07V\x02\x02\x9F\xA0\x07F\x02" +
170
+ "\x02\xA0\xA1\x07G\x02\x02\xA1\xA2\x07N\x02\x02\xA2\xA3\x07G\x02\x02\xA3" +
171
+ "\xA4\x07V\x02\x02\xA4\xA9\x07G\x02\x02\xA5\xA6\x07R\x02\x02\xA6\xA7\x07" +
172
+ "W\x02\x02\xA7\xA9\x07V\x02\x02\xA8\x98\x03\x02\x02\x02\xA8\x9B\x03\x02" +
173
+ "\x02\x02\xA8\x9F\x03\x02\x02\x02\xA8\xA5\x03\x02\x02\x02\xA9,\x03\x02" +
174
+ "\x02\x02\xAA\xAE\t\x02\x02\x02\xAB\xAD\t\x03\x02\x02\xAC\xAB\x03\x02\x02" +
175
+ "\x02\xAD\xB0\x03\x02\x02\x02\xAE\xAC\x03\x02\x02\x02\xAE\xAF\x03\x02\x02" +
176
+ "\x02\xAF.\x03\x02\x02\x02\xB0\xAE\x03\x02\x02\x02\xB1\xB5\t\x04\x02\x02" +
177
+ "\xB2\xB4\t\x03\x02\x02\xB3\xB2\x03\x02\x02\x02\xB4\xB7\x03\x02\x02\x02" +
178
+ "\xB5\xB3\x03\x02\x02\x02\xB5\xB6\x03\x02\x02\x02\xB60\x03\x02\x02\x02" +
179
+ "\xB7\xB5\x03\x02\x02\x02\xB8\xBA\t\x05\x02\x02\xB9\xB8\x03\x02\x02\x02" +
180
+ "\xBA\xBB\x03\x02\x02\x02\xBB\xB9\x03\x02\x02\x02\xBB\xBC\x03\x02\x02\x02" +
181
+ "\xBC\xBD\x03\x02\x02\x02\xBD\xBE\b\x19\x02\x02\xBE2\x03\x02\x02\x02\x07" +
182
+ "\x02\xA8\xAE\xB5\xBB\x03\b\x02\x02";
183
+ public static __ATN: ATN;
184
+ public static get _ATN(): ATN {
185
+ if (!BlendApiLexer.__ATN) {
186
+ BlendApiLexer.__ATN = new ATNDeserializer().deserialize(Utils.toCharArray(BlendApiLexer._serializedATN));
187
+ }
188
+
189
+ return BlendApiLexer.__ATN;
190
+ }
191
+
192
+ }
193
+