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