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,50 @@
1
+ token literal names:
2
+ null
3
+ 'module'
4
+ 'data'
5
+ '('
6
+ ','
7
+ ')'
8
+ ':'
9
+ '[]'
10
+ '?'
11
+ '->'
12
+ 'string'
13
+ 'number'
14
+ 'boolean'
15
+ 'any'
16
+ null
17
+ null
18
+ null
19
+
20
+ token symbolic names:
21
+ null
22
+ null
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
+ IDENTIFIER
36
+ CAPITAL_IDENTIFIER
37
+ WS
38
+
39
+ rule names:
40
+ program
41
+ moduleDefinition
42
+ dataDefinition
43
+ field
44
+ type
45
+ baseType
46
+ primitiveType
47
+
48
+
49
+ atn:
50
+ [3, 51485, 51898, 1421, 44986, 20307, 1543, 60043, 49729, 3, 18, 74, 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, 3, 2, 3, 2, 6, 2, 19, 10, 2, 13, 2, 14, 2, 20, 3, 2, 3, 2, 3, 3, 3, 3, 3, 3, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 7, 4, 34, 10, 4, 12, 4, 14, 4, 37, 11, 4, 3, 4, 3, 4, 3, 5, 3, 5, 3, 5, 3, 5, 3, 6, 3, 6, 3, 6, 3, 6, 3, 6, 3, 6, 3, 6, 3, 6, 3, 6, 3, 6, 3, 6, 3, 6, 3, 6, 3, 6, 3, 6, 3, 6, 3, 6, 3, 6, 3, 6, 3, 6, 3, 6, 5, 6, 66, 10, 6, 3, 7, 3, 7, 5, 7, 70, 10, 7, 3, 8, 3, 8, 3, 8, 2, 2, 2, 9, 2, 2, 4, 2, 6, 2, 8, 2, 10, 2, 12, 2, 14, 2, 2, 3, 3, 2, 12, 15, 2, 74, 2, 16, 3, 2, 2, 2, 4, 24, 3, 2, 2, 2, 6, 27, 3, 2, 2, 2, 8, 40, 3, 2, 2, 2, 10, 65, 3, 2, 2, 2, 12, 69, 3, 2, 2, 2, 14, 71, 3, 2, 2, 2, 16, 18, 5, 4, 3, 2, 17, 19, 5, 6, 4, 2, 18, 17, 3, 2, 2, 2, 19, 20, 3, 2, 2, 2, 20, 18, 3, 2, 2, 2, 20, 21, 3, 2, 2, 2, 21, 22, 3, 2, 2, 2, 22, 23, 7, 2, 2, 3, 23, 3, 3, 2, 2, 2, 24, 25, 7, 3, 2, 2, 25, 26, 7, 17, 2, 2, 26, 5, 3, 2, 2, 2, 27, 28, 7, 4, 2, 2, 28, 29, 7, 17, 2, 2, 29, 30, 7, 5, 2, 2, 30, 35, 5, 8, 5, 2, 31, 32, 7, 6, 2, 2, 32, 34, 5, 8, 5, 2, 33, 31, 3, 2, 2, 2, 34, 37, 3, 2, 2, 2, 35, 33, 3, 2, 2, 2, 35, 36, 3, 2, 2, 2, 36, 38, 3, 2, 2, 2, 37, 35, 3, 2, 2, 2, 38, 39, 7, 7, 2, 2, 39, 7, 3, 2, 2, 2, 40, 41, 7, 16, 2, 2, 41, 42, 7, 8, 2, 2, 42, 43, 5, 10, 6, 2, 43, 9, 3, 2, 2, 2, 44, 66, 5, 12, 7, 2, 45, 46, 5, 12, 7, 2, 46, 47, 7, 9, 2, 2, 47, 66, 3, 2, 2, 2, 48, 49, 5, 12, 7, 2, 49, 50, 7, 10, 2, 2, 50, 66, 3, 2, 2, 2, 51, 52, 5, 12, 7, 2, 52, 53, 7, 11, 2, 2, 53, 54, 5, 12, 7, 2, 54, 66, 3, 2, 2, 2, 55, 56, 5, 12, 7, 2, 56, 57, 7, 11, 2, 2, 57, 58, 5, 12, 7, 2, 58, 59, 7, 10, 2, 2, 59, 66, 3, 2, 2, 2, 60, 61, 5, 12, 7, 2, 61, 62, 7, 11, 2, 2, 62, 63, 5, 12, 7, 2, 63, 64, 7, 9, 2, 2, 64, 66, 3, 2, 2, 2, 65, 44, 3, 2, 2, 2, 65, 45, 3, 2, 2, 2, 65, 48, 3, 2, 2, 2, 65, 51, 3, 2, 2, 2, 65, 55, 3, 2, 2, 2, 65, 60, 3, 2, 2, 2, 66, 11, 3, 2, 2, 2, 67, 70, 5, 14, 8, 2, 68, 70, 7, 17, 2, 2, 69, 67, 3, 2, 2, 2, 69, 68, 3, 2, 2, 2, 70, 13, 3, 2, 2, 2, 71, 72, 9, 2, 2, 2, 72, 15, 3, 2, 2, 2, 6, 20, 35, 65, 69]
@@ -0,0 +1,29 @@
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
+ IDENTIFIER=14
15
+ CAPITAL_IDENTIFIER=15
16
+ WS=16
17
+ 'module'=1
18
+ 'data'=2
19
+ '('=3
20
+ ','=4
21
+ ')'=5
22
+ ':'=6
23
+ '[]'=7
24
+ '?'=8
25
+ '->'=9
26
+ 'string'=10
27
+ 'number'=11
28
+ 'boolean'=12
29
+ 'any'=13
@@ -0,0 +1,65 @@
1
+ token literal names:
2
+ null
3
+ 'module'
4
+ 'data'
5
+ '('
6
+ ','
7
+ ')'
8
+ ':'
9
+ '[]'
10
+ '?'
11
+ '->'
12
+ 'string'
13
+ 'number'
14
+ 'boolean'
15
+ 'any'
16
+ null
17
+ null
18
+ null
19
+
20
+ token symbolic names:
21
+ null
22
+ null
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
+ IDENTIFIER
36
+ CAPITAL_IDENTIFIER
37
+ WS
38
+
39
+ rule names:
40
+ T__0
41
+ T__1
42
+ T__2
43
+ T__3
44
+ T__4
45
+ T__5
46
+ T__6
47
+ T__7
48
+ T__8
49
+ T__9
50
+ T__10
51
+ T__11
52
+ T__12
53
+ IDENTIFIER
54
+ CAPITAL_IDENTIFIER
55
+ WS
56
+
57
+ channel names:
58
+ DEFAULT_TOKEN_CHANNEL
59
+ HIDDEN
60
+
61
+ mode names:
62
+ DEFAULT_MODE
63
+
64
+ atn:
65
+ [3, 51485, 51898, 1421, 44986, 20307, 1543, 60043, 49729, 2, 18, 110, 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, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 3, 4, 3, 5, 3, 5, 3, 6, 3, 6, 3, 7, 3, 7, 3, 8, 3, 8, 3, 8, 3, 9, 3, 9, 3, 10, 3, 10, 3, 10, 3, 11, 3, 11, 3, 11, 3, 11, 3, 11, 3, 11, 3, 11, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 13, 3, 13, 3, 13, 3, 13, 3, 13, 3, 13, 3, 13, 3, 13, 3, 14, 3, 14, 3, 14, 3, 14, 3, 15, 3, 15, 7, 15, 92, 10, 15, 12, 15, 14, 15, 95, 11, 15, 3, 16, 3, 16, 7, 16, 99, 10, 16, 12, 16, 14, 16, 102, 11, 16, 3, 17, 6, 17, 105, 10, 17, 13, 17, 14, 17, 106, 3, 17, 3, 17, 2, 2, 2, 18, 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, 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, 112, 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, 3, 35, 3, 2, 2, 2, 5, 42, 3, 2, 2, 2, 7, 47, 3, 2, 2, 2, 9, 49, 3, 2, 2, 2, 11, 51, 3, 2, 2, 2, 13, 53, 3, 2, 2, 2, 15, 55, 3, 2, 2, 2, 17, 58, 3, 2, 2, 2, 19, 60, 3, 2, 2, 2, 21, 63, 3, 2, 2, 2, 23, 70, 3, 2, 2, 2, 25, 77, 3, 2, 2, 2, 27, 85, 3, 2, 2, 2, 29, 89, 3, 2, 2, 2, 31, 96, 3, 2, 2, 2, 33, 104, 3, 2, 2, 2, 35, 36, 7, 111, 2, 2, 36, 37, 7, 113, 2, 2, 37, 38, 7, 102, 2, 2, 38, 39, 7, 119, 2, 2, 39, 40, 7, 110, 2, 2, 40, 41, 7, 103, 2, 2, 41, 4, 3, 2, 2, 2, 42, 43, 7, 102, 2, 2, 43, 44, 7, 99, 2, 2, 44, 45, 7, 118, 2, 2, 45, 46, 7, 99, 2, 2, 46, 6, 3, 2, 2, 2, 47, 48, 7, 42, 2, 2, 48, 8, 3, 2, 2, 2, 49, 50, 7, 46, 2, 2, 50, 10, 3, 2, 2, 2, 51, 52, 7, 43, 2, 2, 52, 12, 3, 2, 2, 2, 53, 54, 7, 60, 2, 2, 54, 14, 3, 2, 2, 2, 55, 56, 7, 93, 2, 2, 56, 57, 7, 95, 2, 2, 57, 16, 3, 2, 2, 2, 58, 59, 7, 65, 2, 2, 59, 18, 3, 2, 2, 2, 60, 61, 7, 47, 2, 2, 61, 62, 7, 64, 2, 2, 62, 20, 3, 2, 2, 2, 63, 64, 7, 117, 2, 2, 64, 65, 7, 118, 2, 2, 65, 66, 7, 116, 2, 2, 66, 67, 7, 107, 2, 2, 67, 68, 7, 112, 2, 2, 68, 69, 7, 105, 2, 2, 69, 22, 3, 2, 2, 2, 70, 71, 7, 112, 2, 2, 71, 72, 7, 119, 2, 2, 72, 73, 7, 111, 2, 2, 73, 74, 7, 100, 2, 2, 74, 75, 7, 103, 2, 2, 75, 76, 7, 116, 2, 2, 76, 24, 3, 2, 2, 2, 77, 78, 7, 100, 2, 2, 78, 79, 7, 113, 2, 2, 79, 80, 7, 113, 2, 2, 80, 81, 7, 110, 2, 2, 81, 82, 7, 103, 2, 2, 82, 83, 7, 99, 2, 2, 83, 84, 7, 112, 2, 2, 84, 26, 3, 2, 2, 2, 85, 86, 7, 99, 2, 2, 86, 87, 7, 112, 2, 2, 87, 88, 7, 123, 2, 2, 88, 28, 3, 2, 2, 2, 89, 93, 9, 2, 2, 2, 90, 92, 9, 3, 2, 2, 91, 90, 3, 2, 2, 2, 92, 95, 3, 2, 2, 2, 93, 91, 3, 2, 2, 2, 93, 94, 3, 2, 2, 2, 94, 30, 3, 2, 2, 2, 95, 93, 3, 2, 2, 2, 96, 100, 9, 4, 2, 2, 97, 99, 9, 3, 2, 2, 98, 97, 3, 2, 2, 2, 99, 102, 3, 2, 2, 2, 100, 98, 3, 2, 2, 2, 100, 101, 3, 2, 2, 2, 101, 32, 3, 2, 2, 2, 102, 100, 3, 2, 2, 2, 103, 105, 9, 5, 2, 2, 104, 103, 3, 2, 2, 2, 105, 106, 3, 2, 2, 2, 106, 104, 3, 2, 2, 2, 106, 107, 3, 2, 2, 2, 107, 108, 3, 2, 2, 2, 108, 109, 8, 17, 2, 2, 109, 34, 3, 2, 2, 2, 6, 2, 93, 100, 106, 3, 8, 2, 2]
@@ -0,0 +1,29 @@
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
+ IDENTIFIER=14
15
+ CAPITAL_IDENTIFIER=15
16
+ WS=16
17
+ 'module'=1
18
+ 'data'=2
19
+ '('=3
20
+ ','=4
21
+ ')'=5
22
+ ':'=6
23
+ '[]'=7
24
+ '?'=8
25
+ '->'=9
26
+ 'string'=10
27
+ 'number'=11
28
+ 'boolean'=12
29
+ 'any'=13
@@ -0,0 +1,146 @@
1
+ // Generated from src/grammar/BlendData.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 BlendDataLexer 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 IDENTIFIER = 14;
33
+ public static readonly CAPITAL_IDENTIFIER = 15;
34
+ public static readonly WS = 16;
35
+
36
+ // tslint:disable:no-trailing-whitespace
37
+ public static readonly channelNames: string[] = [
38
+ "DEFAULT_TOKEN_CHANNEL", "HIDDEN",
39
+ ];
40
+
41
+ // tslint:disable:no-trailing-whitespace
42
+ public static readonly modeNames: string[] = [
43
+ "DEFAULT_MODE",
44
+ ];
45
+
46
+ public static readonly ruleNames: string[] = [
47
+ "T__0", "T__1", "T__2", "T__3", "T__4", "T__5", "T__6", "T__7", "T__8",
48
+ "T__9", "T__10", "T__11", "T__12", "IDENTIFIER", "CAPITAL_IDENTIFIER",
49
+ "WS",
50
+ ];
51
+
52
+ private static readonly _LITERAL_NAMES: Array<string | undefined> = [
53
+ undefined, "'module'", "'data'", "'('", "','", "')'", "':'", "'[]'", "'?'",
54
+ "'->'", "'string'", "'number'", "'boolean'", "'any'",
55
+ ];
56
+ private static readonly _SYMBOLIC_NAMES: Array<string | undefined> = [
57
+ undefined, undefined, undefined, undefined, undefined, undefined, undefined,
58
+ undefined, undefined, undefined, undefined, undefined, undefined, undefined,
59
+ "IDENTIFIER", "CAPITAL_IDENTIFIER", "WS",
60
+ ];
61
+ public static readonly VOCABULARY: Vocabulary = new VocabularyImpl(BlendDataLexer._LITERAL_NAMES, BlendDataLexer._SYMBOLIC_NAMES, []);
62
+
63
+ // @Override
64
+ // @NotNull
65
+ public get vocabulary(): Vocabulary {
66
+ return BlendDataLexer.VOCABULARY;
67
+ }
68
+ // tslint:enable:no-trailing-whitespace
69
+
70
+
71
+ constructor(input: CharStream) {
72
+ super(input);
73
+ this._interp = new LexerATNSimulator(BlendDataLexer._ATN, this);
74
+ }
75
+
76
+ // @Override
77
+ public get grammarFileName(): string { return "BlendData.g4"; }
78
+
79
+ // @Override
80
+ public get ruleNames(): string[] { return BlendDataLexer.ruleNames; }
81
+
82
+ // @Override
83
+ public get serializedATN(): string { return BlendDataLexer._serializedATN; }
84
+
85
+ // @Override
86
+ public get channelNames(): string[] { return BlendDataLexer.channelNames; }
87
+
88
+ // @Override
89
+ public get modeNames(): string[] { return BlendDataLexer.modeNames; }
90
+
91
+ public static readonly _serializedATN: string =
92
+ "\x03\uC91D\uCABA\u058D\uAFBA\u4F53\u0607\uEA8B\uC241\x02\x12n\b\x01\x04" +
93
+ "\x02\t\x02\x04\x03\t\x03\x04\x04\t\x04\x04\x05\t\x05\x04\x06\t\x06\x04" +
94
+ "\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\t\r" +
95
+ "\x04\x0E\t\x0E\x04\x0F\t\x0F\x04\x10\t\x10\x04\x11\t\x11\x03\x02\x03\x02" +
96
+ "\x03\x02\x03\x02\x03\x02\x03\x02\x03\x02\x03\x03\x03\x03\x03\x03\x03\x03" +
97
+ "\x03\x03\x03\x04\x03\x04\x03\x05\x03\x05\x03\x06\x03\x06\x03\x07\x03\x07" +
98
+ "\x03\b\x03\b\x03\b\x03\t\x03\t\x03\n\x03\n\x03\n\x03\v\x03\v\x03\v\x03" +
99
+ "\v\x03\v\x03\v\x03\v\x03\f\x03\f\x03\f\x03\f\x03\f\x03\f\x03\f\x03\r\x03" +
100
+ "\r\x03\r\x03\r\x03\r\x03\r\x03\r\x03\r\x03\x0E\x03\x0E\x03\x0E\x03\x0E" +
101
+ "\x03\x0F\x03\x0F\x07\x0F\\\n\x0F\f\x0F\x0E\x0F_\v\x0F\x03\x10\x03\x10" +
102
+ "\x07\x10c\n\x10\f\x10\x0E\x10f\v\x10\x03\x11\x06\x11i\n\x11\r\x11\x0E" +
103
+ "\x11j\x03\x11\x03\x11\x02\x02\x02\x12\x03\x02\x03\x05\x02\x04\x07\x02" +
104
+ "\x05\t\x02\x06\v\x02\x07\r\x02\b\x0F\x02\t\x11\x02\n\x13\x02\v\x15\x02" +
105
+ "\f\x17\x02\r\x19\x02\x0E\x1B\x02\x0F\x1D\x02\x10\x1F\x02\x11!\x02\x12" +
106
+ "\x03\x02\x06\x04\x02aac|\x06\x022;C\\aac|\x03\x02C\\\x05\x02\v\f\x0F\x0F" +
107
+ "\"\"\x02p\x02\x03\x03\x02\x02\x02\x02\x05\x03\x02\x02\x02\x02\x07\x03" +
108
+ "\x02\x02\x02\x02\t\x03\x02\x02\x02\x02\v\x03\x02\x02\x02\x02\r\x03\x02" +
109
+ "\x02\x02\x02\x0F\x03\x02\x02\x02\x02\x11\x03\x02\x02\x02\x02\x13\x03\x02" +
110
+ "\x02\x02\x02\x15\x03\x02\x02\x02\x02\x17\x03\x02\x02\x02\x02\x19\x03\x02" +
111
+ "\x02\x02\x02\x1B\x03\x02\x02\x02\x02\x1D\x03\x02\x02\x02\x02\x1F\x03\x02" +
112
+ "\x02\x02\x02!\x03\x02\x02\x02\x03#\x03\x02\x02\x02\x05*\x03\x02\x02\x02" +
113
+ "\x07/\x03\x02\x02\x02\t1\x03\x02\x02\x02\v3\x03\x02\x02\x02\r5\x03\x02" +
114
+ "\x02\x02\x0F7\x03\x02\x02\x02\x11:\x03\x02\x02\x02\x13<\x03\x02\x02\x02" +
115
+ "\x15?\x03\x02\x02\x02\x17F\x03\x02\x02\x02\x19M\x03\x02\x02\x02\x1BU\x03" +
116
+ "\x02\x02\x02\x1DY\x03\x02\x02\x02\x1F`\x03\x02\x02\x02!h\x03\x02\x02\x02" +
117
+ "#$\x07o\x02\x02$%\x07q\x02\x02%&\x07f\x02\x02&\'\x07w\x02\x02\'(\x07n" +
118
+ "\x02\x02()\x07g\x02\x02)\x04\x03\x02\x02\x02*+\x07f\x02\x02+,\x07c\x02" +
119
+ "\x02,-\x07v\x02\x02-.\x07c\x02\x02.\x06\x03\x02\x02\x02/0\x07*\x02\x02" +
120
+ "0\b\x03\x02\x02\x0212\x07.\x02\x022\n\x03\x02\x02\x0234\x07+\x02\x024" +
121
+ "\f\x03\x02\x02\x0256\x07<\x02\x026\x0E\x03\x02\x02\x0278\x07]\x02\x02" +
122
+ "89\x07_\x02\x029\x10\x03\x02\x02\x02:;\x07A\x02\x02;\x12\x03\x02\x02\x02" +
123
+ "<=\x07/\x02\x02=>\x07@\x02\x02>\x14\x03\x02\x02\x02?@\x07u\x02\x02@A\x07" +
124
+ "v\x02\x02AB\x07t\x02\x02BC\x07k\x02\x02CD\x07p\x02\x02DE\x07i\x02\x02" +
125
+ "E\x16\x03\x02\x02\x02FG\x07p\x02\x02GH\x07w\x02\x02HI\x07o\x02\x02IJ\x07" +
126
+ "d\x02\x02JK\x07g\x02\x02KL\x07t\x02\x02L\x18\x03\x02\x02\x02MN\x07d\x02" +
127
+ "\x02NO\x07q\x02\x02OP\x07q\x02\x02PQ\x07n\x02\x02QR\x07g\x02\x02RS\x07" +
128
+ "c\x02\x02ST\x07p\x02\x02T\x1A\x03\x02\x02\x02UV\x07c\x02\x02VW\x07p\x02" +
129
+ "\x02WX\x07{\x02\x02X\x1C\x03\x02\x02\x02Y]\t\x02\x02\x02Z\\\t\x03\x02" +
130
+ "\x02[Z\x03\x02\x02\x02\\_\x03\x02\x02\x02][\x03\x02\x02\x02]^\x03\x02" +
131
+ "\x02\x02^\x1E\x03\x02\x02\x02_]\x03\x02\x02\x02`d\t\x04\x02\x02ac\t\x03" +
132
+ "\x02\x02ba\x03\x02\x02\x02cf\x03\x02\x02\x02db\x03\x02\x02\x02de\x03\x02" +
133
+ "\x02\x02e \x03\x02\x02\x02fd\x03\x02\x02\x02gi\t\x05\x02\x02hg\x03\x02" +
134
+ "\x02\x02ij\x03\x02\x02\x02jh\x03\x02\x02\x02jk\x03\x02\x02\x02kl\x03\x02" +
135
+ "\x02\x02lm\b\x11\x02\x02m\"\x03\x02\x02\x02\x06\x02]dj\x03\b\x02\x02";
136
+ public static __ATN: ATN;
137
+ public static get _ATN(): ATN {
138
+ if (!BlendDataLexer.__ATN) {
139
+ BlendDataLexer.__ATN = new ATNDeserializer().deserialize(Utils.toCharArray(BlendDataLexer._serializedATN));
140
+ }
141
+
142
+ return BlendDataLexer.__ATN;
143
+ }
144
+
145
+ }
146
+
@@ -0,0 +1,97 @@
1
+ // Generated from src/grammar/BlendData.g4 by ANTLR 4.9.0-SNAPSHOT
2
+
3
+
4
+ import { ParseTreeListener } from "antlr4ts/tree/ParseTreeListener";
5
+
6
+ import { ProgramContext } from "./BlendDataParser";
7
+ import { ModuleDefinitionContext } from "./BlendDataParser";
8
+ import { DataDefinitionContext } from "./BlendDataParser";
9
+ import { FieldContext } from "./BlendDataParser";
10
+ import { TypeContext } from "./BlendDataParser";
11
+ import { BaseTypeContext } from "./BlendDataParser";
12
+ import { PrimitiveTypeContext } from "./BlendDataParser";
13
+
14
+
15
+ /**
16
+ * This interface defines a complete listener for a parse tree produced by
17
+ * `BlendDataParser`.
18
+ */
19
+ export interface BlendDataListener extends ParseTreeListener {
20
+ /**
21
+ * Enter a parse tree produced by `BlendDataParser.program`.
22
+ * @param ctx the parse tree
23
+ */
24
+ enterProgram?: (ctx: ProgramContext) => void;
25
+ /**
26
+ * Exit a parse tree produced by `BlendDataParser.program`.
27
+ * @param ctx the parse tree
28
+ */
29
+ exitProgram?: (ctx: ProgramContext) => void;
30
+
31
+ /**
32
+ * Enter a parse tree produced by `BlendDataParser.moduleDefinition`.
33
+ * @param ctx the parse tree
34
+ */
35
+ enterModuleDefinition?: (ctx: ModuleDefinitionContext) => void;
36
+ /**
37
+ * Exit a parse tree produced by `BlendDataParser.moduleDefinition`.
38
+ * @param ctx the parse tree
39
+ */
40
+ exitModuleDefinition?: (ctx: ModuleDefinitionContext) => void;
41
+
42
+ /**
43
+ * Enter a parse tree produced by `BlendDataParser.dataDefinition`.
44
+ * @param ctx the parse tree
45
+ */
46
+ enterDataDefinition?: (ctx: DataDefinitionContext) => void;
47
+ /**
48
+ * Exit a parse tree produced by `BlendDataParser.dataDefinition`.
49
+ * @param ctx the parse tree
50
+ */
51
+ exitDataDefinition?: (ctx: DataDefinitionContext) => void;
52
+
53
+ /**
54
+ * Enter a parse tree produced by `BlendDataParser.field`.
55
+ * @param ctx the parse tree
56
+ */
57
+ enterField?: (ctx: FieldContext) => void;
58
+ /**
59
+ * Exit a parse tree produced by `BlendDataParser.field`.
60
+ * @param ctx the parse tree
61
+ */
62
+ exitField?: (ctx: FieldContext) => void;
63
+
64
+ /**
65
+ * Enter a parse tree produced by `BlendDataParser.type`.
66
+ * @param ctx the parse tree
67
+ */
68
+ enterType?: (ctx: TypeContext) => void;
69
+ /**
70
+ * Exit a parse tree produced by `BlendDataParser.type`.
71
+ * @param ctx the parse tree
72
+ */
73
+ exitType?: (ctx: TypeContext) => void;
74
+
75
+ /**
76
+ * Enter a parse tree produced by `BlendDataParser.baseType`.
77
+ * @param ctx the parse tree
78
+ */
79
+ enterBaseType?: (ctx: BaseTypeContext) => void;
80
+ /**
81
+ * Exit a parse tree produced by `BlendDataParser.baseType`.
82
+ * @param ctx the parse tree
83
+ */
84
+ exitBaseType?: (ctx: BaseTypeContext) => void;
85
+
86
+ /**
87
+ * Enter a parse tree produced by `BlendDataParser.primitiveType`.
88
+ * @param ctx the parse tree
89
+ */
90
+ enterPrimitiveType?: (ctx: PrimitiveTypeContext) => void;
91
+ /**
92
+ * Exit a parse tree produced by `BlendDataParser.primitiveType`.
93
+ * @param ctx the parse tree
94
+ */
95
+ exitPrimitiveType?: (ctx: PrimitiveTypeContext) => void;
96
+ }
97
+