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,28 @@
|
|
|
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
|
+
PATH_IDENTIFIER=13
|
|
14
|
+
IDENTIFIER=14
|
|
15
|
+
CAPITAL_IDENTIFIER=15
|
|
16
|
+
WS=16
|
|
17
|
+
'module'=1
|
|
18
|
+
'screen'=2
|
|
19
|
+
','=3
|
|
20
|
+
'under'=4
|
|
21
|
+
'component'=5
|
|
22
|
+
'layout'=6
|
|
23
|
+
'('=7
|
|
24
|
+
')'=8
|
|
25
|
+
'{'=9
|
|
26
|
+
'}'=10
|
|
27
|
+
'page'=11
|
|
28
|
+
'view'=12
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
token literal names:
|
|
2
|
+
null
|
|
3
|
+
'module'
|
|
4
|
+
'screen'
|
|
5
|
+
','
|
|
6
|
+
'under'
|
|
7
|
+
'component'
|
|
8
|
+
'layout'
|
|
9
|
+
'('
|
|
10
|
+
')'
|
|
11
|
+
'{'
|
|
12
|
+
'}'
|
|
13
|
+
'page'
|
|
14
|
+
'view'
|
|
15
|
+
null
|
|
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
|
+
PATH_IDENTIFIER
|
|
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
|
+
PATH_IDENTIFIER
|
|
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, 122, 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, 3, 3, 3, 3, 4, 3, 4, 3, 5, 3, 5, 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, 7, 3, 7, 3, 7, 3, 7, 3, 7, 3, 7, 3, 7, 3, 8, 3, 8, 3, 9, 3, 9, 3, 10, 3, 10, 3, 11, 3, 11, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 13, 3, 13, 3, 13, 3, 13, 3, 13, 3, 14, 3, 14, 7, 14, 95, 10, 14, 12, 14, 14, 14, 98, 11, 14, 3, 14, 3, 14, 3, 15, 3, 15, 7, 15, 104, 10, 15, 12, 15, 14, 15, 107, 11, 15, 3, 16, 3, 16, 7, 16, 111, 10, 16, 12, 16, 14, 16, 114, 11, 16, 3, 17, 6, 17, 117, 10, 17, 13, 17, 14, 17, 118, 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, 7, 6, 2, 49, 59, 67, 92, 97, 97, 99, 124, 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, 125, 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, 49, 3, 2, 2, 2, 9, 51, 3, 2, 2, 2, 11, 57, 3, 2, 2, 2, 13, 67, 3, 2, 2, 2, 15, 74, 3, 2, 2, 2, 17, 76, 3, 2, 2, 2, 19, 78, 3, 2, 2, 2, 21, 80, 3, 2, 2, 2, 23, 82, 3, 2, 2, 2, 25, 87, 3, 2, 2, 2, 27, 92, 3, 2, 2, 2, 29, 101, 3, 2, 2, 2, 31, 108, 3, 2, 2, 2, 33, 116, 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, 117, 2, 2, 43, 44, 7, 101, 2, 2, 44, 45, 7, 116, 2, 2, 45, 46, 7, 103, 2, 2, 46, 47, 7, 103, 2, 2, 47, 48, 7, 112, 2, 2, 48, 6, 3, 2, 2, 2, 49, 50, 7, 46, 2, 2, 50, 8, 3, 2, 2, 2, 51, 52, 7, 119, 2, 2, 52, 53, 7, 112, 2, 2, 53, 54, 7, 102, 2, 2, 54, 55, 7, 103, 2, 2, 55, 56, 7, 116, 2, 2, 56, 10, 3, 2, 2, 2, 57, 58, 7, 101, 2, 2, 58, 59, 7, 113, 2, 2, 59, 60, 7, 111, 2, 2, 60, 61, 7, 114, 2, 2, 61, 62, 7, 113, 2, 2, 62, 63, 7, 112, 2, 2, 63, 64, 7, 103, 2, 2, 64, 65, 7, 112, 2, 2, 65, 66, 7, 118, 2, 2, 66, 12, 3, 2, 2, 2, 67, 68, 7, 110, 2, 2, 68, 69, 7, 99, 2, 2, 69, 70, 7, 123, 2, 2, 70, 71, 7, 113, 2, 2, 71, 72, 7, 119, 2, 2, 72, 73, 7, 118, 2, 2, 73, 14, 3, 2, 2, 2, 74, 75, 7, 42, 2, 2, 75, 16, 3, 2, 2, 2, 76, 77, 7, 43, 2, 2, 77, 18, 3, 2, 2, 2, 78, 79, 7, 125, 2, 2, 79, 20, 3, 2, 2, 2, 80, 81, 7, 127, 2, 2, 81, 22, 3, 2, 2, 2, 82, 83, 7, 114, 2, 2, 83, 84, 7, 99, 2, 2, 84, 85, 7, 105, 2, 2, 85, 86, 7, 103, 2, 2, 86, 24, 3, 2, 2, 2, 87, 88, 7, 120, 2, 2, 88, 89, 7, 107, 2, 2, 89, 90, 7, 103, 2, 2, 90, 91, 7, 121, 2, 2, 91, 26, 3, 2, 2, 2, 92, 96, 7, 36, 2, 2, 93, 95, 9, 2, 2, 2, 94, 93, 3, 2, 2, 2, 95, 98, 3, 2, 2, 2, 96, 94, 3, 2, 2, 2, 96, 97, 3, 2, 2, 2, 97, 99, 3, 2, 2, 2, 98, 96, 3, 2, 2, 2, 99, 100, 7, 36, 2, 2, 100, 28, 3, 2, 2, 2, 101, 105, 9, 3, 2, 2, 102, 104, 9, 4, 2, 2, 103, 102, 3, 2, 2, 2, 104, 107, 3, 2, 2, 2, 105, 103, 3, 2, 2, 2, 105, 106, 3, 2, 2, 2, 106, 30, 3, 2, 2, 2, 107, 105, 3, 2, 2, 2, 108, 112, 9, 5, 2, 2, 109, 111, 9, 4, 2, 2, 110, 109, 3, 2, 2, 2, 111, 114, 3, 2, 2, 2, 112, 110, 3, 2, 2, 2, 112, 113, 3, 2, 2, 2, 113, 32, 3, 2, 2, 2, 114, 112, 3, 2, 2, 2, 115, 117, 9, 6, 2, 2, 116, 115, 3, 2, 2, 2, 117, 118, 3, 2, 2, 2, 118, 116, 3, 2, 2, 2, 118, 119, 3, 2, 2, 2, 119, 120, 3, 2, 2, 2, 120, 121, 8, 17, 2, 2, 121, 34, 3, 2, 2, 2, 7, 2, 96, 105, 112, 118, 3, 8, 2, 2]
|
|
@@ -0,0 +1,28 @@
|
|
|
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
|
+
PATH_IDENTIFIER=13
|
|
14
|
+
IDENTIFIER=14
|
|
15
|
+
CAPITAL_IDENTIFIER=15
|
|
16
|
+
WS=16
|
|
17
|
+
'module'=1
|
|
18
|
+
'screen'=2
|
|
19
|
+
','=3
|
|
20
|
+
'under'=4
|
|
21
|
+
'component'=5
|
|
22
|
+
'layout'=6
|
|
23
|
+
'('=7
|
|
24
|
+
')'=8
|
|
25
|
+
'{'=9
|
|
26
|
+
'}'=10
|
|
27
|
+
'page'=11
|
|
28
|
+
'view'=12
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
// Generated from src/grammar/BlendReact.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 BlendReactLexer 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 PATH_IDENTIFIER = 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", "PATH_IDENTIFIER", "IDENTIFIER", "CAPITAL_IDENTIFIER",
|
|
49
|
+
"WS",
|
|
50
|
+
];
|
|
51
|
+
|
|
52
|
+
private static readonly _LITERAL_NAMES: Array<string | undefined> = [
|
|
53
|
+
undefined, "'module'", "'screen'", "','", "'under'", "'component'", "'layout'",
|
|
54
|
+
"'('", "')'", "'{'", "'}'", "'page'", "'view'",
|
|
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, "PATH_IDENTIFIER",
|
|
59
|
+
"IDENTIFIER", "CAPITAL_IDENTIFIER", "WS",
|
|
60
|
+
];
|
|
61
|
+
public static readonly VOCABULARY: Vocabulary = new VocabularyImpl(BlendReactLexer._LITERAL_NAMES, BlendReactLexer._SYMBOLIC_NAMES, []);
|
|
62
|
+
|
|
63
|
+
// @Override
|
|
64
|
+
// @NotNull
|
|
65
|
+
public get vocabulary(): Vocabulary {
|
|
66
|
+
return BlendReactLexer.VOCABULARY;
|
|
67
|
+
}
|
|
68
|
+
// tslint:enable:no-trailing-whitespace
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
constructor(input: CharStream) {
|
|
72
|
+
super(input);
|
|
73
|
+
this._interp = new LexerATNSimulator(BlendReactLexer._ATN, this);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
// @Override
|
|
77
|
+
public get grammarFileName(): string { return "BlendReact.g4"; }
|
|
78
|
+
|
|
79
|
+
// @Override
|
|
80
|
+
public get ruleNames(): string[] { return BlendReactLexer.ruleNames; }
|
|
81
|
+
|
|
82
|
+
// @Override
|
|
83
|
+
public get serializedATN(): string { return BlendReactLexer._serializedATN; }
|
|
84
|
+
|
|
85
|
+
// @Override
|
|
86
|
+
public get channelNames(): string[] { return BlendReactLexer.channelNames; }
|
|
87
|
+
|
|
88
|
+
// @Override
|
|
89
|
+
public get modeNames(): string[] { return BlendReactLexer.modeNames; }
|
|
90
|
+
|
|
91
|
+
public static readonly _serializedATN: string =
|
|
92
|
+
"\x03\uC91D\uCABA\u058D\uAFBA\u4F53\u0607\uEA8B\uC241\x02\x12z\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\x03\x03\x03\x03\x04\x03\x04\x03\x05\x03\x05\x03\x05\x03\x05" +
|
|
98
|
+
"\x03\x05\x03\x05\x03\x06\x03\x06\x03\x06\x03\x06\x03\x06\x03\x06\x03\x06" +
|
|
99
|
+
"\x03\x06\x03\x06\x03\x06\x03\x07\x03\x07\x03\x07\x03\x07\x03\x07\x03\x07" +
|
|
100
|
+
"\x03\x07\x03\b\x03\b\x03\t\x03\t\x03\n\x03\n\x03\v\x03\v\x03\f\x03\f\x03" +
|
|
101
|
+
"\f\x03\f\x03\f\x03\r\x03\r\x03\r\x03\r\x03\r\x03\x0E\x03\x0E\x07\x0E_" +
|
|
102
|
+
"\n\x0E\f\x0E\x0E\x0Eb\v\x0E\x03\x0E\x03\x0E\x03\x0F\x03\x0F\x07\x0Fh\n" +
|
|
103
|
+
"\x0F\f\x0F\x0E\x0Fk\v\x0F\x03\x10\x03\x10\x07\x10o\n\x10\f\x10\x0E\x10" +
|
|
104
|
+
"r\v\x10\x03\x11\x06\x11u\n\x11\r\x11\x0E\x11v\x03\x11\x03\x11\x02\x02" +
|
|
105
|
+
"\x02\x12\x03\x02\x03\x05\x02\x04\x07\x02\x05\t\x02\x06\v\x02\x07\r\x02" +
|
|
106
|
+
"\b\x0F\x02\t\x11\x02\n\x13\x02\v\x15\x02\f\x17\x02\r\x19\x02\x0E\x1B\x02" +
|
|
107
|
+
"\x0F\x1D\x02\x10\x1F\x02\x11!\x02\x12\x03\x02\x07\x06\x021;C\\aac|\x04" +
|
|
108
|
+
"\x02aac|\x06\x022;C\\aac|\x03\x02C\\\x05\x02\v\f\x0F\x0F\"\"\x02}\x02" +
|
|
109
|
+
"\x03\x03\x02\x02\x02\x02\x05\x03\x02\x02\x02\x02\x07\x03\x02\x02\x02\x02" +
|
|
110
|
+
"\t\x03\x02\x02\x02\x02\v\x03\x02\x02\x02\x02\r\x03\x02\x02\x02\x02\x0F" +
|
|
111
|
+
"\x03\x02\x02\x02\x02\x11\x03\x02\x02\x02\x02\x13\x03\x02\x02\x02\x02\x15" +
|
|
112
|
+
"\x03\x02\x02\x02\x02\x17\x03\x02\x02\x02\x02\x19\x03\x02\x02\x02\x02\x1B" +
|
|
113
|
+
"\x03\x02\x02\x02\x02\x1D\x03\x02\x02\x02\x02\x1F\x03\x02\x02\x02\x02!" +
|
|
114
|
+
"\x03\x02\x02\x02\x03#\x03\x02\x02\x02\x05*\x03\x02\x02\x02\x071\x03\x02" +
|
|
115
|
+
"\x02\x02\t3\x03\x02\x02\x02\v9\x03\x02\x02\x02\rC\x03\x02\x02\x02\x0F" +
|
|
116
|
+
"J\x03\x02\x02\x02\x11L\x03\x02\x02\x02\x13N\x03\x02\x02\x02\x15P\x03\x02" +
|
|
117
|
+
"\x02\x02\x17R\x03\x02\x02\x02\x19W\x03\x02\x02\x02\x1B\\\x03\x02\x02\x02" +
|
|
118
|
+
"\x1De\x03\x02\x02\x02\x1Fl\x03\x02\x02\x02!t\x03\x02\x02\x02#$\x07o\x02" +
|
|
119
|
+
"\x02$%\x07q\x02\x02%&\x07f\x02\x02&\'\x07w\x02\x02\'(\x07n\x02\x02()\x07" +
|
|
120
|
+
"g\x02\x02)\x04\x03\x02\x02\x02*+\x07u\x02\x02+,\x07e\x02\x02,-\x07t\x02" +
|
|
121
|
+
"\x02-.\x07g\x02\x02./\x07g\x02\x02/0\x07p\x02\x020\x06\x03\x02\x02\x02" +
|
|
122
|
+
"12\x07.\x02\x022\b\x03\x02\x02\x0234\x07w\x02\x0245\x07p\x02\x0256\x07" +
|
|
123
|
+
"f\x02\x0267\x07g\x02\x0278\x07t\x02\x028\n\x03\x02\x02\x029:\x07e\x02" +
|
|
124
|
+
"\x02:;\x07q\x02\x02;<\x07o\x02\x02<=\x07r\x02\x02=>\x07q\x02\x02>?\x07" +
|
|
125
|
+
"p\x02\x02?@\x07g\x02\x02@A\x07p\x02\x02AB\x07v\x02\x02B\f\x03\x02\x02" +
|
|
126
|
+
"\x02CD\x07n\x02\x02DE\x07c\x02\x02EF\x07{\x02\x02FG\x07q\x02\x02GH\x07" +
|
|
127
|
+
"w\x02\x02HI\x07v\x02\x02I\x0E\x03\x02\x02\x02JK\x07*\x02\x02K\x10\x03" +
|
|
128
|
+
"\x02\x02\x02LM\x07+\x02\x02M\x12\x03\x02\x02\x02NO\x07}\x02\x02O\x14\x03" +
|
|
129
|
+
"\x02\x02\x02PQ\x07\x7F\x02\x02Q\x16\x03\x02\x02\x02RS\x07r\x02\x02ST\x07" +
|
|
130
|
+
"c\x02\x02TU\x07i\x02\x02UV\x07g\x02\x02V\x18\x03\x02\x02\x02WX\x07x\x02" +
|
|
131
|
+
"\x02XY\x07k\x02\x02YZ\x07g\x02\x02Z[\x07y\x02\x02[\x1A\x03\x02\x02\x02" +
|
|
132
|
+
"\\`\x07$\x02\x02]_\t\x02\x02\x02^]\x03\x02\x02\x02_b\x03\x02\x02\x02`" +
|
|
133
|
+
"^\x03\x02\x02\x02`a\x03\x02\x02\x02ac\x03\x02\x02\x02b`\x03\x02\x02\x02" +
|
|
134
|
+
"cd\x07$\x02\x02d\x1C\x03\x02\x02\x02ei\t\x03\x02\x02fh\t\x04\x02\x02g" +
|
|
135
|
+
"f\x03\x02\x02\x02hk\x03\x02\x02\x02ig\x03\x02\x02\x02ij\x03\x02\x02\x02" +
|
|
136
|
+
"j\x1E\x03\x02\x02\x02ki\x03\x02\x02\x02lp\t\x05\x02\x02mo\t\x04\x02\x02" +
|
|
137
|
+
"nm\x03\x02\x02\x02or\x03\x02\x02\x02pn\x03\x02\x02\x02pq\x03\x02\x02\x02" +
|
|
138
|
+
"q \x03\x02\x02\x02rp\x03\x02\x02\x02su\t\x06\x02\x02ts\x03\x02\x02\x02" +
|
|
139
|
+
"uv\x03\x02\x02\x02vt\x03\x02\x02\x02vw\x03\x02\x02\x02wx\x03\x02\x02\x02" +
|
|
140
|
+
"xy\b\x11\x02\x02y\"\x03\x02\x02\x02\x07\x02`ipv\x03\b\x02\x02";
|
|
141
|
+
public static __ATN: ATN;
|
|
142
|
+
public static get _ATN(): ATN {
|
|
143
|
+
if (!BlendReactLexer.__ATN) {
|
|
144
|
+
BlendReactLexer.__ATN = new ATNDeserializer().deserialize(Utils.toCharArray(BlendReactLexer._serializedATN));
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
return BlendReactLexer.__ATN;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
}
|
|
151
|
+
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
// Generated from src/grammar/BlendReact.g4 by ANTLR 4.9.0-SNAPSHOT
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
import { ParseTreeListener } from "antlr4ts/tree/ParseTreeListener";
|
|
5
|
+
|
|
6
|
+
import { ProgramContext } from "./BlendReactParser";
|
|
7
|
+
import { ModuleDefinitionContext } from "./BlendReactParser";
|
|
8
|
+
import { ScreenDefenitionContext } from "./BlendReactParser";
|
|
9
|
+
import { ComponentDefenitionContext } from "./BlendReactParser";
|
|
10
|
+
import { LayoutDefinitionContext } from "./BlendReactParser";
|
|
11
|
+
import { PageDefinitionContext } from "./BlendReactParser";
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* This interface defines a complete listener for a parse tree produced by
|
|
16
|
+
* `BlendReactParser`.
|
|
17
|
+
*/
|
|
18
|
+
export interface BlendReactListener extends ParseTreeListener {
|
|
19
|
+
/**
|
|
20
|
+
* Enter a parse tree produced by `BlendReactParser.program`.
|
|
21
|
+
* @param ctx the parse tree
|
|
22
|
+
*/
|
|
23
|
+
enterProgram?: (ctx: ProgramContext) => void;
|
|
24
|
+
/**
|
|
25
|
+
* Exit a parse tree produced by `BlendReactParser.program`.
|
|
26
|
+
* @param ctx the parse tree
|
|
27
|
+
*/
|
|
28
|
+
exitProgram?: (ctx: ProgramContext) => void;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Enter a parse tree produced by `BlendReactParser.moduleDefinition`.
|
|
32
|
+
* @param ctx the parse tree
|
|
33
|
+
*/
|
|
34
|
+
enterModuleDefinition?: (ctx: ModuleDefinitionContext) => void;
|
|
35
|
+
/**
|
|
36
|
+
* Exit a parse tree produced by `BlendReactParser.moduleDefinition`.
|
|
37
|
+
* @param ctx the parse tree
|
|
38
|
+
*/
|
|
39
|
+
exitModuleDefinition?: (ctx: ModuleDefinitionContext) => void;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Enter a parse tree produced by `BlendReactParser.screenDefenition`.
|
|
43
|
+
* @param ctx the parse tree
|
|
44
|
+
*/
|
|
45
|
+
enterScreenDefenition?: (ctx: ScreenDefenitionContext) => void;
|
|
46
|
+
/**
|
|
47
|
+
* Exit a parse tree produced by `BlendReactParser.screenDefenition`.
|
|
48
|
+
* @param ctx the parse tree
|
|
49
|
+
*/
|
|
50
|
+
exitScreenDefenition?: (ctx: ScreenDefenitionContext) => void;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Enter a parse tree produced by `BlendReactParser.componentDefenition`.
|
|
54
|
+
* @param ctx the parse tree
|
|
55
|
+
*/
|
|
56
|
+
enterComponentDefenition?: (ctx: ComponentDefenitionContext) => void;
|
|
57
|
+
/**
|
|
58
|
+
* Exit a parse tree produced by `BlendReactParser.componentDefenition`.
|
|
59
|
+
* @param ctx the parse tree
|
|
60
|
+
*/
|
|
61
|
+
exitComponentDefenition?: (ctx: ComponentDefenitionContext) => void;
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Enter a parse tree produced by `BlendReactParser.layoutDefinition`.
|
|
65
|
+
* @param ctx the parse tree
|
|
66
|
+
*/
|
|
67
|
+
enterLayoutDefinition?: (ctx: LayoutDefinitionContext) => void;
|
|
68
|
+
/**
|
|
69
|
+
* Exit a parse tree produced by `BlendReactParser.layoutDefinition`.
|
|
70
|
+
* @param ctx the parse tree
|
|
71
|
+
*/
|
|
72
|
+
exitLayoutDefinition?: (ctx: LayoutDefinitionContext) => void;
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Enter a parse tree produced by `BlendReactParser.pageDefinition`.
|
|
76
|
+
* @param ctx the parse tree
|
|
77
|
+
*/
|
|
78
|
+
enterPageDefinition?: (ctx: PageDefinitionContext) => void;
|
|
79
|
+
/**
|
|
80
|
+
* Exit a parse tree produced by `BlendReactParser.pageDefinition`.
|
|
81
|
+
* @param ctx the parse tree
|
|
82
|
+
*/
|
|
83
|
+
exitPageDefinition?: (ctx: PageDefinitionContext) => void;
|
|
84
|
+
}
|
|
85
|
+
|