@guihz/trading-vue-editor-tes 0.0.302 → 0.1.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 (167) hide show
  1. package/lib/assets/editor.worker-BxEYBjj-.js +7352 -0
  2. package/lib/assets/parserTccWorker-DzTqNT47.js +80539 -0
  3. package/lib/assets/scriptsRunWorker-RM2NRIoU.js +37755 -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 +2 -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-S1gW0Mpf.js +59972 -0
  133. package/lib/monarchTokens-CMDv_iys.js +563 -0
  134. package/lib/monarchTokens-Cj3v8l0Q.js +526 -0
  135. package/lib/monarchTokens-CnFYyHnR.js +191 -0
  136. package/lib/packages/index.d.ts +3 -3
  137. package/lib/trading-vue-editor.es.packages.js +6344 -66617
  138. package/lib/trading-vue-editor.umd.packages.mjs +117 -75
  139. package/lib/utils/tools.d.ts +8 -3
  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,401 @@
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 { AgainAssignNameContext } from "./tccScriptParser";
15
+ import { VarModifierContext } from "./tccScriptParser";
16
+ import { BlockSequenceContext } from "./tccScriptParser";
17
+ import { ExpressionSequenceContext } from "./tccScriptParser";
18
+ import { ExpressionBlockSequenceContext } from "./tccScriptParser";
19
+ import { VarBlockStmtContext } from "./tccScriptParser";
20
+ import { VarSingleContext } from "./tccScriptParser";
21
+ import { VarMultipleContext } from "./tccScriptParser";
22
+ import { BlockExpressionContext } from "./tccScriptParser";
23
+ import { ParenthesizedExpressionContext } from "./tccScriptParser";
24
+ import { AdditiveExpressionContext } from "./tccScriptParser";
25
+ import { RelationalExpressionContext } from "./tccScriptParser";
26
+ import { TernaryExpressionContext } from "./tccScriptParser";
27
+ import { LogicalAndExpressionContext } from "./tccScriptParser";
28
+ import { NameExpressionContext } from "./tccScriptParser";
29
+ import { LiteralExpressionContext } from "./tccScriptParser";
30
+ import { LogicalOrExpressionContext } from "./tccScriptParser";
31
+ import { UnaryExpressionContext } from "./tccScriptParser";
32
+ import { NotExpressionContext } from "./tccScriptParser";
33
+ import { MemberIndexExpressionContext } from "./tccScriptParser";
34
+ import { MethodExpressionContext } from "./tccScriptParser";
35
+ import { EqualityExpressionContext } from "./tccScriptParser";
36
+ import { MultiplicativeExpressionContext } from "./tccScriptParser";
37
+ import { BrackethesizedContext } from "./tccScriptParser";
38
+ import { ArgumentsContext } from "./tccScriptParser";
39
+ import { ArgumentContext } from "./tccScriptParser";
40
+ import { IfStatementContext } from "./tccScriptParser";
41
+ import { ForToStatementContext } from "./tccScriptParser";
42
+ import { LiteralContext } from "./tccScriptParser";
43
+ import { MethodStmtContext } from "./tccScriptParser";
44
+ import { MethodElementContext } from "./tccScriptParser";
45
+ import { MethodNameContext } from "./tccScriptParser";
46
+ import { ArrowFunctionContext } from "./tccScriptParser";
47
+ import { ArrowFunctionParametersContext } from "./tccScriptParser";
48
+ import { FormalParameterListContext } from "./tccScriptParser";
49
+ import { FormalParameterArgContext } from "./tccScriptParser";
50
+ import { AssignmentOperatorContext } from "./tccScriptParser";
51
+ import { TypeArrayContext } from "./tccScriptParser";
52
+ import { TypeGatherContext } from "./tccScriptParser";
53
+ import { IdentifierContext } from "./tccScriptParser";
54
+ import { TypeNameContext } from "./tccScriptParser";
55
+ import { NameContext } from "./tccScriptParser";
56
+ /**
57
+ * This interface defines a complete generic visitor for a parse tree produced
58
+ * by `tccScriptParser`.
59
+ *
60
+ * @param <Result> The return type of the visit operation. Use `void` for
61
+ * operations with no return type.
62
+ */
63
+ export default class tccScriptParserVisitor<Result> extends ParseTreeVisitor<Result> {
64
+ /**
65
+ * Visit a parse tree produced by `tccScriptParser.program`.
66
+ * @param ctx the parse tree
67
+ * @return the visitor result
68
+ */
69
+ visitProgram?: (ctx: ProgramContext) => Result;
70
+ /**
71
+ * Visit a parse tree produced by `tccScriptParser.globalStmt`.
72
+ * @param ctx the parse tree
73
+ * @return the visitor result
74
+ */
75
+ visitGlobalStmt?: (ctx: GlobalStmtContext) => Result;
76
+ /**
77
+ * Visit a parse tree produced by `tccScriptParser.blockStmt`.
78
+ * @param ctx the parse tree
79
+ * @return the visitor result
80
+ */
81
+ visitBlockStmt?: (ctx: BlockStmtContext) => Result;
82
+ /**
83
+ * Visit a parse tree produced by `tccScriptParser.stmt`.
84
+ * @param ctx the parse tree
85
+ * @return the visitor result
86
+ */
87
+ visitStmt?: (ctx: StmtContext) => Result;
88
+ /**
89
+ * Visit a parse tree produced by `tccScriptParser.simpleStmt`.
90
+ * @param ctx the parse tree
91
+ * @return the visitor result
92
+ */
93
+ visitSimpleStmt?: (ctx: SimpleStmtContext) => Result;
94
+ /**
95
+ * Visit a parse tree produced by `tccScriptParser.flowStmt`.
96
+ * @param ctx the parse tree
97
+ * @return the visitor result
98
+ */
99
+ visitFlowStmt?: (ctx: FlowStmtContext) => Result;
100
+ /**
101
+ * Visit a parse tree produced by `tccScriptParser.block`.
102
+ * @param ctx the parse tree
103
+ * @return the visitor result
104
+ */
105
+ visitBlock?: (ctx: BlockContext) => Result;
106
+ /**
107
+ * Visit a parse tree produced by `tccScriptParser.blockLine`.
108
+ * @param ctx the parse tree
109
+ * @return the visitor result
110
+ */
111
+ visitBlockLine?: (ctx: BlockLineContext) => Result;
112
+ /**
113
+ * Visit a parse tree produced by `tccScriptParser.variableDeclarationStmt`.
114
+ * @param ctx the parse tree
115
+ * @return the visitor result
116
+ */
117
+ visitVariableDeclarationStmt?: (ctx: VariableDeclarationStmtContext) => Result;
118
+ /**
119
+ * Visit a parse tree produced by the `DeclareAssign`
120
+ * labeled alternative in `tccScriptParser.variableDeclarationList`.
121
+ * @param ctx the parse tree
122
+ * @return the visitor result
123
+ */
124
+ visitDeclareAssign?: (ctx: DeclareAssignContext) => Result;
125
+ /**
126
+ * Visit a parse tree produced by the `AgainAssign`
127
+ * labeled alternative in `tccScriptParser.variableDeclarationList`.
128
+ * @param ctx the parse tree
129
+ * @return the visitor result
130
+ */
131
+ visitAgainAssign?: (ctx: AgainAssignContext) => Result;
132
+ /**
133
+ * Visit a parse tree produced by `tccScriptParser.againAssignName`.
134
+ * @param ctx the parse tree
135
+ * @return the visitor result
136
+ */
137
+ visitAgainAssignName?: (ctx: AgainAssignNameContext) => Result;
138
+ /**
139
+ * Visit a parse tree produced by `tccScriptParser.varModifier`.
140
+ * @param ctx the parse tree
141
+ * @return the visitor result
142
+ */
143
+ visitVarModifier?: (ctx: VarModifierContext) => Result;
144
+ /**
145
+ * Visit a parse tree produced by `tccScriptParser.blockSequence`.
146
+ * @param ctx the parse tree
147
+ * @return the visitor result
148
+ */
149
+ visitBlockSequence?: (ctx: BlockSequenceContext) => Result;
150
+ /**
151
+ * Visit a parse tree produced by `tccScriptParser.expressionSequence`.
152
+ * @param ctx the parse tree
153
+ * @return the visitor result
154
+ */
155
+ visitExpressionSequence?: (ctx: ExpressionSequenceContext) => Result;
156
+ /**
157
+ * Visit a parse tree produced by `tccScriptParser.expressionBlockSequence`.
158
+ * @param ctx the parse tree
159
+ * @return the visitor result
160
+ */
161
+ visitExpressionBlockSequence?: (ctx: ExpressionBlockSequenceContext) => Result;
162
+ /**
163
+ * Visit a parse tree produced by `tccScriptParser.varBlockStmt`.
164
+ * @param ctx the parse tree
165
+ * @return the visitor result
166
+ */
167
+ visitVarBlockStmt?: (ctx: VarBlockStmtContext) => Result;
168
+ /**
169
+ * Visit a parse tree produced by the `VarSingle`
170
+ * labeled alternative in `tccScriptParser.varArrayDeclaration`.
171
+ * @param ctx the parse tree
172
+ * @return the visitor result
173
+ */
174
+ visitVarSingle?: (ctx: VarSingleContext) => Result;
175
+ /**
176
+ * Visit a parse tree produced by the `VarMultiple`
177
+ * labeled alternative in `tccScriptParser.varArrayDeclaration`.
178
+ * @param ctx the parse tree
179
+ * @return the visitor result
180
+ */
181
+ visitVarMultiple?: (ctx: VarMultipleContext) => Result;
182
+ /**
183
+ * Visit a parse tree produced by `tccScriptParser.blockExpression`.
184
+ * @param ctx the parse tree
185
+ * @return the visitor result
186
+ */
187
+ visitBlockExpression?: (ctx: BlockExpressionContext) => Result;
188
+ /**
189
+ * Visit a parse tree produced by the `ParenthesizedExpression`
190
+ * labeled alternative in `tccScriptParser.singleExpression`.
191
+ * @param ctx the parse tree
192
+ * @return the visitor result
193
+ */
194
+ visitParenthesizedExpression?: (ctx: ParenthesizedExpressionContext) => Result;
195
+ /**
196
+ * Visit a parse tree produced by the `AdditiveExpression`
197
+ * labeled alternative in `tccScriptParser.singleExpression`.
198
+ * @param ctx the parse tree
199
+ * @return the visitor result
200
+ */
201
+ visitAdditiveExpression?: (ctx: AdditiveExpressionContext) => Result;
202
+ /**
203
+ * Visit a parse tree produced by the `RelationalExpression`
204
+ * labeled alternative in `tccScriptParser.singleExpression`.
205
+ * @param ctx the parse tree
206
+ * @return the visitor result
207
+ */
208
+ visitRelationalExpression?: (ctx: RelationalExpressionContext) => Result;
209
+ /**
210
+ * Visit a parse tree produced by the `TernaryExpression`
211
+ * labeled alternative in `tccScriptParser.singleExpression`.
212
+ * @param ctx the parse tree
213
+ * @return the visitor result
214
+ */
215
+ visitTernaryExpression?: (ctx: TernaryExpressionContext) => Result;
216
+ /**
217
+ * Visit a parse tree produced by the `LogicalAndExpression`
218
+ * labeled alternative in `tccScriptParser.singleExpression`.
219
+ * @param ctx the parse tree
220
+ * @return the visitor result
221
+ */
222
+ visitLogicalAndExpression?: (ctx: LogicalAndExpressionContext) => Result;
223
+ /**
224
+ * Visit a parse tree produced by the `NameExpression`
225
+ * labeled alternative in `tccScriptParser.singleExpression`.
226
+ * @param ctx the parse tree
227
+ * @return the visitor result
228
+ */
229
+ visitNameExpression?: (ctx: NameExpressionContext) => Result;
230
+ /**
231
+ * Visit a parse tree produced by the `LiteralExpression`
232
+ * labeled alternative in `tccScriptParser.singleExpression`.
233
+ * @param ctx the parse tree
234
+ * @return the visitor result
235
+ */
236
+ visitLiteralExpression?: (ctx: LiteralExpressionContext) => Result;
237
+ /**
238
+ * Visit a parse tree produced by the `LogicalOrExpression`
239
+ * labeled alternative in `tccScriptParser.singleExpression`.
240
+ * @param ctx the parse tree
241
+ * @return the visitor result
242
+ */
243
+ visitLogicalOrExpression?: (ctx: LogicalOrExpressionContext) => Result;
244
+ /**
245
+ * Visit a parse tree produced by the `UnaryExpression`
246
+ * labeled alternative in `tccScriptParser.singleExpression`.
247
+ * @param ctx the parse tree
248
+ * @return the visitor result
249
+ */
250
+ visitUnaryExpression?: (ctx: UnaryExpressionContext) => Result;
251
+ /**
252
+ * Visit a parse tree produced by the `NotExpression`
253
+ * labeled alternative in `tccScriptParser.singleExpression`.
254
+ * @param ctx the parse tree
255
+ * @return the visitor result
256
+ */
257
+ visitNotExpression?: (ctx: NotExpressionContext) => Result;
258
+ /**
259
+ * Visit a parse tree produced by the `MemberIndexExpression`
260
+ * labeled alternative in `tccScriptParser.singleExpression`.
261
+ * @param ctx the parse tree
262
+ * @return the visitor result
263
+ */
264
+ visitMemberIndexExpression?: (ctx: MemberIndexExpressionContext) => Result;
265
+ /**
266
+ * Visit a parse tree produced by the `MethodExpression`
267
+ * labeled alternative in `tccScriptParser.singleExpression`.
268
+ * @param ctx the parse tree
269
+ * @return the visitor result
270
+ */
271
+ visitMethodExpression?: (ctx: MethodExpressionContext) => Result;
272
+ /**
273
+ * Visit a parse tree produced by the `EqualityExpression`
274
+ * labeled alternative in `tccScriptParser.singleExpression`.
275
+ * @param ctx the parse tree
276
+ * @return the visitor result
277
+ */
278
+ visitEqualityExpression?: (ctx: EqualityExpressionContext) => Result;
279
+ /**
280
+ * Visit a parse tree produced by the `MultiplicativeExpression`
281
+ * labeled alternative in `tccScriptParser.singleExpression`.
282
+ * @param ctx the parse tree
283
+ * @return the visitor result
284
+ */
285
+ visitMultiplicativeExpression?: (ctx: MultiplicativeExpressionContext) => Result;
286
+ /**
287
+ * Visit a parse tree produced by `tccScriptParser.brackethesized`.
288
+ * @param ctx the parse tree
289
+ * @return the visitor result
290
+ */
291
+ visitBrackethesized?: (ctx: BrackethesizedContext) => Result;
292
+ /**
293
+ * Visit a parse tree produced by `tccScriptParser.arguments`.
294
+ * @param ctx the parse tree
295
+ * @return the visitor result
296
+ */
297
+ visitArguments?: (ctx: ArgumentsContext) => Result;
298
+ /**
299
+ * Visit a parse tree produced by `tccScriptParser.argument`.
300
+ * @param ctx the parse tree
301
+ * @return the visitor result
302
+ */
303
+ visitArgument?: (ctx: ArgumentContext) => Result;
304
+ /**
305
+ * Visit a parse tree produced by `tccScriptParser.ifStatement`.
306
+ * @param ctx the parse tree
307
+ * @return the visitor result
308
+ */
309
+ visitIfStatement?: (ctx: IfStatementContext) => Result;
310
+ /**
311
+ * Visit a parse tree produced by the `ForToStatement`
312
+ * labeled alternative in `tccScriptParser.forStatement`.
313
+ * @param ctx the parse tree
314
+ * @return the visitor result
315
+ */
316
+ visitForToStatement?: (ctx: ForToStatementContext) => Result;
317
+ /**
318
+ * Visit a parse tree produced by `tccScriptParser.literal`.
319
+ * @param ctx the parse tree
320
+ * @return the visitor result
321
+ */
322
+ visitLiteral?: (ctx: LiteralContext) => Result;
323
+ /**
324
+ * Visit a parse tree produced by `tccScriptParser.methodStmt`.
325
+ * @param ctx the parse tree
326
+ * @return the visitor result
327
+ */
328
+ visitMethodStmt?: (ctx: MethodStmtContext) => Result;
329
+ /**
330
+ * Visit a parse tree produced by `tccScriptParser.methodElement`.
331
+ * @param ctx the parse tree
332
+ * @return the visitor result
333
+ */
334
+ visitMethodElement?: (ctx: MethodElementContext) => Result;
335
+ /**
336
+ * Visit a parse tree produced by `tccScriptParser.methodName`.
337
+ * @param ctx the parse tree
338
+ * @return the visitor result
339
+ */
340
+ visitMethodName?: (ctx: MethodNameContext) => Result;
341
+ /**
342
+ * Visit a parse tree produced by `tccScriptParser.arrowFunction`.
343
+ * @param ctx the parse tree
344
+ * @return the visitor result
345
+ */
346
+ visitArrowFunction?: (ctx: ArrowFunctionContext) => Result;
347
+ /**
348
+ * Visit a parse tree produced by `tccScriptParser.arrowFunctionParameters`.
349
+ * @param ctx the parse tree
350
+ * @return the visitor result
351
+ */
352
+ visitArrowFunctionParameters?: (ctx: ArrowFunctionParametersContext) => Result;
353
+ /**
354
+ * Visit a parse tree produced by `tccScriptParser.formalParameterList`.
355
+ * @param ctx the parse tree
356
+ * @return the visitor result
357
+ */
358
+ visitFormalParameterList?: (ctx: FormalParameterListContext) => Result;
359
+ /**
360
+ * Visit a parse tree produced by `tccScriptParser.formalParameterArg`.
361
+ * @param ctx the parse tree
362
+ * @return the visitor result
363
+ */
364
+ visitFormalParameterArg?: (ctx: FormalParameterArgContext) => Result;
365
+ /**
366
+ * Visit a parse tree produced by `tccScriptParser.assignmentOperator`.
367
+ * @param ctx the parse tree
368
+ * @return the visitor result
369
+ */
370
+ visitAssignmentOperator?: (ctx: AssignmentOperatorContext) => Result;
371
+ /**
372
+ * Visit a parse tree produced by `tccScriptParser.typeArray`.
373
+ * @param ctx the parse tree
374
+ * @return the visitor result
375
+ */
376
+ visitTypeArray?: (ctx: TypeArrayContext) => Result;
377
+ /**
378
+ * Visit a parse tree produced by `tccScriptParser.typeGather`.
379
+ * @param ctx the parse tree
380
+ * @return the visitor result
381
+ */
382
+ visitTypeGather?: (ctx: TypeGatherContext) => Result;
383
+ /**
384
+ * Visit a parse tree produced by `tccScriptParser.identifier`.
385
+ * @param ctx the parse tree
386
+ * @return the visitor result
387
+ */
388
+ visitIdentifier?: (ctx: IdentifierContext) => Result;
389
+ /**
390
+ * Visit a parse tree produced by `tccScriptParser.typeName`.
391
+ * @param ctx the parse tree
392
+ * @return the visitor result
393
+ */
394
+ visitTypeName?: (ctx: TypeNameContext) => Result;
395
+ /**
396
+ * Visit a parse tree produced by `tccScriptParser.name`.
397
+ * @param ctx the parse tree
398
+ * @return the visitor result
399
+ */
400
+ visitName?: (ctx: NameContext) => Result;
401
+ }
@@ -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 ALL_CONTENT: IContents;
6
+ export {};
@@ -1,4 +1,4 @@
1
- import { IDocValue } from "../type";
1
+ import { IDocValue } from "../../type";
2
2
  interface IContents {
3
3
  [key: string]: IDocValue[];
4
4
  }
@@ -0,0 +1,41 @@
1
+ import { IDocValue, IKeyValueStr, IKeys } from '../../type';
2
+ interface IKeyMaps {
3
+ [key: string]: Map<string, IDocValue[]>;
4
+ }
5
+ export declare const SNIPPET_COMPLETIONS: {
6
+ label: string;
7
+ insertText: string;
8
+ kind: string;
9
+ }[];
10
+ export declare const NOT_SHOW_KEYWORDS: string[];
11
+ export declare const COMPLETE_KEYS: string[];
12
+ export declare const HOVER_KEYS: string[];
13
+ export declare const BUILD_IN_VALUE: IKeyValueStr;
14
+ export declare const ALL_KINDS: {
15
+ argument: string;
16
+ keyword: string;
17
+ field: string;
18
+ userFunction: string;
19
+ builtInFunction: string;
20
+ library: string;
21
+ userVariable: string;
22
+ builtInVariable: string;
23
+ namespace: string;
24
+ operator: string;
25
+ constant: string;
26
+ annotation: string;
27
+ userMethod: string;
28
+ builtinMethod: string;
29
+ userType: string;
30
+ builtinType: string;
31
+ };
32
+ export declare const DEFAULT_DETIALS: IKeyValueStr;
33
+ export declare const KEY_LIST: IKeys, KEY_MAP_LIST: IKeyMaps;
34
+ export declare const MANUAL_KEYS: IKeys;
35
+ export declare const CONTENT_GROUPS: {
36
+ title: string;
37
+ key: string;
38
+ prefix: string;
39
+ index: number;
40
+ }[];
41
+ export {};
@@ -1,4 +1,4 @@
1
- import { IKeyObjectValue } from "../../type";
1
+ import { IKeyObjectValue } from "../../../type";
2
2
  import { BuiltInVariables } from "../buildInVariables";
3
3
  import { VExtend, VLineStyle, VSize, VText, VXloc } from "../enum";
4
4
  import { IDrawComponent } from "../type";
@@ -76,6 +76,7 @@ export default class BuildInBox {
76
76
  set_top_left_point({ id, point }: VBoxArgs, posStr: string): void;
77
77
  set_bottom_right_point({ id, point }: VBoxArgs, posStr: string): void;
78
78
  set_text_font_family({ id, text_font_family }: VBoxArgs, posStr: string): void;
79
+ set_xloc({ id, left, right, xloc }: VBoxArgs, posStr: string): void;
79
80
  private _getBox;
80
81
  }
81
82
  export declare function createBox(key: string, data: IKeyObjectValue): IDrawComponent;