easycoder 250210.1__py2.py3-none-any.whl → 250211.1__py2.py3-none-any.whl
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.
- easycoder/__init__.py +1 -1
- easycoder/ec_core.py +14 -14
- easycoder/ec_program.py +9 -7
- {easycoder-250210.1.dist-info → easycoder-250211.1.dist-info}/METADATA +1 -1
- {easycoder-250210.1.dist-info → easycoder-250211.1.dist-info}/RECORD +8 -8
- {easycoder-250210.1.dist-info → easycoder-250211.1.dist-info}/LICENSE +0 -0
- {easycoder-250210.1.dist-info → easycoder-250211.1.dist-info}/WHEEL +0 -0
- {easycoder-250210.1.dist-info → easycoder-250211.1.dist-info}/entry_points.txt +0 -0
easycoder/__init__.py
CHANGED
easycoder/ec_core.py
CHANGED
|
@@ -696,22 +696,21 @@ class Core(Handler):
|
|
|
696
696
|
self.program.importPlugin(f'{source}:{clazz}')
|
|
697
697
|
return True
|
|
698
698
|
elif self.isSymbol():
|
|
699
|
-
|
|
700
|
-
if
|
|
701
|
-
command['
|
|
702
|
-
self.
|
|
703
|
-
|
|
699
|
+
symbolRecord = self.getSymbolRecord()
|
|
700
|
+
if symbolRecord['valueHolder']:
|
|
701
|
+
command['target'] = symbolRecord['name']
|
|
702
|
+
if self.nextIs('from'):
|
|
703
|
+
command['file'] = self.nextValue()
|
|
704
|
+
self.add(command)
|
|
705
|
+
return True
|
|
704
706
|
return False
|
|
705
707
|
|
|
706
708
|
def r_load(self, command):
|
|
707
709
|
target = self.getVariable(command['target'])
|
|
708
710
|
file = self.getRuntimeValue(command['file'])
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
except:
|
|
713
|
-
content=None
|
|
714
|
-
if content != None and file.endswith('.json'): content = json.loads(content)
|
|
711
|
+
f = open(file, 'r')
|
|
712
|
+
content = f.read()
|
|
713
|
+
f.close()
|
|
715
714
|
value = {}
|
|
716
715
|
value['type'] = 'text'
|
|
717
716
|
value['content'] = content
|
|
@@ -1220,9 +1219,9 @@ class Core(Handler):
|
|
|
1220
1219
|
def r_save(self, command):
|
|
1221
1220
|
content = self.getRuntimeValue(command['content'])
|
|
1222
1221
|
file = self.getRuntimeValue(command['file'])
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1222
|
+
f = open(file, 'w')
|
|
1223
|
+
f.write(content)
|
|
1224
|
+
f.close()
|
|
1226
1225
|
return self.nextPC()
|
|
1227
1226
|
|
|
1228
1227
|
# Send a message to a module
|
|
@@ -1691,6 +1690,7 @@ class Core(Handler):
|
|
|
1691
1690
|
value['name'] = token
|
|
1692
1691
|
symbolRecord = self.getSymbolRecord()
|
|
1693
1692
|
keyword = symbolRecord['keyword']
|
|
1693
|
+
|
|
1694
1694
|
if keyword == 'module':
|
|
1695
1695
|
value['type'] = 'module'
|
|
1696
1696
|
return value
|
easycoder/ec_program.py
CHANGED
|
@@ -149,17 +149,19 @@ class Program:
|
|
|
149
149
|
elif valType == 'symbol':
|
|
150
150
|
name = value['name']
|
|
151
151
|
symbolRecord = self.getSymbolRecord(name)
|
|
152
|
-
if symbolRecord['
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
152
|
+
if symbolRecord['valueHolder']:
|
|
153
|
+
handler = self.domainIndex[symbolRecord['domain']].valueHandler('symbol')
|
|
154
|
+
result = handler(symbolRecord)
|
|
155
|
+
else:
|
|
156
|
+
# Call the given domain to handle a value
|
|
157
|
+
domain = self.domainIndex[value['domain']]
|
|
158
|
+
handler = domain.valueHandler(value['type'])
|
|
159
|
+
if handler: result = handler(value)
|
|
157
160
|
else:
|
|
158
161
|
# Call the given domain to handle a value
|
|
159
162
|
domain = self.domainIndex[value['domain']]
|
|
160
163
|
handler = domain.valueHandler(value['type'])
|
|
161
|
-
if handler:
|
|
162
|
-
result = handler(value)
|
|
164
|
+
if handler: result = handler(value)
|
|
163
165
|
|
|
164
166
|
return result
|
|
165
167
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: easycoder
|
|
3
|
-
Version:
|
|
3
|
+
Version: 250211.1
|
|
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>
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
easycoder/README.md,sha256=BVXmYphcTJ6q6RN_9L6HtQukgCnOjSLVIsTM3lk-9aM,587
|
|
2
|
-
easycoder/__init__.py,sha256
|
|
2
|
+
easycoder/__init__.py,sha256=-ieVJbUXyUx77PtU92gNnd-Ac2xwhwhKwQ8ELRm19CA,262
|
|
3
3
|
easycoder/ec_classes.py,sha256=xnWBNak8oKydkFoxHLlq9wo3lIsB3aMnTDrqbtCfoWo,1512
|
|
4
4
|
easycoder/ec_compiler.py,sha256=dFJEA_uOhD-HeSiAdBzmmA6q3LHThUVoJpSETanmSHs,4800
|
|
5
5
|
easycoder/ec_condition.py,sha256=WSbONo4zs2sX1icOVpscZDFSCAEFmTsquoc2RGcLx_k,763
|
|
6
|
-
easycoder/ec_core.py,sha256=
|
|
6
|
+
easycoder/ec_core.py,sha256=p5l09Vx5nN6sHsIFVOHauOW4_eL5x1LTuI-fM6TG3Y8,87681
|
|
7
7
|
easycoder/ec_graphics.py,sha256=K44SbPb81KBGCe4wpl6VR4lt93AAGOZysFO2tkUuilY,13380
|
|
8
8
|
easycoder/ec_gutils.py,sha256=BHDsRgXR5XTO2nYhdBbC4OQW-9xU0czyFyee0tZ595E,6096
|
|
9
9
|
easycoder/ec_handler.py,sha256=IJvxcrJJSR53d6DS_8H5qPHKhp9y5-GV4WXAjhZxu_o,2250
|
|
10
|
-
easycoder/ec_program.py,sha256=
|
|
10
|
+
easycoder/ec_program.py,sha256=BDwU7aGHiaw6WdbQvVFDhGVaHsvwQ1CWa4wb5MPmOe8,10013
|
|
11
11
|
easycoder/ec_timestamp.py,sha256=_3QFJPzIWZ9Rzk3SQOQJ-gwmvB07pg78k23SPntoZtY,288
|
|
12
12
|
easycoder/ec_value.py,sha256=zgDJTJhIg3yOvmnnKIfccIizmIhGbtvL_ghLTL1T5fg,2516
|
|
13
|
-
easycoder-
|
|
14
|
-
easycoder-
|
|
15
|
-
easycoder-
|
|
16
|
-
easycoder-
|
|
17
|
-
easycoder-
|
|
13
|
+
easycoder-250211.1.dist-info/entry_points.txt,sha256=JXAZbenl0TnsIft2FcGJbJ-4qoztVu2FuT8PFmWFexM,44
|
|
14
|
+
easycoder-250211.1.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
15
|
+
easycoder-250211.1.dist-info/WHEEL,sha256=Sgu64hAMa6g5FdzHxXv9Xdse9yxpGGMeagVtPMWpJQY,99
|
|
16
|
+
easycoder-250211.1.dist-info/METADATA,sha256=9oZyS8fstRgwsMShM9efh6Hh5AyUWSK2R4EvIRwB7rQ,6162
|
|
17
|
+
easycoder-250211.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|