blend-kit 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/helper/ApiHelper.js +0 -0
- package/dist/helper/BasicHelper.js +28 -0
- package/dist/helper/CommonHelper.js +10 -0
- package/dist/helper/DataHelper.js +241 -0
- package/dist/helper/ExpressHelper.js +728 -0
- package/dist/helper/FrontEndApiHelper.js +485 -0
- package/dist/helper/FrontEndReactApiHelper.js +483 -0
- package/dist/helper/MongoHelper.js +143 -0
- package/dist/helper/RNHelper.js +560 -0
- package/dist/helper/ReactHelper.js +524 -0
- package/dist/helper/SectionHelper.js +152 -0
- package/dist/helper/fileHelper.js +127 -0
- package/dist/helper/grammarHelper/BlendApiGrammarHelper.js +48 -0
- package/dist/helper/grammarHelper/BlendBasicGrammarHelper.js +98 -0
- package/dist/helper/grammarHelper/BlendDataGrammarHelper.js +47 -0
- package/dist/helper/grammarHelper/BlendMDPGrammarHelper.js +29 -0
- package/dist/helper/grammarHelper/BlendMongoGrammarHelper.js +51 -0
- package/dist/helper/grammarHelper/BlendRNGrammarHelper.js +56 -0
- package/dist/helper/grammarHelper/BlendReactGrammarHelper.js +55 -0
- package/dist/helper/grammarHelper/GrammarErrorHelper.js +16 -0
- package/dist/index.js +159 -0
- package/dist/parser/blendApi/src/grammar/BlendApiLexer.js +201 -0
- package/dist/parser/blendApi/src/grammar/BlendApiListener.js +3 -0
- package/dist/parser/blendApi/src/grammar/BlendApiParser.js +961 -0
- package/dist/parser/blendData/src/grammar/BlendDataLexer.js +154 -0
- package/dist/parser/blendData/src/grammar/BlendDataListener.js +3 -0
- package/dist/parser/blendData/src/grammar/BlendDataParser.js +641 -0
- package/dist/parser/blendMDP/src/grammar/BlendMDPLexer.js +151 -0
- package/dist/parser/blendMDP/src/grammar/BlendMDPListener.js +3 -0
- package/dist/parser/blendMDP/src/grammar/BlendMDPParser.js +490 -0
- package/dist/parser/blendMongo/src/grammar/BlendMongoLexer.js +187 -0
- package/dist/parser/blendMongo/src/grammar/BlendMongoListener.js +3 -0
- package/dist/parser/blendMongo/src/grammar/BlendMongoParser.js +848 -0
- package/dist/parser/blendRN/src/grammar/BlendRNLexer.js +172 -0
- package/dist/parser/blendRN/src/grammar/BlendRNListener.js +3 -0
- package/dist/parser/blendRN/src/grammar/BlendRNParser.js +657 -0
- package/dist/parser/blendReact/src/grammar/BlendReactLexer.js +159 -0
- package/dist/parser/blendReact/src/grammar/BlendReactListener.js +3 -0
- package/dist/parser/blendReact/src/grammar/BlendReactParser.js +644 -0
- package/dist/parser/blendbasic/src/grammar/BlendBasicLexer.js +147 -0
- package/dist/parser/blendbasic/src/grammar/BlendBasicListener.js +3 -0
- package/dist/parser/blendbasic/src/grammar/BlendBasicParser.js +747 -0
- package/dist/src/app.js +76 -0
- package/dist/src/app.ts +54 -0
- package/dist/types/apiOperationTypes.js +13 -0
- package/dist/types/basicOperationTypes.js +2 -0
- package/dist/types/dataOperationTypes.js +2 -0
- package/dist/types/frontendOperationTypes.js +4 -0
- package/dist/types/generalTypes.js +0 -0
- package/dist/types/mongoOperationTypes.js +12 -0
- package/package.json +29 -0
- package/src/grammar/.antlr/ApiModuleLexer.interp +71 -0
- package/src/grammar/.antlr/ApiModuleLexer.java +194 -0
- package/src/grammar/.antlr/ApiModuleLexer.tokens +32 -0
- package/src/grammar/.antlr/BlendApi.interp +70 -0
- package/src/grammar/.antlr/BlendApi.tokens +44 -0
- package/src/grammar/.antlr/BlendApiLexer.interp +89 -0
- package/src/grammar/.antlr/BlendApiLexer.java +237 -0
- package/src/grammar/.antlr/BlendApiLexer.tokens +44 -0
- package/src/grammar/.antlr/BlendApiParser.java +767 -0
- package/src/grammar/.antlr/BlendBasic.interp +41 -0
- package/src/grammar/.antlr/BlendBasic.tokens +20 -0
- package/src/grammar/.antlr/BlendBasicLexer.interp +50 -0
- package/src/grammar/.antlr/BlendBasicLexer.java +179 -0
- package/src/grammar/.antlr/BlendBasicLexer.tokens +20 -0
- package/src/grammar/.antlr/BlendBasicParser.java +599 -0
- package/src/grammar/.antlr/BlendData.interp +50 -0
- package/src/grammar/.antlr/BlendData.tokens +29 -0
- package/src/grammar/.antlr/BlendDataLexer.interp +65 -0
- package/src/grammar/.antlr/BlendDataLexer.java +181 -0
- package/src/grammar/.antlr/BlendDataLexer.tokens +29 -0
- package/src/grammar/.antlr/BlendDataParser.java +520 -0
- package/src/grammar/.antlr/BlendMDP.interp +45 -0
- package/src/grammar/.antlr/BlendMDP.tokens +25 -0
- package/src/grammar/.antlr/BlendMDPLexer.interp +59 -0
- package/src/grammar/.antlr/BlendMDPLexer.java +178 -0
- package/src/grammar/.antlr/BlendMDPLexer.tokens +25 -0
- package/src/grammar/.antlr/BlendMDPParser.java +386 -0
- package/src/grammar/.antlr/BlendMongo.interp +65 -0
- package/src/grammar/.antlr/BlendMongo.tokens +41 -0
- package/src/grammar/.antlr/BlendMongoLexer.interp +83 -0
- package/src/grammar/.antlr/BlendMongoLexer.java +219 -0
- package/src/grammar/.antlr/BlendMongoLexer.tokens +41 -0
- package/src/grammar/.antlr/BlendMongoParser.java +669 -0
- package/src/grammar/.antlr/BlendRN.interp +53 -0
- package/src/grammar/.antlr/BlendRN.tokens +31 -0
- package/src/grammar/.antlr/BlendRNLexer.interp +71 -0
- package/src/grammar/.antlr/BlendRNLexer.java +202 -0
- package/src/grammar/.antlr/BlendRNLexer.tokens +31 -0
- package/src/grammar/.antlr/BlendRNParser.java +542 -0
- package/src/grammar/.antlr/BlendReact.interp +49 -0
- package/src/grammar/.antlr/BlendReact.tokens +28 -0
- package/src/grammar/.antlr/BlendReactLexer.interp +65 -0
- package/src/grammar/.antlr/BlendReactLexer.java +188 -0
- package/src/grammar/.antlr/BlendReactLexer.tokens +28 -0
- package/src/grammar/.antlr/BlendReactParser.java +530 -0
- package/src/grammar/BlendApi.g4 +26 -0
- package/src/grammar/BlendBasic.g4 +16 -0
- package/src/grammar/BlendData.g4 +24 -0
- package/src/grammar/BlendMDP.g4 +12 -0
- package/src/grammar/BlendMongo.g4 +24 -0
- package/src/grammar/BlendRN.g4 +18 -0
- package/src/grammar/BlendReact.g4 +16 -0
- package/src/helper/BasicHelper.ts +35 -0
- package/src/helper/CommonHelper.ts +5 -0
- package/src/helper/DataHelper.ts +268 -0
- package/src/helper/ExpressHelper.ts +807 -0
- package/src/helper/FrontEndApiHelper.ts +526 -0
- package/src/helper/FrontEndReactApiHelper.ts +532 -0
- package/src/helper/MongoHelper.ts +165 -0
- package/src/helper/RNHelper.ts +651 -0
- package/src/helper/ReactHelper.ts +597 -0
- package/src/helper/SectionHelper.ts +154 -0
- package/src/helper/fileHelper.ts +111 -0
- package/src/helper/grammarHelper/BlendApiGrammarHelper.ts +45 -0
- package/src/helper/grammarHelper/BlendBasicGrammarHelper.ts +101 -0
- package/src/helper/grammarHelper/BlendDataGrammarHelper.ts +49 -0
- package/src/helper/grammarHelper/BlendMDPGrammarHelper.ts +33 -0
- package/src/helper/grammarHelper/BlendMongoGrammarHelper.ts +50 -0
- package/src/helper/grammarHelper/BlendRNGrammarHelper.ts +65 -0
- package/src/helper/grammarHelper/BlendReactGrammarHelper.ts +65 -0
- package/src/helper/grammarHelper/GrammarErrorHelper.ts +13 -0
- package/src/index.ts +168 -0
- package/src/parser/blendApi/src/grammar/BlendApi.interp +70 -0
- package/src/parser/blendApi/src/grammar/BlendApi.tokens +44 -0
- package/src/parser/blendApi/src/grammar/BlendApiLexer.interp +89 -0
- package/src/parser/blendApi/src/grammar/BlendApiLexer.tokens +44 -0
- package/src/parser/blendApi/src/grammar/BlendApiLexer.ts +193 -0
- package/src/parser/blendApi/src/grammar/BlendApiListener.ts +145 -0
- package/src/parser/blendApi/src/grammar/BlendApiParser.ts +968 -0
- package/src/parser/blendData/src/grammar/BlendData.interp +50 -0
- package/src/parser/blendData/src/grammar/BlendData.tokens +29 -0
- package/src/parser/blendData/src/grammar/BlendDataLexer.interp +65 -0
- package/src/parser/blendData/src/grammar/BlendDataLexer.tokens +29 -0
- package/src/parser/blendData/src/grammar/BlendDataLexer.ts +146 -0
- package/src/parser/blendData/src/grammar/BlendDataListener.ts +97 -0
- package/src/parser/blendData/src/grammar/BlendDataParser.ts +641 -0
- package/src/parser/blendMDP/src/grammar/BlendMDP.interp +45 -0
- package/src/parser/blendMDP/src/grammar/BlendMDP.tokens +25 -0
- package/src/parser/blendMDP/src/grammar/BlendMDPLexer.interp +59 -0
- package/src/parser/blendMDP/src/grammar/BlendMDPLexer.tokens +25 -0
- package/src/parser/blendMDP/src/grammar/BlendMDPLexer.ts +143 -0
- package/src/parser/blendMDP/src/grammar/BlendMDPListener.ts +85 -0
- package/src/parser/blendMDP/src/grammar/BlendMDPParser.ts +483 -0
- package/src/parser/blendMongo/src/grammar/BlendMongo.interp +65 -0
- package/src/parser/blendMongo/src/grammar/BlendMongo.tokens +41 -0
- package/src/parser/blendMongo/src/grammar/BlendMongoLexer.interp +83 -0
- package/src/parser/blendMongo/src/grammar/BlendMongoLexer.tokens +41 -0
- package/src/parser/blendMongo/src/grammar/BlendMongoLexer.ts +179 -0
- package/src/parser/blendMongo/src/grammar/BlendMongoListener.ts +133 -0
- package/src/parser/blendMongo/src/grammar/BlendMongoParser.ts +849 -0
- package/src/parser/blendRN/src/grammar/BlendRN.interp +53 -0
- package/src/parser/blendRN/src/grammar/BlendRN.tokens +31 -0
- package/src/parser/blendRN/src/grammar/BlendRNLexer.interp +71 -0
- package/src/parser/blendRN/src/grammar/BlendRNLexer.tokens +31 -0
- package/src/parser/blendRN/src/grammar/BlendRNLexer.ts +164 -0
- package/src/parser/blendRN/src/grammar/BlendRNListener.ts +85 -0
- package/src/parser/blendRN/src/grammar/BlendRNParser.ts +659 -0
- package/src/parser/blendReact/src/grammar/BlendReact.interp +49 -0
- package/src/parser/blendReact/src/grammar/BlendReact.tokens +28 -0
- package/src/parser/blendReact/src/grammar/BlendReactLexer.interp +65 -0
- package/src/parser/blendReact/src/grammar/BlendReactLexer.tokens +28 -0
- package/src/parser/blendReact/src/grammar/BlendReactLexer.ts +151 -0
- package/src/parser/blendReact/src/grammar/BlendReactListener.ts +85 -0
- package/src/parser/blendReact/src/grammar/BlendReactParser.ts +646 -0
- package/src/parser/blendbasic/src/grammar/BlendBasic.interp +41 -0
- package/src/parser/blendbasic/src/grammar/BlendBasic.tokens +20 -0
- package/src/parser/blendbasic/src/grammar/BlendBasicLexer.interp +50 -0
- package/src/parser/blendbasic/src/grammar/BlendBasicLexer.tokens +20 -0
- package/src/parser/blendbasic/src/grammar/BlendBasicLexer.ts +139 -0
- package/src/parser/blendbasic/src/grammar/BlendBasicListener.ts +109 -0
- package/src/parser/blendbasic/src/grammar/BlendBasicParser.ts +747 -0
- package/src/types/apiOperationTypes.ts +43 -0
- package/src/types/basicOperationTypes.ts +15 -0
- package/src/types/dataOperationTypes.ts +20 -0
- package/src/types/frontendOperationTypes.ts +92 -0
- package/src/types/generalTypes.ts +0 -0
- package/src/types/mongoOperationTypes.ts +36 -0
- package/template/.env.dev +1 -0
- package/template/package.json +36 -0
- package/template/src/app.js +76 -0
- package/template/src/app.ts +54 -0
- package/template/src/config/app.config.js +0 -0
- package/template/src/config/app.config.ts +0 -0
- package/template/src/config/database.config.js +6 -0
- package/template/src/config/database.config.ts +4 -0
- package/template/src/data/interfaces.js +2 -0
- package/template/src/data/interfaces.ts +23 -0
- package/template/src/middlewares/auth.js +22 -0
- package/template/src/middlewares/auth.ts +21 -0
- package/template/src/models/Database.js +10 -0
- package/template/src/models/Database.ts +8 -0
- package/template/src/models/User/Permission.model.js +13 -0
- package/template/src/models/User/Permission.model.ts +14 -0
- package/template/src/models/User/Role.model.js +13 -0
- package/template/src/models/User/Role.model.ts +14 -0
- package/template/src/models/User/User.model.js +17 -0
- package/template/src/models/User/User.model.ts +18 -0
- package/template/src/routes/User.routes.js +47 -0
- package/template/src/routes/User.routes.ts +41 -0
- package/template/src/routes/common/common.routes.config.js +14 -0
- package/template/src/routes/common/common.routes.config.ts +15 -0
- package/template/src/services/User/User.service.js +75 -0
- package/template/src/services/User/User.service.ts +68 -0
- package/template/src/services/User/api.data.js +72 -0
- package/template/src/services/User/api.data.ts +79 -0
- package/template/src/services/User/api.interface.js +3 -0
- package/template/src/services/User/api.interface.ts +10 -0
- package/template/tsconfig.json +10 -0
- package/tsconfig.json +13 -0
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
token literal names:
|
|
2
|
+
null
|
|
3
|
+
'module'
|
|
4
|
+
'parent'
|
|
5
|
+
'props'
|
|
6
|
+
'{'
|
|
7
|
+
'}'
|
|
8
|
+
':'
|
|
9
|
+
'string'
|
|
10
|
+
'number'
|
|
11
|
+
'boolean'
|
|
12
|
+
'any'
|
|
13
|
+
'object'
|
|
14
|
+
null
|
|
15
|
+
null
|
|
16
|
+
null
|
|
17
|
+
|
|
18
|
+
token symbolic names:
|
|
19
|
+
null
|
|
20
|
+
null
|
|
21
|
+
null
|
|
22
|
+
null
|
|
23
|
+
null
|
|
24
|
+
null
|
|
25
|
+
null
|
|
26
|
+
null
|
|
27
|
+
null
|
|
28
|
+
null
|
|
29
|
+
null
|
|
30
|
+
null
|
|
31
|
+
IDENTIFIER
|
|
32
|
+
CAPITAL_IDENTIFIER
|
|
33
|
+
WS
|
|
34
|
+
|
|
35
|
+
rule names:
|
|
36
|
+
T__0
|
|
37
|
+
T__1
|
|
38
|
+
T__2
|
|
39
|
+
T__3
|
|
40
|
+
T__4
|
|
41
|
+
T__5
|
|
42
|
+
T__6
|
|
43
|
+
T__7
|
|
44
|
+
T__8
|
|
45
|
+
T__9
|
|
46
|
+
T__10
|
|
47
|
+
IDENTIFIER
|
|
48
|
+
CAPITAL_IDENTIFIER
|
|
49
|
+
WS
|
|
50
|
+
|
|
51
|
+
channel names:
|
|
52
|
+
DEFAULT_TOKEN_CHANNEL
|
|
53
|
+
HIDDEN
|
|
54
|
+
|
|
55
|
+
mode names:
|
|
56
|
+
DEFAULT_MODE
|
|
57
|
+
|
|
58
|
+
atn:
|
|
59
|
+
[3, 51485, 51898, 1421, 44986, 20307, 1543, 60043, 49729, 2, 16, 111, 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, 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, 3, 3, 3, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 5, 3, 5, 3, 6, 3, 6, 3, 7, 3, 7, 3, 8, 3, 8, 3, 8, 3, 8, 3, 8, 3, 8, 3, 8, 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, 10, 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, 7, 13, 93, 10, 13, 12, 13, 14, 13, 96, 11, 13, 3, 14, 3, 14, 7, 14, 100, 10, 14, 12, 14, 14, 14, 103, 11, 14, 3, 15, 6, 15, 106, 10, 15, 13, 15, 14, 15, 107, 3, 15, 3, 15, 2, 2, 2, 16, 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, 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, 113, 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, 3, 31, 3, 2, 2, 2, 5, 38, 3, 2, 2, 2, 7, 45, 3, 2, 2, 2, 9, 51, 3, 2, 2, 2, 11, 53, 3, 2, 2, 2, 13, 55, 3, 2, 2, 2, 15, 57, 3, 2, 2, 2, 17, 64, 3, 2, 2, 2, 19, 71, 3, 2, 2, 2, 21, 79, 3, 2, 2, 2, 23, 83, 3, 2, 2, 2, 25, 90, 3, 2, 2, 2, 27, 97, 3, 2, 2, 2, 29, 105, 3, 2, 2, 2, 31, 32, 7, 111, 2, 2, 32, 33, 7, 113, 2, 2, 33, 34, 7, 102, 2, 2, 34, 35, 7, 119, 2, 2, 35, 36, 7, 110, 2, 2, 36, 37, 7, 103, 2, 2, 37, 4, 3, 2, 2, 2, 38, 39, 7, 114, 2, 2, 39, 40, 7, 99, 2, 2, 40, 41, 7, 116, 2, 2, 41, 42, 7, 103, 2, 2, 42, 43, 7, 112, 2, 2, 43, 44, 7, 118, 2, 2, 44, 6, 3, 2, 2, 2, 45, 46, 7, 114, 2, 2, 46, 47, 7, 116, 2, 2, 47, 48, 7, 113, 2, 2, 48, 49, 7, 114, 2, 2, 49, 50, 7, 117, 2, 2, 50, 8, 3, 2, 2, 2, 51, 52, 7, 125, 2, 2, 52, 10, 3, 2, 2, 2, 53, 54, 7, 127, 2, 2, 54, 12, 3, 2, 2, 2, 55, 56, 7, 60, 2, 2, 56, 14, 3, 2, 2, 2, 57, 58, 7, 117, 2, 2, 58, 59, 7, 118, 2, 2, 59, 60, 7, 116, 2, 2, 60, 61, 7, 107, 2, 2, 61, 62, 7, 112, 2, 2, 62, 63, 7, 105, 2, 2, 63, 16, 3, 2, 2, 2, 64, 65, 7, 112, 2, 2, 65, 66, 7, 119, 2, 2, 66, 67, 7, 111, 2, 2, 67, 68, 7, 100, 2, 2, 68, 69, 7, 103, 2, 2, 69, 70, 7, 116, 2, 2, 70, 18, 3, 2, 2, 2, 71, 72, 7, 100, 2, 2, 72, 73, 7, 113, 2, 2, 73, 74, 7, 113, 2, 2, 74, 75, 7, 110, 2, 2, 75, 76, 7, 103, 2, 2, 76, 77, 7, 99, 2, 2, 77, 78, 7, 112, 2, 2, 78, 20, 3, 2, 2, 2, 79, 80, 7, 99, 2, 2, 80, 81, 7, 112, 2, 2, 81, 82, 7, 123, 2, 2, 82, 22, 3, 2, 2, 2, 83, 84, 7, 113, 2, 2, 84, 85, 7, 100, 2, 2, 85, 86, 7, 108, 2, 2, 86, 87, 7, 103, 2, 2, 87, 88, 7, 101, 2, 2, 88, 89, 7, 118, 2, 2, 89, 24, 3, 2, 2, 2, 90, 94, 9, 2, 2, 2, 91, 93, 9, 3, 2, 2, 92, 91, 3, 2, 2, 2, 93, 96, 3, 2, 2, 2, 94, 92, 3, 2, 2, 2, 94, 95, 3, 2, 2, 2, 95, 26, 3, 2, 2, 2, 96, 94, 3, 2, 2, 2, 97, 101, 9, 4, 2, 2, 98, 100, 9, 3, 2, 2, 99, 98, 3, 2, 2, 2, 100, 103, 3, 2, 2, 2, 101, 99, 3, 2, 2, 2, 101, 102, 3, 2, 2, 2, 102, 28, 3, 2, 2, 2, 103, 101, 3, 2, 2, 2, 104, 106, 9, 5, 2, 2, 105, 104, 3, 2, 2, 2, 106, 107, 3, 2, 2, 2, 107, 105, 3, 2, 2, 2, 107, 108, 3, 2, 2, 2, 108, 109, 3, 2, 2, 2, 109, 110, 8, 15, 2, 2, 110, 30, 3, 2, 2, 2, 6, 2, 94, 101, 107, 3, 8, 2, 2]
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
IDENTIFIER=12
|
|
13
|
+
CAPITAL_IDENTIFIER=13
|
|
14
|
+
WS=14
|
|
15
|
+
'module'=1
|
|
16
|
+
'parent'=2
|
|
17
|
+
'props'=3
|
|
18
|
+
'{'=4
|
|
19
|
+
'}'=5
|
|
20
|
+
':'=6
|
|
21
|
+
'string'=7
|
|
22
|
+
'number'=8
|
|
23
|
+
'boolean'=9
|
|
24
|
+
'any'=10
|
|
25
|
+
'object'=11
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
// Generated from src/grammar/BlendMDP.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 BlendMDPLexer 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 IDENTIFIER = 12;
|
|
31
|
+
public static readonly CAPITAL_IDENTIFIER = 13;
|
|
32
|
+
public static readonly WS = 14;
|
|
33
|
+
|
|
34
|
+
// tslint:disable:no-trailing-whitespace
|
|
35
|
+
public static readonly channelNames: string[] = [
|
|
36
|
+
"DEFAULT_TOKEN_CHANNEL", "HIDDEN",
|
|
37
|
+
];
|
|
38
|
+
|
|
39
|
+
// tslint:disable:no-trailing-whitespace
|
|
40
|
+
public static readonly modeNames: string[] = [
|
|
41
|
+
"DEFAULT_MODE",
|
|
42
|
+
];
|
|
43
|
+
|
|
44
|
+
public static readonly ruleNames: string[] = [
|
|
45
|
+
"T__0", "T__1", "T__2", "T__3", "T__4", "T__5", "T__6", "T__7", "T__8",
|
|
46
|
+
"T__9", "T__10", "IDENTIFIER", "CAPITAL_IDENTIFIER", "WS",
|
|
47
|
+
];
|
|
48
|
+
|
|
49
|
+
private static readonly _LITERAL_NAMES: Array<string | undefined> = [
|
|
50
|
+
undefined, "'module'", "'parent'", "'props'", "'{'", "'}'", "':'", "'string'",
|
|
51
|
+
"'number'", "'boolean'", "'any'", "'object'",
|
|
52
|
+
];
|
|
53
|
+
private static readonly _SYMBOLIC_NAMES: Array<string | undefined> = [
|
|
54
|
+
undefined, undefined, undefined, undefined, undefined, undefined, undefined,
|
|
55
|
+
undefined, undefined, undefined, undefined, undefined, "IDENTIFIER", "CAPITAL_IDENTIFIER",
|
|
56
|
+
"WS",
|
|
57
|
+
];
|
|
58
|
+
public static readonly VOCABULARY: Vocabulary = new VocabularyImpl(BlendMDPLexer._LITERAL_NAMES, BlendMDPLexer._SYMBOLIC_NAMES, []);
|
|
59
|
+
|
|
60
|
+
// @Override
|
|
61
|
+
// @NotNull
|
|
62
|
+
public get vocabulary(): Vocabulary {
|
|
63
|
+
return BlendMDPLexer.VOCABULARY;
|
|
64
|
+
}
|
|
65
|
+
// tslint:enable:no-trailing-whitespace
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
constructor(input: CharStream) {
|
|
69
|
+
super(input);
|
|
70
|
+
this._interp = new LexerATNSimulator(BlendMDPLexer._ATN, this);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
// @Override
|
|
74
|
+
public get grammarFileName(): string { return "BlendMDP.g4"; }
|
|
75
|
+
|
|
76
|
+
// @Override
|
|
77
|
+
public get ruleNames(): string[] { return BlendMDPLexer.ruleNames; }
|
|
78
|
+
|
|
79
|
+
// @Override
|
|
80
|
+
public get serializedATN(): string { return BlendMDPLexer._serializedATN; }
|
|
81
|
+
|
|
82
|
+
// @Override
|
|
83
|
+
public get channelNames(): string[] { return BlendMDPLexer.channelNames; }
|
|
84
|
+
|
|
85
|
+
// @Override
|
|
86
|
+
public get modeNames(): string[] { return BlendMDPLexer.modeNames; }
|
|
87
|
+
|
|
88
|
+
public static readonly _serializedATN: string =
|
|
89
|
+
"\x03\uC91D\uCABA\u058D\uAFBA\u4F53\u0607\uEA8B\uC241\x02\x10o\b\x01\x04" +
|
|
90
|
+
"\x02\t\x02\x04\x03\t\x03\x04\x04\t\x04\x04\x05\t\x05\x04\x06\t\x06\x04" +
|
|
91
|
+
"\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" +
|
|
92
|
+
"\x04\x0E\t\x0E\x04\x0F\t\x0F\x03\x02\x03\x02\x03\x02\x03\x02\x03\x02\x03" +
|
|
93
|
+
"\x02\x03\x02\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03" +
|
|
94
|
+
"\x04\x03\x04\x03\x04\x03\x04\x03\x04\x03\x04\x03\x05\x03\x05\x03\x06\x03" +
|
|
95
|
+
"\x06\x03\x07\x03\x07\x03\b\x03\b\x03\b\x03\b\x03\b\x03\b\x03\b\x03\t\x03" +
|
|
96
|
+
"\t\x03\t\x03\t\x03\t\x03\t\x03\t\x03\n\x03\n\x03\n\x03\n\x03\n\x03\n\x03" +
|
|
97
|
+
"\n\x03\n\x03\v\x03\v\x03\v\x03\v\x03\f\x03\f\x03\f\x03\f\x03\f\x03\f\x03" +
|
|
98
|
+
"\f\x03\r\x03\r\x07\r]\n\r\f\r\x0E\r`\v\r\x03\x0E\x03\x0E\x07\x0Ed\n\x0E" +
|
|
99
|
+
"\f\x0E\x0E\x0Eg\v\x0E\x03\x0F\x06\x0Fj\n\x0F\r\x0F\x0E\x0Fk\x03\x0F\x03" +
|
|
100
|
+
"\x0F\x02\x02\x02\x10\x03\x02\x03\x05\x02\x04\x07\x02\x05\t\x02\x06\v\x02" +
|
|
101
|
+
"\x07\r\x02\b\x0F\x02\t\x11\x02\n\x13\x02\v\x15\x02\f\x17\x02\r\x19\x02" +
|
|
102
|
+
"\x0E\x1B\x02\x0F\x1D\x02\x10\x03\x02\x06\x04\x02aac|\x06\x022;C\\aac|" +
|
|
103
|
+
"\x03\x02C\\\x05\x02\v\f\x0F\x0F\"\"\x02q\x02\x03\x03\x02\x02\x02\x02\x05" +
|
|
104
|
+
"\x03\x02\x02\x02\x02\x07\x03\x02\x02\x02\x02\t\x03\x02\x02\x02\x02\v\x03" +
|
|
105
|
+
"\x02\x02\x02\x02\r\x03\x02\x02\x02\x02\x0F\x03\x02\x02\x02\x02\x11\x03" +
|
|
106
|
+
"\x02\x02\x02\x02\x13\x03\x02\x02\x02\x02\x15\x03\x02\x02\x02\x02\x17\x03" +
|
|
107
|
+
"\x02\x02\x02\x02\x19\x03\x02\x02\x02\x02\x1B\x03\x02\x02\x02\x02\x1D\x03" +
|
|
108
|
+
"\x02\x02\x02\x03\x1F\x03\x02\x02\x02\x05&\x03\x02\x02\x02\x07-\x03\x02" +
|
|
109
|
+
"\x02\x02\t3\x03\x02\x02\x02\v5\x03\x02\x02\x02\r7\x03\x02\x02\x02\x0F" +
|
|
110
|
+
"9\x03\x02\x02\x02\x11@\x03\x02\x02\x02\x13G\x03\x02\x02\x02\x15O\x03\x02" +
|
|
111
|
+
"\x02\x02\x17S\x03\x02\x02\x02\x19Z\x03\x02\x02\x02\x1Ba\x03\x02\x02\x02" +
|
|
112
|
+
"\x1Di\x03\x02\x02\x02\x1F \x07o\x02\x02 !\x07q\x02\x02!\"\x07f\x02\x02" +
|
|
113
|
+
"\"#\x07w\x02\x02#$\x07n\x02\x02$%\x07g\x02\x02%\x04\x03\x02\x02\x02&\'" +
|
|
114
|
+
"\x07r\x02\x02\'(\x07c\x02\x02()\x07t\x02\x02)*\x07g\x02\x02*+\x07p\x02" +
|
|
115
|
+
"\x02+,\x07v\x02\x02,\x06\x03\x02\x02\x02-.\x07r\x02\x02./\x07t\x02\x02" +
|
|
116
|
+
"/0\x07q\x02\x0201\x07r\x02\x0212\x07u\x02\x022\b\x03\x02\x02\x0234\x07" +
|
|
117
|
+
"}\x02\x024\n\x03\x02\x02\x0256\x07\x7F\x02\x026\f\x03\x02\x02\x0278\x07" +
|
|
118
|
+
"<\x02\x028\x0E\x03\x02\x02\x029:\x07u\x02\x02:;\x07v\x02\x02;<\x07t\x02" +
|
|
119
|
+
"\x02<=\x07k\x02\x02=>\x07p\x02\x02>?\x07i\x02\x02?\x10\x03\x02\x02\x02" +
|
|
120
|
+
"@A\x07p\x02\x02AB\x07w\x02\x02BC\x07o\x02\x02CD\x07d\x02\x02DE\x07g\x02" +
|
|
121
|
+
"\x02EF\x07t\x02\x02F\x12\x03\x02\x02\x02GH\x07d\x02\x02HI\x07q\x02\x02" +
|
|
122
|
+
"IJ\x07q\x02\x02JK\x07n\x02\x02KL\x07g\x02\x02LM\x07c\x02\x02MN\x07p\x02" +
|
|
123
|
+
"\x02N\x14\x03\x02\x02\x02OP\x07c\x02\x02PQ\x07p\x02\x02QR\x07{\x02\x02" +
|
|
124
|
+
"R\x16\x03\x02\x02\x02ST\x07q\x02\x02TU\x07d\x02\x02UV\x07l\x02\x02VW\x07" +
|
|
125
|
+
"g\x02\x02WX\x07e\x02\x02XY\x07v\x02\x02Y\x18\x03\x02\x02\x02Z^\t\x02\x02" +
|
|
126
|
+
"\x02[]\t\x03\x02\x02\\[\x03\x02\x02\x02]`\x03\x02\x02\x02^\\\x03\x02\x02" +
|
|
127
|
+
"\x02^_\x03\x02\x02\x02_\x1A\x03\x02\x02\x02`^\x03\x02\x02\x02ae\t\x04" +
|
|
128
|
+
"\x02\x02bd\t\x03\x02\x02cb\x03\x02\x02\x02dg\x03\x02\x02\x02ec\x03\x02" +
|
|
129
|
+
"\x02\x02ef\x03\x02\x02\x02f\x1C\x03\x02\x02\x02ge\x03\x02\x02\x02hj\t" +
|
|
130
|
+
"\x05\x02\x02ih\x03\x02\x02\x02jk\x03\x02\x02\x02ki\x03\x02\x02\x02kl\x03" +
|
|
131
|
+
"\x02\x02\x02lm\x03\x02\x02\x02mn\b\x0F\x02\x02n\x1E\x03\x02\x02\x02\x06" +
|
|
132
|
+
"\x02^ek\x03\b\x02\x02";
|
|
133
|
+
public static __ATN: ATN;
|
|
134
|
+
public static get _ATN(): ATN {
|
|
135
|
+
if (!BlendMDPLexer.__ATN) {
|
|
136
|
+
BlendMDPLexer.__ATN = new ATNDeserializer().deserialize(Utils.toCharArray(BlendMDPLexer._serializedATN));
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
return BlendMDPLexer.__ATN;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
}
|
|
143
|
+
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
// Generated from src/grammar/BlendMDP.g4 by ANTLR 4.9.0-SNAPSHOT
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
import { ParseTreeListener } from "antlr4ts/tree/ParseTreeListener";
|
|
5
|
+
|
|
6
|
+
import { ProgramContext } from "./BlendMDPParser";
|
|
7
|
+
import { ModuleDefinitionContext } from "./BlendMDPParser";
|
|
8
|
+
import { ParentDefinitionContext } from "./BlendMDPParser";
|
|
9
|
+
import { PropsDefinitionContext } from "./BlendMDPParser";
|
|
10
|
+
import { PropsBodyDefinitionContext } from "./BlendMDPParser";
|
|
11
|
+
import { PrimitiveTypeContext } from "./BlendMDPParser";
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* This interface defines a complete listener for a parse tree produced by
|
|
16
|
+
* `BlendMDPParser`.
|
|
17
|
+
*/
|
|
18
|
+
export interface BlendMDPListener extends ParseTreeListener {
|
|
19
|
+
/**
|
|
20
|
+
* Enter a parse tree produced by `BlendMDPParser.program`.
|
|
21
|
+
* @param ctx the parse tree
|
|
22
|
+
*/
|
|
23
|
+
enterProgram?: (ctx: ProgramContext) => void;
|
|
24
|
+
/**
|
|
25
|
+
* Exit a parse tree produced by `BlendMDPParser.program`.
|
|
26
|
+
* @param ctx the parse tree
|
|
27
|
+
*/
|
|
28
|
+
exitProgram?: (ctx: ProgramContext) => void;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Enter a parse tree produced by `BlendMDPParser.moduleDefinition`.
|
|
32
|
+
* @param ctx the parse tree
|
|
33
|
+
*/
|
|
34
|
+
enterModuleDefinition?: (ctx: ModuleDefinitionContext) => void;
|
|
35
|
+
/**
|
|
36
|
+
* Exit a parse tree produced by `BlendMDPParser.moduleDefinition`.
|
|
37
|
+
* @param ctx the parse tree
|
|
38
|
+
*/
|
|
39
|
+
exitModuleDefinition?: (ctx: ModuleDefinitionContext) => void;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Enter a parse tree produced by `BlendMDPParser.parentDefinition`.
|
|
43
|
+
* @param ctx the parse tree
|
|
44
|
+
*/
|
|
45
|
+
enterParentDefinition?: (ctx: ParentDefinitionContext) => void;
|
|
46
|
+
/**
|
|
47
|
+
* Exit a parse tree produced by `BlendMDPParser.parentDefinition`.
|
|
48
|
+
* @param ctx the parse tree
|
|
49
|
+
*/
|
|
50
|
+
exitParentDefinition?: (ctx: ParentDefinitionContext) => void;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Enter a parse tree produced by `BlendMDPParser.propsDefinition`.
|
|
54
|
+
* @param ctx the parse tree
|
|
55
|
+
*/
|
|
56
|
+
enterPropsDefinition?: (ctx: PropsDefinitionContext) => void;
|
|
57
|
+
/**
|
|
58
|
+
* Exit a parse tree produced by `BlendMDPParser.propsDefinition`.
|
|
59
|
+
* @param ctx the parse tree
|
|
60
|
+
*/
|
|
61
|
+
exitPropsDefinition?: (ctx: PropsDefinitionContext) => void;
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Enter a parse tree produced by `BlendMDPParser.propsBodyDefinition`.
|
|
65
|
+
* @param ctx the parse tree
|
|
66
|
+
*/
|
|
67
|
+
enterPropsBodyDefinition?: (ctx: PropsBodyDefinitionContext) => void;
|
|
68
|
+
/**
|
|
69
|
+
* Exit a parse tree produced by `BlendMDPParser.propsBodyDefinition`.
|
|
70
|
+
* @param ctx the parse tree
|
|
71
|
+
*/
|
|
72
|
+
exitPropsBodyDefinition?: (ctx: PropsBodyDefinitionContext) => void;
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Enter a parse tree produced by `BlendMDPParser.primitiveType`.
|
|
76
|
+
* @param ctx the parse tree
|
|
77
|
+
*/
|
|
78
|
+
enterPrimitiveType?: (ctx: PrimitiveTypeContext) => void;
|
|
79
|
+
/**
|
|
80
|
+
* Exit a parse tree produced by `BlendMDPParser.primitiveType`.
|
|
81
|
+
* @param ctx the parse tree
|
|
82
|
+
*/
|
|
83
|
+
exitPrimitiveType?: (ctx: PrimitiveTypeContext) => void;
|
|
84
|
+
}
|
|
85
|
+
|