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,646 @@
|
|
|
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 { FailedPredicateException } from "antlr4ts/FailedPredicateException";
|
|
7
|
+
import { NotNull } from "antlr4ts/Decorators";
|
|
8
|
+
import { NoViableAltException } from "antlr4ts/NoViableAltException";
|
|
9
|
+
import { Override } from "antlr4ts/Decorators";
|
|
10
|
+
import { Parser } from "antlr4ts/Parser";
|
|
11
|
+
import { ParserRuleContext } from "antlr4ts/ParserRuleContext";
|
|
12
|
+
import { ParserATNSimulator } from "antlr4ts/atn/ParserATNSimulator";
|
|
13
|
+
import { ParseTreeListener } from "antlr4ts/tree/ParseTreeListener";
|
|
14
|
+
import { ParseTreeVisitor } from "antlr4ts/tree/ParseTreeVisitor";
|
|
15
|
+
import { RecognitionException } from "antlr4ts/RecognitionException";
|
|
16
|
+
import { RuleContext } from "antlr4ts/RuleContext";
|
|
17
|
+
//import { RuleVersion } from "antlr4ts/RuleVersion";
|
|
18
|
+
import { TerminalNode } from "antlr4ts/tree/TerminalNode";
|
|
19
|
+
import { Token } from "antlr4ts/Token";
|
|
20
|
+
import { TokenStream } from "antlr4ts/TokenStream";
|
|
21
|
+
import { Vocabulary } from "antlr4ts/Vocabulary";
|
|
22
|
+
import { VocabularyImpl } from "antlr4ts/VocabularyImpl";
|
|
23
|
+
|
|
24
|
+
import * as Utils from "antlr4ts/misc/Utils";
|
|
25
|
+
|
|
26
|
+
import { BlendReactListener } from "./BlendReactListener";
|
|
27
|
+
|
|
28
|
+
export class BlendReactParser extends Parser {
|
|
29
|
+
public static readonly T__0 = 1;
|
|
30
|
+
public static readonly T__1 = 2;
|
|
31
|
+
public static readonly T__2 = 3;
|
|
32
|
+
public static readonly T__3 = 4;
|
|
33
|
+
public static readonly T__4 = 5;
|
|
34
|
+
public static readonly T__5 = 6;
|
|
35
|
+
public static readonly T__6 = 7;
|
|
36
|
+
public static readonly T__7 = 8;
|
|
37
|
+
public static readonly T__8 = 9;
|
|
38
|
+
public static readonly T__9 = 10;
|
|
39
|
+
public static readonly T__10 = 11;
|
|
40
|
+
public static readonly T__11 = 12;
|
|
41
|
+
public static readonly PATH_IDENTIFIER = 13;
|
|
42
|
+
public static readonly IDENTIFIER = 14;
|
|
43
|
+
public static readonly CAPITAL_IDENTIFIER = 15;
|
|
44
|
+
public static readonly WS = 16;
|
|
45
|
+
public static readonly RULE_program = 0;
|
|
46
|
+
public static readonly RULE_moduleDefinition = 1;
|
|
47
|
+
public static readonly RULE_screenDefenition = 2;
|
|
48
|
+
public static readonly RULE_componentDefenition = 3;
|
|
49
|
+
public static readonly RULE_layoutDefinition = 4;
|
|
50
|
+
public static readonly RULE_pageDefinition = 5;
|
|
51
|
+
// tslint:disable:no-trailing-whitespace
|
|
52
|
+
public static readonly ruleNames: string[] = [
|
|
53
|
+
"program", "moduleDefinition", "screenDefenition", "componentDefenition",
|
|
54
|
+
"layoutDefinition", "pageDefinition",
|
|
55
|
+
];
|
|
56
|
+
|
|
57
|
+
private static readonly _LITERAL_NAMES: Array<string | undefined> = [
|
|
58
|
+
undefined, "'module'", "'screen'", "','", "'under'", "'component'", "'layout'",
|
|
59
|
+
"'('", "')'", "'{'", "'}'", "'page'", "'view'",
|
|
60
|
+
];
|
|
61
|
+
private static readonly _SYMBOLIC_NAMES: Array<string | undefined> = [
|
|
62
|
+
undefined, undefined, undefined, undefined, undefined, undefined, undefined,
|
|
63
|
+
undefined, undefined, undefined, undefined, undefined, undefined, "PATH_IDENTIFIER",
|
|
64
|
+
"IDENTIFIER", "CAPITAL_IDENTIFIER", "WS",
|
|
65
|
+
];
|
|
66
|
+
public static readonly VOCABULARY: Vocabulary = new VocabularyImpl(BlendReactParser._LITERAL_NAMES, BlendReactParser._SYMBOLIC_NAMES, []);
|
|
67
|
+
|
|
68
|
+
// @Override
|
|
69
|
+
// @NotNull
|
|
70
|
+
public get vocabulary(): Vocabulary {
|
|
71
|
+
return BlendReactParser.VOCABULARY;
|
|
72
|
+
}
|
|
73
|
+
// tslint:enable:no-trailing-whitespace
|
|
74
|
+
|
|
75
|
+
// @Override
|
|
76
|
+
public get grammarFileName(): string { return "BlendReact.g4"; }
|
|
77
|
+
|
|
78
|
+
// @Override
|
|
79
|
+
public get ruleNames(): string[] { return BlendReactParser.ruleNames; }
|
|
80
|
+
|
|
81
|
+
// @Override
|
|
82
|
+
public get serializedATN(): string { return BlendReactParser._serializedATN; }
|
|
83
|
+
|
|
84
|
+
protected createFailedPredicateException(predicate?: string, message?: string): FailedPredicateException {
|
|
85
|
+
return new FailedPredicateException(this, predicate, message);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
constructor(input: TokenStream) {
|
|
89
|
+
super(input);
|
|
90
|
+
this._interp = new ParserATNSimulator(BlendReactParser._ATN, this);
|
|
91
|
+
}
|
|
92
|
+
// @RuleVersion(0)
|
|
93
|
+
public program(): ProgramContext {
|
|
94
|
+
let _localctx: ProgramContext = new ProgramContext(this._ctx, this.state);
|
|
95
|
+
this.enterRule(_localctx, 0, BlendReactParser.RULE_program);
|
|
96
|
+
let _la: number;
|
|
97
|
+
try {
|
|
98
|
+
this.enterOuterAlt(_localctx, 1);
|
|
99
|
+
{
|
|
100
|
+
this.state = 12;
|
|
101
|
+
this.moduleDefinition();
|
|
102
|
+
this.state = 16;
|
|
103
|
+
this._errHandler.sync(this);
|
|
104
|
+
_la = this._input.LA(1);
|
|
105
|
+
while (_la === BlendReactParser.T__4) {
|
|
106
|
+
{
|
|
107
|
+
{
|
|
108
|
+
this.state = 13;
|
|
109
|
+
this.componentDefenition();
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
this.state = 18;
|
|
113
|
+
this._errHandler.sync(this);
|
|
114
|
+
_la = this._input.LA(1);
|
|
115
|
+
}
|
|
116
|
+
this.state = 22;
|
|
117
|
+
this._errHandler.sync(this);
|
|
118
|
+
_la = this._input.LA(1);
|
|
119
|
+
while (_la === BlendReactParser.T__1) {
|
|
120
|
+
{
|
|
121
|
+
{
|
|
122
|
+
this.state = 19;
|
|
123
|
+
this.screenDefenition();
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
this.state = 24;
|
|
127
|
+
this._errHandler.sync(this);
|
|
128
|
+
_la = this._input.LA(1);
|
|
129
|
+
}
|
|
130
|
+
this.state = 28;
|
|
131
|
+
this._errHandler.sync(this);
|
|
132
|
+
_la = this._input.LA(1);
|
|
133
|
+
while (_la === BlendReactParser.T__5) {
|
|
134
|
+
{
|
|
135
|
+
{
|
|
136
|
+
this.state = 25;
|
|
137
|
+
this.layoutDefinition();
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
this.state = 30;
|
|
141
|
+
this._errHandler.sync(this);
|
|
142
|
+
_la = this._input.LA(1);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
catch (re) {
|
|
147
|
+
if (re instanceof RecognitionException) {
|
|
148
|
+
_localctx.exception = re;
|
|
149
|
+
this._errHandler.reportError(this, re);
|
|
150
|
+
this._errHandler.recover(this, re);
|
|
151
|
+
} else {
|
|
152
|
+
throw re;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
finally {
|
|
156
|
+
this.exitRule();
|
|
157
|
+
}
|
|
158
|
+
return _localctx;
|
|
159
|
+
}
|
|
160
|
+
// @RuleVersion(0)
|
|
161
|
+
public moduleDefinition(): ModuleDefinitionContext {
|
|
162
|
+
let _localctx: ModuleDefinitionContext = new ModuleDefinitionContext(this._ctx, this.state);
|
|
163
|
+
this.enterRule(_localctx, 2, BlendReactParser.RULE_moduleDefinition);
|
|
164
|
+
try {
|
|
165
|
+
this.enterOuterAlt(_localctx, 1);
|
|
166
|
+
{
|
|
167
|
+
this.state = 31;
|
|
168
|
+
this.match(BlendReactParser.T__0);
|
|
169
|
+
this.state = 32;
|
|
170
|
+
this.match(BlendReactParser.CAPITAL_IDENTIFIER);
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
catch (re) {
|
|
174
|
+
if (re instanceof RecognitionException) {
|
|
175
|
+
_localctx.exception = re;
|
|
176
|
+
this._errHandler.reportError(this, re);
|
|
177
|
+
this._errHandler.recover(this, re);
|
|
178
|
+
} else {
|
|
179
|
+
throw re;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
finally {
|
|
183
|
+
this.exitRule();
|
|
184
|
+
}
|
|
185
|
+
return _localctx;
|
|
186
|
+
}
|
|
187
|
+
// @RuleVersion(0)
|
|
188
|
+
public screenDefenition(): ScreenDefenitionContext {
|
|
189
|
+
let _localctx: ScreenDefenitionContext = new ScreenDefenitionContext(this._ctx, this.state);
|
|
190
|
+
this.enterRule(_localctx, 4, BlendReactParser.RULE_screenDefenition);
|
|
191
|
+
let _la: number;
|
|
192
|
+
try {
|
|
193
|
+
this.enterOuterAlt(_localctx, 1);
|
|
194
|
+
{
|
|
195
|
+
this.state = 34;
|
|
196
|
+
this.match(BlendReactParser.T__1);
|
|
197
|
+
this.state = 35;
|
|
198
|
+
this.match(BlendReactParser.CAPITAL_IDENTIFIER);
|
|
199
|
+
this.state = 40;
|
|
200
|
+
this._errHandler.sync(this);
|
|
201
|
+
_la = this._input.LA(1);
|
|
202
|
+
while (_la === BlendReactParser.T__2) {
|
|
203
|
+
{
|
|
204
|
+
{
|
|
205
|
+
this.state = 36;
|
|
206
|
+
this.match(BlendReactParser.T__2);
|
|
207
|
+
this.state = 37;
|
|
208
|
+
this.match(BlendReactParser.CAPITAL_IDENTIFIER);
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
this.state = 42;
|
|
212
|
+
this._errHandler.sync(this);
|
|
213
|
+
_la = this._input.LA(1);
|
|
214
|
+
}
|
|
215
|
+
this.state = 43;
|
|
216
|
+
this.match(BlendReactParser.T__3);
|
|
217
|
+
this.state = 44;
|
|
218
|
+
this.match(BlendReactParser.PATH_IDENTIFIER);
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
catch (re) {
|
|
222
|
+
if (re instanceof RecognitionException) {
|
|
223
|
+
_localctx.exception = re;
|
|
224
|
+
this._errHandler.reportError(this, re);
|
|
225
|
+
this._errHandler.recover(this, re);
|
|
226
|
+
} else {
|
|
227
|
+
throw re;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
finally {
|
|
231
|
+
this.exitRule();
|
|
232
|
+
}
|
|
233
|
+
return _localctx;
|
|
234
|
+
}
|
|
235
|
+
// @RuleVersion(0)
|
|
236
|
+
public componentDefenition(): ComponentDefenitionContext {
|
|
237
|
+
let _localctx: ComponentDefenitionContext = new ComponentDefenitionContext(this._ctx, this.state);
|
|
238
|
+
this.enterRule(_localctx, 6, BlendReactParser.RULE_componentDefenition);
|
|
239
|
+
let _la: number;
|
|
240
|
+
try {
|
|
241
|
+
this.enterOuterAlt(_localctx, 1);
|
|
242
|
+
{
|
|
243
|
+
this.state = 46;
|
|
244
|
+
this.match(BlendReactParser.T__4);
|
|
245
|
+
this.state = 47;
|
|
246
|
+
this.match(BlendReactParser.CAPITAL_IDENTIFIER);
|
|
247
|
+
this.state = 52;
|
|
248
|
+
this._errHandler.sync(this);
|
|
249
|
+
_la = this._input.LA(1);
|
|
250
|
+
while (_la === BlendReactParser.T__2) {
|
|
251
|
+
{
|
|
252
|
+
{
|
|
253
|
+
this.state = 48;
|
|
254
|
+
this.match(BlendReactParser.T__2);
|
|
255
|
+
this.state = 49;
|
|
256
|
+
this.match(BlendReactParser.CAPITAL_IDENTIFIER);
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
this.state = 54;
|
|
260
|
+
this._errHandler.sync(this);
|
|
261
|
+
_la = this._input.LA(1);
|
|
262
|
+
}
|
|
263
|
+
this.state = 55;
|
|
264
|
+
this.match(BlendReactParser.T__3);
|
|
265
|
+
this.state = 56;
|
|
266
|
+
this.match(BlendReactParser.PATH_IDENTIFIER);
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
catch (re) {
|
|
270
|
+
if (re instanceof RecognitionException) {
|
|
271
|
+
_localctx.exception = re;
|
|
272
|
+
this._errHandler.reportError(this, re);
|
|
273
|
+
this._errHandler.recover(this, re);
|
|
274
|
+
} else {
|
|
275
|
+
throw re;
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
finally {
|
|
279
|
+
this.exitRule();
|
|
280
|
+
}
|
|
281
|
+
return _localctx;
|
|
282
|
+
}
|
|
283
|
+
// @RuleVersion(0)
|
|
284
|
+
public layoutDefinition(): LayoutDefinitionContext {
|
|
285
|
+
let _localctx: LayoutDefinitionContext = new LayoutDefinitionContext(this._ctx, this.state);
|
|
286
|
+
this.enterRule(_localctx, 8, BlendReactParser.RULE_layoutDefinition);
|
|
287
|
+
let _la: number;
|
|
288
|
+
try {
|
|
289
|
+
this.enterOuterAlt(_localctx, 1);
|
|
290
|
+
{
|
|
291
|
+
this.state = 58;
|
|
292
|
+
this.match(BlendReactParser.T__5);
|
|
293
|
+
this.state = 59;
|
|
294
|
+
this.match(BlendReactParser.CAPITAL_IDENTIFIER);
|
|
295
|
+
this.state = 60;
|
|
296
|
+
this.match(BlendReactParser.T__6);
|
|
297
|
+
this.state = 61;
|
|
298
|
+
this.match(BlendReactParser.PATH_IDENTIFIER);
|
|
299
|
+
this.state = 62;
|
|
300
|
+
this.match(BlendReactParser.T__7);
|
|
301
|
+
this.state = 63;
|
|
302
|
+
this.match(BlendReactParser.T__8);
|
|
303
|
+
this.state = 67;
|
|
304
|
+
this._errHandler.sync(this);
|
|
305
|
+
_la = this._input.LA(1);
|
|
306
|
+
while (_la === BlendReactParser.T__10) {
|
|
307
|
+
{
|
|
308
|
+
{
|
|
309
|
+
this.state = 64;
|
|
310
|
+
this.pageDefinition();
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
this.state = 69;
|
|
314
|
+
this._errHandler.sync(this);
|
|
315
|
+
_la = this._input.LA(1);
|
|
316
|
+
}
|
|
317
|
+
this.state = 73;
|
|
318
|
+
this._errHandler.sync(this);
|
|
319
|
+
_la = this._input.LA(1);
|
|
320
|
+
while (_la === BlendReactParser.T__5) {
|
|
321
|
+
{
|
|
322
|
+
{
|
|
323
|
+
this.state = 70;
|
|
324
|
+
this.layoutDefinition();
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
this.state = 75;
|
|
328
|
+
this._errHandler.sync(this);
|
|
329
|
+
_la = this._input.LA(1);
|
|
330
|
+
}
|
|
331
|
+
this.state = 76;
|
|
332
|
+
this.match(BlendReactParser.T__9);
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
catch (re) {
|
|
336
|
+
if (re instanceof RecognitionException) {
|
|
337
|
+
_localctx.exception = re;
|
|
338
|
+
this._errHandler.reportError(this, re);
|
|
339
|
+
this._errHandler.recover(this, re);
|
|
340
|
+
} else {
|
|
341
|
+
throw re;
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
finally {
|
|
345
|
+
this.exitRule();
|
|
346
|
+
}
|
|
347
|
+
return _localctx;
|
|
348
|
+
}
|
|
349
|
+
// @RuleVersion(0)
|
|
350
|
+
public pageDefinition(): PageDefinitionContext {
|
|
351
|
+
let _localctx: PageDefinitionContext = new PageDefinitionContext(this._ctx, this.state);
|
|
352
|
+
this.enterRule(_localctx, 10, BlendReactParser.RULE_pageDefinition);
|
|
353
|
+
try {
|
|
354
|
+
this.enterOuterAlt(_localctx, 1);
|
|
355
|
+
{
|
|
356
|
+
this.state = 78;
|
|
357
|
+
this.match(BlendReactParser.T__10);
|
|
358
|
+
this.state = 79;
|
|
359
|
+
this.match(BlendReactParser.CAPITAL_IDENTIFIER);
|
|
360
|
+
this.state = 80;
|
|
361
|
+
this.match(BlendReactParser.T__6);
|
|
362
|
+
this.state = 81;
|
|
363
|
+
this.match(BlendReactParser.PATH_IDENTIFIER);
|
|
364
|
+
this.state = 82;
|
|
365
|
+
this.match(BlendReactParser.T__7);
|
|
366
|
+
this.state = 83;
|
|
367
|
+
this.match(BlendReactParser.T__11);
|
|
368
|
+
this.state = 84;
|
|
369
|
+
this.match(BlendReactParser.T__6);
|
|
370
|
+
this.state = 85;
|
|
371
|
+
this.match(BlendReactParser.CAPITAL_IDENTIFIER);
|
|
372
|
+
this.state = 86;
|
|
373
|
+
this.match(BlendReactParser.T__7);
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
catch (re) {
|
|
377
|
+
if (re instanceof RecognitionException) {
|
|
378
|
+
_localctx.exception = re;
|
|
379
|
+
this._errHandler.reportError(this, re);
|
|
380
|
+
this._errHandler.recover(this, re);
|
|
381
|
+
} else {
|
|
382
|
+
throw re;
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
finally {
|
|
386
|
+
this.exitRule();
|
|
387
|
+
}
|
|
388
|
+
return _localctx;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
public static readonly _serializedATN: string =
|
|
392
|
+
"\x03\uC91D\uCABA\u058D\uAFBA\u4F53\u0607\uEA8B\uC241\x03\x12[\x04\x02" +
|
|
393
|
+
"\t\x02\x04\x03\t\x03\x04\x04\t\x04\x04\x05\t\x05\x04\x06\t\x06\x04\x07" +
|
|
394
|
+
"\t\x07\x03\x02\x03\x02\x07\x02\x11\n\x02\f\x02\x0E\x02\x14\v\x02\x03\x02" +
|
|
395
|
+
"\x07\x02\x17\n\x02\f\x02\x0E\x02\x1A\v\x02\x03\x02\x07\x02\x1D\n\x02\f" +
|
|
396
|
+
"\x02\x0E\x02 \v\x02\x03\x03\x03\x03\x03\x03\x03\x04\x03\x04\x03\x04\x03" +
|
|
397
|
+
"\x04\x07\x04)\n\x04\f\x04\x0E\x04,\v\x04\x03\x04\x03\x04\x03\x04\x03\x05" +
|
|
398
|
+
"\x03\x05\x03\x05\x03\x05\x07\x055\n\x05\f\x05\x0E\x058\v\x05\x03\x05\x03" +
|
|
399
|
+
"\x05\x03\x05\x03\x06\x03\x06\x03\x06\x03\x06\x03\x06\x03\x06\x03\x06\x07" +
|
|
400
|
+
"\x06D\n\x06\f\x06\x0E\x06G\v\x06\x03\x06\x07\x06J\n\x06\f\x06\x0E\x06" +
|
|
401
|
+
"M\v\x06\x03\x06\x03\x06\x03\x07\x03\x07\x03\x07\x03\x07\x03\x07\x03\x07" +
|
|
402
|
+
"\x03\x07\x03\x07\x03\x07\x03\x07\x03\x07\x02\x02\x02\b\x02\x02\x04\x02" +
|
|
403
|
+
"\x06\x02\b\x02\n\x02\f\x02\x02\x02\x02[\x02\x0E\x03\x02\x02\x02\x04!\x03" +
|
|
404
|
+
"\x02\x02\x02\x06$\x03\x02\x02\x02\b0\x03\x02\x02\x02\n<\x03\x02\x02\x02" +
|
|
405
|
+
"\fP\x03\x02\x02\x02\x0E\x12\x05\x04\x03\x02\x0F\x11\x05\b\x05\x02\x10" +
|
|
406
|
+
"\x0F\x03\x02\x02\x02\x11\x14\x03\x02\x02\x02\x12\x10\x03\x02\x02\x02\x12" +
|
|
407
|
+
"\x13\x03\x02\x02\x02\x13\x18\x03\x02\x02\x02\x14\x12\x03\x02\x02\x02\x15" +
|
|
408
|
+
"\x17\x05\x06\x04\x02\x16\x15\x03\x02\x02\x02\x17\x1A\x03\x02\x02\x02\x18" +
|
|
409
|
+
"\x16\x03\x02\x02\x02\x18\x19\x03\x02\x02\x02\x19\x1E\x03\x02\x02\x02\x1A" +
|
|
410
|
+
"\x18\x03\x02\x02\x02\x1B\x1D\x05\n\x06\x02\x1C\x1B\x03\x02\x02\x02\x1D" +
|
|
411
|
+
" \x03\x02\x02\x02\x1E\x1C\x03\x02\x02\x02\x1E\x1F\x03\x02\x02\x02\x1F" +
|
|
412
|
+
"\x03\x03\x02\x02\x02 \x1E\x03\x02\x02\x02!\"\x07\x03\x02\x02\"#\x07\x11" +
|
|
413
|
+
"\x02\x02#\x05\x03\x02\x02\x02$%\x07\x04\x02\x02%*\x07\x11\x02\x02&\'\x07" +
|
|
414
|
+
"\x05\x02\x02\')\x07\x11\x02\x02(&\x03\x02\x02\x02),\x03\x02\x02\x02*(" +
|
|
415
|
+
"\x03\x02\x02\x02*+\x03\x02\x02\x02+-\x03\x02\x02\x02,*\x03\x02\x02\x02" +
|
|
416
|
+
"-.\x07\x06\x02\x02./\x07\x0F\x02\x02/\x07\x03\x02\x02\x0201\x07\x07\x02" +
|
|
417
|
+
"\x0216\x07\x11\x02\x0223\x07\x05\x02\x0235\x07\x11\x02\x0242\x03\x02\x02" +
|
|
418
|
+
"\x0258\x03\x02\x02\x0264\x03\x02\x02\x0267\x03\x02\x02\x0279\x03\x02\x02" +
|
|
419
|
+
"\x0286\x03\x02\x02\x029:\x07\x06\x02\x02:;\x07\x0F\x02\x02;\t\x03\x02" +
|
|
420
|
+
"\x02\x02<=\x07\b\x02\x02=>\x07\x11\x02\x02>?\x07\t\x02\x02?@\x07\x0F\x02" +
|
|
421
|
+
"\x02@A\x07\n\x02\x02AE\x07\v\x02\x02BD\x05\f\x07\x02CB\x03\x02\x02\x02" +
|
|
422
|
+
"DG\x03\x02\x02\x02EC\x03\x02\x02\x02EF\x03\x02\x02\x02FK\x03\x02\x02\x02" +
|
|
423
|
+
"GE\x03\x02\x02\x02HJ\x05\n\x06\x02IH\x03\x02\x02\x02JM\x03\x02\x02\x02" +
|
|
424
|
+
"KI\x03\x02\x02\x02KL\x03\x02\x02\x02LN\x03\x02\x02\x02MK\x03\x02\x02\x02" +
|
|
425
|
+
"NO\x07\f\x02\x02O\v\x03\x02\x02\x02PQ\x07\r\x02\x02QR\x07\x11\x02\x02" +
|
|
426
|
+
"RS\x07\t\x02\x02ST\x07\x0F\x02\x02TU\x07\n\x02\x02UV\x07\x0E\x02\x02V" +
|
|
427
|
+
"W\x07\t\x02\x02WX\x07\x11\x02\x02XY\x07\n\x02\x02Y\r\x03\x02\x02\x02\t" +
|
|
428
|
+
"\x12\x18\x1E*6EK";
|
|
429
|
+
public static __ATN: ATN;
|
|
430
|
+
public static get _ATN(): ATN {
|
|
431
|
+
if (!BlendReactParser.__ATN) {
|
|
432
|
+
BlendReactParser.__ATN = new ATNDeserializer().deserialize(Utils.toCharArray(BlendReactParser._serializedATN));
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
return BlendReactParser.__ATN;
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
export class ProgramContext extends ParserRuleContext {
|
|
441
|
+
public moduleDefinition(): ModuleDefinitionContext {
|
|
442
|
+
return this.getRuleContext(0, ModuleDefinitionContext);
|
|
443
|
+
}
|
|
444
|
+
public componentDefenition(): ComponentDefenitionContext[];
|
|
445
|
+
public componentDefenition(i: number): ComponentDefenitionContext;
|
|
446
|
+
public componentDefenition(i?: number): ComponentDefenitionContext | ComponentDefenitionContext[] {
|
|
447
|
+
if (i === undefined) {
|
|
448
|
+
return this.getRuleContexts(ComponentDefenitionContext);
|
|
449
|
+
} else {
|
|
450
|
+
return this.getRuleContext(i, ComponentDefenitionContext);
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
public screenDefenition(): ScreenDefenitionContext[];
|
|
454
|
+
public screenDefenition(i: number): ScreenDefenitionContext;
|
|
455
|
+
public screenDefenition(i?: number): ScreenDefenitionContext | ScreenDefenitionContext[] {
|
|
456
|
+
if (i === undefined) {
|
|
457
|
+
return this.getRuleContexts(ScreenDefenitionContext);
|
|
458
|
+
} else {
|
|
459
|
+
return this.getRuleContext(i, ScreenDefenitionContext);
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
public layoutDefinition(): LayoutDefinitionContext[];
|
|
463
|
+
public layoutDefinition(i: number): LayoutDefinitionContext;
|
|
464
|
+
public layoutDefinition(i?: number): LayoutDefinitionContext | LayoutDefinitionContext[] {
|
|
465
|
+
if (i === undefined) {
|
|
466
|
+
return this.getRuleContexts(LayoutDefinitionContext);
|
|
467
|
+
} else {
|
|
468
|
+
return this.getRuleContext(i, LayoutDefinitionContext);
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
constructor(parent: ParserRuleContext | undefined, invokingState: number) {
|
|
472
|
+
super(parent, invokingState);
|
|
473
|
+
}
|
|
474
|
+
// @Override
|
|
475
|
+
public get ruleIndex(): number { return BlendReactParser.RULE_program; }
|
|
476
|
+
// @Override
|
|
477
|
+
public enterRule(listener: BlendReactListener): void {
|
|
478
|
+
if (listener.enterProgram) {
|
|
479
|
+
listener.enterProgram(this);
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
// @Override
|
|
483
|
+
public exitRule(listener: BlendReactListener): void {
|
|
484
|
+
if (listener.exitProgram) {
|
|
485
|
+
listener.exitProgram(this);
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
|
|
491
|
+
export class ModuleDefinitionContext extends ParserRuleContext {
|
|
492
|
+
public CAPITAL_IDENTIFIER(): TerminalNode { return this.getToken(BlendReactParser.CAPITAL_IDENTIFIER, 0); }
|
|
493
|
+
constructor(parent: ParserRuleContext | undefined, invokingState: number) {
|
|
494
|
+
super(parent, invokingState);
|
|
495
|
+
}
|
|
496
|
+
// @Override
|
|
497
|
+
public get ruleIndex(): number { return BlendReactParser.RULE_moduleDefinition; }
|
|
498
|
+
// @Override
|
|
499
|
+
public enterRule(listener: BlendReactListener): void {
|
|
500
|
+
if (listener.enterModuleDefinition) {
|
|
501
|
+
listener.enterModuleDefinition(this);
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
// @Override
|
|
505
|
+
public exitRule(listener: BlendReactListener): void {
|
|
506
|
+
if (listener.exitModuleDefinition) {
|
|
507
|
+
listener.exitModuleDefinition(this);
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
|
|
513
|
+
export class ScreenDefenitionContext extends ParserRuleContext {
|
|
514
|
+
public CAPITAL_IDENTIFIER(): TerminalNode[];
|
|
515
|
+
public CAPITAL_IDENTIFIER(i: number): TerminalNode;
|
|
516
|
+
public CAPITAL_IDENTIFIER(i?: number): TerminalNode | TerminalNode[] {
|
|
517
|
+
if (i === undefined) {
|
|
518
|
+
return this.getTokens(BlendReactParser.CAPITAL_IDENTIFIER);
|
|
519
|
+
} else {
|
|
520
|
+
return this.getToken(BlendReactParser.CAPITAL_IDENTIFIER, i);
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
public PATH_IDENTIFIER(): TerminalNode { return this.getToken(BlendReactParser.PATH_IDENTIFIER, 0); }
|
|
524
|
+
constructor(parent: ParserRuleContext | undefined, invokingState: number) {
|
|
525
|
+
super(parent, invokingState);
|
|
526
|
+
}
|
|
527
|
+
// @Override
|
|
528
|
+
public get ruleIndex(): number { return BlendReactParser.RULE_screenDefenition; }
|
|
529
|
+
// @Override
|
|
530
|
+
public enterRule(listener: BlendReactListener): void {
|
|
531
|
+
if (listener.enterScreenDefenition) {
|
|
532
|
+
listener.enterScreenDefenition(this);
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
// @Override
|
|
536
|
+
public exitRule(listener: BlendReactListener): void {
|
|
537
|
+
if (listener.exitScreenDefenition) {
|
|
538
|
+
listener.exitScreenDefenition(this);
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
|
|
544
|
+
export class ComponentDefenitionContext extends ParserRuleContext {
|
|
545
|
+
public CAPITAL_IDENTIFIER(): TerminalNode[];
|
|
546
|
+
public CAPITAL_IDENTIFIER(i: number): TerminalNode;
|
|
547
|
+
public CAPITAL_IDENTIFIER(i?: number): TerminalNode | TerminalNode[] {
|
|
548
|
+
if (i === undefined) {
|
|
549
|
+
return this.getTokens(BlendReactParser.CAPITAL_IDENTIFIER);
|
|
550
|
+
} else {
|
|
551
|
+
return this.getToken(BlendReactParser.CAPITAL_IDENTIFIER, i);
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
public PATH_IDENTIFIER(): TerminalNode { return this.getToken(BlendReactParser.PATH_IDENTIFIER, 0); }
|
|
555
|
+
constructor(parent: ParserRuleContext | undefined, invokingState: number) {
|
|
556
|
+
super(parent, invokingState);
|
|
557
|
+
}
|
|
558
|
+
// @Override
|
|
559
|
+
public get ruleIndex(): number { return BlendReactParser.RULE_componentDefenition; }
|
|
560
|
+
// @Override
|
|
561
|
+
public enterRule(listener: BlendReactListener): void {
|
|
562
|
+
if (listener.enterComponentDefenition) {
|
|
563
|
+
listener.enterComponentDefenition(this);
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
// @Override
|
|
567
|
+
public exitRule(listener: BlendReactListener): void {
|
|
568
|
+
if (listener.exitComponentDefenition) {
|
|
569
|
+
listener.exitComponentDefenition(this);
|
|
570
|
+
}
|
|
571
|
+
}
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
|
|
575
|
+
export class LayoutDefinitionContext extends ParserRuleContext {
|
|
576
|
+
public CAPITAL_IDENTIFIER(): TerminalNode { return this.getToken(BlendReactParser.CAPITAL_IDENTIFIER, 0); }
|
|
577
|
+
public PATH_IDENTIFIER(): TerminalNode { return this.getToken(BlendReactParser.PATH_IDENTIFIER, 0); }
|
|
578
|
+
public pageDefinition(): PageDefinitionContext[];
|
|
579
|
+
public pageDefinition(i: number): PageDefinitionContext;
|
|
580
|
+
public pageDefinition(i?: number): PageDefinitionContext | PageDefinitionContext[] {
|
|
581
|
+
if (i === undefined) {
|
|
582
|
+
return this.getRuleContexts(PageDefinitionContext);
|
|
583
|
+
} else {
|
|
584
|
+
return this.getRuleContext(i, PageDefinitionContext);
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
public layoutDefinition(): LayoutDefinitionContext[];
|
|
588
|
+
public layoutDefinition(i: number): LayoutDefinitionContext;
|
|
589
|
+
public layoutDefinition(i?: number): LayoutDefinitionContext | LayoutDefinitionContext[] {
|
|
590
|
+
if (i === undefined) {
|
|
591
|
+
return this.getRuleContexts(LayoutDefinitionContext);
|
|
592
|
+
} else {
|
|
593
|
+
return this.getRuleContext(i, LayoutDefinitionContext);
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
constructor(parent: ParserRuleContext | undefined, invokingState: number) {
|
|
597
|
+
super(parent, invokingState);
|
|
598
|
+
}
|
|
599
|
+
// @Override
|
|
600
|
+
public get ruleIndex(): number { return BlendReactParser.RULE_layoutDefinition; }
|
|
601
|
+
// @Override
|
|
602
|
+
public enterRule(listener: BlendReactListener): void {
|
|
603
|
+
if (listener.enterLayoutDefinition) {
|
|
604
|
+
listener.enterLayoutDefinition(this);
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
// @Override
|
|
608
|
+
public exitRule(listener: BlendReactListener): void {
|
|
609
|
+
if (listener.exitLayoutDefinition) {
|
|
610
|
+
listener.exitLayoutDefinition(this);
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
|
|
616
|
+
export class PageDefinitionContext extends ParserRuleContext {
|
|
617
|
+
public CAPITAL_IDENTIFIER(): TerminalNode[];
|
|
618
|
+
public CAPITAL_IDENTIFIER(i: number): TerminalNode;
|
|
619
|
+
public CAPITAL_IDENTIFIER(i?: number): TerminalNode | TerminalNode[] {
|
|
620
|
+
if (i === undefined) {
|
|
621
|
+
return this.getTokens(BlendReactParser.CAPITAL_IDENTIFIER);
|
|
622
|
+
} else {
|
|
623
|
+
return this.getToken(BlendReactParser.CAPITAL_IDENTIFIER, i);
|
|
624
|
+
}
|
|
625
|
+
}
|
|
626
|
+
public PATH_IDENTIFIER(): TerminalNode { return this.getToken(BlendReactParser.PATH_IDENTIFIER, 0); }
|
|
627
|
+
constructor(parent: ParserRuleContext | undefined, invokingState: number) {
|
|
628
|
+
super(parent, invokingState);
|
|
629
|
+
}
|
|
630
|
+
// @Override
|
|
631
|
+
public get ruleIndex(): number { return BlendReactParser.RULE_pageDefinition; }
|
|
632
|
+
// @Override
|
|
633
|
+
public enterRule(listener: BlendReactListener): void {
|
|
634
|
+
if (listener.enterPageDefinition) {
|
|
635
|
+
listener.enterPageDefinition(this);
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
// @Override
|
|
639
|
+
public exitRule(listener: BlendReactListener): void {
|
|
640
|
+
if (listener.exitPageDefinition) {
|
|
641
|
+
listener.exitPageDefinition(this);
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
token literal names:
|
|
2
|
+
null
|
|
3
|
+
'section'
|
|
4
|
+
'{'
|
|
5
|
+
'}'
|
|
6
|
+
'data-module'
|
|
7
|
+
','
|
|
8
|
+
'express-module'
|
|
9
|
+
'rn-module'
|
|
10
|
+
'react-module'
|
|
11
|
+
'mongo-module'
|
|
12
|
+
null
|
|
13
|
+
null
|
|
14
|
+
|
|
15
|
+
token symbolic names:
|
|
16
|
+
null
|
|
17
|
+
null
|
|
18
|
+
null
|
|
19
|
+
null
|
|
20
|
+
null
|
|
21
|
+
null
|
|
22
|
+
null
|
|
23
|
+
null
|
|
24
|
+
null
|
|
25
|
+
null
|
|
26
|
+
IDENTIFIER
|
|
27
|
+
WS
|
|
28
|
+
|
|
29
|
+
rule names:
|
|
30
|
+
sections
|
|
31
|
+
section
|
|
32
|
+
module
|
|
33
|
+
dataModule
|
|
34
|
+
expressModule
|
|
35
|
+
rnModule
|
|
36
|
+
reactModule
|
|
37
|
+
mongoModule
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
atn:
|
|
41
|
+
[3, 51485, 51898, 1421, 44986, 20307, 1543, 60043, 49729, 3, 13, 87, 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, 3, 2, 6, 2, 20, 10, 2, 13, 2, 14, 2, 21, 3, 3, 3, 3, 3, 3, 3, 3, 7, 3, 28, 10, 3, 12, 3, 14, 3, 31, 11, 3, 3, 3, 3, 3, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 5, 4, 40, 10, 4, 3, 5, 3, 5, 3, 5, 3, 5, 7, 5, 46, 10, 5, 12, 5, 14, 5, 49, 11, 5, 3, 6, 3, 6, 3, 6, 3, 6, 7, 6, 55, 10, 6, 12, 6, 14, 6, 58, 11, 6, 3, 7, 3, 7, 3, 7, 3, 7, 7, 7, 64, 10, 7, 12, 7, 14, 7, 67, 11, 7, 3, 8, 3, 8, 3, 8, 3, 8, 7, 8, 73, 10, 8, 12, 8, 14, 8, 76, 11, 8, 3, 9, 3, 9, 3, 9, 3, 9, 7, 9, 82, 10, 9, 12, 9, 14, 9, 85, 11, 9, 3, 9, 2, 2, 2, 10, 2, 2, 4, 2, 6, 2, 8, 2, 10, 2, 12, 2, 14, 2, 16, 2, 2, 2, 2, 89, 2, 19, 3, 2, 2, 2, 4, 23, 3, 2, 2, 2, 6, 39, 3, 2, 2, 2, 8, 41, 3, 2, 2, 2, 10, 50, 3, 2, 2, 2, 12, 59, 3, 2, 2, 2, 14, 68, 3, 2, 2, 2, 16, 77, 3, 2, 2, 2, 18, 20, 5, 4, 3, 2, 19, 18, 3, 2, 2, 2, 20, 21, 3, 2, 2, 2, 21, 19, 3, 2, 2, 2, 21, 22, 3, 2, 2, 2, 22, 3, 3, 2, 2, 2, 23, 24, 7, 3, 2, 2, 24, 25, 7, 12, 2, 2, 25, 29, 7, 4, 2, 2, 26, 28, 5, 6, 4, 2, 27, 26, 3, 2, 2, 2, 28, 31, 3, 2, 2, 2, 29, 27, 3, 2, 2, 2, 29, 30, 3, 2, 2, 2, 30, 32, 3, 2, 2, 2, 31, 29, 3, 2, 2, 2, 32, 33, 7, 5, 2, 2, 33, 5, 3, 2, 2, 2, 34, 40, 5, 8, 5, 2, 35, 40, 5, 10, 6, 2, 36, 40, 5, 12, 7, 2, 37, 40, 5, 16, 9, 2, 38, 40, 5, 14, 8, 2, 39, 34, 3, 2, 2, 2, 39, 35, 3, 2, 2, 2, 39, 36, 3, 2, 2, 2, 39, 37, 3, 2, 2, 2, 39, 38, 3, 2, 2, 2, 40, 7, 3, 2, 2, 2, 41, 42, 7, 6, 2, 2, 42, 47, 7, 12, 2, 2, 43, 44, 7, 7, 2, 2, 44, 46, 7, 12, 2, 2, 45, 43, 3, 2, 2, 2, 46, 49, 3, 2, 2, 2, 47, 45, 3, 2, 2, 2, 47, 48, 3, 2, 2, 2, 48, 9, 3, 2, 2, 2, 49, 47, 3, 2, 2, 2, 50, 51, 7, 8, 2, 2, 51, 56, 7, 12, 2, 2, 52, 53, 7, 7, 2, 2, 53, 55, 7, 12, 2, 2, 54, 52, 3, 2, 2, 2, 55, 58, 3, 2, 2, 2, 56, 54, 3, 2, 2, 2, 56, 57, 3, 2, 2, 2, 57, 11, 3, 2, 2, 2, 58, 56, 3, 2, 2, 2, 59, 60, 7, 9, 2, 2, 60, 65, 7, 12, 2, 2, 61, 62, 7, 7, 2, 2, 62, 64, 7, 12, 2, 2, 63, 61, 3, 2, 2, 2, 64, 67, 3, 2, 2, 2, 65, 63, 3, 2, 2, 2, 65, 66, 3, 2, 2, 2, 66, 13, 3, 2, 2, 2, 67, 65, 3, 2, 2, 2, 68, 69, 7, 10, 2, 2, 69, 74, 7, 12, 2, 2, 70, 71, 7, 7, 2, 2, 71, 73, 7, 12, 2, 2, 72, 70, 3, 2, 2, 2, 73, 76, 3, 2, 2, 2, 74, 72, 3, 2, 2, 2, 74, 75, 3, 2, 2, 2, 75, 15, 3, 2, 2, 2, 76, 74, 3, 2, 2, 2, 77, 78, 7, 11, 2, 2, 78, 83, 7, 12, 2, 2, 79, 80, 7, 7, 2, 2, 80, 82, 7, 12, 2, 2, 81, 79, 3, 2, 2, 2, 82, 85, 3, 2, 2, 2, 83, 81, 3, 2, 2, 2, 83, 84, 3, 2, 2, 2, 84, 17, 3, 2, 2, 2, 85, 83, 3, 2, 2, 2, 10, 21, 29, 39, 47, 56, 65, 74, 83]
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
IDENTIFIER=10
|
|
11
|
+
WS=11
|
|
12
|
+
'section'=1
|
|
13
|
+
'{'=2
|
|
14
|
+
'}'=3
|
|
15
|
+
'data-module'=4
|
|
16
|
+
','=5
|
|
17
|
+
'express-module'=6
|
|
18
|
+
'rn-module'=7
|
|
19
|
+
'react-module'=8
|
|
20
|
+
'mongo-module'=9
|