blend-kit 1.0.1 → 1.0.2

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.
Files changed (70) hide show
  1. package/antlr.readme +1 -0
  2. package/dist/ai-models/api-label/APILabelHelper.js +76 -0
  3. package/dist/ai-models/api-label/APILabelHelper.ts +34 -0
  4. package/dist/ai-models/api-label/labels.json +1 -0
  5. package/dist/ai-models/api-label/model.json +1 -0
  6. package/dist/ai-models/api-label/weights.bin +0 -0
  7. package/dist/ai-models/api-label/wordIndex.json +1 -0
  8. package/dist/ai-models/tokenizer.js +18 -0
  9. package/dist/ai-models/tokenizer.ts +16 -0
  10. package/dist/commands/ui.js +15 -0
  11. package/dist/helper/ExpressHelper.js +18 -12
  12. package/dist/helper/FrontEndApiHelper.js +12 -14
  13. package/dist/helper/FrontEndReactApiHelper.js +6 -6
  14. package/dist/helper/MongoHelper.js +9 -2
  15. package/dist/helper/RNHelper.js +7 -0
  16. package/dist/helper/ReactHelper.js +10 -2
  17. package/dist/helper/grammarHelper/BlendApiGrammarHelper.js +44 -5
  18. package/dist/helper/grammarHelper/BlendMongoGrammarHelper.js +2 -1
  19. package/dist/index.js +2 -2
  20. package/dist/parser/blendExpress/src/grammar/BlendExpressLexer.js +201 -0
  21. package/dist/parser/blendExpress/src/grammar/BlendExpressListener.js +3 -0
  22. package/dist/parser/blendExpress/src/grammar/BlendExpressParser.js +961 -0
  23. package/dist/parser/blendReact/src/grammar/BlendReactLexer.js +1 -1
  24. package/dist/server.js +31 -0
  25. package/dist/types/apiOperationTypes.js +8 -1
  26. package/package.json +6 -3
  27. package/src/ai-models/api-label/APILabelHelper.ts +34 -0
  28. package/src/ai-models/api-label/labels.json +1 -0
  29. package/src/ai-models/api-label/model.json +1 -0
  30. package/src/ai-models/api-label/weights.bin +0 -0
  31. package/src/ai-models/api-label/wordIndex.json +1 -0
  32. package/src/ai-models/tokenizer.ts +16 -0
  33. package/src/grammar/.antlr/BlendApiLexer.java +2 -2
  34. package/src/grammar/.antlr/BlendExpress.interp +70 -0
  35. package/src/grammar/.antlr/BlendExpress.tokens +44 -0
  36. package/src/grammar/.antlr/BlendExpressLexer.interp +89 -0
  37. package/src/grammar/.antlr/BlendExpressLexer.java +237 -0
  38. package/src/grammar/.antlr/BlendExpressLexer.tokens +44 -0
  39. package/src/grammar/.antlr/BlendExpressParser.java +767 -0
  40. package/src/grammar/.antlr/BlendMongo.interp +3 -1
  41. package/src/grammar/.antlr/BlendMongo.tokens +5 -3
  42. package/src/grammar/.antlr/BlendMongoLexer.interp +4 -1
  43. package/src/grammar/.antlr/BlendMongoLexer.java +99 -95
  44. package/src/grammar/.antlr/BlendMongoLexer.tokens +5 -3
  45. package/src/grammar/.antlr/BlendMongoParser.java +11 -11
  46. package/src/grammar/.antlr/BlendReactLexer.interp +1 -1
  47. package/src/grammar/.antlr/BlendReactLexer.java +1 -1
  48. package/src/grammar/BlendExpress.g4 +26 -0
  49. package/src/grammar/BlendMongo.g4 +1 -1
  50. package/src/grammar/BlendReact.g4 +1 -1
  51. package/src/helper/ExpressHelper.ts +153 -141
  52. package/src/helper/FrontEndApiHelper.ts +13 -14
  53. package/src/helper/FrontEndReactApiHelper.ts +6 -6
  54. package/src/helper/MongoHelper.ts +9 -2
  55. package/src/helper/RNHelper.ts +76 -70
  56. package/src/helper/ReactHelper.ts +10 -2
  57. package/src/helper/grammarHelper/BlendApiGrammarHelper.ts +46 -6
  58. package/src/helper/grammarHelper/BlendMongoGrammarHelper.ts +4 -3
  59. package/src/index.ts +3 -2
  60. package/src/parser/blendExpress/src/grammar/BlendExpress.interp +70 -0
  61. package/src/parser/blendExpress/src/grammar/BlendExpress.tokens +44 -0
  62. package/src/parser/blendExpress/src/grammar/BlendExpressLexer.interp +89 -0
  63. package/src/parser/blendExpress/src/grammar/BlendExpressLexer.tokens +44 -0
  64. package/src/parser/blendExpress/src/grammar/BlendExpressLexer.ts +193 -0
  65. package/src/parser/blendExpress/src/grammar/BlendExpressListener.ts +145 -0
  66. package/src/parser/blendExpress/src/grammar/BlendExpressParser.ts +968 -0
  67. package/src/parser/blendReact/src/grammar/BlendReactLexer.interp +1 -1
  68. package/src/parser/blendReact/src/grammar/BlendReactLexer.ts +1 -1
  69. package/src/types/apiOperationTypes.ts +12 -0
  70. package/tsconfig.json +1 -0
@@ -0,0 +1,89 @@
1
+ token literal names:
2
+ null
3
+ 'section'
4
+ '{'
5
+ '}'
6
+ 'module'
7
+ 'api'
8
+ '('
9
+ ')'
10
+ 'authenticated'
11
+ 'input('
12
+ ','
13
+ 'output('
14
+ ':'
15
+ '[]'
16
+ '?'
17
+ '->'
18
+ 'string'
19
+ 'number'
20
+ 'boolean'
21
+ 'any'
22
+ 'object'
23
+ null
24
+ null
25
+ null
26
+ null
27
+
28
+ token symbolic names:
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
+ null
48
+ null
49
+ null
50
+ HTTP_METHOD
51
+ IDENTIFIER
52
+ CAPITAL_IDENTIFIER
53
+ WS
54
+
55
+ rule names:
56
+ T__0
57
+ T__1
58
+ T__2
59
+ T__3
60
+ T__4
61
+ T__5
62
+ T__6
63
+ T__7
64
+ T__8
65
+ T__9
66
+ T__10
67
+ T__11
68
+ T__12
69
+ T__13
70
+ T__14
71
+ T__15
72
+ T__16
73
+ T__17
74
+ T__18
75
+ T__19
76
+ HTTP_METHOD
77
+ IDENTIFIER
78
+ CAPITAL_IDENTIFIER
79
+ WS
80
+
81
+ channel names:
82
+ DEFAULT_TOKEN_CHANNEL
83
+ HIDDEN
84
+
85
+ mode names:
86
+ DEFAULT_MODE
87
+
88
+ atn:
89
+ [3, 51485, 51898, 1421, 44986, 20307, 1543, 60043, 49729, 2, 26, 191, 8, 1, 4, 2, 9, 2, 4, 3, 9, 3, 4, 4, 9, 4, 4, 5, 9, 5, 4, 6, 9, 6, 4, 7, 9, 7, 4, 8, 9, 8, 4, 9, 9, 9, 4, 10, 9, 10, 4, 11, 9, 11, 4, 12, 9, 12, 4, 13, 9, 13, 4, 14, 9, 14, 4, 15, 9, 15, 4, 16, 9, 16, 4, 17, 9, 17, 4, 18, 9, 18, 4, 19, 9, 19, 4, 20, 9, 20, 4, 21, 9, 21, 4, 22, 9, 22, 4, 23, 9, 23, 4, 24, 9, 24, 4, 25, 9, 25, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 3, 3, 3, 3, 4, 3, 4, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 6, 3, 6, 3, 6, 3, 6, 3, 7, 3, 7, 3, 8, 3, 8, 3, 9, 3, 9, 3, 9, 3, 9, 3, 9, 3, 9, 3, 9, 3, 9, 3, 9, 3, 9, 3, 9, 3, 9, 3, 9, 3, 9, 3, 10, 3, 10, 3, 10, 3, 10, 3, 10, 3, 10, 3, 10, 3, 11, 3, 11, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 13, 3, 13, 3, 14, 3, 14, 3, 14, 3, 15, 3, 15, 3, 16, 3, 16, 3, 16, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 18, 3, 18, 3, 18, 3, 18, 3, 18, 3, 18, 3, 18, 3, 19, 3, 19, 3, 19, 3, 19, 3, 19, 3, 19, 3, 19, 3, 19, 3, 20, 3, 20, 3, 20, 3, 20, 3, 21, 3, 21, 3, 21, 3, 21, 3, 21, 3, 21, 3, 21, 3, 22, 3, 22, 3, 22, 3, 22, 3, 22, 3, 22, 3, 22, 3, 22, 3, 22, 3, 22, 3, 22, 3, 22, 3, 22, 3, 22, 3, 22, 3, 22, 5, 22, 169, 10, 22, 3, 23, 3, 23, 7, 23, 173, 10, 23, 12, 23, 14, 23, 176, 11, 23, 3, 24, 3, 24, 7, 24, 180, 10, 24, 12, 24, 14, 24, 183, 11, 24, 3, 25, 6, 25, 186, 10, 25, 13, 25, 14, 25, 187, 3, 25, 3, 25, 2, 2, 2, 26, 3, 2, 3, 5, 2, 4, 7, 2, 5, 9, 2, 6, 11, 2, 7, 13, 2, 8, 15, 2, 9, 17, 2, 10, 19, 2, 11, 21, 2, 12, 23, 2, 13, 25, 2, 14, 27, 2, 15, 29, 2, 16, 31, 2, 17, 33, 2, 18, 35, 2, 19, 37, 2, 20, 39, 2, 21, 41, 2, 22, 43, 2, 23, 45, 2, 24, 47, 2, 25, 49, 2, 26, 3, 2, 6, 4, 2, 97, 97, 99, 124, 6, 2, 50, 59, 67, 92, 97, 97, 99, 124, 3, 2, 67, 92, 5, 2, 11, 12, 15, 15, 34, 34, 2, 196, 2, 3, 3, 2, 2, 2, 2, 5, 3, 2, 2, 2, 2, 7, 3, 2, 2, 2, 2, 9, 3, 2, 2, 2, 2, 11, 3, 2, 2, 2, 2, 13, 3, 2, 2, 2, 2, 15, 3, 2, 2, 2, 2, 17, 3, 2, 2, 2, 2, 19, 3, 2, 2, 2, 2, 21, 3, 2, 2, 2, 2, 23, 3, 2, 2, 2, 2, 25, 3, 2, 2, 2, 2, 27, 3, 2, 2, 2, 2, 29, 3, 2, 2, 2, 2, 31, 3, 2, 2, 2, 2, 33, 3, 2, 2, 2, 2, 35, 3, 2, 2, 2, 2, 37, 3, 2, 2, 2, 2, 39, 3, 2, 2, 2, 2, 41, 3, 2, 2, 2, 2, 43, 3, 2, 2, 2, 2, 45, 3, 2, 2, 2, 2, 47, 3, 2, 2, 2, 2, 49, 3, 2, 2, 2, 3, 51, 3, 2, 2, 2, 5, 59, 3, 2, 2, 2, 7, 61, 3, 2, 2, 2, 9, 63, 3, 2, 2, 2, 11, 70, 3, 2, 2, 2, 13, 74, 3, 2, 2, 2, 15, 76, 3, 2, 2, 2, 17, 78, 3, 2, 2, 2, 19, 92, 3, 2, 2, 2, 21, 99, 3, 2, 2, 2, 23, 101, 3, 2, 2, 2, 25, 109, 3, 2, 2, 2, 27, 111, 3, 2, 2, 2, 29, 114, 3, 2, 2, 2, 31, 116, 3, 2, 2, 2, 33, 119, 3, 2, 2, 2, 35, 126, 3, 2, 2, 2, 37, 133, 3, 2, 2, 2, 39, 141, 3, 2, 2, 2, 41, 145, 3, 2, 2, 2, 43, 168, 3, 2, 2, 2, 45, 170, 3, 2, 2, 2, 47, 177, 3, 2, 2, 2, 49, 185, 3, 2, 2, 2, 51, 52, 7, 117, 2, 2, 52, 53, 7, 103, 2, 2, 53, 54, 7, 101, 2, 2, 54, 55, 7, 118, 2, 2, 55, 56, 7, 107, 2, 2, 56, 57, 7, 113, 2, 2, 57, 58, 7, 112, 2, 2, 58, 4, 3, 2, 2, 2, 59, 60, 7, 125, 2, 2, 60, 6, 3, 2, 2, 2, 61, 62, 7, 127, 2, 2, 62, 8, 3, 2, 2, 2, 63, 64, 7, 111, 2, 2, 64, 65, 7, 113, 2, 2, 65, 66, 7, 102, 2, 2, 66, 67, 7, 119, 2, 2, 67, 68, 7, 110, 2, 2, 68, 69, 7, 103, 2, 2, 69, 10, 3, 2, 2, 2, 70, 71, 7, 99, 2, 2, 71, 72, 7, 114, 2, 2, 72, 73, 7, 107, 2, 2, 73, 12, 3, 2, 2, 2, 74, 75, 7, 42, 2, 2, 75, 14, 3, 2, 2, 2, 76, 77, 7, 43, 2, 2, 77, 16, 3, 2, 2, 2, 78, 79, 7, 99, 2, 2, 79, 80, 7, 119, 2, 2, 80, 81, 7, 118, 2, 2, 81, 82, 7, 106, 2, 2, 82, 83, 7, 103, 2, 2, 83, 84, 7, 112, 2, 2, 84, 85, 7, 118, 2, 2, 85, 86, 7, 107, 2, 2, 86, 87, 7, 101, 2, 2, 87, 88, 7, 99, 2, 2, 88, 89, 7, 118, 2, 2, 89, 90, 7, 103, 2, 2, 90, 91, 7, 102, 2, 2, 91, 18, 3, 2, 2, 2, 92, 93, 7, 107, 2, 2, 93, 94, 7, 112, 2, 2, 94, 95, 7, 114, 2, 2, 95, 96, 7, 119, 2, 2, 96, 97, 7, 118, 2, 2, 97, 98, 7, 42, 2, 2, 98, 20, 3, 2, 2, 2, 99, 100, 7, 46, 2, 2, 100, 22, 3, 2, 2, 2, 101, 102, 7, 113, 2, 2, 102, 103, 7, 119, 2, 2, 103, 104, 7, 118, 2, 2, 104, 105, 7, 114, 2, 2, 105, 106, 7, 119, 2, 2, 106, 107, 7, 118, 2, 2, 107, 108, 7, 42, 2, 2, 108, 24, 3, 2, 2, 2, 109, 110, 7, 60, 2, 2, 110, 26, 3, 2, 2, 2, 111, 112, 7, 93, 2, 2, 112, 113, 7, 95, 2, 2, 113, 28, 3, 2, 2, 2, 114, 115, 7, 65, 2, 2, 115, 30, 3, 2, 2, 2, 116, 117, 7, 47, 2, 2, 117, 118, 7, 64, 2, 2, 118, 32, 3, 2, 2, 2, 119, 120, 7, 117, 2, 2, 120, 121, 7, 118, 2, 2, 121, 122, 7, 116, 2, 2, 122, 123, 7, 107, 2, 2, 123, 124, 7, 112, 2, 2, 124, 125, 7, 105, 2, 2, 125, 34, 3, 2, 2, 2, 126, 127, 7, 112, 2, 2, 127, 128, 7, 119, 2, 2, 128, 129, 7, 111, 2, 2, 129, 130, 7, 100, 2, 2, 130, 131, 7, 103, 2, 2, 131, 132, 7, 116, 2, 2, 132, 36, 3, 2, 2, 2, 133, 134, 7, 100, 2, 2, 134, 135, 7, 113, 2, 2, 135, 136, 7, 113, 2, 2, 136, 137, 7, 110, 2, 2, 137, 138, 7, 103, 2, 2, 138, 139, 7, 99, 2, 2, 139, 140, 7, 112, 2, 2, 140, 38, 3, 2, 2, 2, 141, 142, 7, 99, 2, 2, 142, 143, 7, 112, 2, 2, 143, 144, 7, 123, 2, 2, 144, 40, 3, 2, 2, 2, 145, 146, 7, 113, 2, 2, 146, 147, 7, 100, 2, 2, 147, 148, 7, 108, 2, 2, 148, 149, 7, 103, 2, 2, 149, 150, 7, 101, 2, 2, 150, 151, 7, 118, 2, 2, 151, 42, 3, 2, 2, 2, 152, 153, 7, 73, 2, 2, 153, 154, 7, 71, 2, 2, 154, 169, 7, 86, 2, 2, 155, 156, 7, 82, 2, 2, 156, 157, 7, 81, 2, 2, 157, 158, 7, 85, 2, 2, 158, 169, 7, 86, 2, 2, 159, 160, 7, 70, 2, 2, 160, 161, 7, 71, 2, 2, 161, 162, 7, 78, 2, 2, 162, 163, 7, 71, 2, 2, 163, 164, 7, 86, 2, 2, 164, 169, 7, 71, 2, 2, 165, 166, 7, 82, 2, 2, 166, 167, 7, 87, 2, 2, 167, 169, 7, 86, 2, 2, 168, 152, 3, 2, 2, 2, 168, 155, 3, 2, 2, 2, 168, 159, 3, 2, 2, 2, 168, 165, 3, 2, 2, 2, 169, 44, 3, 2, 2, 2, 170, 174, 9, 2, 2, 2, 171, 173, 9, 3, 2, 2, 172, 171, 3, 2, 2, 2, 173, 176, 3, 2, 2, 2, 174, 172, 3, 2, 2, 2, 174, 175, 3, 2, 2, 2, 175, 46, 3, 2, 2, 2, 176, 174, 3, 2, 2, 2, 177, 181, 9, 4, 2, 2, 178, 180, 9, 3, 2, 2, 179, 178, 3, 2, 2, 2, 180, 183, 3, 2, 2, 2, 181, 179, 3, 2, 2, 2, 181, 182, 3, 2, 2, 2, 182, 48, 3, 2, 2, 2, 183, 181, 3, 2, 2, 2, 184, 186, 9, 5, 2, 2, 185, 184, 3, 2, 2, 2, 186, 187, 3, 2, 2, 2, 187, 185, 3, 2, 2, 2, 187, 188, 3, 2, 2, 2, 188, 189, 3, 2, 2, 2, 189, 190, 8, 25, 2, 2, 190, 50, 3, 2, 2, 2, 7, 2, 168, 174, 181, 187, 3, 8, 2, 2]
@@ -0,0 +1,44 @@
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
+ T__19=20
21
+ HTTP_METHOD=21
22
+ IDENTIFIER=22
23
+ CAPITAL_IDENTIFIER=23
24
+ WS=24
25
+ 'section'=1
26
+ '{'=2
27
+ '}'=3
28
+ 'module'=4
29
+ 'api'=5
30
+ '('=6
31
+ ')'=7
32
+ 'authenticated'=8
33
+ 'input('=9
34
+ ','=10
35
+ 'output('=11
36
+ ':'=12
37
+ '[]'=13
38
+ '?'=14
39
+ '->'=15
40
+ 'string'=16
41
+ 'number'=17
42
+ 'boolean'=18
43
+ 'any'=19
44
+ 'object'=20
@@ -0,0 +1,193 @@
1
+ // Generated from src/grammar/BlendExpress.g4 by ANTLR 4.9.0-SNAPSHOT
2
+
3
+
4
+ import { ATN } from "antlr4ts/atn/ATN";
5
+ import { ATNDeserializer } from "antlr4ts/atn/ATNDeserializer";
6
+ import { CharStream } from "antlr4ts/CharStream";
7
+ import { Lexer } from "antlr4ts/Lexer";
8
+ import { LexerATNSimulator } from "antlr4ts/atn/LexerATNSimulator";
9
+ import { NotNull } from "antlr4ts/Decorators";
10
+ import { Override } from "antlr4ts/Decorators";
11
+ import { RuleContext } from "antlr4ts/RuleContext";
12
+ import { Vocabulary } from "antlr4ts/Vocabulary";
13
+ import { VocabularyImpl } from "antlr4ts/VocabularyImpl";
14
+
15
+ import * as Utils from "antlr4ts/misc/Utils";
16
+
17
+
18
+ export class BlendExpressLexer extends Lexer {
19
+ public static readonly T__0 = 1;
20
+ public static readonly T__1 = 2;
21
+ public static readonly T__2 = 3;
22
+ public static readonly T__3 = 4;
23
+ public static readonly T__4 = 5;
24
+ public static readonly T__5 = 6;
25
+ public static readonly T__6 = 7;
26
+ public static readonly T__7 = 8;
27
+ public static readonly T__8 = 9;
28
+ public static readonly T__9 = 10;
29
+ public static readonly T__10 = 11;
30
+ public static readonly T__11 = 12;
31
+ public static readonly T__12 = 13;
32
+ public static readonly T__13 = 14;
33
+ public static readonly T__14 = 15;
34
+ public static readonly T__15 = 16;
35
+ public static readonly T__16 = 17;
36
+ public static readonly T__17 = 18;
37
+ public static readonly T__18 = 19;
38
+ public static readonly T__19 = 20;
39
+ public static readonly HTTP_METHOD = 21;
40
+ public static readonly IDENTIFIER = 22;
41
+ public static readonly CAPITAL_IDENTIFIER = 23;
42
+ public static readonly WS = 24;
43
+
44
+ // tslint:disable:no-trailing-whitespace
45
+ public static readonly channelNames: string[] = [
46
+ "DEFAULT_TOKEN_CHANNEL", "HIDDEN",
47
+ ];
48
+
49
+ // tslint:disable:no-trailing-whitespace
50
+ public static readonly modeNames: string[] = [
51
+ "DEFAULT_MODE",
52
+ ];
53
+
54
+ public static readonly ruleNames: string[] = [
55
+ "T__0", "T__1", "T__2", "T__3", "T__4", "T__5", "T__6", "T__7", "T__8",
56
+ "T__9", "T__10", "T__11", "T__12", "T__13", "T__14", "T__15", "T__16",
57
+ "T__17", "T__18", "T__19", "HTTP_METHOD", "IDENTIFIER", "CAPITAL_IDENTIFIER",
58
+ "WS",
59
+ ];
60
+
61
+ private static readonly _LITERAL_NAMES: Array<string | undefined> = [
62
+ undefined, "'section'", "'{'", "'}'", "'module'", "'api'", "'('", "')'",
63
+ "'authenticated'", "'input('", "','", "'output('", "':'", "'[]'", "'?'",
64
+ "'->'", "'string'", "'number'", "'boolean'", "'any'", "'object'",
65
+ ];
66
+ private static readonly _SYMBOLIC_NAMES: Array<string | undefined> = [
67
+ undefined, undefined, undefined, undefined, undefined, undefined, undefined,
68
+ undefined, undefined, undefined, undefined, undefined, undefined, undefined,
69
+ undefined, undefined, undefined, undefined, undefined, undefined, undefined,
70
+ "HTTP_METHOD", "IDENTIFIER", "CAPITAL_IDENTIFIER", "WS",
71
+ ];
72
+ public static readonly VOCABULARY: Vocabulary = new VocabularyImpl(BlendExpressLexer._LITERAL_NAMES, BlendExpressLexer._SYMBOLIC_NAMES, []);
73
+
74
+ // @Override
75
+ // @NotNull
76
+ public get vocabulary(): Vocabulary {
77
+ return BlendExpressLexer.VOCABULARY;
78
+ }
79
+ // tslint:enable:no-trailing-whitespace
80
+
81
+
82
+ constructor(input: CharStream) {
83
+ super(input);
84
+ this._interp = new LexerATNSimulator(BlendExpressLexer._ATN, this);
85
+ }
86
+
87
+ // @Override
88
+ public get grammarFileName(): string { return "BlendExpress.g4"; }
89
+
90
+ // @Override
91
+ public get ruleNames(): string[] { return BlendExpressLexer.ruleNames; }
92
+
93
+ // @Override
94
+ public get serializedATN(): string { return BlendExpressLexer._serializedATN; }
95
+
96
+ // @Override
97
+ public get channelNames(): string[] { return BlendExpressLexer.channelNames; }
98
+
99
+ // @Override
100
+ public get modeNames(): string[] { return BlendExpressLexer.modeNames; }
101
+
102
+ public static readonly _serializedATN: string =
103
+ "\x03\uC91D\uCABA\u058D\uAFBA\u4F53\u0607\uEA8B\uC241\x02\x1A\xBF\b\x01" +
104
+ "\x04\x02\t\x02\x04\x03\t\x03\x04\x04\t\x04\x04\x05\t\x05\x04\x06\t\x06" +
105
+ "\x04\x07\t\x07\x04\b\t\b\x04\t\t\t\x04\n\t\n\x04\v\t\v\x04\f\t\f\x04\r" +
106
+ "\t\r\x04\x0E\t\x0E\x04\x0F\t\x0F\x04\x10\t\x10\x04\x11\t\x11\x04\x12\t" +
107
+ "\x12\x04\x13\t\x13\x04\x14\t\x14\x04\x15\t\x15\x04\x16\t\x16\x04\x17\t" +
108
+ "\x17\x04\x18\t\x18\x04\x19\t\x19\x03\x02\x03\x02\x03\x02\x03\x02\x03\x02" +
109
+ "\x03\x02\x03\x02\x03\x02\x03\x03\x03\x03\x03\x04\x03\x04\x03\x05\x03\x05" +
110
+ "\x03\x05\x03\x05\x03\x05\x03\x05\x03\x05\x03\x06\x03\x06\x03\x06\x03\x06" +
111
+ "\x03\x07\x03\x07\x03\b\x03\b\x03\t\x03\t\x03\t\x03\t\x03\t\x03\t\x03\t" +
112
+ "\x03\t\x03\t\x03\t\x03\t\x03\t\x03\t\x03\t\x03\n\x03\n\x03\n\x03\n\x03" +
113
+ "\n\x03\n\x03\n\x03\v\x03\v\x03\f\x03\f\x03\f\x03\f\x03\f\x03\f\x03\f\x03" +
114
+ "\f\x03\r\x03\r\x03\x0E\x03\x0E\x03\x0E\x03\x0F\x03\x0F\x03\x10\x03\x10" +
115
+ "\x03\x10\x03\x11\x03\x11\x03\x11\x03\x11\x03\x11\x03\x11\x03\x11\x03\x12" +
116
+ "\x03\x12\x03\x12\x03\x12\x03\x12\x03\x12\x03\x12\x03\x13\x03\x13\x03\x13" +
117
+ "\x03\x13\x03\x13\x03\x13\x03\x13\x03\x13\x03\x14\x03\x14\x03\x14\x03\x14" +
118
+ "\x03\x15\x03\x15\x03\x15\x03\x15\x03\x15\x03\x15\x03\x15\x03\x16\x03\x16" +
119
+ "\x03\x16\x03\x16\x03\x16\x03\x16\x03\x16\x03\x16\x03\x16\x03\x16\x03\x16" +
120
+ "\x03\x16\x03\x16\x03\x16\x03\x16\x03\x16\x05\x16\xA9\n\x16\x03\x17\x03" +
121
+ "\x17\x07\x17\xAD\n\x17\f\x17\x0E\x17\xB0\v\x17\x03\x18\x03\x18\x07\x18" +
122
+ "\xB4\n\x18\f\x18\x0E\x18\xB7\v\x18\x03\x19\x06\x19\xBA\n\x19\r\x19\x0E" +
123
+ "\x19\xBB\x03\x19\x03\x19\x02\x02\x02\x1A\x03\x02\x03\x05\x02\x04\x07\x02" +
124
+ "\x05\t\x02\x06\v\x02\x07\r\x02\b\x0F\x02\t\x11\x02\n\x13\x02\v\x15\x02" +
125
+ "\f\x17\x02\r\x19\x02\x0E\x1B\x02\x0F\x1D\x02\x10\x1F\x02\x11!\x02\x12" +
126
+ "#\x02\x13%\x02\x14\'\x02\x15)\x02\x16+\x02\x17-\x02\x18/\x02\x191\x02" +
127
+ "\x1A\x03\x02\x06\x04\x02aac|\x06\x022;C\\aac|\x03\x02C\\\x05\x02\v\f\x0F" +
128
+ "\x0F\"\"\x02\xC4\x02\x03\x03\x02\x02\x02\x02\x05\x03\x02\x02\x02\x02\x07" +
129
+ "\x03\x02\x02\x02\x02\t\x03\x02\x02\x02\x02\v\x03\x02\x02\x02\x02\r\x03" +
130
+ "\x02\x02\x02\x02\x0F\x03\x02\x02\x02\x02\x11\x03\x02\x02\x02\x02\x13\x03" +
131
+ "\x02\x02\x02\x02\x15\x03\x02\x02\x02\x02\x17\x03\x02\x02\x02\x02\x19\x03" +
132
+ "\x02\x02\x02\x02\x1B\x03\x02\x02\x02\x02\x1D\x03\x02\x02\x02\x02\x1F\x03" +
133
+ "\x02\x02\x02\x02!\x03\x02\x02\x02\x02#\x03\x02\x02\x02\x02%\x03\x02\x02" +
134
+ "\x02\x02\'\x03\x02\x02\x02\x02)\x03\x02\x02\x02\x02+\x03\x02\x02\x02\x02" +
135
+ "-\x03\x02\x02\x02\x02/\x03\x02\x02\x02\x021\x03\x02\x02\x02\x033\x03\x02" +
136
+ "\x02\x02\x05;\x03\x02\x02\x02\x07=\x03\x02\x02\x02\t?\x03\x02\x02\x02" +
137
+ "\vF\x03\x02\x02\x02\rJ\x03\x02\x02\x02\x0FL\x03\x02\x02\x02\x11N\x03\x02" +
138
+ "\x02\x02\x13\\\x03\x02\x02\x02\x15c\x03\x02\x02\x02\x17e\x03\x02\x02\x02" +
139
+ "\x19m\x03\x02\x02\x02\x1Bo\x03\x02\x02\x02\x1Dr\x03\x02\x02\x02\x1Ft\x03" +
140
+ "\x02\x02\x02!w\x03\x02\x02\x02#~\x03\x02\x02\x02%\x85\x03\x02\x02\x02" +
141
+ "\'\x8D\x03\x02\x02\x02)\x91\x03\x02\x02\x02+\xA8\x03\x02\x02\x02-\xAA" +
142
+ "\x03\x02\x02\x02/\xB1\x03\x02\x02\x021\xB9\x03\x02\x02\x0234\x07u\x02" +
143
+ "\x0245\x07g\x02\x0256\x07e\x02\x0267\x07v\x02\x0278\x07k\x02\x0289\x07" +
144
+ "q\x02\x029:\x07p\x02\x02:\x04\x03\x02\x02\x02;<\x07}\x02\x02<\x06\x03" +
145
+ "\x02\x02\x02=>\x07\x7F\x02\x02>\b\x03\x02\x02\x02?@\x07o\x02\x02@A\x07" +
146
+ "q\x02\x02AB\x07f\x02\x02BC\x07w\x02\x02CD\x07n\x02\x02DE\x07g\x02\x02" +
147
+ "E\n\x03\x02\x02\x02FG\x07c\x02\x02GH\x07r\x02\x02HI\x07k\x02\x02I\f\x03" +
148
+ "\x02\x02\x02JK\x07*\x02\x02K\x0E\x03\x02\x02\x02LM\x07+\x02\x02M\x10\x03" +
149
+ "\x02\x02\x02NO\x07c\x02\x02OP\x07w\x02\x02PQ\x07v\x02\x02QR\x07j\x02\x02" +
150
+ "RS\x07g\x02\x02ST\x07p\x02\x02TU\x07v\x02\x02UV\x07k\x02\x02VW\x07e\x02" +
151
+ "\x02WX\x07c\x02\x02XY\x07v\x02\x02YZ\x07g\x02\x02Z[\x07f\x02\x02[\x12" +
152
+ "\x03\x02\x02\x02\\]\x07k\x02\x02]^\x07p\x02\x02^_\x07r\x02\x02_`\x07w" +
153
+ "\x02\x02`a\x07v\x02\x02ab\x07*\x02\x02b\x14\x03\x02\x02\x02cd\x07.\x02" +
154
+ "\x02d\x16\x03\x02\x02\x02ef\x07q\x02\x02fg\x07w\x02\x02gh\x07v\x02\x02" +
155
+ "hi\x07r\x02\x02ij\x07w\x02\x02jk\x07v\x02\x02kl\x07*\x02\x02l\x18\x03" +
156
+ "\x02\x02\x02mn\x07<\x02\x02n\x1A\x03\x02\x02\x02op\x07]\x02\x02pq\x07" +
157
+ "_\x02\x02q\x1C\x03\x02\x02\x02rs\x07A\x02\x02s\x1E\x03\x02\x02\x02tu\x07" +
158
+ "/\x02\x02uv\x07@\x02\x02v \x03\x02\x02\x02wx\x07u\x02\x02xy\x07v\x02\x02" +
159
+ "yz\x07t\x02\x02z{\x07k\x02\x02{|\x07p\x02\x02|}\x07i\x02\x02}\"\x03\x02" +
160
+ "\x02\x02~\x7F\x07p\x02\x02\x7F\x80\x07w\x02\x02\x80\x81\x07o\x02\x02\x81" +
161
+ "\x82\x07d\x02\x02\x82\x83\x07g\x02\x02\x83\x84\x07t\x02\x02\x84$\x03\x02" +
162
+ "\x02\x02\x85\x86\x07d\x02\x02\x86\x87\x07q\x02\x02\x87\x88\x07q\x02\x02" +
163
+ "\x88\x89\x07n\x02\x02\x89\x8A\x07g\x02\x02\x8A\x8B\x07c\x02\x02\x8B\x8C" +
164
+ "\x07p\x02\x02\x8C&\x03\x02\x02\x02\x8D\x8E\x07c\x02\x02\x8E\x8F\x07p\x02" +
165
+ "\x02\x8F\x90\x07{\x02\x02\x90(\x03\x02\x02\x02\x91\x92\x07q\x02\x02\x92" +
166
+ "\x93\x07d\x02\x02\x93\x94\x07l\x02\x02\x94\x95\x07g\x02\x02\x95\x96\x07" +
167
+ "e\x02\x02\x96\x97\x07v\x02\x02\x97*\x03\x02\x02\x02\x98\x99\x07I\x02\x02" +
168
+ "\x99\x9A\x07G\x02\x02\x9A\xA9\x07V\x02\x02\x9B\x9C\x07R\x02\x02\x9C\x9D" +
169
+ "\x07Q\x02\x02\x9D\x9E\x07U\x02\x02\x9E\xA9\x07V\x02\x02\x9F\xA0\x07F\x02" +
170
+ "\x02\xA0\xA1\x07G\x02\x02\xA1\xA2\x07N\x02\x02\xA2\xA3\x07G\x02\x02\xA3" +
171
+ "\xA4\x07V\x02\x02\xA4\xA9\x07G\x02\x02\xA5\xA6\x07R\x02\x02\xA6\xA7\x07" +
172
+ "W\x02\x02\xA7\xA9\x07V\x02\x02\xA8\x98\x03\x02\x02\x02\xA8\x9B\x03\x02" +
173
+ "\x02\x02\xA8\x9F\x03\x02\x02\x02\xA8\xA5\x03\x02\x02\x02\xA9,\x03\x02" +
174
+ "\x02\x02\xAA\xAE\t\x02\x02\x02\xAB\xAD\t\x03\x02\x02\xAC\xAB\x03\x02\x02" +
175
+ "\x02\xAD\xB0\x03\x02\x02\x02\xAE\xAC\x03\x02\x02\x02\xAE\xAF\x03\x02\x02" +
176
+ "\x02\xAF.\x03\x02\x02\x02\xB0\xAE\x03\x02\x02\x02\xB1\xB5\t\x04\x02\x02" +
177
+ "\xB2\xB4\t\x03\x02\x02\xB3\xB2\x03\x02\x02\x02\xB4\xB7\x03\x02\x02\x02" +
178
+ "\xB5\xB3\x03\x02\x02\x02\xB5\xB6\x03\x02\x02\x02\xB60\x03\x02\x02\x02" +
179
+ "\xB7\xB5\x03\x02\x02\x02\xB8\xBA\t\x05\x02\x02\xB9\xB8\x03\x02\x02\x02" +
180
+ "\xBA\xBB\x03\x02\x02\x02\xBB\xB9\x03\x02\x02\x02\xBB\xBC\x03\x02\x02\x02" +
181
+ "\xBC\xBD\x03\x02\x02\x02\xBD\xBE\b\x19\x02\x02\xBE2\x03\x02\x02\x02\x07" +
182
+ "\x02\xA8\xAE\xB5\xBB\x03\b\x02\x02";
183
+ public static __ATN: ATN;
184
+ public static get _ATN(): ATN {
185
+ if (!BlendExpressLexer.__ATN) {
186
+ BlendExpressLexer.__ATN = new ATNDeserializer().deserialize(Utils.toCharArray(BlendExpressLexer._serializedATN));
187
+ }
188
+
189
+ return BlendExpressLexer.__ATN;
190
+ }
191
+
192
+ }
193
+
@@ -0,0 +1,145 @@
1
+ // Generated from src/grammar/BlendExpress.g4 by ANTLR 4.9.0-SNAPSHOT
2
+
3
+
4
+ import { ParseTreeListener } from "antlr4ts/tree/ParseTreeListener";
5
+
6
+ import { ProgramContext } from "./BlendExpressParser";
7
+ import { SectionDefinitionContext } from "./BlendExpressParser";
8
+ import { ModuleDefinitionContext } from "./BlendExpressParser";
9
+ import { ApiDefinitionContext } from "./BlendExpressParser";
10
+ import { AuthenticatedContext } from "./BlendExpressParser";
11
+ import { InputDefinitionContext } from "./BlendExpressParser";
12
+ import { OutputDefinitionContext } from "./BlendExpressParser";
13
+ import { DirectOutputDefenitionContext } from "./BlendExpressParser";
14
+ import { FieldContext } from "./BlendExpressParser";
15
+ import { TypeContext } from "./BlendExpressParser";
16
+ import { PrimitiveTypeContext } from "./BlendExpressParser";
17
+
18
+
19
+ /**
20
+ * This interface defines a complete listener for a parse tree produced by
21
+ * `BlendExpressParser`.
22
+ */
23
+ export interface BlendExpressListener extends ParseTreeListener {
24
+ /**
25
+ * Enter a parse tree produced by `BlendExpressParser.program`.
26
+ * @param ctx the parse tree
27
+ */
28
+ enterProgram?: (ctx: ProgramContext) => void;
29
+ /**
30
+ * Exit a parse tree produced by `BlendExpressParser.program`.
31
+ * @param ctx the parse tree
32
+ */
33
+ exitProgram?: (ctx: ProgramContext) => void;
34
+
35
+ /**
36
+ * Enter a parse tree produced by `BlendExpressParser.sectionDefinition`.
37
+ * @param ctx the parse tree
38
+ */
39
+ enterSectionDefinition?: (ctx: SectionDefinitionContext) => void;
40
+ /**
41
+ * Exit a parse tree produced by `BlendExpressParser.sectionDefinition`.
42
+ * @param ctx the parse tree
43
+ */
44
+ exitSectionDefinition?: (ctx: SectionDefinitionContext) => void;
45
+
46
+ /**
47
+ * Enter a parse tree produced by `BlendExpressParser.moduleDefinition`.
48
+ * @param ctx the parse tree
49
+ */
50
+ enterModuleDefinition?: (ctx: ModuleDefinitionContext) => void;
51
+ /**
52
+ * Exit a parse tree produced by `BlendExpressParser.moduleDefinition`.
53
+ * @param ctx the parse tree
54
+ */
55
+ exitModuleDefinition?: (ctx: ModuleDefinitionContext) => void;
56
+
57
+ /**
58
+ * Enter a parse tree produced by `BlendExpressParser.apiDefinition`.
59
+ * @param ctx the parse tree
60
+ */
61
+ enterApiDefinition?: (ctx: ApiDefinitionContext) => void;
62
+ /**
63
+ * Exit a parse tree produced by `BlendExpressParser.apiDefinition`.
64
+ * @param ctx the parse tree
65
+ */
66
+ exitApiDefinition?: (ctx: ApiDefinitionContext) => void;
67
+
68
+ /**
69
+ * Enter a parse tree produced by `BlendExpressParser.authenticated`.
70
+ * @param ctx the parse tree
71
+ */
72
+ enterAuthenticated?: (ctx: AuthenticatedContext) => void;
73
+ /**
74
+ * Exit a parse tree produced by `BlendExpressParser.authenticated`.
75
+ * @param ctx the parse tree
76
+ */
77
+ exitAuthenticated?: (ctx: AuthenticatedContext) => void;
78
+
79
+ /**
80
+ * Enter a parse tree produced by `BlendExpressParser.inputDefinition`.
81
+ * @param ctx the parse tree
82
+ */
83
+ enterInputDefinition?: (ctx: InputDefinitionContext) => void;
84
+ /**
85
+ * Exit a parse tree produced by `BlendExpressParser.inputDefinition`.
86
+ * @param ctx the parse tree
87
+ */
88
+ exitInputDefinition?: (ctx: InputDefinitionContext) => void;
89
+
90
+ /**
91
+ * Enter a parse tree produced by `BlendExpressParser.outputDefinition`.
92
+ * @param ctx the parse tree
93
+ */
94
+ enterOutputDefinition?: (ctx: OutputDefinitionContext) => void;
95
+ /**
96
+ * Exit a parse tree produced by `BlendExpressParser.outputDefinition`.
97
+ * @param ctx the parse tree
98
+ */
99
+ exitOutputDefinition?: (ctx: OutputDefinitionContext) => void;
100
+
101
+ /**
102
+ * Enter a parse tree produced by `BlendExpressParser.directOutputDefenition`.
103
+ * @param ctx the parse tree
104
+ */
105
+ enterDirectOutputDefenition?: (ctx: DirectOutputDefenitionContext) => void;
106
+ /**
107
+ * Exit a parse tree produced by `BlendExpressParser.directOutputDefenition`.
108
+ * @param ctx the parse tree
109
+ */
110
+ exitDirectOutputDefenition?: (ctx: DirectOutputDefenitionContext) => void;
111
+
112
+ /**
113
+ * Enter a parse tree produced by `BlendExpressParser.field`.
114
+ * @param ctx the parse tree
115
+ */
116
+ enterField?: (ctx: FieldContext) => void;
117
+ /**
118
+ * Exit a parse tree produced by `BlendExpressParser.field`.
119
+ * @param ctx the parse tree
120
+ */
121
+ exitField?: (ctx: FieldContext) => void;
122
+
123
+ /**
124
+ * Enter a parse tree produced by `BlendExpressParser.type`.
125
+ * @param ctx the parse tree
126
+ */
127
+ enterType?: (ctx: TypeContext) => void;
128
+ /**
129
+ * Exit a parse tree produced by `BlendExpressParser.type`.
130
+ * @param ctx the parse tree
131
+ */
132
+ exitType?: (ctx: TypeContext) => void;
133
+
134
+ /**
135
+ * Enter a parse tree produced by `BlendExpressParser.primitiveType`.
136
+ * @param ctx the parse tree
137
+ */
138
+ enterPrimitiveType?: (ctx: PrimitiveTypeContext) => void;
139
+ /**
140
+ * Exit a parse tree produced by `BlendExpressParser.primitiveType`.
141
+ * @param ctx the parse tree
142
+ */
143
+ exitPrimitiveType?: (ctx: PrimitiveTypeContext) => void;
144
+ }
145
+