easycoder 250422.3__tar.gz → 250423.2__tar.gz

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.

Potentially problematic release.


This version of easycoder might be problematic. Click here for more details.

Files changed (184) hide show
  1. {easycoder-250422.3 → easycoder-250423.2}/PKG-INFO +1 -1
  2. {easycoder-250422.3 → easycoder-250423.2}/config.ecs +46 -12
  3. {easycoder-250422.3 → easycoder-250423.2}/easycoder/__init__.py +1 -1
  4. {easycoder-250422.3 → easycoder-250423.2}/easycoder/ec_compiler.py +4 -4
  5. {easycoder-250422.3 → easycoder-250423.2}/easycoder/ec_core.py +29 -28
  6. {easycoder-250422.3 → easycoder-250423.2}/easycoder/ec_graphics.py +2 -2
  7. {easycoder-250422.3 → easycoder-250423.2}/easycoder/ec_program.py +1 -1
  8. {easycoder-250422.3 → easycoder-250423.2}/easycoder/ec_pyside6.py +310 -65
  9. {easycoder-250422.3 → easycoder-250423.2}/.gitignore +0 -0
  10. {easycoder-250422.3 → easycoder-250423.2}/LICENSE +0 -0
  11. {easycoder-250422.3 → easycoder-250423.2}/README.md +0 -0
  12. {easycoder-250422.3 → easycoder-250423.2}/config.py +0 -0
  13. {easycoder-250422.3 → easycoder-250423.2}/doc/README.md +0 -0
  14. {easycoder-250422.3 → easycoder-250423.2}/doc/core/README.md +0 -0
  15. {easycoder-250422.3 → easycoder-250423.2}/doc/core/conditions/boolean.md +0 -0
  16. {easycoder-250422.3 → easycoder-250423.2}/doc/core/conditions/empty.md +0 -0
  17. {easycoder-250422.3 → easycoder-250423.2}/doc/core/conditions/ends.md +0 -0
  18. {easycoder-250422.3 → easycoder-250423.2}/doc/core/conditions/even.md +0 -0
  19. {easycoder-250422.3 → easycoder-250423.2}/doc/core/conditions/exists.md +0 -0
  20. {easycoder-250422.3 → easycoder-250423.2}/doc/core/conditions/greater.md +0 -0
  21. {easycoder-250422.3 → easycoder-250423.2}/doc/core/conditions/hasProperty.md +0 -0
  22. {easycoder-250422.3 → easycoder-250423.2}/doc/core/conditions/includes.md +0 -0
  23. {easycoder-250422.3 → easycoder-250423.2}/doc/core/conditions/is.md +0 -0
  24. {easycoder-250422.3 → easycoder-250423.2}/doc/core/conditions/less.md +0 -0
  25. {easycoder-250422.3 → easycoder-250423.2}/doc/core/conditions/list.md +0 -0
  26. {easycoder-250422.3 → easycoder-250423.2}/doc/core/conditions/none.md +0 -0
  27. {easycoder-250422.3 → easycoder-250423.2}/doc/core/conditions/not.md +0 -0
  28. {easycoder-250422.3 → easycoder-250423.2}/doc/core/conditions/numeric.md +0 -0
  29. {easycoder-250422.3 → easycoder-250423.2}/doc/core/conditions/object.md +0 -0
  30. {easycoder-250422.3 → easycoder-250423.2}/doc/core/conditions/odd.md +0 -0
  31. {easycoder-250422.3 → easycoder-250423.2}/doc/core/conditions/starts.md +0 -0
  32. {easycoder-250422.3 → easycoder-250423.2}/doc/core/conditions/string.md +0 -0
  33. {easycoder-250422.3 → easycoder-250423.2}/doc/core/keywords/add.md +0 -0
  34. {easycoder-250422.3 → easycoder-250423.2}/doc/core/keywords/append.md +0 -0
  35. {easycoder-250422.3 → easycoder-250423.2}/doc/core/keywords/assert.md +0 -0
  36. {easycoder-250422.3 → easycoder-250423.2}/doc/core/keywords/begin.md +0 -0
  37. {easycoder-250422.3 → easycoder-250423.2}/doc/core/keywords/clear.md +0 -0
  38. {easycoder-250422.3 → easycoder-250423.2}/doc/core/keywords/close.md +0 -0
  39. {easycoder-250422.3 → easycoder-250423.2}/doc/core/keywords/create.md +0 -0
  40. {easycoder-250422.3 → easycoder-250423.2}/doc/core/keywords/debug.md +0 -0
  41. {easycoder-250422.3 → easycoder-250423.2}/doc/core/keywords/decrement.md +0 -0
  42. {easycoder-250422.3 → easycoder-250423.2}/doc/core/keywords/delete.md +0 -0
  43. {easycoder-250422.3 → easycoder-250423.2}/doc/core/keywords/divide.md +0 -0
  44. {easycoder-250422.3 → easycoder-250423.2}/doc/core/keywords/exit.md +0 -0
  45. {easycoder-250422.3 → easycoder-250423.2}/doc/core/keywords/file.md +0 -0
  46. {easycoder-250422.3 → easycoder-250423.2}/doc/core/keywords/fork.md +0 -0
  47. {easycoder-250422.3 → easycoder-250423.2}/doc/core/keywords/get.md +0 -0
  48. {easycoder-250422.3 → easycoder-250423.2}/doc/core/keywords/go.md +0 -0
  49. {easycoder-250422.3 → easycoder-250423.2}/doc/core/keywords/gosub.md +0 -0
  50. {easycoder-250422.3 → easycoder-250423.2}/doc/core/keywords/if.md +0 -0
  51. {easycoder-250422.3 → easycoder-250423.2}/doc/core/keywords/import.md +0 -0
  52. {easycoder-250422.3 → easycoder-250423.2}/doc/core/keywords/increment.md +0 -0
  53. {easycoder-250422.3 → easycoder-250423.2}/doc/core/keywords/index.md +0 -0
  54. {easycoder-250422.3 → easycoder-250423.2}/doc/core/keywords/init.md +0 -0
  55. {easycoder-250422.3 → easycoder-250423.2}/doc/core/keywords/input.md +0 -0
  56. {easycoder-250422.3 → easycoder-250423.2}/doc/core/keywords/load.md +0 -0
  57. {easycoder-250422.3 → easycoder-250423.2}/doc/core/keywords/lock.md +0 -0
  58. {easycoder-250422.3 → easycoder-250423.2}/doc/core/keywords/log.md +0 -0
  59. {easycoder-250422.3 → easycoder-250423.2}/doc/core/keywords/module.md +0 -0
  60. {easycoder-250422.3 → easycoder-250423.2}/doc/core/keywords/multiply.md +0 -0
  61. {easycoder-250422.3 → easycoder-250423.2}/doc/core/keywords/negate.md +0 -0
  62. {easycoder-250422.3 → easycoder-250423.2}/doc/core/keywords/open.md +0 -0
  63. {easycoder-250422.3 → easycoder-250423.2}/doc/core/keywords/pop.md +0 -0
  64. {easycoder-250422.3 → easycoder-250423.2}/doc/core/keywords/post.md +0 -0
  65. {easycoder-250422.3 → easycoder-250423.2}/doc/core/keywords/print.md +0 -0
  66. {easycoder-250422.3 → easycoder-250423.2}/doc/core/keywords/push.md +0 -0
  67. {easycoder-250422.3 → easycoder-250423.2}/doc/core/keywords/put.md +0 -0
  68. {easycoder-250422.3 → easycoder-250423.2}/doc/core/keywords/read.md +0 -0
  69. {easycoder-250422.3 → easycoder-250423.2}/doc/core/keywords/release.md +0 -0
  70. {easycoder-250422.3 → easycoder-250423.2}/doc/core/keywords/replace.md +0 -0
  71. {easycoder-250422.3 → easycoder-250423.2}/doc/core/keywords/return.md +0 -0
  72. {easycoder-250422.3 → easycoder-250423.2}/doc/core/keywords/run.md +0 -0
  73. {easycoder-250422.3 → easycoder-250423.2}/doc/core/keywords/save.md +0 -0
  74. {easycoder-250422.3 → easycoder-250423.2}/doc/core/keywords/script.md +0 -0
  75. {easycoder-250422.3 → easycoder-250423.2}/doc/core/keywords/set.md +0 -0
  76. {easycoder-250422.3 → easycoder-250423.2}/doc/core/keywords/split.md +0 -0
  77. {easycoder-250422.3 → easycoder-250423.2}/doc/core/keywords/stack.md +0 -0
  78. {easycoder-250422.3 → easycoder-250423.2}/doc/core/keywords/stop.md +0 -0
  79. {easycoder-250422.3 → easycoder-250423.2}/doc/core/keywords/system.md +0 -0
  80. {easycoder-250422.3 → easycoder-250423.2}/doc/core/keywords/take.md +0 -0
  81. {easycoder-250422.3 → easycoder-250423.2}/doc/core/keywords/toggle.md +0 -0
  82. {easycoder-250422.3 → easycoder-250423.2}/doc/core/keywords/truncate.md +0 -0
  83. {easycoder-250422.3 → easycoder-250423.2}/doc/core/keywords/unlock.md +0 -0
  84. {easycoder-250422.3 → easycoder-250423.2}/doc/core/keywords/variable.md +0 -0
  85. {easycoder-250422.3 → easycoder-250423.2}/doc/core/keywords/wait.md +0 -0
  86. {easycoder-250422.3 → easycoder-250423.2}/doc/core/keywords/while.md +0 -0
  87. {easycoder-250422.3 → easycoder-250423.2}/doc/core/keywords/write.md +0 -0
  88. {easycoder-250422.3 → easycoder-250423.2}/doc/core/values/arg.md +0 -0
  89. {easycoder-250422.3 → easycoder-250423.2}/doc/core/values/args.md +0 -0
  90. {easycoder-250422.3 → easycoder-250423.2}/doc/core/values/cos.md +0 -0
  91. {easycoder-250422.3 → easycoder-250423.2}/doc/core/values/datime.md +0 -0
  92. {easycoder-250422.3 → easycoder-250423.2}/doc/core/values/decode.md +0 -0
  93. {easycoder-250422.3 → easycoder-250423.2}/doc/core/values/element.md +0 -0
  94. {easycoder-250422.3 → easycoder-250423.2}/doc/core/values/elements.md +0 -0
  95. {easycoder-250422.3 → easycoder-250423.2}/doc/core/values/empty.md +0 -0
  96. {easycoder-250422.3 → easycoder-250423.2}/doc/core/values/encode.md +0 -0
  97. {easycoder-250422.3 → easycoder-250423.2}/doc/core/values/error.md +0 -0
  98. {easycoder-250422.3 → easycoder-250423.2}/doc/core/values/files.md +0 -0
  99. {easycoder-250422.3 → easycoder-250423.2}/doc/core/values/float.md +0 -0
  100. {easycoder-250422.3 → easycoder-250423.2}/doc/core/values/from.md +0 -0
  101. {easycoder-250422.3 → easycoder-250423.2}/doc/core/values/hash.md +0 -0
  102. {easycoder-250422.3 → easycoder-250423.2}/doc/core/values/index.md +0 -0
  103. {easycoder-250422.3 → easycoder-250423.2}/doc/core/values/integer.md +0 -0
  104. {easycoder-250422.3 → easycoder-250423.2}/doc/core/values/json.md +0 -0
  105. {easycoder-250422.3 → easycoder-250423.2}/doc/core/values/keys.md +0 -0
  106. {easycoder-250422.3 → easycoder-250423.2}/doc/core/values/left.md +0 -0
  107. {easycoder-250422.3 → easycoder-250423.2}/doc/core/values/length.md +0 -0
  108. {easycoder-250422.3 → easycoder-250423.2}/doc/core/values/lowercase.md +0 -0
  109. {easycoder-250422.3 → easycoder-250423.2}/doc/core/values/memory.md +0 -0
  110. {easycoder-250422.3 → easycoder-250423.2}/doc/core/values/modification.md +0 -0
  111. {easycoder-250422.3 → easycoder-250423.2}/doc/core/values/modulo.md +0 -0
  112. {easycoder-250422.3 → easycoder-250423.2}/doc/core/values/newline.md +0 -0
  113. {easycoder-250422.3 → easycoder-250423.2}/doc/core/values/now.md +0 -0
  114. {easycoder-250422.3 → easycoder-250423.2}/doc/core/values/position.md +0 -0
  115. {easycoder-250422.3 → easycoder-250423.2}/doc/core/values/property.md +0 -0
  116. {easycoder-250422.3 → easycoder-250423.2}/doc/core/values/random.md +0 -0
  117. {easycoder-250422.3 → easycoder-250423.2}/doc/core/values/right.md +0 -0
  118. {easycoder-250422.3 → easycoder-250423.2}/doc/core/values/sin.md +0 -0
  119. {easycoder-250422.3 → easycoder-250423.2}/doc/core/values/stringify.md +0 -0
  120. {easycoder-250422.3 → easycoder-250423.2}/doc/core/values/tab.md +0 -0
  121. {easycoder-250422.3 → easycoder-250423.2}/doc/core/values/tan.md +0 -0
  122. {easycoder-250422.3 → easycoder-250423.2}/doc/core/values/timestamp.md +0 -0
  123. {easycoder-250422.3 → easycoder-250423.2}/doc/core/values/today.md +0 -0
  124. {easycoder-250422.3 → easycoder-250423.2}/doc/core/values/trim.md +0 -0
  125. {easycoder-250422.3 → easycoder-250423.2}/doc/core/values/type.md +0 -0
  126. {easycoder-250422.3 → easycoder-250423.2}/doc/core/values/uppercase.md +0 -0
  127. {easycoder-250422.3 → easycoder-250423.2}/doc/core/values/value.md +0 -0
  128. {easycoder-250422.3 → easycoder-250423.2}/doc/core/values/weekday.md +0 -0
  129. {easycoder-250422.3 → easycoder-250423.2}/doc/graphics/README.md +0 -0
  130. {easycoder-250422.3 → easycoder-250423.2}/doc/graphics/keywords/attach.md +0 -0
  131. {easycoder-250422.3 → easycoder-250423.2}/doc/graphics/keywords/close.md +0 -0
  132. {easycoder-250422.3 → easycoder-250423.2}/doc/graphics/keywords/create.md +0 -0
  133. {easycoder-250422.3 → easycoder-250423.2}/doc/graphics/keywords/ellipse.md +0 -0
  134. {easycoder-250422.3 → easycoder-250423.2}/doc/graphics/keywords/image.md +0 -0
  135. {easycoder-250422.3 → easycoder-250423.2}/doc/graphics/keywords/move.md +0 -0
  136. {easycoder-250422.3 → easycoder-250423.2}/doc/graphics/keywords/on.md +0 -0
  137. {easycoder-250422.3 → easycoder-250423.2}/doc/graphics/keywords/rectangle.md +0 -0
  138. {easycoder-250422.3 → easycoder-250423.2}/doc/graphics/keywords/render.md +0 -0
  139. {easycoder-250422.3 → easycoder-250423.2}/doc/graphics/keywords/run.md +0 -0
  140. {easycoder-250422.3 → easycoder-250423.2}/doc/graphics/keywords/set.md +0 -0
  141. {easycoder-250422.3 → easycoder-250423.2}/doc/graphics/keywords/text.md +0 -0
  142. {easycoder-250422.3 → easycoder-250423.2}/doc/graphics/values/attribute.md +0 -0
  143. {easycoder-250422.3 → easycoder-250423.2}/doc/graphics/values/window.md +0 -0
  144. {easycoder-250422.3 → easycoder-250423.2}/easycoder/README.md +0 -0
  145. {easycoder-250422.3 → easycoder-250423.2}/easycoder/ec_classes.py +0 -0
  146. {easycoder-250422.3 → easycoder-250423.2}/easycoder/ec_condition.py +0 -0
  147. {easycoder-250422.3 → easycoder-250423.2}/easycoder/ec_gutils.py +0 -0
  148. {easycoder-250422.3 → easycoder-250423.2}/easycoder/ec_handler.py +0 -0
  149. {easycoder-250422.3 → easycoder-250423.2}/easycoder/ec_timestamp.py +0 -0
  150. {easycoder-250422.3 → easycoder-250423.2}/easycoder/ec_value.py +0 -0
  151. {easycoder-250422.3 → easycoder-250423.2}/group.py +0 -0
  152. {easycoder-250422.3 → easycoder-250423.2}/images/Semoigo Dawn.jpg +0 -0
  153. {easycoder-250422.3 → easycoder-250423.2}/json/graphics-demo.json +0 -0
  154. {easycoder-250422.3 → easycoder-250423.2}/plugins/ec_keyboard.py +0 -0
  155. {easycoder-250422.3 → easycoder-250423.2}/plugins/ec_p100.py +0 -0
  156. {easycoder-250422.3 → easycoder-250423.2}/plugins/ec_pyside6.py +0 -0
  157. {easycoder-250422.3 → easycoder-250423.2}/plugins/keyboards/4-function.json +0 -0
  158. {easycoder-250422.3 → easycoder-250423.2}/plugins/keyboards/4-function.png +0 -0
  159. {easycoder-250422.3 → easycoder-250423.2}/plugins/keyboards/qwerty-0.json +0 -0
  160. {easycoder-250422.3 → easycoder-250423.2}/plugins/keyboards/qwerty-0.png +0 -0
  161. {easycoder-250422.3 → easycoder-250423.2}/plugins/keyboards/qwerty-1.json +0 -0
  162. {easycoder-250422.3 → easycoder-250423.2}/plugins/keyboards/qwerty-1.png +0 -0
  163. {easycoder-250422.3 → easycoder-250423.2}/plugins/keyboards/qwerty-2.json +0 -0
  164. {easycoder-250422.3 → easycoder-250423.2}/plugins/keyboards/qwerty-2.png +0 -0
  165. {easycoder-250422.3 → easycoder-250423.2}/plugins/keyboards/qwerty-3.json +0 -0
  166. {easycoder-250422.3 → easycoder-250423.2}/plugins/keyboards/qwerty-3.png +0 -0
  167. {easycoder-250422.3 → easycoder-250423.2}/plugins/points.py +0 -0
  168. {easycoder-250422.3 → easycoder-250423.2}/pyproject.toml +0 -0
  169. {easycoder-250422.3 → easycoder-250423.2}/scripts/README.md +0 -0
  170. {easycoder-250422.3 → easycoder-250423.2}/scripts/benchmark.ecs +0 -0
  171. {easycoder-250422.3 → easycoder-250423.2}/scripts/config.ecg +0 -0
  172. {easycoder-250422.3 → easycoder-250423.2}/scripts/connect.ecg +0 -0
  173. {easycoder-250422.3 → easycoder-250423.2}/scripts/ec_keyboard.py +0 -0
  174. {easycoder-250422.3 → easycoder-250423.2}/scripts/findxr.ecs +0 -0
  175. {easycoder-250422.3 → easycoder-250423.2}/scripts/fizzbuzz.ecs +0 -0
  176. {easycoder-250422.3 → easycoder-250423.2}/scripts/hello.ecs +0 -0
  177. {easycoder-250422.3 → easycoder-250423.2}/scripts/points.ecs +0 -0
  178. {easycoder-250422.3 → easycoder-250423.2}/scripts/test.ecs +0 -0
  179. {easycoder-250422.3 → easycoder-250423.2}/scripts/testg.ecg +0 -0
  180. {easycoder-250422.3 → easycoder-250423.2}/scripts/tests.ecs +0 -0
  181. {easycoder-250422.3 → easycoder-250423.2}/test.ecg +0 -0
  182. {easycoder-250422.3 → easycoder-250423.2}/test.ecs +0 -0
  183. {easycoder-250422.3 → easycoder-250423.2}/test.json +0 -0
  184. {easycoder-250422.3 → easycoder-250423.2}/test.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: easycoder
3
- Version: 250422.3
3
+ Version: 250423.2
4
4
  Summary: Rapid scripting in English
5
5
  Keywords: compiler,scripting,prototyping,programming,coding,python,low code,hypertalk,computer language,learn to code
6
6
  Author-email: Graham Trott <gtanyware@gmail.com>
@@ -24,7 +24,8 @@
24
24
  pushbutton UpdateSlaveButton
25
25
  pushbutton DeleteFileButton
26
26
  pushbutton ExitButton
27
- pushbutton SelectSystemButton
27
+ pushbutton AddSystemButton
28
+ pushbutton RemoveSystemButton
28
29
  pushbutton SaveHostButton
29
30
  pushbutton RelayOffButton
30
31
  pushbutton RelayOnButton
@@ -38,8 +39,13 @@
38
39
  lineinput DHT22PinInput
39
40
  lineinput PathInput
40
41
  listbox SlaveList
42
+ combobox SystemsCombo
41
43
  checkbox LEDInvertCheckbox
42
44
  checkbox RelayInvertCheckbox
45
+ dialog Dialog
46
+ messagebox MessageBox
47
+ variable Name
48
+ variable Value
43
49
 
44
50
  ! debug step
45
51
 
@@ -48,6 +54,8 @@
48
54
  create Window title `RBR-Now configurator` size 700 500
49
55
  create MainPanel type QHBoxLayout
50
56
 
57
+ ! Do the left-hand panel
58
+
51
59
  create LeftPanel type QVBoxLayout
52
60
  add LeftPanel to MainPanel
53
61
  create ResetConfigButton text `Reset config`
@@ -84,20 +92,26 @@
84
92
  add ExitButton to LeftPanel
85
93
  on click ExitButton go to Exit
86
94
 
95
+ ! Now do the right-hand panel
96
+
87
97
  create RightPanel type QVBoxLayout
88
98
  add stretch RightPanel to MainPanel
89
99
 
90
100
  ! Create the system name group
91
- create Group title `System name`
101
+ create Group title `Systems`
92
102
  set the height of Group to 50
93
103
  add Group to RightPanel
94
104
  create Layout type QHBoxLayout
95
105
  add Layout to Group
96
- create Label text `(none)`
97
- add stretch Label to Layout
98
- create SelectSystemButton text `Select system`
99
- on click SelectSystemButton go to SelectSystem
100
- add SelectSystemButton to Layout
106
+ create SystemsCombo
107
+ add stretch SystemsCombo to Layout
108
+ create AddSystemButton text `Add`
109
+ on click AddSystemButton go to AddSystem
110
+ add AddSystemButton to Layout
111
+ create RemoveSystemButton text `Remove`
112
+ disable RemoveSystemButton
113
+ on click RemoveSystemButton go to RemoveSystem
114
+ add RemoveSystemButton to Layout
101
115
 
102
116
  ! Create the host access group
103
117
  create Group title `Host`
@@ -209,7 +223,7 @@
209
223
  on click SaveWidgetDataButton go to SaveWidgetData
210
224
  add SaveWidgetDataButton to Layout
211
225
 
212
- create StatusLabel text `<font color="#00ff00">OK</font>`
226
+ create StatusLabel text `<font color="#008000">OK</font>`
213
227
  add StatusLabel to RightPanel
214
228
 
215
229
  add stretch to RightPanel
@@ -217,7 +231,13 @@
217
231
  show MainPanel in Window
218
232
 
219
233
  start graphics
220
- log `Graphics running`
234
+
235
+ PopulateForm:
236
+ log `Populate the form`
237
+ add `System 1` to SystemsCombo
238
+ add `System 2` to SystemsCombo
239
+ add `System 3` to SystemsCombo
240
+ if the count of SystemsCombo is not 0 enable RemoveSystemButton
221
241
  stop
222
242
 
223
243
  ResetConfigFile:
@@ -249,12 +269,26 @@ DeleteSlave:
249
269
  stop
250
270
 
251
271
  Exit:
252
- log `Exit the configuator`
272
+ log `Exit the configurator`
253
273
  close Window
254
274
  exit
255
275
 
256
- SelectSystem:
257
- log `Select the system`
276
+ AddSystem:
277
+ log `Add a system`
278
+ create Dialog title `Select system`
279
+ show Dialog
280
+ stop
281
+
282
+ RemoveSystem:
283
+ put SystemsCombo into Name
284
+ log `Remove ` cat Name cat `?`
285
+ create MessageBox on Window
286
+ style question
287
+ title `Remove system`
288
+ message `Are you sure you want to remove ` cat Name cat `?`
289
+ show MessageBox giving Value
290
+ if Value is `Yes` remove current item from SystemsCombo
291
+ if the count of SystemsCombo is 0 disable RemoveSystemButton
258
292
  stop
259
293
 
260
294
  SaveHostInfo:
@@ -9,4 +9,4 @@ from .ec_program import *
9
9
  from .ec_timestamp import *
10
10
  from .ec_value import *
11
11
 
12
- __version__ = "250422.3"
12
+ __version__ = "250423.2"
@@ -114,10 +114,10 @@ class Compiler:
114
114
  def compileLabel(self, command):
115
115
  return self.compileSymbol(command, self.getToken(), False)
116
116
 
117
- def compileVariable(self, command, valueHolder = False):
118
- return self.compileSymbol(command, self.nextToken(), valueHolder)
117
+ def compileVariable(self, command, hasValue = False):
118
+ return self.compileSymbol(command, self.nextToken(), hasValue)
119
119
 
120
- def compileSymbol(self, command, name, valueHolder):
120
+ def compileSymbol(self, command, name, hasValue):
121
121
  try:
122
122
  v = self.symbols[name]
123
123
  except:
@@ -128,7 +128,7 @@ class Compiler:
128
128
  self.symbols[name] = self.getPC()
129
129
  command['program'] = self.program
130
130
  command['type'] = 'symbol'
131
- command['valueHolder'] = valueHolder
131
+ command['hasValue'] = hasValue
132
132
  command['name'] = name
133
133
  command['elements'] = 1
134
134
  command['index'] = 0
@@ -26,7 +26,7 @@ class Core(Handler):
26
26
  if self.nextToken() == 'to':
27
27
  if self.nextIsSymbol():
28
28
  symbolRecord = self.getSymbolRecord()
29
- if symbolRecord['valueHolder']:
29
+ if symbolRecord['hasValue']:
30
30
  if self.peek() == 'giving':
31
31
  # This variable must be treated as a second value
32
32
  command['value2'] = self.getValue()
@@ -57,7 +57,7 @@ class Core(Handler):
57
57
  except:
58
58
  value2 = None
59
59
  target = self.getVariable(command['target'])
60
- if not target['valueHolder']:
60
+ if not target['hasValue']:
61
61
  self.variableDoesNotHoldAValueError(target['name'])
62
62
  targetValue = self.getSymbolValue(target)
63
63
  if targetValue == None:
@@ -87,7 +87,7 @@ class Core(Handler):
87
87
  if self.nextIs('to'):
88
88
  if self.nextIsSymbol():
89
89
  symbolRecord = self.getSymbolRecord()
90
- if symbolRecord['valueHolder']:
90
+ if symbolRecord['hasValue']:
91
91
  command['target'] = symbolRecord['name']
92
92
  self.add(command)
93
93
  return True
@@ -149,7 +149,7 @@ class Core(Handler):
149
149
  def k_clear(self, command):
150
150
  if self.nextIsSymbol():
151
151
  target = self.getSymbolRecord()
152
- if target['valueHolder']:
152
+ if target['hasValue']:
153
153
  command['target'] = target['name']
154
154
  self.add(command)
155
155
  return True
@@ -245,7 +245,7 @@ class Core(Handler):
245
245
  def k_decrement(self, command):
246
246
  if self.nextIsSymbol():
247
247
  symbolRecord = self.getSymbolRecord()
248
- if symbolRecord['valueHolder']:
248
+ if symbolRecord['hasValue']:
249
249
  command['target'] = self.getToken()
250
250
  self.add(command)
251
251
  return True
@@ -325,7 +325,7 @@ class Core(Handler):
325
325
  except:
326
326
  value2 = None
327
327
  target = self.getVariable(command['target'])
328
- if not target['valueHolder']:
328
+ if not target['hasValue']:
329
329
  self.variableDoesNotHoldAValueError(target['name'])
330
330
  return None
331
331
  value = self.getSymbolValue(target)
@@ -400,7 +400,7 @@ class Core(Handler):
400
400
  def k_get(self, command):
401
401
  if self.nextIsSymbol():
402
402
  symbolRecord = self.getSymbolRecord()
403
- if symbolRecord['valueHolder']:
403
+ if symbolRecord['hasValue']:
404
404
  command['target'] = self.getToken()
405
405
  else:
406
406
  FatalError(self.compiler, f'Variable "{symbolRecord["name"]}" does not hold a value')
@@ -610,7 +610,7 @@ class Core(Handler):
610
610
  def k_increment(self, command):
611
611
  if self.nextIsSymbol():
612
612
  symbolRecord = self.getSymbolRecord()
613
- if symbolRecord['valueHolder']:
613
+ if symbolRecord['hasValue']:
614
614
  command['target'] = self.getToken()
615
615
  self.add(command)
616
616
  return True
@@ -701,7 +701,7 @@ class Core(Handler):
701
701
  return True
702
702
  elif self.isSymbol():
703
703
  symbolRecord = self.getSymbolRecord()
704
- if symbolRecord['valueHolder']:
704
+ if symbolRecord['hasValue']:
705
705
  command['target'] = symbolRecord['name']
706
706
  if self.nextIs('from'):
707
707
  command['file'] = self.nextValue()
@@ -785,7 +785,7 @@ class Core(Handler):
785
785
  except:
786
786
  value2 = None
787
787
  target = self.getVariable(command['target'])
788
- if not target['valueHolder']:
788
+ if not target['hasValue']:
789
789
  self.variableDoesNotHoldAValueError(target['name'])
790
790
  return None
791
791
  value = self.getSymbolValue(target)
@@ -810,7 +810,7 @@ class Core(Handler):
810
810
  def k_negate(self, command):
811
811
  if self.nextIsSymbol():
812
812
  symbolRecord = self.getSymbolRecord()
813
- if symbolRecord['valueHolder']:
813
+ if symbolRecord['hasValue']:
814
814
  command['target'] = self.getToken()
815
815
  self.add(command)
816
816
  return True
@@ -819,7 +819,7 @@ class Core(Handler):
819
819
 
820
820
  def r_negate(self, command):
821
821
  symbolRecord = self.getVariable(command['target'])
822
- if not symbolRecord['valueHolder']:
822
+ if not symbolRecord['hasValue']:
823
823
  RuntimeError(self.program, f'{symbolRecord["name"]} does not hold a value')
824
824
  return None
825
825
  value = self.getSymbolValue(symbolRecord)
@@ -921,7 +921,7 @@ class Core(Handler):
921
921
 
922
922
  def r_pop(self, command):
923
923
  symbolRecord = self.getVariable(command['target'])
924
- if not symbolRecord['valueHolder']:
924
+ if not symbolRecord['hasValue']:
925
925
  RuntimeError(self.program, f'{symbolRecord["name"]} does not hold a value')
926
926
  stackRecord = self.getVariable(command['from'])
927
927
  stack = self.getSymbolValue(stackRecord)
@@ -1060,7 +1060,7 @@ class Core(Handler):
1060
1060
  if self.nextIsSymbol():
1061
1061
  symbolRecord = self.getSymbolRecord()
1062
1062
  command['target'] = symbolRecord['name']
1063
- if 'valueholder' in symbolRecord and symbolRecord['valueHolder'] == False:
1063
+ if 'hasValue' in symbolRecord and symbolRecord['hasValue'] == False:
1064
1064
  FatalError(self.compiler, f'Symbol {symbolRecord["name"]} is not a value holder')
1065
1065
  else:
1066
1066
  self.add(command)
@@ -1074,7 +1074,7 @@ class Core(Handler):
1074
1074
  if value == None:
1075
1075
  return -1
1076
1076
  symbolRecord = self.getVariable(command['target'])
1077
- if not symbolRecord['valueHolder']:
1077
+ if not symbolRecord['hasValue']:
1078
1078
  RuntimeError(self.program, f'{symbolRecord["name"]} does not hold a value')
1079
1079
  return -1
1080
1080
  self.putSymbolValue(symbolRecord, value)
@@ -1090,7 +1090,7 @@ class Core(Handler):
1090
1090
  command['line'] = False
1091
1091
  if self.nextIsSymbol():
1092
1092
  symbolRecord = self.getSymbolRecord()
1093
- if symbolRecord['valueHolder']:
1093
+ if symbolRecord['hasValue']:
1094
1094
  if self.peek() == 'from':
1095
1095
  self.nextToken()
1096
1096
  if self.nextIsSymbol():
@@ -1259,7 +1259,7 @@ class Core(Handler):
1259
1259
  def k_set(self, command):
1260
1260
  if self.nextIsSymbol():
1261
1261
  target = self.getSymbolRecord()
1262
- if target['valueHolder']:
1262
+ if target['hasValue']:
1263
1263
  command['type'] = 'set'
1264
1264
  command['target'] = target['name']
1265
1265
  self.add(command)
@@ -1384,7 +1384,7 @@ class Core(Handler):
1384
1384
  def k_split(self, command):
1385
1385
  if self.nextIsSymbol():
1386
1386
  symbolRecord = self.getSymbolRecord()
1387
- if symbolRecord['valueHolder']:
1387
+ if symbolRecord['hasValue']:
1388
1388
  command['target'] = symbolRecord['name']
1389
1389
  value = {}
1390
1390
  value['type'] = 'text'
@@ -1423,7 +1423,7 @@ class Core(Handler):
1423
1423
  def k_shuffle(self, command):
1424
1424
  if self.nextIsSymbol():
1425
1425
  symbolRecord = self.getSymbolRecord()
1426
- if symbolRecord['valueHolder']:
1426
+ if symbolRecord['hasValue']:
1427
1427
  command['target'] = self.getToken()
1428
1428
  self.add(command)
1429
1429
  return True
@@ -1432,7 +1432,7 @@ class Core(Handler):
1432
1432
 
1433
1433
  def r_shuffle(self, command):
1434
1434
  symbolRecord = self.getVariable(command['target'])
1435
- if not symbolRecord['valueHolder']:
1435
+ if not symbolRecord['hasValue']:
1436
1436
  RuntimeError(self.program, f'{symbolRecord["name"]} does not hold a value')
1437
1437
  return None
1438
1438
  value = self.getSymbolValue(symbolRecord)
@@ -1495,7 +1495,7 @@ class Core(Handler):
1495
1495
  if self.nextToken() == 'from':
1496
1496
  if self.nextIsSymbol():
1497
1497
  symbolRecord = self.getSymbolRecord()
1498
- if symbolRecord['valueHolder']:
1498
+ if symbolRecord['hasValue']:
1499
1499
  if self.peek() == 'giving':
1500
1500
  # This variable must be treated as a second value
1501
1501
  command['value2'] = self.getValue()
@@ -1530,7 +1530,7 @@ class Core(Handler):
1530
1530
  except:
1531
1531
  value2 = None
1532
1532
  target = self.getVariable(command['target'])
1533
- if not target['valueHolder']:
1533
+ if not target['hasValue']:
1534
1534
  self.variableDoesNotHoldAValueError(target['name'])
1535
1535
  return None
1536
1536
  value = self.getSymbolValue(target)
@@ -1552,7 +1552,7 @@ class Core(Handler):
1552
1552
  def k_toggle(self, command):
1553
1553
  if self.nextIsSymbol():
1554
1554
  target = self.getSymbolRecord()
1555
- if target['valueHolder']:
1555
+ if target['hasValue']:
1556
1556
  command['target'] = target['name']
1557
1557
  self.add(command)
1558
1558
  return True
@@ -1712,7 +1712,7 @@ class Core(Handler):
1712
1712
 
1713
1713
  def incdec(self, command, mode):
1714
1714
  symbolRecord = self.getVariable(command['target'])
1715
- if not symbolRecord['valueHolder']:
1715
+ if not symbolRecord['hasValue']:
1716
1716
  RuntimeError(self.program, f'{symbolRecord["name"]} does not hold a value')
1717
1717
  return None
1718
1718
  value = self.getSymbolValue(symbolRecord)
@@ -1781,7 +1781,7 @@ class Core(Handler):
1781
1781
  if self.nextToken() == 'of':
1782
1782
  if self.nextIsSymbol():
1783
1783
  symbolRecord = self.getSymbolRecord()
1784
- if symbolRecord['valueHolder']:
1784
+ if symbolRecord['hasValue']:
1785
1785
  value['target'] = symbolRecord['name']
1786
1786
  return value
1787
1787
  self.warning(f'Core.compileValue: Token \'{self.getToken()}\' does not hold a value')
@@ -1792,7 +1792,7 @@ class Core(Handler):
1792
1792
  if self.nextToken() == 'of':
1793
1793
  if self.nextIsSymbol():
1794
1794
  symbolRecord = self.getSymbolRecord()
1795
- if symbolRecord['valueHolder']:
1795
+ if symbolRecord['hasValue']:
1796
1796
  value['target'] = symbolRecord['name']
1797
1797
  return value
1798
1798
  FatalError(self.compiler, 'Variable does not hold a value')
@@ -1838,8 +1838,9 @@ class Core(Handler):
1838
1838
  if token == 'count':
1839
1839
  if self.nextIs('of'):
1840
1840
  if self.nextIsSymbol():
1841
- value['name'] = self.getToken()
1842
- return value
1841
+ if self.getSymbolRecord()['hasValue']:
1842
+ value['name'] = self.getToken()
1843
+ return value
1843
1844
  return None
1844
1845
 
1845
1846
  if token == 'index':
@@ -165,11 +165,11 @@ class Graphics(Handler):
165
165
  def k_get(self, command):
166
166
  if self.nextIsSymbol():
167
167
  symbolRecord = self.getSymbolRecord()
168
- if symbolRecord['valueHolder']:
168
+ if symbolRecord['hasValue']:
169
169
  command['target'] = self.getToken()
170
170
  else:
171
171
  FatalError(self.compiler, f'Variable "{symbolRecord["name"]}" does not hold a value')
172
- if symbolRecord['valueHolder']:
172
+ if symbolRecord['hasValue']:
173
173
  if self.nextIs('from'):
174
174
  if self.nextIs('popup'):
175
175
  command['ptype'] = self.nextToken()
@@ -149,7 +149,7 @@ class Program:
149
149
  elif valType == 'symbol':
150
150
  name = value['name']
151
151
  symbolRecord = self.getSymbolRecord(name)
152
- if symbolRecord['valueHolder']:
152
+ if symbolRecord['hasValue']:
153
153
  handler = self.domainIndex[symbolRecord['domain']].valueHandler('symbol')
154
154
  result = handler(symbolRecord)
155
155
  else: