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,178 @@
|
|
|
1
|
+
// Generated from /Users/govindve/govi/Projects/NodeProjects/blend-cli/src/grammar/BlendMDP.g4 by ANTLR 4.13.1
|
|
2
|
+
import org.antlr.v4.runtime.Lexer;
|
|
3
|
+
import org.antlr.v4.runtime.CharStream;
|
|
4
|
+
import org.antlr.v4.runtime.Token;
|
|
5
|
+
import org.antlr.v4.runtime.TokenStream;
|
|
6
|
+
import org.antlr.v4.runtime.*;
|
|
7
|
+
import org.antlr.v4.runtime.atn.*;
|
|
8
|
+
import org.antlr.v4.runtime.dfa.DFA;
|
|
9
|
+
import org.antlr.v4.runtime.misc.*;
|
|
10
|
+
|
|
11
|
+
@SuppressWarnings({"all", "warnings", "unchecked", "unused", "cast", "CheckReturnValue", "this-escape"})
|
|
12
|
+
public class BlendMDPLexer extends Lexer {
|
|
13
|
+
static { RuntimeMetaData.checkVersion("4.13.1", RuntimeMetaData.VERSION); }
|
|
14
|
+
|
|
15
|
+
protected static final DFA[] _decisionToDFA;
|
|
16
|
+
protected static final PredictionContextCache _sharedContextCache =
|
|
17
|
+
new PredictionContextCache();
|
|
18
|
+
public static final int
|
|
19
|
+
T__0=1, T__1=2, T__2=3, T__3=4, T__4=5, T__5=6, T__6=7, T__7=8, T__8=9,
|
|
20
|
+
T__9=10, T__10=11, IDENTIFIER=12, CAPITAL_IDENTIFIER=13, WS=14;
|
|
21
|
+
public static String[] channelNames = {
|
|
22
|
+
"DEFAULT_TOKEN_CHANNEL", "HIDDEN"
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
public static String[] modeNames = {
|
|
26
|
+
"DEFAULT_MODE"
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
private static String[] makeRuleNames() {
|
|
30
|
+
return new String[] {
|
|
31
|
+
"T__0", "T__1", "T__2", "T__3", "T__4", "T__5", "T__6", "T__7", "T__8",
|
|
32
|
+
"T__9", "T__10", "IDENTIFIER", "CAPITAL_IDENTIFIER", "WS"
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
public static final String[] ruleNames = makeRuleNames();
|
|
36
|
+
|
|
37
|
+
private static String[] makeLiteralNames() {
|
|
38
|
+
return new String[] {
|
|
39
|
+
null, "'module'", "'parent'", "'props'", "'{'", "'}'", "':'", "'string'",
|
|
40
|
+
"'number'", "'boolean'", "'any'", "'object'"
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
private static final String[] _LITERAL_NAMES = makeLiteralNames();
|
|
44
|
+
private static String[] makeSymbolicNames() {
|
|
45
|
+
return new String[] {
|
|
46
|
+
null, null, null, null, null, null, null, null, null, null, null, null,
|
|
47
|
+
"IDENTIFIER", "CAPITAL_IDENTIFIER", "WS"
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
private static final String[] _SYMBOLIC_NAMES = makeSymbolicNames();
|
|
51
|
+
public static final Vocabulary VOCABULARY = new VocabularyImpl(_LITERAL_NAMES, _SYMBOLIC_NAMES);
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* @deprecated Use {@link #VOCABULARY} instead.
|
|
55
|
+
*/
|
|
56
|
+
@Deprecated
|
|
57
|
+
public static final String[] tokenNames;
|
|
58
|
+
static {
|
|
59
|
+
tokenNames = new String[_SYMBOLIC_NAMES.length];
|
|
60
|
+
for (int i = 0; i < tokenNames.length; i++) {
|
|
61
|
+
tokenNames[i] = VOCABULARY.getLiteralName(i);
|
|
62
|
+
if (tokenNames[i] == null) {
|
|
63
|
+
tokenNames[i] = VOCABULARY.getSymbolicName(i);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
if (tokenNames[i] == null) {
|
|
67
|
+
tokenNames[i] = "<INVALID>";
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
@Override
|
|
73
|
+
@Deprecated
|
|
74
|
+
public String[] getTokenNames() {
|
|
75
|
+
return tokenNames;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
@Override
|
|
79
|
+
|
|
80
|
+
public Vocabulary getVocabulary() {
|
|
81
|
+
return VOCABULARY;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
public BlendMDPLexer(CharStream input) {
|
|
86
|
+
super(input);
|
|
87
|
+
_interp = new LexerATNSimulator(this,_ATN,_decisionToDFA,_sharedContextCache);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
@Override
|
|
91
|
+
public String getGrammarFileName() { return "BlendMDP.g4"; }
|
|
92
|
+
|
|
93
|
+
@Override
|
|
94
|
+
public String[] getRuleNames() { return ruleNames; }
|
|
95
|
+
|
|
96
|
+
@Override
|
|
97
|
+
public String getSerializedATN() { return _serializedATN; }
|
|
98
|
+
|
|
99
|
+
@Override
|
|
100
|
+
public String[] getChannelNames() { return channelNames; }
|
|
101
|
+
|
|
102
|
+
@Override
|
|
103
|
+
public String[] getModeNames() { return modeNames; }
|
|
104
|
+
|
|
105
|
+
@Override
|
|
106
|
+
public ATN getATN() { return _ATN; }
|
|
107
|
+
|
|
108
|
+
public static final String _serializedATN =
|
|
109
|
+
"\u0004\u0000\u000em\u0006\uffff\uffff\u0002\u0000\u0007\u0000\u0002\u0001"+
|
|
110
|
+
"\u0007\u0001\u0002\u0002\u0007\u0002\u0002\u0003\u0007\u0003\u0002\u0004"+
|
|
111
|
+
"\u0007\u0004\u0002\u0005\u0007\u0005\u0002\u0006\u0007\u0006\u0002\u0007"+
|
|
112
|
+
"\u0007\u0007\u0002\b\u0007\b\u0002\t\u0007\t\u0002\n\u0007\n\u0002\u000b"+
|
|
113
|
+
"\u0007\u000b\u0002\f\u0007\f\u0002\r\u0007\r\u0001\u0000\u0001\u0000\u0001"+
|
|
114
|
+
"\u0000\u0001\u0000\u0001\u0000\u0001\u0000\u0001\u0000\u0001\u0001\u0001"+
|
|
115
|
+
"\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001"+
|
|
116
|
+
"\u0002\u0001\u0002\u0001\u0002\u0001\u0002\u0001\u0002\u0001\u0002\u0001"+
|
|
117
|
+
"\u0003\u0001\u0003\u0001\u0004\u0001\u0004\u0001\u0005\u0001\u0005\u0001"+
|
|
118
|
+
"\u0006\u0001\u0006\u0001\u0006\u0001\u0006\u0001\u0006\u0001\u0006\u0001"+
|
|
119
|
+
"\u0006\u0001\u0007\u0001\u0007\u0001\u0007\u0001\u0007\u0001\u0007\u0001"+
|
|
120
|
+
"\u0007\u0001\u0007\u0001\b\u0001\b\u0001\b\u0001\b\u0001\b\u0001\b\u0001"+
|
|
121
|
+
"\b\u0001\b\u0001\t\u0001\t\u0001\t\u0001\t\u0001\n\u0001\n\u0001\n\u0001"+
|
|
122
|
+
"\n\u0001\n\u0001\n\u0001\n\u0001\u000b\u0001\u000b\u0005\u000b[\b\u000b"+
|
|
123
|
+
"\n\u000b\f\u000b^\t\u000b\u0001\f\u0001\f\u0005\fb\b\f\n\f\f\fe\t\f\u0001"+
|
|
124
|
+
"\r\u0004\rh\b\r\u000b\r\f\ri\u0001\r\u0001\r\u0000\u0000\u000e\u0001\u0001"+
|
|
125
|
+
"\u0003\u0002\u0005\u0003\u0007\u0004\t\u0005\u000b\u0006\r\u0007\u000f"+
|
|
126
|
+
"\b\u0011\t\u0013\n\u0015\u000b\u0017\f\u0019\r\u001b\u000e\u0001\u0000"+
|
|
127
|
+
"\u0004\u0002\u0000__az\u0004\u000009AZ__az\u0001\u0000AZ\u0003\u0000\t"+
|
|
128
|
+
"\n\r\r o\u0000\u0001\u0001\u0000\u0000\u0000\u0000\u0003\u0001\u0000"+
|
|
129
|
+
"\u0000\u0000\u0000\u0005\u0001\u0000\u0000\u0000\u0000\u0007\u0001\u0000"+
|
|
130
|
+
"\u0000\u0000\u0000\t\u0001\u0000\u0000\u0000\u0000\u000b\u0001\u0000\u0000"+
|
|
131
|
+
"\u0000\u0000\r\u0001\u0000\u0000\u0000\u0000\u000f\u0001\u0000\u0000\u0000"+
|
|
132
|
+
"\u0000\u0011\u0001\u0000\u0000\u0000\u0000\u0013\u0001\u0000\u0000\u0000"+
|
|
133
|
+
"\u0000\u0015\u0001\u0000\u0000\u0000\u0000\u0017\u0001\u0000\u0000\u0000"+
|
|
134
|
+
"\u0000\u0019\u0001\u0000\u0000\u0000\u0000\u001b\u0001\u0000\u0000\u0000"+
|
|
135
|
+
"\u0001\u001d\u0001\u0000\u0000\u0000\u0003$\u0001\u0000\u0000\u0000\u0005"+
|
|
136
|
+
"+\u0001\u0000\u0000\u0000\u00071\u0001\u0000\u0000\u0000\t3\u0001\u0000"+
|
|
137
|
+
"\u0000\u0000\u000b5\u0001\u0000\u0000\u0000\r7\u0001\u0000\u0000\u0000"+
|
|
138
|
+
"\u000f>\u0001\u0000\u0000\u0000\u0011E\u0001\u0000\u0000\u0000\u0013M"+
|
|
139
|
+
"\u0001\u0000\u0000\u0000\u0015Q\u0001\u0000\u0000\u0000\u0017X\u0001\u0000"+
|
|
140
|
+
"\u0000\u0000\u0019_\u0001\u0000\u0000\u0000\u001bg\u0001\u0000\u0000\u0000"+
|
|
141
|
+
"\u001d\u001e\u0005m\u0000\u0000\u001e\u001f\u0005o\u0000\u0000\u001f "+
|
|
142
|
+
"\u0005d\u0000\u0000 !\u0005u\u0000\u0000!\"\u0005l\u0000\u0000\"#\u0005"+
|
|
143
|
+
"e\u0000\u0000#\u0002\u0001\u0000\u0000\u0000$%\u0005p\u0000\u0000%&\u0005"+
|
|
144
|
+
"a\u0000\u0000&\'\u0005r\u0000\u0000\'(\u0005e\u0000\u0000()\u0005n\u0000"+
|
|
145
|
+
"\u0000)*\u0005t\u0000\u0000*\u0004\u0001\u0000\u0000\u0000+,\u0005p\u0000"+
|
|
146
|
+
"\u0000,-\u0005r\u0000\u0000-.\u0005o\u0000\u0000./\u0005p\u0000\u0000"+
|
|
147
|
+
"/0\u0005s\u0000\u00000\u0006\u0001\u0000\u0000\u000012\u0005{\u0000\u0000"+
|
|
148
|
+
"2\b\u0001\u0000\u0000\u000034\u0005}\u0000\u00004\n\u0001\u0000\u0000"+
|
|
149
|
+
"\u000056\u0005:\u0000\u00006\f\u0001\u0000\u0000\u000078\u0005s\u0000"+
|
|
150
|
+
"\u000089\u0005t\u0000\u00009:\u0005r\u0000\u0000:;\u0005i\u0000\u0000"+
|
|
151
|
+
";<\u0005n\u0000\u0000<=\u0005g\u0000\u0000=\u000e\u0001\u0000\u0000\u0000"+
|
|
152
|
+
">?\u0005n\u0000\u0000?@\u0005u\u0000\u0000@A\u0005m\u0000\u0000AB\u0005"+
|
|
153
|
+
"b\u0000\u0000BC\u0005e\u0000\u0000CD\u0005r\u0000\u0000D\u0010\u0001\u0000"+
|
|
154
|
+
"\u0000\u0000EF\u0005b\u0000\u0000FG\u0005o\u0000\u0000GH\u0005o\u0000"+
|
|
155
|
+
"\u0000HI\u0005l\u0000\u0000IJ\u0005e\u0000\u0000JK\u0005a\u0000\u0000"+
|
|
156
|
+
"KL\u0005n\u0000\u0000L\u0012\u0001\u0000\u0000\u0000MN\u0005a\u0000\u0000"+
|
|
157
|
+
"NO\u0005n\u0000\u0000OP\u0005y\u0000\u0000P\u0014\u0001\u0000\u0000\u0000"+
|
|
158
|
+
"QR\u0005o\u0000\u0000RS\u0005b\u0000\u0000ST\u0005j\u0000\u0000TU\u0005"+
|
|
159
|
+
"e\u0000\u0000UV\u0005c\u0000\u0000VW\u0005t\u0000\u0000W\u0016\u0001\u0000"+
|
|
160
|
+
"\u0000\u0000X\\\u0007\u0000\u0000\u0000Y[\u0007\u0001\u0000\u0000ZY\u0001"+
|
|
161
|
+
"\u0000\u0000\u0000[^\u0001\u0000\u0000\u0000\\Z\u0001\u0000\u0000\u0000"+
|
|
162
|
+
"\\]\u0001\u0000\u0000\u0000]\u0018\u0001\u0000\u0000\u0000^\\\u0001\u0000"+
|
|
163
|
+
"\u0000\u0000_c\u0007\u0002\u0000\u0000`b\u0007\u0001\u0000\u0000a`\u0001"+
|
|
164
|
+
"\u0000\u0000\u0000be\u0001\u0000\u0000\u0000ca\u0001\u0000\u0000\u0000"+
|
|
165
|
+
"cd\u0001\u0000\u0000\u0000d\u001a\u0001\u0000\u0000\u0000ec\u0001\u0000"+
|
|
166
|
+
"\u0000\u0000fh\u0007\u0003\u0000\u0000gf\u0001\u0000\u0000\u0000hi\u0001"+
|
|
167
|
+
"\u0000\u0000\u0000ig\u0001\u0000\u0000\u0000ij\u0001\u0000\u0000\u0000"+
|
|
168
|
+
"jk\u0001\u0000\u0000\u0000kl\u0006\r\u0000\u0000l\u001c\u0001\u0000\u0000"+
|
|
169
|
+
"\u0000\u0004\u0000\\ci\u0001\u0006\u0000\u0000";
|
|
170
|
+
public static final ATN _ATN =
|
|
171
|
+
new ATNDeserializer().deserialize(_serializedATN.toCharArray());
|
|
172
|
+
static {
|
|
173
|
+
_decisionToDFA = new DFA[_ATN.getNumberOfDecisions()];
|
|
174
|
+
for (int i = 0; i < _ATN.getNumberOfDecisions(); i++) {
|
|
175
|
+
_decisionToDFA[i] = new DFA(_ATN.getDecisionState(i), i);
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
T__0=1
|
|
2
|
+
T__1=2
|
|
3
|
+
T__2=3
|
|
4
|
+
T__3=4
|
|
5
|
+
T__4=5
|
|
6
|
+
T__5=6
|
|
7
|
+
T__6=7
|
|
8
|
+
T__7=8
|
|
9
|
+
T__8=9
|
|
10
|
+
T__9=10
|
|
11
|
+
T__10=11
|
|
12
|
+
IDENTIFIER=12
|
|
13
|
+
CAPITAL_IDENTIFIER=13
|
|
14
|
+
WS=14
|
|
15
|
+
'module'=1
|
|
16
|
+
'parent'=2
|
|
17
|
+
'props'=3
|
|
18
|
+
'{'=4
|
|
19
|
+
'}'=5
|
|
20
|
+
':'=6
|
|
21
|
+
'string'=7
|
|
22
|
+
'number'=8
|
|
23
|
+
'boolean'=9
|
|
24
|
+
'any'=10
|
|
25
|
+
'object'=11
|
|
@@ -0,0 +1,386 @@
|
|
|
1
|
+
// Generated from /Users/govindve/govi/Projects/NodeProjects/blend-cli/src/grammar/BlendMDP.g4 by ANTLR 4.13.1
|
|
2
|
+
import org.antlr.v4.runtime.atn.*;
|
|
3
|
+
import org.antlr.v4.runtime.dfa.DFA;
|
|
4
|
+
import org.antlr.v4.runtime.*;
|
|
5
|
+
import org.antlr.v4.runtime.misc.*;
|
|
6
|
+
import org.antlr.v4.runtime.tree.*;
|
|
7
|
+
import java.util.List;
|
|
8
|
+
import java.util.Iterator;
|
|
9
|
+
import java.util.ArrayList;
|
|
10
|
+
|
|
11
|
+
@SuppressWarnings({"all", "warnings", "unchecked", "unused", "cast", "CheckReturnValue"})
|
|
12
|
+
public class BlendMDPParser extends Parser {
|
|
13
|
+
static { RuntimeMetaData.checkVersion("4.13.1", RuntimeMetaData.VERSION); }
|
|
14
|
+
|
|
15
|
+
protected static final DFA[] _decisionToDFA;
|
|
16
|
+
protected static final PredictionContextCache _sharedContextCache =
|
|
17
|
+
new PredictionContextCache();
|
|
18
|
+
public static final int
|
|
19
|
+
T__0=1, T__1=2, T__2=3, T__3=4, T__4=5, T__5=6, T__6=7, T__7=8, T__8=9,
|
|
20
|
+
T__9=10, T__10=11, IDENTIFIER=12, CAPITAL_IDENTIFIER=13, WS=14;
|
|
21
|
+
public static final int
|
|
22
|
+
RULE_program = 0, RULE_moduleDefinition = 1, RULE_parentDefinition = 2,
|
|
23
|
+
RULE_propsDefinition = 3, RULE_propsBodyDefinition = 4, RULE_primitiveType = 5;
|
|
24
|
+
private static String[] makeRuleNames() {
|
|
25
|
+
return new String[] {
|
|
26
|
+
"program", "moduleDefinition", "parentDefinition", "propsDefinition",
|
|
27
|
+
"propsBodyDefinition", "primitiveType"
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
public static final String[] ruleNames = makeRuleNames();
|
|
31
|
+
|
|
32
|
+
private static String[] makeLiteralNames() {
|
|
33
|
+
return new String[] {
|
|
34
|
+
null, "'module'", "'parent'", "'props'", "'{'", "'}'", "':'", "'string'",
|
|
35
|
+
"'number'", "'boolean'", "'any'", "'object'"
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
private static final String[] _LITERAL_NAMES = makeLiteralNames();
|
|
39
|
+
private static String[] makeSymbolicNames() {
|
|
40
|
+
return new String[] {
|
|
41
|
+
null, null, null, null, null, null, null, null, null, null, null, null,
|
|
42
|
+
"IDENTIFIER", "CAPITAL_IDENTIFIER", "WS"
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
private static final String[] _SYMBOLIC_NAMES = makeSymbolicNames();
|
|
46
|
+
public static final Vocabulary VOCABULARY = new VocabularyImpl(_LITERAL_NAMES, _SYMBOLIC_NAMES);
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* @deprecated Use {@link #VOCABULARY} instead.
|
|
50
|
+
*/
|
|
51
|
+
@Deprecated
|
|
52
|
+
public static final String[] tokenNames;
|
|
53
|
+
static {
|
|
54
|
+
tokenNames = new String[_SYMBOLIC_NAMES.length];
|
|
55
|
+
for (int i = 0; i < tokenNames.length; i++) {
|
|
56
|
+
tokenNames[i] = VOCABULARY.getLiteralName(i);
|
|
57
|
+
if (tokenNames[i] == null) {
|
|
58
|
+
tokenNames[i] = VOCABULARY.getSymbolicName(i);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
if (tokenNames[i] == null) {
|
|
62
|
+
tokenNames[i] = "<INVALID>";
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
@Override
|
|
68
|
+
@Deprecated
|
|
69
|
+
public String[] getTokenNames() {
|
|
70
|
+
return tokenNames;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
@Override
|
|
74
|
+
|
|
75
|
+
public Vocabulary getVocabulary() {
|
|
76
|
+
return VOCABULARY;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
@Override
|
|
80
|
+
public String getGrammarFileName() { return "BlendMDP.g4"; }
|
|
81
|
+
|
|
82
|
+
@Override
|
|
83
|
+
public String[] getRuleNames() { return ruleNames; }
|
|
84
|
+
|
|
85
|
+
@Override
|
|
86
|
+
public String getSerializedATN() { return _serializedATN; }
|
|
87
|
+
|
|
88
|
+
@Override
|
|
89
|
+
public ATN getATN() { return _ATN; }
|
|
90
|
+
|
|
91
|
+
public BlendMDPParser(TokenStream input) {
|
|
92
|
+
super(input);
|
|
93
|
+
_interp = new ParserATNSimulator(this,_ATN,_decisionToDFA,_sharedContextCache);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
@SuppressWarnings("CheckReturnValue")
|
|
97
|
+
public static class ProgramContext extends ParserRuleContext {
|
|
98
|
+
public ModuleDefinitionContext moduleDefinition() {
|
|
99
|
+
return getRuleContext(ModuleDefinitionContext.class,0);
|
|
100
|
+
}
|
|
101
|
+
public ParentDefinitionContext parentDefinition() {
|
|
102
|
+
return getRuleContext(ParentDefinitionContext.class,0);
|
|
103
|
+
}
|
|
104
|
+
public PropsDefinitionContext propsDefinition() {
|
|
105
|
+
return getRuleContext(PropsDefinitionContext.class,0);
|
|
106
|
+
}
|
|
107
|
+
public ProgramContext(ParserRuleContext parent, int invokingState) {
|
|
108
|
+
super(parent, invokingState);
|
|
109
|
+
}
|
|
110
|
+
@Override public int getRuleIndex() { return RULE_program; }
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
public final ProgramContext program() throws RecognitionException {
|
|
114
|
+
ProgramContext _localctx = new ProgramContext(_ctx, getState());
|
|
115
|
+
enterRule(_localctx, 0, RULE_program);
|
|
116
|
+
try {
|
|
117
|
+
enterOuterAlt(_localctx, 1);
|
|
118
|
+
{
|
|
119
|
+
setState(12);
|
|
120
|
+
moduleDefinition();
|
|
121
|
+
setState(13);
|
|
122
|
+
parentDefinition();
|
|
123
|
+
setState(14);
|
|
124
|
+
propsDefinition();
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
catch (RecognitionException re) {
|
|
128
|
+
_localctx.exception = re;
|
|
129
|
+
_errHandler.reportError(this, re);
|
|
130
|
+
_errHandler.recover(this, re);
|
|
131
|
+
}
|
|
132
|
+
finally {
|
|
133
|
+
exitRule();
|
|
134
|
+
}
|
|
135
|
+
return _localctx;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
@SuppressWarnings("CheckReturnValue")
|
|
139
|
+
public static class ModuleDefinitionContext extends ParserRuleContext {
|
|
140
|
+
public TerminalNode CAPITAL_IDENTIFIER() { return getToken(BlendMDPParser.CAPITAL_IDENTIFIER, 0); }
|
|
141
|
+
public ModuleDefinitionContext(ParserRuleContext parent, int invokingState) {
|
|
142
|
+
super(parent, invokingState);
|
|
143
|
+
}
|
|
144
|
+
@Override public int getRuleIndex() { return RULE_moduleDefinition; }
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
public final ModuleDefinitionContext moduleDefinition() throws RecognitionException {
|
|
148
|
+
ModuleDefinitionContext _localctx = new ModuleDefinitionContext(_ctx, getState());
|
|
149
|
+
enterRule(_localctx, 2, RULE_moduleDefinition);
|
|
150
|
+
try {
|
|
151
|
+
enterOuterAlt(_localctx, 1);
|
|
152
|
+
{
|
|
153
|
+
setState(16);
|
|
154
|
+
match(T__0);
|
|
155
|
+
setState(17);
|
|
156
|
+
match(CAPITAL_IDENTIFIER);
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
catch (RecognitionException re) {
|
|
160
|
+
_localctx.exception = re;
|
|
161
|
+
_errHandler.reportError(this, re);
|
|
162
|
+
_errHandler.recover(this, re);
|
|
163
|
+
}
|
|
164
|
+
finally {
|
|
165
|
+
exitRule();
|
|
166
|
+
}
|
|
167
|
+
return _localctx;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
@SuppressWarnings("CheckReturnValue")
|
|
171
|
+
public static class ParentDefinitionContext extends ParserRuleContext {
|
|
172
|
+
public TerminalNode CAPITAL_IDENTIFIER() { return getToken(BlendMDPParser.CAPITAL_IDENTIFIER, 0); }
|
|
173
|
+
public ParentDefinitionContext(ParserRuleContext parent, int invokingState) {
|
|
174
|
+
super(parent, invokingState);
|
|
175
|
+
}
|
|
176
|
+
@Override public int getRuleIndex() { return RULE_parentDefinition; }
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
public final ParentDefinitionContext parentDefinition() throws RecognitionException {
|
|
180
|
+
ParentDefinitionContext _localctx = new ParentDefinitionContext(_ctx, getState());
|
|
181
|
+
enterRule(_localctx, 4, RULE_parentDefinition);
|
|
182
|
+
try {
|
|
183
|
+
enterOuterAlt(_localctx, 1);
|
|
184
|
+
{
|
|
185
|
+
setState(19);
|
|
186
|
+
match(T__1);
|
|
187
|
+
setState(20);
|
|
188
|
+
match(CAPITAL_IDENTIFIER);
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
catch (RecognitionException re) {
|
|
192
|
+
_localctx.exception = re;
|
|
193
|
+
_errHandler.reportError(this, re);
|
|
194
|
+
_errHandler.recover(this, re);
|
|
195
|
+
}
|
|
196
|
+
finally {
|
|
197
|
+
exitRule();
|
|
198
|
+
}
|
|
199
|
+
return _localctx;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
@SuppressWarnings("CheckReturnValue")
|
|
203
|
+
public static class PropsDefinitionContext extends ParserRuleContext {
|
|
204
|
+
public List<PropsBodyDefinitionContext> propsBodyDefinition() {
|
|
205
|
+
return getRuleContexts(PropsBodyDefinitionContext.class);
|
|
206
|
+
}
|
|
207
|
+
public PropsBodyDefinitionContext propsBodyDefinition(int i) {
|
|
208
|
+
return getRuleContext(PropsBodyDefinitionContext.class,i);
|
|
209
|
+
}
|
|
210
|
+
public PropsDefinitionContext(ParserRuleContext parent, int invokingState) {
|
|
211
|
+
super(parent, invokingState);
|
|
212
|
+
}
|
|
213
|
+
@Override public int getRuleIndex() { return RULE_propsDefinition; }
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
public final PropsDefinitionContext propsDefinition() throws RecognitionException {
|
|
217
|
+
PropsDefinitionContext _localctx = new PropsDefinitionContext(_ctx, getState());
|
|
218
|
+
enterRule(_localctx, 6, RULE_propsDefinition);
|
|
219
|
+
int _la;
|
|
220
|
+
try {
|
|
221
|
+
enterOuterAlt(_localctx, 1);
|
|
222
|
+
{
|
|
223
|
+
setState(22);
|
|
224
|
+
match(T__2);
|
|
225
|
+
setState(23);
|
|
226
|
+
match(T__3);
|
|
227
|
+
setState(27);
|
|
228
|
+
_errHandler.sync(this);
|
|
229
|
+
_la = _input.LA(1);
|
|
230
|
+
while (_la==IDENTIFIER) {
|
|
231
|
+
{
|
|
232
|
+
{
|
|
233
|
+
setState(24);
|
|
234
|
+
propsBodyDefinition();
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
setState(29);
|
|
238
|
+
_errHandler.sync(this);
|
|
239
|
+
_la = _input.LA(1);
|
|
240
|
+
}
|
|
241
|
+
setState(30);
|
|
242
|
+
match(T__4);
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
catch (RecognitionException re) {
|
|
246
|
+
_localctx.exception = re;
|
|
247
|
+
_errHandler.reportError(this, re);
|
|
248
|
+
_errHandler.recover(this, re);
|
|
249
|
+
}
|
|
250
|
+
finally {
|
|
251
|
+
exitRule();
|
|
252
|
+
}
|
|
253
|
+
return _localctx;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
@SuppressWarnings("CheckReturnValue")
|
|
257
|
+
public static class PropsBodyDefinitionContext extends ParserRuleContext {
|
|
258
|
+
public TerminalNode IDENTIFIER() { return getToken(BlendMDPParser.IDENTIFIER, 0); }
|
|
259
|
+
public TerminalNode CAPITAL_IDENTIFIER() { return getToken(BlendMDPParser.CAPITAL_IDENTIFIER, 0); }
|
|
260
|
+
public PrimitiveTypeContext primitiveType() {
|
|
261
|
+
return getRuleContext(PrimitiveTypeContext.class,0);
|
|
262
|
+
}
|
|
263
|
+
public PropsBodyDefinitionContext(ParserRuleContext parent, int invokingState) {
|
|
264
|
+
super(parent, invokingState);
|
|
265
|
+
}
|
|
266
|
+
@Override public int getRuleIndex() { return RULE_propsBodyDefinition; }
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
public final PropsBodyDefinitionContext propsBodyDefinition() throws RecognitionException {
|
|
270
|
+
PropsBodyDefinitionContext _localctx = new PropsBodyDefinitionContext(_ctx, getState());
|
|
271
|
+
enterRule(_localctx, 8, RULE_propsBodyDefinition);
|
|
272
|
+
try {
|
|
273
|
+
enterOuterAlt(_localctx, 1);
|
|
274
|
+
{
|
|
275
|
+
setState(32);
|
|
276
|
+
match(IDENTIFIER);
|
|
277
|
+
setState(33);
|
|
278
|
+
match(T__5);
|
|
279
|
+
setState(36);
|
|
280
|
+
_errHandler.sync(this);
|
|
281
|
+
switch (_input.LA(1)) {
|
|
282
|
+
case CAPITAL_IDENTIFIER:
|
|
283
|
+
{
|
|
284
|
+
setState(34);
|
|
285
|
+
match(CAPITAL_IDENTIFIER);
|
|
286
|
+
}
|
|
287
|
+
break;
|
|
288
|
+
case T__6:
|
|
289
|
+
case T__7:
|
|
290
|
+
case T__8:
|
|
291
|
+
case T__9:
|
|
292
|
+
case T__10:
|
|
293
|
+
{
|
|
294
|
+
setState(35);
|
|
295
|
+
primitiveType();
|
|
296
|
+
}
|
|
297
|
+
break;
|
|
298
|
+
default:
|
|
299
|
+
throw new NoViableAltException(this);
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
catch (RecognitionException re) {
|
|
304
|
+
_localctx.exception = re;
|
|
305
|
+
_errHandler.reportError(this, re);
|
|
306
|
+
_errHandler.recover(this, re);
|
|
307
|
+
}
|
|
308
|
+
finally {
|
|
309
|
+
exitRule();
|
|
310
|
+
}
|
|
311
|
+
return _localctx;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
@SuppressWarnings("CheckReturnValue")
|
|
315
|
+
public static class PrimitiveTypeContext extends ParserRuleContext {
|
|
316
|
+
public PrimitiveTypeContext(ParserRuleContext parent, int invokingState) {
|
|
317
|
+
super(parent, invokingState);
|
|
318
|
+
}
|
|
319
|
+
@Override public int getRuleIndex() { return RULE_primitiveType; }
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
public final PrimitiveTypeContext primitiveType() throws RecognitionException {
|
|
323
|
+
PrimitiveTypeContext _localctx = new PrimitiveTypeContext(_ctx, getState());
|
|
324
|
+
enterRule(_localctx, 10, RULE_primitiveType);
|
|
325
|
+
int _la;
|
|
326
|
+
try {
|
|
327
|
+
enterOuterAlt(_localctx, 1);
|
|
328
|
+
{
|
|
329
|
+
setState(38);
|
|
330
|
+
_la = _input.LA(1);
|
|
331
|
+
if ( !((((_la) & ~0x3f) == 0 && ((1L << _la) & 3968L) != 0)) ) {
|
|
332
|
+
_errHandler.recoverInline(this);
|
|
333
|
+
}
|
|
334
|
+
else {
|
|
335
|
+
if ( _input.LA(1)==Token.EOF ) matchedEOF = true;
|
|
336
|
+
_errHandler.reportMatch(this);
|
|
337
|
+
consume();
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
catch (RecognitionException re) {
|
|
342
|
+
_localctx.exception = re;
|
|
343
|
+
_errHandler.reportError(this, re);
|
|
344
|
+
_errHandler.recover(this, re);
|
|
345
|
+
}
|
|
346
|
+
finally {
|
|
347
|
+
exitRule();
|
|
348
|
+
}
|
|
349
|
+
return _localctx;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
public static final String _serializedATN =
|
|
353
|
+
"\u0004\u0001\u000e)\u0002\u0000\u0007\u0000\u0002\u0001\u0007\u0001\u0002"+
|
|
354
|
+
"\u0002\u0007\u0002\u0002\u0003\u0007\u0003\u0002\u0004\u0007\u0004\u0002"+
|
|
355
|
+
"\u0005\u0007\u0005\u0001\u0000\u0001\u0000\u0001\u0000\u0001\u0000\u0001"+
|
|
356
|
+
"\u0001\u0001\u0001\u0001\u0001\u0001\u0002\u0001\u0002\u0001\u0002\u0001"+
|
|
357
|
+
"\u0003\u0001\u0003\u0001\u0003\u0005\u0003\u001a\b\u0003\n\u0003\f\u0003"+
|
|
358
|
+
"\u001d\t\u0003\u0001\u0003\u0001\u0003\u0001\u0004\u0001\u0004\u0001\u0004"+
|
|
359
|
+
"\u0001\u0004\u0003\u0004%\b\u0004\u0001\u0005\u0001\u0005\u0001\u0005"+
|
|
360
|
+
"\u0000\u0000\u0006\u0000\u0002\u0004\u0006\b\n\u0000\u0001\u0001\u0000"+
|
|
361
|
+
"\u0007\u000b$\u0000\f\u0001\u0000\u0000\u0000\u0002\u0010\u0001\u0000"+
|
|
362
|
+
"\u0000\u0000\u0004\u0013\u0001\u0000\u0000\u0000\u0006\u0016\u0001\u0000"+
|
|
363
|
+
"\u0000\u0000\b \u0001\u0000\u0000\u0000\n&\u0001\u0000\u0000\u0000\f\r"+
|
|
364
|
+
"\u0003\u0002\u0001\u0000\r\u000e\u0003\u0004\u0002\u0000\u000e\u000f\u0003"+
|
|
365
|
+
"\u0006\u0003\u0000\u000f\u0001\u0001\u0000\u0000\u0000\u0010\u0011\u0005"+
|
|
366
|
+
"\u0001\u0000\u0000\u0011\u0012\u0005\r\u0000\u0000\u0012\u0003\u0001\u0000"+
|
|
367
|
+
"\u0000\u0000\u0013\u0014\u0005\u0002\u0000\u0000\u0014\u0015\u0005\r\u0000"+
|
|
368
|
+
"\u0000\u0015\u0005\u0001\u0000\u0000\u0000\u0016\u0017\u0005\u0003\u0000"+
|
|
369
|
+
"\u0000\u0017\u001b\u0005\u0004\u0000\u0000\u0018\u001a\u0003\b\u0004\u0000"+
|
|
370
|
+
"\u0019\u0018\u0001\u0000\u0000\u0000\u001a\u001d\u0001\u0000\u0000\u0000"+
|
|
371
|
+
"\u001b\u0019\u0001\u0000\u0000\u0000\u001b\u001c\u0001\u0000\u0000\u0000"+
|
|
372
|
+
"\u001c\u001e\u0001\u0000\u0000\u0000\u001d\u001b\u0001\u0000\u0000\u0000"+
|
|
373
|
+
"\u001e\u001f\u0005\u0005\u0000\u0000\u001f\u0007\u0001\u0000\u0000\u0000"+
|
|
374
|
+
" !\u0005\f\u0000\u0000!$\u0005\u0006\u0000\u0000\"%\u0005\r\u0000\u0000"+
|
|
375
|
+
"#%\u0003\n\u0005\u0000$\"\u0001\u0000\u0000\u0000$#\u0001\u0000\u0000"+
|
|
376
|
+
"\u0000%\t\u0001\u0000\u0000\u0000&\'\u0007\u0000\u0000\u0000\'\u000b\u0001"+
|
|
377
|
+
"\u0000\u0000\u0000\u0002\u001b$";
|
|
378
|
+
public static final ATN _ATN =
|
|
379
|
+
new ATNDeserializer().deserialize(_serializedATN.toCharArray());
|
|
380
|
+
static {
|
|
381
|
+
_decisionToDFA = new DFA[_ATN.getNumberOfDecisions()];
|
|
382
|
+
for (int i = 0; i < _ATN.getNumberOfDecisions(); i++) {
|
|
383
|
+
_decisionToDFA[i] = new DFA(_ATN.getDecisionState(i), i);
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
token literal names:
|
|
2
|
+
null
|
|
3
|
+
'module'
|
|
4
|
+
'collection'
|
|
5
|
+
'{'
|
|
6
|
+
','
|
|
7
|
+
'}'
|
|
8
|
+
'property'
|
|
9
|
+
':'
|
|
10
|
+
'('
|
|
11
|
+
')'
|
|
12
|
+
'reference'
|
|
13
|
+
'unique'
|
|
14
|
+
'index'
|
|
15
|
+
'[]'
|
|
16
|
+
'?'
|
|
17
|
+
'String'
|
|
18
|
+
'Number'
|
|
19
|
+
'Boolean'
|
|
20
|
+
'any'
|
|
21
|
+
'Object'
|
|
22
|
+
null
|
|
23
|
+
null
|
|
24
|
+
null
|
|
25
|
+
|
|
26
|
+
token symbolic names:
|
|
27
|
+
null
|
|
28
|
+
null
|
|
29
|
+
null
|
|
30
|
+
null
|
|
31
|
+
null
|
|
32
|
+
null
|
|
33
|
+
null
|
|
34
|
+
null
|
|
35
|
+
null
|
|
36
|
+
null
|
|
37
|
+
null
|
|
38
|
+
null
|
|
39
|
+
null
|
|
40
|
+
null
|
|
41
|
+
null
|
|
42
|
+
null
|
|
43
|
+
null
|
|
44
|
+
null
|
|
45
|
+
null
|
|
46
|
+
null
|
|
47
|
+
IDENTIFIER
|
|
48
|
+
CAPITAL_IDENTIFIER
|
|
49
|
+
WS
|
|
50
|
+
|
|
51
|
+
rule names:
|
|
52
|
+
program
|
|
53
|
+
moduleDefinition
|
|
54
|
+
collectionDefinition
|
|
55
|
+
property
|
|
56
|
+
propertyChars
|
|
57
|
+
reference
|
|
58
|
+
mongoChars
|
|
59
|
+
type
|
|
60
|
+
baseType
|
|
61
|
+
primitiveType
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
atn:
|
|
65
|
+
[4, 1, 22, 94, 2, 0, 7, 0, 2, 1, 7, 1, 2, 2, 7, 2, 2, 3, 7, 3, 2, 4, 7, 4, 2, 5, 7, 5, 2, 6, 7, 6, 2, 7, 7, 7, 2, 8, 7, 8, 2, 9, 7, 9, 1, 0, 1, 0, 4, 0, 23, 8, 0, 11, 0, 12, 0, 24, 1, 1, 1, 1, 1, 1, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 5, 2, 36, 8, 2, 10, 2, 12, 2, 39, 9, 2, 1, 2, 1, 2, 1, 2, 1, 2, 5, 2, 45, 8, 2, 10, 2, 12, 2, 48, 9, 2, 3, 2, 50, 8, 2, 1, 2, 1, 2, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 3, 3, 59, 8, 3, 1, 4, 1, 4, 1, 4, 1, 4, 5, 4, 65, 8, 4, 10, 4, 12, 4, 68, 9, 4, 1, 4, 1, 4, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 3, 5, 77, 8, 5, 1, 6, 1, 6, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 3, 7, 88, 8, 7, 1, 8, 1, 8, 1, 9, 1, 9, 1, 9, 0, 0, 10, 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 0, 2, 1, 0, 11, 12, 1, 0, 15, 19, 92, 0, 20, 1, 0, 0, 0, 2, 26, 1, 0, 0, 0, 4, 29, 1, 0, 0, 0, 6, 53, 1, 0, 0, 0, 8, 60, 1, 0, 0, 0, 10, 71, 1, 0, 0, 0, 12, 78, 1, 0, 0, 0, 14, 87, 1, 0, 0, 0, 16, 89, 1, 0, 0, 0, 18, 91, 1, 0, 0, 0, 20, 22, 3, 2, 1, 0, 21, 23, 3, 4, 2, 0, 22, 21, 1, 0, 0, 0, 23, 24, 1, 0, 0, 0, 24, 22, 1, 0, 0, 0, 24, 25, 1, 0, 0, 0, 25, 1, 1, 0, 0, 0, 26, 27, 5, 1, 0, 0, 27, 28, 5, 21, 0, 0, 28, 3, 1, 0, 0, 0, 29, 30, 5, 2, 0, 0, 30, 31, 5, 21, 0, 0, 31, 32, 5, 3, 0, 0, 32, 37, 3, 6, 3, 0, 33, 34, 5, 4, 0, 0, 34, 36, 3, 6, 3, 0, 35, 33, 1, 0, 0, 0, 36, 39, 1, 0, 0, 0, 37, 35, 1, 0, 0, 0, 37, 38, 1, 0, 0, 0, 38, 49, 1, 0, 0, 0, 39, 37, 1, 0, 0, 0, 40, 41, 5, 4, 0, 0, 41, 46, 3, 10, 5, 0, 42, 43, 5, 4, 0, 0, 43, 45, 3, 10, 5, 0, 44, 42, 1, 0, 0, 0, 45, 48, 1, 0, 0, 0, 46, 44, 1, 0, 0, 0, 46, 47, 1, 0, 0, 0, 47, 50, 1, 0, 0, 0, 48, 46, 1, 0, 0, 0, 49, 40, 1, 0, 0, 0, 49, 50, 1, 0, 0, 0, 50, 51, 1, 0, 0, 0, 51, 52, 5, 5, 0, 0, 52, 5, 1, 0, 0, 0, 53, 54, 5, 6, 0, 0, 54, 55, 5, 20, 0, 0, 55, 56, 5, 7, 0, 0, 56, 58, 3, 14, 7, 0, 57, 59, 3, 8, 4, 0, 58, 57, 1, 0, 0, 0, 58, 59, 1, 0, 0, 0, 59, 7, 1, 0, 0, 0, 60, 61, 5, 8, 0, 0, 61, 66, 3, 12, 6, 0, 62, 63, 5, 4, 0, 0, 63, 65, 3, 12, 6, 0, 64, 62, 1, 0, 0, 0, 65, 68, 1, 0, 0, 0, 66, 64, 1, 0, 0, 0, 66, 67, 1, 0, 0, 0, 67, 69, 1, 0, 0, 0, 68, 66, 1, 0, 0, 0, 69, 70, 5, 9, 0, 0, 70, 9, 1, 0, 0, 0, 71, 72, 5, 10, 0, 0, 72, 73, 5, 20, 0, 0, 73, 74, 5, 7, 0, 0, 74, 76, 5, 21, 0, 0, 75, 77, 3, 8, 4, 0, 76, 75, 1, 0, 0, 0, 76, 77, 1, 0, 0, 0, 77, 11, 1, 0, 0, 0, 78, 79, 7, 0, 0, 0, 79, 13, 1, 0, 0, 0, 80, 88, 3, 16, 8, 0, 81, 82, 3, 16, 8, 0, 82, 83, 5, 13, 0, 0, 83, 88, 1, 0, 0, 0, 84, 85, 3, 16, 8, 0, 85, 86, 5, 14, 0, 0, 86, 88, 1, 0, 0, 0, 87, 80, 1, 0, 0, 0, 87, 81, 1, 0, 0, 0, 87, 84, 1, 0, 0, 0, 88, 15, 1, 0, 0, 0, 89, 90, 3, 18, 9, 0, 90, 17, 1, 0, 0, 0, 91, 92, 7, 1, 0, 0, 92, 19, 1, 0, 0, 0, 8, 24, 37, 46, 49, 58, 66, 76, 87]
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
T__0=1
|
|
2
|
+
T__1=2
|
|
3
|
+
T__2=3
|
|
4
|
+
T__3=4
|
|
5
|
+
T__4=5
|
|
6
|
+
T__5=6
|
|
7
|
+
T__6=7
|
|
8
|
+
T__7=8
|
|
9
|
+
T__8=9
|
|
10
|
+
T__9=10
|
|
11
|
+
T__10=11
|
|
12
|
+
T__11=12
|
|
13
|
+
T__12=13
|
|
14
|
+
T__13=14
|
|
15
|
+
T__14=15
|
|
16
|
+
T__15=16
|
|
17
|
+
T__16=17
|
|
18
|
+
T__17=18
|
|
19
|
+
T__18=19
|
|
20
|
+
IDENTIFIER=20
|
|
21
|
+
CAPITAL_IDENTIFIER=21
|
|
22
|
+
WS=22
|
|
23
|
+
'module'=1
|
|
24
|
+
'collection'=2
|
|
25
|
+
'{'=3
|
|
26
|
+
','=4
|
|
27
|
+
'}'=5
|
|
28
|
+
'property'=6
|
|
29
|
+
':'=7
|
|
30
|
+
'('=8
|
|
31
|
+
')'=9
|
|
32
|
+
'reference'=10
|
|
33
|
+
'unique'=11
|
|
34
|
+
'index'=12
|
|
35
|
+
'[]'=13
|
|
36
|
+
'?'=14
|
|
37
|
+
'String'=15
|
|
38
|
+
'Number'=16
|
|
39
|
+
'Boolean'=17
|
|
40
|
+
'any'=18
|
|
41
|
+
'Object'=19
|