@guihz/trading-vue-editor-tes 0.0.302 → 0.1.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.
Files changed (167) hide show
  1. package/lib/assets/editor.worker-BxEYBjj-.js +7352 -0
  2. package/lib/assets/parserTccWorker-D5cq4N-Y.js +80540 -0
  3. package/lib/assets/scriptsRunWorker-CaEvEpNA.js +37748 -0
  4. package/lib/components/diffEditor/index.d.ts +1 -0
  5. package/lib/components/editor/config/monarchTokens.d.ts +2 -4
  6. package/lib/components/editor/constants/common.d.ts +38 -0
  7. package/lib/components/editor/constants/locals.d.ts +1 -0
  8. package/lib/components/editor/index.d.ts +1 -0
  9. package/lib/components/editor/tokenizer/utils.d.ts +0 -16
  10. package/lib/components/editor/type/index.d.ts +32 -1
  11. package/lib/components/editor/utils/completions.d.ts +3 -1
  12. package/lib/components/editor/utils/importLibrary.d.ts +2 -160
  13. package/lib/components/editor/utils/initEditor.d.ts +3 -0
  14. package/lib/components/editor/utils/parse.d.ts +2 -0
  15. package/lib/components/editor/utils/parserTccWorker.d.ts +1 -7
  16. package/lib/components/editor/utils/scriptsRunWorker.d.ts +1 -1
  17. package/lib/components/editor/utils/signatureHelp.d.ts +2 -0
  18. package/lib/components/editor/utils/tools.d.ts +6 -0
  19. package/lib/components/editor/v3/config/monarchTokens.d.ts +3 -0
  20. package/lib/components/editor/v3/constants/contents_zh.d.ts +6 -0
  21. package/lib/components/editor/{constants/contents.d.ts → v3/constants/index.d.ts} +1 -5
  22. package/lib/components/editor/v3/parseScript/buildInConstants.d.ts +179 -0
  23. package/lib/components/editor/v3/parseScript/buildInFuncNamespace/index.d.ts +9 -0
  24. package/lib/components/editor/v3/parseScript/buildInFuncNamespace/input.d.ts +43 -0
  25. package/lib/components/editor/v3/parseScript/buildInFuncNamespace/math.d.ts +50 -0
  26. package/lib/components/editor/v3/parseScript/buildInFuncNamespace/strategy.d.ts +243 -0
  27. package/lib/components/editor/v3/parseScript/buildInFuncNamespace/ta.d.ts +102 -0
  28. package/lib/components/editor/{parseScript → v3/parseScript}/buildInFuncNamespace/timeframe.d.ts +1 -1
  29. package/lib/components/editor/v3/parseScript/buildInVarNamespace/barstate.d.ts +19 -0
  30. package/lib/components/editor/v3/parseScript/buildInVarNamespace/index.d.ts +4 -0
  31. package/lib/components/editor/v3/parseScript/buildInVarNamespace/strategy.d.ts +126 -0
  32. package/lib/components/editor/v3/parseScript/buildInVarNamespace/syminfo.d.ts +22 -0
  33. package/lib/components/editor/v3/parseScript/buildInVarNamespace/ta.d.ts +17 -0
  34. package/lib/components/editor/v3/parseScript/buildInVariables.d.ts +96 -0
  35. package/lib/components/editor/v3/parseScript/constants.d.ts +119 -0
  36. package/lib/components/editor/v3/parseScript/enum.d.ts +283 -0
  37. package/lib/components/editor/v3/parseScript/parseToJs.d.ts +65 -0
  38. package/lib/components/editor/v3/parseScript/runType.d.ts +119 -0
  39. package/lib/components/editor/v3/parseScript/strategyNamespace/index.d.ts +2 -0
  40. package/lib/components/editor/{parseScript → v3/parseScript}/type.d.ts +1 -1
  41. package/lib/components/editor/v3/parseScript/utils.d.ts +21 -0
  42. package/lib/components/editor/v3/parseScript/visitorParser.d.ts +321 -0
  43. package/lib/components/editor/v3/parseScript/visitorUtils.d.ts +25 -0
  44. package/lib/components/editor/v3/parserTccWorker.d.ts +32 -0
  45. package/lib/components/editor/v3/scriptsRunWorker.d.ts +11 -0
  46. package/lib/{tccParser → components/editor/v3/tccParser}/LexerBase.d.ts +1 -1
  47. package/lib/components/editor/v3/tccParser/tccScriptParserVisitor.d.ts +359 -0
  48. package/lib/components/editor/v4/config/monarchTokens.d.ts +205 -0
  49. package/lib/components/editor/v4/constants/contents_zh.d.ts +6 -0
  50. package/lib/components/editor/v4/constants/index.d.ts +44 -0
  51. package/lib/components/editor/v4/parseScript/buildInConstants.d.ts +308 -0
  52. package/lib/components/editor/v4/parseScript/buildInFuncNamespace/array.d.ts +84 -0
  53. package/lib/components/editor/v4/parseScript/buildInFuncNamespace/box.d.ts +60 -0
  54. package/lib/components/editor/v4/parseScript/buildInFuncNamespace/errorListener.d.ts +9 -0
  55. package/lib/components/editor/v4/parseScript/buildInFuncNamespace/index.d.ts +17 -0
  56. package/lib/components/editor/v4/parseScript/buildInFuncNamespace/input.d.ts +44 -0
  57. package/lib/components/editor/v4/parseScript/buildInFuncNamespace/label.d.ts +61 -0
  58. package/lib/components/editor/v4/parseScript/buildInFuncNamespace/line.d.ts +62 -0
  59. package/lib/components/editor/v4/parseScript/buildInFuncNamespace/math.d.ts +50 -0
  60. package/lib/components/editor/v4/parseScript/buildInFuncNamespace/strategy.d.ts +244 -0
  61. package/lib/components/editor/v4/parseScript/buildInFuncNamespace/string.d.ts +38 -0
  62. package/lib/components/editor/v4/parseScript/buildInFuncNamespace/ta.d.ts +118 -0
  63. package/lib/components/editor/v4/parseScript/buildInFuncNamespace/table.d.ts +87 -0
  64. package/lib/components/editor/v4/parseScript/buildInFuncNamespace/timeframe.d.ts +22 -0
  65. package/lib/components/editor/{parseScript → v4/parseScript}/buildInVarNamespace/barstate.d.ts +1 -1
  66. package/lib/components/editor/v4/parseScript/buildInVarNamespace/index.d.ts +8 -0
  67. package/lib/components/editor/v4/parseScript/buildInVarNamespace/strategy.d.ts +126 -0
  68. package/lib/components/editor/v4/parseScript/buildInVarNamespace/syminfo.d.ts +18 -0
  69. package/lib/components/editor/v4/parseScript/buildInVarNamespace/ta.d.ts +34 -0
  70. package/lib/components/editor/{parseScript → v4/parseScript}/constants.d.ts +1 -160
  71. package/lib/components/editor/v4/parseScript/constantsRun.d.ts +3 -0
  72. package/lib/components/editor/v4/parseScript/enum.d.ts +282 -0
  73. package/lib/components/editor/v4/parseScript/parseToJs.d.ts +65 -0
  74. package/lib/components/editor/v4/parseScript/strategyNamespace/index.d.ts +2 -0
  75. package/lib/components/editor/v4/parseScript/strategyNamespace/risk.d.ts +22 -0
  76. package/lib/components/editor/v4/parseScript/type.d.ts +39 -0
  77. package/lib/components/editor/v4/parseScript/utils.d.ts +21 -0
  78. package/lib/components/editor/v4/parseScript/visitorParser.d.ts +323 -0
  79. package/lib/components/editor/v4/parseScript/visitorUtils.d.ts +29 -0
  80. package/lib/components/editor/v4/parserTccWorker.d.ts +32 -0
  81. package/lib/components/editor/v4/scriptsRunWorker.d.ts +11 -0
  82. package/lib/components/editor/v4/tccParser/LexerBase.d.ts +19 -0
  83. package/lib/components/editor/v4/tccParser/tccScriptParserVisitor.d.ts +401 -0
  84. package/lib/components/editor/v5/config/monarchTokens.d.ts +205 -0
  85. package/lib/components/editor/v5/constants/contents_en.d.ts +6 -0
  86. package/lib/components/editor/{constants → v5/constants}/contents_zh.d.ts +1 -1
  87. package/lib/components/editor/v5/constants/index.d.ts +41 -0
  88. package/lib/components/editor/{parseScript → v5/parseScript}/buildInFuncNamespace/box.d.ts +1 -1
  89. package/lib/components/editor/v5/parseScript/buildInFuncNamespace/color.d.ts +25 -0
  90. package/lib/components/editor/v5/parseScript/buildInFuncNamespace/errorListener.d.ts +9 -0
  91. package/lib/components/editor/{parseScript → v5/parseScript}/buildInFuncNamespace/label.d.ts +1 -1
  92. package/lib/components/editor/{parseScript → v5/parseScript}/buildInFuncNamespace/line.d.ts +1 -1
  93. package/lib/components/editor/{parseScript → v5/parseScript}/buildInFuncNamespace/linefill.d.ts +1 -1
  94. package/lib/components/editor/{parseScript → v5/parseScript}/buildInFuncNamespace/log.d.ts +1 -1
  95. package/lib/components/editor/{parseScript → v5/parseScript}/buildInFuncNamespace/map.d.ts +1 -1
  96. package/lib/components/editor/{parseScript → v5/parseScript}/buildInFuncNamespace/math.d.ts +1 -1
  97. package/lib/components/editor/{parseScript → v5/parseScript}/buildInFuncNamespace/polyline.d.ts +1 -1
  98. package/lib/components/editor/{parseScript → v5/parseScript}/buildInFuncNamespace/strategy.d.ts +1 -1
  99. package/lib/components/editor/{parseScript → v5/parseScript}/buildInFuncNamespace/ta.d.ts +1 -1
  100. package/lib/components/editor/{parseScript → v5/parseScript}/buildInFuncNamespace/table.d.ts +1 -1
  101. package/lib/components/editor/v5/parseScript/buildInFuncNamespace/timeframe.d.ts +22 -0
  102. package/lib/components/editor/v5/parseScript/buildInVarNamespace/barstate.d.ts +22 -0
  103. package/lib/components/editor/{parseScript → v5/parseScript}/buildInVarNamespace/chart.d.ts +1 -1
  104. package/lib/components/editor/v5/parseScript/buildInVarNamespace/dividends.d.ts +8 -0
  105. package/lib/components/editor/v5/parseScript/buildInVarNamespace/earnings.d.ts +9 -0
  106. package/lib/components/editor/v5/parseScript/buildInVarNamespace/session.d.ts +12 -0
  107. package/lib/components/editor/{parseScript → v5/parseScript}/buildInVarNamespace/strategy.d.ts +1 -1
  108. package/lib/components/editor/{parseScript → v5/parseScript}/buildInVarNamespace/syminfo.d.ts +1 -1
  109. package/lib/components/editor/{parseScript → v5/parseScript}/buildInVarNamespace/ta.d.ts +4 -3
  110. package/lib/components/editor/v5/parseScript/buildInVarNamespace/timeframe.d.ts +16 -0
  111. package/lib/components/editor/v5/parseScript/constants.d.ts +124 -0
  112. package/lib/components/editor/v5/parseScript/constantsRun.d.ts +3 -0
  113. package/lib/components/editor/{parseScript → v5/parseScript}/parseToJs.d.ts +1 -1
  114. package/lib/components/editor/{parseScript → v5/parseScript}/parseToLibJs.d.ts +1 -1
  115. package/lib/components/editor/v5/parseScript/strategyNamespace/risk.d.ts +22 -0
  116. package/lib/components/editor/v5/parseScript/type.d.ts +39 -0
  117. package/lib/components/editor/{parseScript → v5/parseScript}/userTypeClass.d.ts +1 -1
  118. package/lib/components/editor/{parseScript → v5/parseScript}/utils.d.ts +1 -1
  119. package/lib/components/editor/{parseScript → v5/parseScript}/visitorParser.d.ts +1 -1
  120. package/lib/components/editor/{parseScript → v5/parseScript}/visitorUtils.d.ts +2 -2
  121. package/lib/components/editor/v5/parserTccWorker.d.ts +40 -0
  122. package/lib/components/editor/v5/scriptsRunWorker.d.ts +11 -0
  123. package/lib/components/editor/v5/tccParser/LexerBase.d.ts +19 -0
  124. package/lib/{tccParser → components/editor/v5/tccParser}/tccScriptParserVisitor.d.ts +1 -1
  125. package/lib/components/referenceManual/components/ContentItem.d.ts +2 -0
  126. package/lib/components/referenceManual/index.d.ts +2 -0
  127. package/lib/components/referenceManualPage/components/ContentItem.d.ts +1 -0
  128. package/lib/components/referenceManualPage/components/ManualLeft.d.ts +5 -0
  129. package/lib/components/referenceManualPage/index.d.ts +2 -0
  130. package/lib/index-Ce2gRdFk.js +12813 -0
  131. package/lib/index-CjECfhIW.js +28088 -0
  132. package/lib/index-UdtfRBFV.js +59792 -0
  133. package/lib/monarchTokens-Cj3v8l0Q.js +526 -0
  134. package/lib/monarchTokens-CnFYyHnR.js +191 -0
  135. package/lib/monarchTokens-oh3fO2YY.js +563 -0
  136. package/lib/packages/index.d.ts +3 -3
  137. package/lib/trading-vue-editor.es.packages.js +6356 -66629
  138. package/lib/trading-vue-editor.umd.packages.mjs +117 -75
  139. package/lib/utils/tools.d.ts +7 -2
  140. package/package.json +1 -1
  141. package/lib/assets/editor.worker-CT5Cb1wO.js +0 -11
  142. package/lib/assets/parserTccWorker-cjv11J0f.js +0 -279
  143. package/lib/assets/scriptsRunWorker-ISxcgzMz.js +0 -91
  144. /package/lib/components/editor/{parseScript → v3/parseScript}/buildInFuncNamespace/errorListener.d.ts +0 -0
  145. /package/lib/components/editor/{parseScript → v3/parseScript}/constantsRun.d.ts +0 -0
  146. /package/lib/components/editor/{parseScript → v3/parseScript}/strategyNamespace/risk.d.ts +0 -0
  147. /package/lib/components/editor/{parseScript → v4/parseScript}/buildInFuncNamespace/color.d.ts +0 -0
  148. /package/lib/components/editor/{parseScript → v4/parseScript}/buildInVarNamespace/dividends.d.ts +0 -0
  149. /package/lib/components/editor/{parseScript → v4/parseScript}/buildInVarNamespace/earnings.d.ts +0 -0
  150. /package/lib/components/editor/{parseScript → v4/parseScript}/buildInVarNamespace/session.d.ts +0 -0
  151. /package/lib/components/editor/{parseScript → v4/parseScript}/buildInVarNamespace/timeframe.d.ts +0 -0
  152. /package/lib/components/editor/{constants → v5/constants}/newContents_en.d.ts +0 -0
  153. /package/lib/components/editor/{constants → v5/constants}/newContents_zh.d.ts +0 -0
  154. /package/lib/components/editor/{parseScript → v5/parseScript}/buildInConstants.d.ts +0 -0
  155. /package/lib/components/editor/{parseScript → v5/parseScript}/buildInFuncNamespace/array.d.ts +0 -0
  156. /package/lib/components/editor/{parseScript → v5/parseScript}/buildInFuncNamespace/chartPoint.d.ts +0 -0
  157. /package/lib/components/editor/{parseScript → v5/parseScript}/buildInFuncNamespace/index.d.ts +0 -0
  158. /package/lib/components/editor/{parseScript → v5/parseScript}/buildInFuncNamespace/input.d.ts +0 -0
  159. /package/lib/components/editor/{parseScript → v5/parseScript}/buildInFuncNamespace/matrix.d.ts +0 -0
  160. /package/lib/components/editor/{parseScript → v5/parseScript}/buildInFuncNamespace/runtime.d.ts +0 -0
  161. /package/lib/components/editor/{parseScript → v5/parseScript}/buildInFuncNamespace/string.d.ts +0 -0
  162. /package/lib/components/editor/{parseScript → v5/parseScript}/buildInFuncNamespace/syminfo.d.ts +0 -0
  163. /package/lib/components/editor/{parseScript → v5/parseScript}/buildInVarNamespace/index.d.ts +0 -0
  164. /package/lib/components/editor/{parseScript → v5/parseScript}/enum.d.ts +0 -0
  165. /package/lib/components/editor/{parseScript → v5/parseScript}/strategyNamespace/closedtrades.d.ts +0 -0
  166. /package/lib/components/editor/{parseScript → v5/parseScript}/strategyNamespace/index.d.ts +0 -0
  167. /package/lib/components/editor/{parseScript → v5/parseScript}/strategyNamespace/opentrades.d.ts +0 -0
@@ -0,0 +1,359 @@
1
+ /// <reference path="../../../../../src/vite-env.d.ts" />
2
+ import { ParseTreeVisitor } from 'antlr4';
3
+ import { ProgramContext } from "./tccScriptParser";
4
+ import { GlobalStmtContext } from "./tccScriptParser";
5
+ import { BlockStmtContext } from "./tccScriptParser";
6
+ import { StmtContext } from "./tccScriptParser";
7
+ import { SimpleStmtContext } from "./tccScriptParser";
8
+ import { FlowStmtContext } from "./tccScriptParser";
9
+ import { BlockContext } from "./tccScriptParser";
10
+ import { BlockLineContext } from "./tccScriptParser";
11
+ import { VariableDeclarationStmtContext } from "./tccScriptParser";
12
+ import { DeclareAssignContext } from "./tccScriptParser";
13
+ import { AgainAssignContext } from "./tccScriptParser";
14
+ import { BlockSequenceContext } from "./tccScriptParser";
15
+ import { ExpressionSequenceContext } from "./tccScriptParser";
16
+ import { ExpressionBlockSequenceContext } from "./tccScriptParser";
17
+ import { VarBlockStmtContext } from "./tccScriptParser";
18
+ import { VarSingleContext } from "./tccScriptParser";
19
+ import { VarMultipleContext } from "./tccScriptParser";
20
+ import { BlockExpressionContext } from "./tccScriptParser";
21
+ import { ParenthesizedExpressionContext } from "./tccScriptParser";
22
+ import { AdditiveExpressionContext } from "./tccScriptParser";
23
+ import { RelationalExpressionContext } from "./tccScriptParser";
24
+ import { TernaryExpressionContext } from "./tccScriptParser";
25
+ import { LogicalAndExpressionContext } from "./tccScriptParser";
26
+ import { NameExpressionContext } from "./tccScriptParser";
27
+ import { LiteralExpressionContext } from "./tccScriptParser";
28
+ import { LogicalOrExpressionContext } from "./tccScriptParser";
29
+ import { UnaryExpressionContext } from "./tccScriptParser";
30
+ import { NotExpressionContext } from "./tccScriptParser";
31
+ import { MemberIndexExpressionContext } from "./tccScriptParser";
32
+ import { MethodExpressionContext } from "./tccScriptParser";
33
+ import { EqualityExpressionContext } from "./tccScriptParser";
34
+ import { MultiplicativeExpressionContext } from "./tccScriptParser";
35
+ import { BrackethesizedContext } from "./tccScriptParser";
36
+ import { ArgumentsContext } from "./tccScriptParser";
37
+ import { ArgumentContext } from "./tccScriptParser";
38
+ import { IfStatementContext } from "./tccScriptParser";
39
+ import { ForToStatementContext } from "./tccScriptParser";
40
+ import { LiteralContext } from "./tccScriptParser";
41
+ import { MethodStmtContext } from "./tccScriptParser";
42
+ import { MethodElementContext } from "./tccScriptParser";
43
+ import { MethodNameContext } from "./tccScriptParser";
44
+ import { ArrowFunctionContext } from "./tccScriptParser";
45
+ import { ArrowFunctionParametersContext } from "./tccScriptParser";
46
+ import { FormalParameterListContext } from "./tccScriptParser";
47
+ import { AssignmentOperatorContext } from "./tccScriptParser";
48
+ import { IdentifierContext } from "./tccScriptParser";
49
+ import { NameContext } from "./tccScriptParser";
50
+ /**
51
+ * This interface defines a complete generic visitor for a parse tree produced
52
+ * by `tccScriptParser`.
53
+ *
54
+ * @param <Result> The return type of the visit operation. Use `void` for
55
+ * operations with no return type.
56
+ */
57
+ export default class tccScriptParserVisitor<Result> extends ParseTreeVisitor<Result> {
58
+ /**
59
+ * Visit a parse tree produced by `tccScriptParser.program`.
60
+ * @param ctx the parse tree
61
+ * @return the visitor result
62
+ */
63
+ visitProgram?: (ctx: ProgramContext) => Result;
64
+ /**
65
+ * Visit a parse tree produced by `tccScriptParser.globalStmt`.
66
+ * @param ctx the parse tree
67
+ * @return the visitor result
68
+ */
69
+ visitGlobalStmt?: (ctx: GlobalStmtContext) => Result;
70
+ /**
71
+ * Visit a parse tree produced by `tccScriptParser.blockStmt`.
72
+ * @param ctx the parse tree
73
+ * @return the visitor result
74
+ */
75
+ visitBlockStmt?: (ctx: BlockStmtContext) => Result;
76
+ /**
77
+ * Visit a parse tree produced by `tccScriptParser.stmt`.
78
+ * @param ctx the parse tree
79
+ * @return the visitor result
80
+ */
81
+ visitStmt?: (ctx: StmtContext) => Result;
82
+ /**
83
+ * Visit a parse tree produced by `tccScriptParser.simpleStmt`.
84
+ * @param ctx the parse tree
85
+ * @return the visitor result
86
+ */
87
+ visitSimpleStmt?: (ctx: SimpleStmtContext) => Result;
88
+ /**
89
+ * Visit a parse tree produced by `tccScriptParser.flowStmt`.
90
+ * @param ctx the parse tree
91
+ * @return the visitor result
92
+ */
93
+ visitFlowStmt?: (ctx: FlowStmtContext) => Result;
94
+ /**
95
+ * Visit a parse tree produced by `tccScriptParser.block`.
96
+ * @param ctx the parse tree
97
+ * @return the visitor result
98
+ */
99
+ visitBlock?: (ctx: BlockContext) => Result;
100
+ /**
101
+ * Visit a parse tree produced by `tccScriptParser.blockLine`.
102
+ * @param ctx the parse tree
103
+ * @return the visitor result
104
+ */
105
+ visitBlockLine?: (ctx: BlockLineContext) => Result;
106
+ /**
107
+ * Visit a parse tree produced by `tccScriptParser.variableDeclarationStmt`.
108
+ * @param ctx the parse tree
109
+ * @return the visitor result
110
+ */
111
+ visitVariableDeclarationStmt?: (ctx: VariableDeclarationStmtContext) => Result;
112
+ /**
113
+ * Visit a parse tree produced by the `DeclareAssign`
114
+ * labeled alternative in `tccScriptParser.variableDeclarationList`.
115
+ * @param ctx the parse tree
116
+ * @return the visitor result
117
+ */
118
+ visitDeclareAssign?: (ctx: DeclareAssignContext) => Result;
119
+ /**
120
+ * Visit a parse tree produced by the `AgainAssign`
121
+ * labeled alternative in `tccScriptParser.variableDeclarationList`.
122
+ * @param ctx the parse tree
123
+ * @return the visitor result
124
+ */
125
+ visitAgainAssign?: (ctx: AgainAssignContext) => Result;
126
+ /**
127
+ * Visit a parse tree produced by `tccScriptParser.blockSequence`.
128
+ * @param ctx the parse tree
129
+ * @return the visitor result
130
+ */
131
+ visitBlockSequence?: (ctx: BlockSequenceContext) => Result;
132
+ /**
133
+ * Visit a parse tree produced by `tccScriptParser.expressionSequence`.
134
+ * @param ctx the parse tree
135
+ * @return the visitor result
136
+ */
137
+ visitExpressionSequence?: (ctx: ExpressionSequenceContext) => Result;
138
+ /**
139
+ * Visit a parse tree produced by `tccScriptParser.expressionBlockSequence`.
140
+ * @param ctx the parse tree
141
+ * @return the visitor result
142
+ */
143
+ visitExpressionBlockSequence?: (ctx: ExpressionBlockSequenceContext) => Result;
144
+ /**
145
+ * Visit a parse tree produced by `tccScriptParser.varBlockStmt`.
146
+ * @param ctx the parse tree
147
+ * @return the visitor result
148
+ */
149
+ visitVarBlockStmt?: (ctx: VarBlockStmtContext) => Result;
150
+ /**
151
+ * Visit a parse tree produced by the `VarSingle`
152
+ * labeled alternative in `tccScriptParser.varArrayDeclaration`.
153
+ * @param ctx the parse tree
154
+ * @return the visitor result
155
+ */
156
+ visitVarSingle?: (ctx: VarSingleContext) => Result;
157
+ /**
158
+ * Visit a parse tree produced by the `VarMultiple`
159
+ * labeled alternative in `tccScriptParser.varArrayDeclaration`.
160
+ * @param ctx the parse tree
161
+ * @return the visitor result
162
+ */
163
+ visitVarMultiple?: (ctx: VarMultipleContext) => Result;
164
+ /**
165
+ * Visit a parse tree produced by `tccScriptParser.blockExpression`.
166
+ * @param ctx the parse tree
167
+ * @return the visitor result
168
+ */
169
+ visitBlockExpression?: (ctx: BlockExpressionContext) => Result;
170
+ /**
171
+ * Visit a parse tree produced by the `ParenthesizedExpression`
172
+ * labeled alternative in `tccScriptParser.singleExpression`.
173
+ * @param ctx the parse tree
174
+ * @return the visitor result
175
+ */
176
+ visitParenthesizedExpression?: (ctx: ParenthesizedExpressionContext) => Result;
177
+ /**
178
+ * Visit a parse tree produced by the `AdditiveExpression`
179
+ * labeled alternative in `tccScriptParser.singleExpression`.
180
+ * @param ctx the parse tree
181
+ * @return the visitor result
182
+ */
183
+ visitAdditiveExpression?: (ctx: AdditiveExpressionContext) => Result;
184
+ /**
185
+ * Visit a parse tree produced by the `RelationalExpression`
186
+ * labeled alternative in `tccScriptParser.singleExpression`.
187
+ * @param ctx the parse tree
188
+ * @return the visitor result
189
+ */
190
+ visitRelationalExpression?: (ctx: RelationalExpressionContext) => Result;
191
+ /**
192
+ * Visit a parse tree produced by the `TernaryExpression`
193
+ * labeled alternative in `tccScriptParser.singleExpression`.
194
+ * @param ctx the parse tree
195
+ * @return the visitor result
196
+ */
197
+ visitTernaryExpression?: (ctx: TernaryExpressionContext) => Result;
198
+ /**
199
+ * Visit a parse tree produced by the `LogicalAndExpression`
200
+ * labeled alternative in `tccScriptParser.singleExpression`.
201
+ * @param ctx the parse tree
202
+ * @return the visitor result
203
+ */
204
+ visitLogicalAndExpression?: (ctx: LogicalAndExpressionContext) => Result;
205
+ /**
206
+ * Visit a parse tree produced by the `NameExpression`
207
+ * labeled alternative in `tccScriptParser.singleExpression`.
208
+ * @param ctx the parse tree
209
+ * @return the visitor result
210
+ */
211
+ visitNameExpression?: (ctx: NameExpressionContext) => Result;
212
+ /**
213
+ * Visit a parse tree produced by the `LiteralExpression`
214
+ * labeled alternative in `tccScriptParser.singleExpression`.
215
+ * @param ctx the parse tree
216
+ * @return the visitor result
217
+ */
218
+ visitLiteralExpression?: (ctx: LiteralExpressionContext) => Result;
219
+ /**
220
+ * Visit a parse tree produced by the `LogicalOrExpression`
221
+ * labeled alternative in `tccScriptParser.singleExpression`.
222
+ * @param ctx the parse tree
223
+ * @return the visitor result
224
+ */
225
+ visitLogicalOrExpression?: (ctx: LogicalOrExpressionContext) => Result;
226
+ /**
227
+ * Visit a parse tree produced by the `UnaryExpression`
228
+ * labeled alternative in `tccScriptParser.singleExpression`.
229
+ * @param ctx the parse tree
230
+ * @return the visitor result
231
+ */
232
+ visitUnaryExpression?: (ctx: UnaryExpressionContext) => Result;
233
+ /**
234
+ * Visit a parse tree produced by the `NotExpression`
235
+ * labeled alternative in `tccScriptParser.singleExpression`.
236
+ * @param ctx the parse tree
237
+ * @return the visitor result
238
+ */
239
+ visitNotExpression?: (ctx: NotExpressionContext) => Result;
240
+ /**
241
+ * Visit a parse tree produced by the `MemberIndexExpression`
242
+ * labeled alternative in `tccScriptParser.singleExpression`.
243
+ * @param ctx the parse tree
244
+ * @return the visitor result
245
+ */
246
+ visitMemberIndexExpression?: (ctx: MemberIndexExpressionContext) => Result;
247
+ /**
248
+ * Visit a parse tree produced by the `MethodExpression`
249
+ * labeled alternative in `tccScriptParser.singleExpression`.
250
+ * @param ctx the parse tree
251
+ * @return the visitor result
252
+ */
253
+ visitMethodExpression?: (ctx: MethodExpressionContext) => Result;
254
+ /**
255
+ * Visit a parse tree produced by the `EqualityExpression`
256
+ * labeled alternative in `tccScriptParser.singleExpression`.
257
+ * @param ctx the parse tree
258
+ * @return the visitor result
259
+ */
260
+ visitEqualityExpression?: (ctx: EqualityExpressionContext) => Result;
261
+ /**
262
+ * Visit a parse tree produced by the `MultiplicativeExpression`
263
+ * labeled alternative in `tccScriptParser.singleExpression`.
264
+ * @param ctx the parse tree
265
+ * @return the visitor result
266
+ */
267
+ visitMultiplicativeExpression?: (ctx: MultiplicativeExpressionContext) => Result;
268
+ /**
269
+ * Visit a parse tree produced by `tccScriptParser.brackethesized`.
270
+ * @param ctx the parse tree
271
+ * @return the visitor result
272
+ */
273
+ visitBrackethesized?: (ctx: BrackethesizedContext) => Result;
274
+ /**
275
+ * Visit a parse tree produced by `tccScriptParser.arguments`.
276
+ * @param ctx the parse tree
277
+ * @return the visitor result
278
+ */
279
+ visitArguments?: (ctx: ArgumentsContext) => Result;
280
+ /**
281
+ * Visit a parse tree produced by `tccScriptParser.argument`.
282
+ * @param ctx the parse tree
283
+ * @return the visitor result
284
+ */
285
+ visitArgument?: (ctx: ArgumentContext) => Result;
286
+ /**
287
+ * Visit a parse tree produced by `tccScriptParser.ifStatement`.
288
+ * @param ctx the parse tree
289
+ * @return the visitor result
290
+ */
291
+ visitIfStatement?: (ctx: IfStatementContext) => Result;
292
+ /**
293
+ * Visit a parse tree produced by the `ForToStatement`
294
+ * labeled alternative in `tccScriptParser.forStatement`.
295
+ * @param ctx the parse tree
296
+ * @return the visitor result
297
+ */
298
+ visitForToStatement?: (ctx: ForToStatementContext) => Result;
299
+ /**
300
+ * Visit a parse tree produced by `tccScriptParser.literal`.
301
+ * @param ctx the parse tree
302
+ * @return the visitor result
303
+ */
304
+ visitLiteral?: (ctx: LiteralContext) => Result;
305
+ /**
306
+ * Visit a parse tree produced by `tccScriptParser.methodStmt`.
307
+ * @param ctx the parse tree
308
+ * @return the visitor result
309
+ */
310
+ visitMethodStmt?: (ctx: MethodStmtContext) => Result;
311
+ /**
312
+ * Visit a parse tree produced by `tccScriptParser.methodElement`.
313
+ * @param ctx the parse tree
314
+ * @return the visitor result
315
+ */
316
+ visitMethodElement?: (ctx: MethodElementContext) => Result;
317
+ /**
318
+ * Visit a parse tree produced by `tccScriptParser.methodName`.
319
+ * @param ctx the parse tree
320
+ * @return the visitor result
321
+ */
322
+ visitMethodName?: (ctx: MethodNameContext) => Result;
323
+ /**
324
+ * Visit a parse tree produced by `tccScriptParser.arrowFunction`.
325
+ * @param ctx the parse tree
326
+ * @return the visitor result
327
+ */
328
+ visitArrowFunction?: (ctx: ArrowFunctionContext) => Result;
329
+ /**
330
+ * Visit a parse tree produced by `tccScriptParser.arrowFunctionParameters`.
331
+ * @param ctx the parse tree
332
+ * @return the visitor result
333
+ */
334
+ visitArrowFunctionParameters?: (ctx: ArrowFunctionParametersContext) => Result;
335
+ /**
336
+ * Visit a parse tree produced by `tccScriptParser.formalParameterList`.
337
+ * @param ctx the parse tree
338
+ * @return the visitor result
339
+ */
340
+ visitFormalParameterList?: (ctx: FormalParameterListContext) => Result;
341
+ /**
342
+ * Visit a parse tree produced by `tccScriptParser.assignmentOperator`.
343
+ * @param ctx the parse tree
344
+ * @return the visitor result
345
+ */
346
+ visitAssignmentOperator?: (ctx: AssignmentOperatorContext) => Result;
347
+ /**
348
+ * Visit a parse tree produced by `tccScriptParser.identifier`.
349
+ * @param ctx the parse tree
350
+ * @return the visitor result
351
+ */
352
+ visitIdentifier?: (ctx: IdentifierContext) => Result;
353
+ /**
354
+ * Visit a parse tree produced by `tccScriptParser.name`.
355
+ * @param ctx the parse tree
356
+ * @return the visitor result
357
+ */
358
+ visitName?: (ctx: NameContext) => Result;
359
+ }
@@ -0,0 +1,205 @@
1
+ import { languages, editor } from 'monaco-editor';
2
+ export declare const LANGAGE_NAME = "tccScript";
3
+ export declare const LANGUAGE_MONARCH_TOKENS: languages.IMonarchLanguage;
4
+ export declare const CONFIGURATION: languages.LanguageConfiguration;
5
+ export declare const COLORS: {
6
+ "color-white": string;
7
+ "color-black": string;
8
+ "color-transparent": string;
9
+ "color-cold-gray-50": string;
10
+ "color-cold-gray-100": string;
11
+ "color-cold-gray-150": string;
12
+ "color-cold-gray-200": string;
13
+ "color-cold-gray-250": string;
14
+ "color-cold-gray-300": string;
15
+ "color-cold-gray-350": string;
16
+ "color-cold-gray-400": string;
17
+ "color-cold-gray-450": string;
18
+ "color-cold-gray-500": string;
19
+ "color-cold-gray-550": string;
20
+ "color-cold-gray-600": string;
21
+ "color-cold-gray-650": string;
22
+ "color-cold-gray-700": string;
23
+ "color-cold-gray-750": string;
24
+ "color-cold-gray-800": string;
25
+ "color-cold-gray-850": string;
26
+ "color-cold-gray-900": string;
27
+ "color-cold-gray-950": string;
28
+ "color-ripe-red-50": string;
29
+ "color-ripe-red-100": string;
30
+ "color-ripe-red-200": string;
31
+ "color-ripe-red-300": string;
32
+ "color-ripe-red-400": string;
33
+ "color-ripe-red-500": string;
34
+ "color-ripe-red-600": string;
35
+ "color-ripe-red-700": string;
36
+ "color-ripe-red-800": string;
37
+ "color-ripe-red-900": string;
38
+ "color-ripe-red-a100": string;
39
+ "color-ripe-red-a200": string;
40
+ "color-ripe-red-a400": string;
41
+ "color-ripe-red-a600": string;
42
+ "color-ripe-red-a700": string;
43
+ "color-ripe-red-a800": string;
44
+ "color-ripe-red-a900": string;
45
+ "color-tan-orange-50": string;
46
+ "color-tan-orange-100": string;
47
+ "color-tan-orange-200": string;
48
+ "color-tan-orange-300": string;
49
+ "color-tan-orange-400": string;
50
+ "color-tan-orange-500": string;
51
+ "color-tan-orange-600": string;
52
+ "color-tan-orange-700": string;
53
+ "color-tan-orange-800": string;
54
+ "color-tan-orange-900": string;
55
+ "color-tan-orange-a200": string;
56
+ "color-tan-orange-a400": string;
57
+ "color-tan-orange-a600": string;
58
+ "color-tan-orange-a700": string;
59
+ "color-tan-orange-a800": string;
60
+ "color-tan-orange-a900": string;
61
+ "color-iguana-green-100": string;
62
+ "color-iguana-green-200": string;
63
+ "color-iguana-green-300": string;
64
+ "color-iguana-green-400": string;
65
+ "color-iguana-green-500": string;
66
+ "color-iguana-green-600": string;
67
+ "color-iguana-green-700": string;
68
+ "color-iguana-green-800": string;
69
+ "color-iguana-green-900": string;
70
+ "color-iguana-green-a700": string;
71
+ "color-banana-yellow-100": string;
72
+ "color-banana-yellow-200": string;
73
+ "color-banana-yellow-300": string;
74
+ "color-banana-yellow-400": string;
75
+ "color-banana-yellow-500": string;
76
+ "color-banana-yellow-600": string;
77
+ "color-banana-yellow-700": string;
78
+ "color-banana-yellow-800": string;
79
+ "color-banana-yellow-900": string;
80
+ "color-banana-yellow-a400": string;
81
+ "color-banana-yellow-a700": string;
82
+ "color-tv-blue-50": string;
83
+ "color-tv-blue-100": string;
84
+ "color-tv-blue-200": string;
85
+ "color-tv-blue-300": string;
86
+ "color-tv-blue-400": string;
87
+ "color-tv-blue-500": string;
88
+ "color-tv-blue-600": string;
89
+ "color-tv-blue-700": string;
90
+ "color-tv-blue-800": string;
91
+ "color-tv-blue-900": string;
92
+ "color-tv-blue-a100": string;
93
+ "color-tv-blue-a200": string;
94
+ "color-tv-blue-a400": string;
95
+ "color-tv-blue-a600": string;
96
+ "color-tv-blue-a700": string;
97
+ "color-tv-blue-a800": string;
98
+ "color-tv-blue-a900": string;
99
+ "color-deep-blue-50": string;
100
+ "color-deep-blue-100": string;
101
+ "color-deep-blue-200": string;
102
+ "color-deep-blue-300": string;
103
+ "color-deep-blue-400": string;
104
+ "color-deep-blue-500": string;
105
+ "color-deep-blue-700": string;
106
+ "color-deep-blue-800": string;
107
+ "color-deep-blue-900": string;
108
+ "color-deep-blue-a100": string;
109
+ "color-deep-blue-a200": string;
110
+ "color-deep-blue-a400": string;
111
+ "color-deep-blue-a700": string;
112
+ "color-minty-green-50": string;
113
+ "color-minty-green-100": string;
114
+ "color-minty-green-200": string;
115
+ "color-minty-green-300": string;
116
+ "color-minty-green-400": string;
117
+ "color-minty-green-500": string;
118
+ "color-minty-green-600": string;
119
+ "color-minty-green-700": string;
120
+ "color-minty-green-800": string;
121
+ "color-minty-green-900": string;
122
+ "color-minty-green-a400": string;
123
+ "color-minty-green-a600": string;
124
+ "color-minty-green-a700": string;
125
+ "color-minty-green-a800": string;
126
+ "color-minty-green-a900": string;
127
+ "color-grapes-purple-50": string;
128
+ "color-grapes-purple-100": string;
129
+ "color-grapes-purple-200": string;
130
+ "color-grapes-purple-300": string;
131
+ "color-grapes-purple-400": string;
132
+ "color-grapes-purple-500": string;
133
+ "color-grapes-purple-600": string;
134
+ "color-grapes-purple-700": string;
135
+ "color-grapes-purple-800": string;
136
+ "color-grapes-purple-900": string;
137
+ "color-grapes-purple-a100": string;
138
+ "color-grapes-purple-a200": string;
139
+ "color-grapes-purple-a400": string;
140
+ "color-grapes-purple-a700": string;
141
+ "color-berry-pink-100": string;
142
+ "color-berry-pink-200": string;
143
+ "color-berry-pink-300": string;
144
+ "color-berry-pink-400": string;
145
+ "color-berry-pink-500": string;
146
+ "color-berry-pink-600": string;
147
+ "color-berry-pink-700": string;
148
+ "color-berry-pink-800": string;
149
+ "color-berry-pink-900": string;
150
+ "color-berry-pink-a100": string;
151
+ "color-berry-pink-a200": string;
152
+ "color-berry-pink-a400": string;
153
+ "color-sky-blue-100": string;
154
+ "color-sky-blue-200": string;
155
+ "color-sky-blue-300": string;
156
+ "color-sky-blue-400": string;
157
+ "color-sky-blue-500": string;
158
+ "color-sky-blue-600": string;
159
+ "color-sky-blue-700": string;
160
+ "color-sky-blue-800": string;
161
+ "color-sky-blue-900": string;
162
+ "color-sky-blue-a400": string;
163
+ "color-sky-blue-a700": string;
164
+ "color-deep-blue-600": string;
165
+ "color-forest-green-50": string;
166
+ "color-forest-green-100": string;
167
+ "color-forest-green-200": string;
168
+ "color-forest-green-300": string;
169
+ "color-forest-green-400": string;
170
+ "color-forest-green-500": string;
171
+ "color-forest-green-600": string;
172
+ "color-forest-green-700": string;
173
+ "color-forest-green-800": string;
174
+ "color-forest-green-900": string;
175
+ "color-facebook": string;
176
+ "color-deep-facebook": string;
177
+ "color-twitter": string;
178
+ "color-deep-twitter": string;
179
+ "color-youtube": string;
180
+ "color-linkedin": string;
181
+ "color-seeking-alpha-brand": string;
182
+ };
183
+ export declare const VS: editor.IStandaloneThemeData;
184
+ export declare const VS_DARK: editor.IStandaloneThemeData;
185
+ export declare const QQSTRING_REG: RegExp;
186
+ export declare const QSTRING_REG: RegExp;
187
+ export declare const DEFAULT_COLORS: {
188
+ "color.aqua": string;
189
+ "color.black": string;
190
+ "color.blue": string;
191
+ "color.fuchsia": string;
192
+ "color.gray": string;
193
+ "color.green": string;
194
+ "color.lime": string;
195
+ "color.maroon": string;
196
+ "color.navy": string;
197
+ "color.olive": string;
198
+ "color.orange": string;
199
+ "color.purple": string;
200
+ "color.red": string;
201
+ "color.silver": string;
202
+ "color.teal": string;
203
+ "color.white": string;
204
+ "color.yellow": string;
205
+ };
@@ -0,0 +1,6 @@
1
+ import { IDocValue } from "../../type";
2
+ interface IContents {
3
+ [key: string]: IDocValue[];
4
+ }
5
+ export declare const CONTENTS: IContents;
6
+ export {};
@@ -0,0 +1,44 @@
1
+ import { IDocValue, IKeyValueStr } from '../../type';
2
+ interface IKeyMaps {
3
+ [key: string]: Map<string, IDocValue[]>;
4
+ }
5
+ export interface IKeys {
6
+ [key: string]: string[];
7
+ }
8
+ export declare const SNIPPET_COMPLETIONS: {
9
+ label: string;
10
+ insertText: string;
11
+ kind: string;
12
+ }[];
13
+ export declare const NOT_SHOW_KEYWORDS: string[];
14
+ export declare const COMPLETE_KEYS: string[];
15
+ export declare const HOVER_KEYS: string[];
16
+ export declare const BUILD_IN_VALUE: IKeyValueStr;
17
+ export declare const ALL_KINDS: {
18
+ argument: string;
19
+ keyword: string;
20
+ field: string;
21
+ userFunction: string;
22
+ builtInFunction: string;
23
+ library: string;
24
+ userVariable: string;
25
+ builtInVariable: string;
26
+ namespace: string;
27
+ operator: string;
28
+ constant: string;
29
+ annotation: string;
30
+ userMethod: string;
31
+ builtinMethod: string;
32
+ userType: string;
33
+ builtinType: string;
34
+ };
35
+ export declare const DEFAULT_DETIALS: IKeyValueStr;
36
+ export declare const KEY_LIST: IKeys, KEY_MAP_LIST: IKeyMaps;
37
+ export declare const MANUAL_KEYS: IKeys;
38
+ export declare const CONTENT_GROUPS: {
39
+ title: string;
40
+ key: string;
41
+ prefix: string;
42
+ index: number;
43
+ }[];
44
+ export {};