easycoder 241218.1__py2.py3-none-any.whl → 241231.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/README.md +6 -0
- easycoder/__init__.py +2 -2
- easycoder/ec.py +10 -0
- easycoder/ec_classes.py +3 -0
- easycoder/ec_compiler.py +7 -6
- easycoder/ec_core.py +29 -4
- easycoder/ec_graphics.py +275 -222
- easycoder/ec_handler.py +1 -0
- easycoder/ec_program.py +72 -58
- easycoder/ec_renderer.py +235 -325
- easycoder/ec_screenspec.py +77 -0
- easycoder/ec_value.py +10 -10
- {easycoder-241218.1.dist-info → easycoder-241231.1.dist-info}/METADATA +11 -3
- easycoder-241231.1.dist-info/RECORD +19 -0
- easycoder-241218.1.dist-info/RECORD +0 -16
- {easycoder-241218.1.dist-info → easycoder-241231.1.dist-info}/LICENSE +0 -0
- {easycoder-241218.1.dist-info → easycoder-241231.1.dist-info}/WHEEL +0 -0
- {easycoder-241218.1.dist-info → easycoder-241231.1.dist-info}/entry_points.txt +0 -0
easycoder/ec_value.py
CHANGED
|
@@ -83,16 +83,16 @@ class Value:
|
|
|
83
83
|
|
|
84
84
|
def compileConstant(self, token):
|
|
85
85
|
value = {}
|
|
86
|
-
if token
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
86
|
+
if type(token) == 'str':
|
|
87
|
+
token = eval(token)
|
|
88
|
+
if isinstance(token, int):
|
|
89
|
+
value['type'] = 'int'
|
|
90
|
+
value['content'] = token
|
|
91
|
+
return value
|
|
92
|
+
if isinstance(token, float):
|
|
93
|
+
value['type'] = 'float'
|
|
94
|
+
value['content'] = token
|
|
95
|
+
return value
|
|
96
96
|
value['type'] = 'text'
|
|
97
97
|
value['content'] = token
|
|
98
98
|
return value
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: easycoder
|
|
3
|
-
Version:
|
|
3
|
+
Version: 241231.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>
|
|
@@ -60,9 +60,17 @@ Here in the repository is a folder called `scripts` containing some sample scrip
|
|
|
60
60
|
`fizzbuzz.ecs` is a simple programming challenge often given at job interviews
|
|
61
61
|
|
|
62
62
|
## Graphical programmming
|
|
63
|
-
**_EasyCoder_**
|
|
63
|
+
**_EasyCoder_** includes a graphical programming environment that is in the early stages of development. A couple of demo scripts are included in the `scripts` directory. To run them, first install the Python `kivy` graphics library if it's not already present on your system. This is done with `pip install kivy`. Then run a script using `easycoder {scriptname}.ecg`.
|
|
64
64
|
|
|
65
|
-
|
|
65
|
+
Graphical scripts look much like any other script but their file names must use the extension `.ecg` to signal to **_EasyCoder_** that it needs to load the graphics module. This allows the **_EasyCoder_** application to be used wherever Python is installed, in either a command-line or a graphical environment (but graphics will of course not be available in the former).
|
|
66
|
+
|
|
67
|
+
A couple of demo scripts are included in the `scripts` directory:
|
|
68
|
+
|
|
69
|
+
`graphics-demo.ecg` shows some of the elements that can be created, and demonstrates a variety of the graphical features of the language such as detecting when elements are clicked.
|
|
70
|
+
|
|
71
|
+
`wave.ecg` is a "Mexican Wave" simulation.
|
|
72
|
+
|
|
73
|
+
**_EasyCoder_** graphics are handled by a library module, `ec_renderer` that can be used outside of the **_EasyCoder_** environment, in other Python programs.
|
|
66
74
|
|
|
67
75
|
## EasyCoder programming reference
|
|
68
76
|
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
easycoder/README.md,sha256=PYqOc_SkIGiFbyCNs90y7JqoqWe4aO1xYIW-6bOnFKU,573
|
|
2
|
+
easycoder/__init__.py,sha256=WpuFq9C1_LWCjt7667A94jo8QMavAs_jT2qZluZgT2E,283
|
|
3
|
+
easycoder/ec.py,sha256=Nj5PRl8GsKjfGJKq0FOM1a7FeK3cN68CoIFg8lswQEg,221
|
|
4
|
+
easycoder/ec_classes.py,sha256=xnWBNak8oKydkFoxHLlq9wo3lIsB3aMnTDrqbtCfoWo,1512
|
|
5
|
+
easycoder/ec_compiler.py,sha256=2r6Nk7px9UMYqIpYc6dAbYOAFu-CoWPy-iqlsed49Lo,4690
|
|
6
|
+
easycoder/ec_condition.py,sha256=WSbONo4zs2sX1icOVpscZDFSCAEFmTsquoc2RGcLx_k,763
|
|
7
|
+
easycoder/ec_core.py,sha256=HtJWpfwz1eon0o4ZFYVM42ECAD6sKT8izvHYIb7dnv8,77463
|
|
8
|
+
easycoder/ec_graphics.py,sha256=o70BdQ-Y3uIo5nheQYwJUmM3gYVerKD9_5arQ8JTP-Y,15556
|
|
9
|
+
easycoder/ec_handler.py,sha256=IJvxcrJJSR53d6DS_8H5qPHKhp9y5-GV4WXAjhZxu_o,2250
|
|
10
|
+
easycoder/ec_program.py,sha256=6jK4blJMcRbspUEh-AW5MUVuLtLP023sZAbbgvPad-Y,8615
|
|
11
|
+
easycoder/ec_renderer.py,sha256=ejVFemHGuFBwGA__6VfZQZeZMnw4Ilvf_y9I34k04LM,7981
|
|
12
|
+
easycoder/ec_screenspec.py,sha256=TeXgccfYoE--r7Rf9t9drV1V3fU-p-iBnZwtjHzIh8M,2524
|
|
13
|
+
easycoder/ec_timestamp.py,sha256=_3QFJPzIWZ9Rzk3SQOQJ-gwmvB07pg78k23SPntoZtY,288
|
|
14
|
+
easycoder/ec_value.py,sha256=XIBtGhcCgh1abrzAn-Wy4l_xH_3cTWakMVIiSlBAZjM,2386
|
|
15
|
+
easycoder-241231.1.dist-info/entry_points.txt,sha256=JXAZbenl0TnsIft2FcGJbJ-4qoztVu2FuT8PFmWFexM,44
|
|
16
|
+
easycoder-241231.1.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
17
|
+
easycoder-241231.1.dist-info/WHEEL,sha256=ssQ84EZ5gH1pCOujd3iW7HClo_O_aDaClUbX4B8bjKY,100
|
|
18
|
+
easycoder-241231.1.dist-info/METADATA,sha256=MhsFB-Ftja3Q0DFD-IomqX4Sntipma64e6WIUXyfXdQ,4605
|
|
19
|
+
easycoder-241231.1.dist-info/RECORD,,
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
easycoder/__init__.py,sha256=k7jfdc4pthQcQKvNzXXUQGWfqAU8_YxU1NXjra0hOsE,289
|
|
2
|
-
easycoder/ec_classes.py,sha256=mRvIk2d-yc20u54oX8fauKeYy-z_g30Otbl-dn5O6T4,1486
|
|
3
|
-
easycoder/ec_compiler.py,sha256=s7M3Jl6z0X_tp-QW4p3v7ac2fhL_bf0uw1GHebqt1Ug,4638
|
|
4
|
-
easycoder/ec_condition.py,sha256=WSbONo4zs2sX1icOVpscZDFSCAEFmTsquoc2RGcLx_k,763
|
|
5
|
-
easycoder/ec_core.py,sha256=NfXNTyxmsU4_f3JTTFMUzgsfCRL9se8rdVfwqBC_1wM,76452
|
|
6
|
-
easycoder/ec_graphics.py,sha256=qHkZkpT5WM0Y-vHXXLoiqGGS_1qWiajKBYqS1MRSicA,12786
|
|
7
|
-
easycoder/ec_handler.py,sha256=WDDIz0awD3vSQZ149rgbUWsClt6zXqED8ByXQJ5p1Ds,2200
|
|
8
|
-
easycoder/ec_program.py,sha256=MHPHEYHoU5zUVsnkL30kyUxtFph-8naVlDGN2hHsKpw,8103
|
|
9
|
-
easycoder/ec_renderer.py,sha256=w3qf-CZlnA-jKcflT8PPzX7NUDJkqrl8w692-rwU3Y8,12122
|
|
10
|
-
easycoder/ec_timestamp.py,sha256=_3QFJPzIWZ9Rzk3SQOQJ-gwmvB07pg78k23SPntoZtY,288
|
|
11
|
-
easycoder/ec_value.py,sha256=aOvSF6bM1iKpcLLm0zyGerxHixBkyjE3iYl1Bx6jmzU,2381
|
|
12
|
-
easycoder-241218.1.dist-info/entry_points.txt,sha256=JXAZbenl0TnsIft2FcGJbJ-4qoztVu2FuT8PFmWFexM,44
|
|
13
|
-
easycoder-241218.1.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
14
|
-
easycoder-241218.1.dist-info/WHEEL,sha256=ssQ84EZ5gH1pCOujd3iW7HClo_O_aDaClUbX4B8bjKY,100
|
|
15
|
-
easycoder-241218.1.dist-info/METADATA,sha256=ooonquwbm7yneNnmOFldtcEYhHMxyXyUwCanVjXYRnE,4098
|
|
16
|
-
easycoder-241218.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|