easycoder 250317.3__py2.py3-none-any.whl → 250317.4__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 +16 -7
- {easycoder-250317.3.dist-info → easycoder-250317.4.dist-info}/METADATA +1 -1
- {easycoder-250317.3.dist-info → easycoder-250317.4.dist-info}/RECORD +7 -7
- {easycoder-250317.3.dist-info → easycoder-250317.4.dist-info}/LICENSE +0 -0
- {easycoder-250317.3.dist-info → easycoder-250317.4.dist-info}/WHEEL +0 -0
- {easycoder-250317.3.dist-info → easycoder-250317.4.dist-info}/entry_points.txt +0 -0
easycoder/__init__.py
CHANGED
easycoder/ec_core.py
CHANGED
|
@@ -1780,8 +1780,8 @@ class Core(Handler):
|
|
|
1780
1780
|
token = self.getToken()
|
|
1781
1781
|
value['type'] = token
|
|
1782
1782
|
|
|
1783
|
-
if token
|
|
1784
|
-
|
|
1783
|
+
if token in ['args', 'directory']:
|
|
1784
|
+
return value
|
|
1785
1785
|
|
|
1786
1786
|
if token == 'elements':
|
|
1787
1787
|
if self.nextIs('of'):
|
|
@@ -2013,6 +2013,12 @@ class Core(Handler):
|
|
|
2013
2013
|
value = v
|
|
2014
2014
|
return value
|
|
2015
2015
|
|
|
2016
|
+
def v_directory(self, v):
|
|
2017
|
+
value = {}
|
|
2018
|
+
value['type'] = 'text'
|
|
2019
|
+
value['content'] = os.getcwd()
|
|
2020
|
+
return value
|
|
2021
|
+
|
|
2016
2022
|
def v_element(self, v):
|
|
2017
2023
|
index = self.getRuntimeValue(v['index'])
|
|
2018
2024
|
target = self.getVariable(v['target'])
|
|
@@ -2381,24 +2387,26 @@ class Core(Handler):
|
|
|
2381
2387
|
# Compile a condition
|
|
2382
2388
|
def compileCondition(self):
|
|
2383
2389
|
condition = Condition()
|
|
2390
|
+
condition.negate = False
|
|
2384
2391
|
|
|
2385
2392
|
if self.getToken() == 'not':
|
|
2386
2393
|
condition.type = 'not'
|
|
2387
2394
|
condition.value = self.nextValue()
|
|
2388
|
-
return condition
|
|
2395
|
+
return not condition
|
|
2389
2396
|
|
|
2390
2397
|
if self.getToken() == 'file':
|
|
2391
2398
|
path = self.nextValue()
|
|
2392
|
-
|
|
2399
|
+
token = self.nextToken()
|
|
2400
|
+
if token == 'exists':
|
|
2393
2401
|
condition.type = 'exists'
|
|
2394
2402
|
condition.path = path
|
|
2395
2403
|
return condition
|
|
2396
|
-
if
|
|
2404
|
+
if token == 'does':
|
|
2397
2405
|
if self.nextIs('not'):
|
|
2398
2406
|
if self.nextIs('exist'):
|
|
2399
2407
|
condition.type = 'exists'
|
|
2400
2408
|
condition.path = path
|
|
2401
|
-
condition.negate =
|
|
2409
|
+
condition.negate = True
|
|
2402
2410
|
return condition
|
|
2403
2411
|
return None
|
|
2404
2412
|
|
|
@@ -2512,7 +2520,8 @@ class Core(Handler):
|
|
|
2512
2520
|
|
|
2513
2521
|
def c_exists(self, condition):
|
|
2514
2522
|
path = self.getRuntimeValue(condition.path)
|
|
2515
|
-
|
|
2523
|
+
comparison = os.path.exists(path)
|
|
2524
|
+
return comparison <= 0 if condition.negate else comparison > 0
|
|
2516
2525
|
|
|
2517
2526
|
def c_greater(self, condition):
|
|
2518
2527
|
comparison = self.program.compare(condition.value1, condition.value2)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: easycoder
|
|
3
|
-
Version: 250317.
|
|
3
|
+
Version: 250317.4
|
|
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=Pu1BNwq6pDEu7S4vA2SrZfUJ3jCtyUTA9n6v51HF3w8,262
|
|
3
3
|
easycoder/ec_classes.py,sha256=xnWBNak8oKydkFoxHLlq9wo3lIsB3aMnTDrqbtCfoWo,1512
|
|
4
4
|
easycoder/ec_compiler.py,sha256=rtxFEWnhW0550MtWEDvYHOw9cYkeTcR0oG3t-kmgnBk,4795
|
|
5
5
|
easycoder/ec_condition.py,sha256=YXvSBQKEzKGCcgUGo3Qp8iHolXmm2BpEm0NimSDszIM,785
|
|
6
|
-
easycoder/ec_core.py,sha256=
|
|
6
|
+
easycoder/ec_core.py,sha256=q6bHq26_AsaoCi6roQeacclhhBv3H6b6ii4AZi48iyw,89127
|
|
7
7
|
easycoder/ec_graphics.py,sha256=sOQlSDpMMjwilLzGkC57-iHdaRqIUWl1SJxc0NbLs1M,14377
|
|
8
8
|
easycoder/ec_gutils.py,sha256=yqu4RRQ6VdRkC5B2ADBYsXzgNu76dLnekd9aUjdEgPw,6399
|
|
9
9
|
easycoder/ec_handler.py,sha256=K7nBuQTH8l0k8hX1o2b4KhTnhZHGdf2fkEuX4FJXJs8,2277
|
|
10
10
|
easycoder/ec_program.py,sha256=Ms-GOtd22TjqvxXkNtfNer725WgQmZiHXlNHLlwMGvs,10103
|
|
11
11
|
easycoder/ec_timestamp.py,sha256=_3QFJPzIWZ9Rzk3SQOQJ-gwmvB07pg78k23SPntoZtY,288
|
|
12
12
|
easycoder/ec_value.py,sha256=zgDJTJhIg3yOvmnnKIfccIizmIhGbtvL_ghLTL1T5fg,2516
|
|
13
|
-
easycoder-250317.
|
|
14
|
-
easycoder-250317.
|
|
15
|
-
easycoder-250317.
|
|
16
|
-
easycoder-250317.
|
|
17
|
-
easycoder-250317.
|
|
13
|
+
easycoder-250317.4.dist-info/entry_points.txt,sha256=JXAZbenl0TnsIft2FcGJbJ-4qoztVu2FuT8PFmWFexM,44
|
|
14
|
+
easycoder-250317.4.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
15
|
+
easycoder-250317.4.dist-info/WHEEL,sha256=ssQ84EZ5gH1pCOujd3iW7HClo_O_aDaClUbX4B8bjKY,100
|
|
16
|
+
easycoder-250317.4.dist-info/METADATA,sha256=ULfbfg_rxDcgz3gbpvahx4r6mchZMXVK4iN7cS_u5Vc,6155
|
|
17
|
+
easycoder-250317.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|