block_control.json 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. [
  2. {
  3. "name": "control.mainFunction",
  4. "contents": ["主程序"],
  5. "class": "control.MainFunction"
  6. },
  7. {
  8. "name": "control.defineFunction",
  9. "contents": [
  10. "方法(函数)",
  11. {"type": "input", "default": "方法名"},
  12. {"type": "input", "default": "参数"}
  13. ],
  14. "class": "control.DefineFunction"
  15. },
  16. {
  17. "name": "control.call",
  18. "contents": [
  19. "运行函数",
  20. {"type": "input", "default": "方法名"},
  21. "绑定对象",
  22. {"type": "mortise","tenonTypes": []}
  23. ],
  24. "class": "control.Call"
  25. },
  26. {
  27. "name": "control.execute",
  28. "contents": [
  29. "执行",
  30. {"type": "mortise", "tenonTypes": []}
  31. ],
  32. "class": "control.Execute"
  33. },
  34. {
  35. "name": "control.function",
  36. "contents": [
  37. "方法(函数)",
  38. {"type": "input", "default": "方法名"},
  39. "绑定对象",
  40. {"type": "inputMortise","default": "","tenonTypes": []}
  41. ],
  42. "class": "control.Function", "extend": "$Expression"
  43. },
  44. // {
  45. // "name": "control.function",
  46. // "contents": [
  47. // "方法(函数)",
  48. // {"type": "input", "default": "方法名"}
  49. // ],
  50. // "class": "control.Function"
  51. // },
  52. {
  53. "name": "control.if",
  54. "contents": [
  55. "如果",
  56. {"type": "mortise", "tenonTypes": []},
  57. "那么"
  58. ],
  59. "class": "control.If"
  60. },
  61. {
  62. "name": "control.ifelse",
  63. "contents": [
  64. "如果",
  65. {"type": "mortise", "tenonTypes": []},
  66. "那么"
  67. ],
  68. "contents2": ["否则"],
  69. "class": "control.IfElse"
  70. },
  71. {
  72. "name": "control.each",
  73. "contents": [
  74. "遍历",
  75. {"type": "inputMortise","default": "","tenonTypes": []},
  76. " 值",
  77. {"type": "input","default": "v"},
  78. "索引",
  79. {"type": "input","default": "i"},
  80. "绑定对象",
  81. {"type": "mortise","default": "","tenonTypes": []}
  82. ],
  83. "class": "control.Each"
  84. },
  85. {
  86. "name": "control.for",
  87. "contents": [
  88. "循环",
  89. {"type": "inputMortise", "default": "10", "tenonTypes": []},
  90. "次"
  91. ],
  92. "class": "control.For"
  93. },
  94. {
  95. "name": "control.while",
  96. "contents": [
  97. "循环执行直到",
  98. {"type": "mortise", "tenonTypes": []}
  99. ],
  100. "class": "control.While"
  101. },
  102. {
  103. "name": "control.break",
  104. "contents":["终止循环(break)"],
  105. "class": "control.Break"
  106. },
  107. {
  108. "name": "control.continue",
  109. "contents":["继续循环(continue)"],
  110. "class": "control.Continue"
  111. },
  112. {
  113. "name": "control.try",
  114. "contents": ["try"],
  115. "contents2": ["catch"],
  116. "contents3": ["finally"],
  117. "class": "control.Try"
  118. },
  119. {
  120. "name": "control.throw",
  121. "contents": [
  122. "抛出异常",
  123. {"type": "inputMortise", "default": "", "tenonTypes": []}
  124. ],
  125. "class": "control.Throw"
  126. },
  127. {
  128. "name": "control.return",
  129. "contents":[
  130. "返回",
  131. {"type": "inputMortise", "default": "", "tenonTypes": []}
  132. ],
  133. "class": "control.Return"
  134. }
  135. ]