shell-lite 0.5.2__py3-none-any.whl → 0.5.3__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.
- shell_lite/interpreter.py +1 -1
- shell_lite/main.py +5 -4
- {shell_lite-0.5.2.dist-info → shell_lite-0.5.3.dist-info}/METADATA +1 -1
- {shell_lite-0.5.2.dist-info → shell_lite-0.5.3.dist-info}/RECORD +8 -8
- {shell_lite-0.5.2.dist-info → shell_lite-0.5.3.dist-info}/LICENSE +0 -0
- {shell_lite-0.5.2.dist-info → shell_lite-0.5.3.dist-info}/WHEEL +0 -0
- {shell_lite-0.5.2.dist-info → shell_lite-0.5.3.dist-info}/entry_points.txt +0 -0
- {shell_lite-0.5.2.dist-info → shell_lite-0.5.3.dist-info}/top_level.txt +0 -0
shell_lite/interpreter.py
CHANGED
|
@@ -1502,7 +1502,7 @@ class Interpreter:
|
|
|
1502
1502
|
self.wfile.write(str(e).encode())
|
|
1503
1503
|
except: pass
|
|
1504
1504
|
server = ReusableHTTPServer(('0.0.0.0', port_val), ShellLiteHandler)
|
|
1505
|
-
print(f"\n ShellLite Server v0.5.
|
|
1505
|
+
print(f"\n ShellLite Server v0.5.3 is running!")
|
|
1506
1506
|
print(f" \u001b[1;36m➜\u001b[0m Local: \u001b[1;4;36mhttp://localhost:{port_val}/\u001b[0m\n")
|
|
1507
1507
|
try: server.serve_forever()
|
|
1508
1508
|
except KeyboardInterrupt:
|
shell_lite/main.py
CHANGED
|
@@ -16,11 +16,12 @@ def execute_source(source: str, interpreter: Interpreter):
|
|
|
16
16
|
try:
|
|
17
17
|
lexer = Lexer(source)
|
|
18
18
|
tokens = lexer.tokenize()
|
|
19
|
-
if os.environ.get('
|
|
19
|
+
if os.environ.get('USE_LEGACY_PARSER') == '1':
|
|
20
|
+
from .parser import Parser
|
|
21
|
+
parser = Parser(tokens)
|
|
22
|
+
else:
|
|
20
23
|
from .parser_gbp import GeometricBindingParser
|
|
21
24
|
parser = GeometricBindingParser(tokens)
|
|
22
|
-
else:
|
|
23
|
-
parser = Parser(tokens)
|
|
24
25
|
statements = parser.parse()
|
|
25
26
|
for stmt in statements:
|
|
26
27
|
interpreter.visit(stmt)
|
|
@@ -150,7 +151,7 @@ def install_globally():
|
|
|
150
151
|
return
|
|
151
152
|
ps_cmd = f'$oldPath = [Environment]::GetEnvironmentVariable("Path", "User"); if ($oldPath -notlike "*ShellLite*") {{ [Environment]::SetEnvironmentVariable("Path", "$oldPath;{install_dir}", "User") }}'
|
|
152
153
|
subprocess.run(["powershell", "-Command", ps_cmd], capture_output=True)
|
|
153
|
-
print(f"\n[SUCCESS] ShellLite (v0.5.
|
|
154
|
+
print(f"\n[SUCCESS] ShellLite (v0.5.3) is installed!")
|
|
154
155
|
print(f"Location: {install_dir}")
|
|
155
156
|
print("\nIMPORTANT STEP REQUIRED:")
|
|
156
157
|
print("1. Close ALL open terminal windows (CMD, PowerShell, VS Code).")
|
|
@@ -2,19 +2,19 @@ shell_lite/__init__.py,sha256=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN_XKdLCPjaYaY,2
|
|
|
2
2
|
shell_lite/ast_nodes.py,sha256=W2oefXuRjqnQybR5ZcdPU0qC5gxHZHcotQc3LAVDLM0,6129
|
|
3
3
|
shell_lite/cli.py,sha256=14Kq1ohSXS3p-xdh0DPi7eXskUtSX81huSyGhktoOMA,250
|
|
4
4
|
shell_lite/compiler.py,sha256=t2Imae9h03v3GIIKrCo16qCDDLKSxrpjrp83tv0SzUQ,24982
|
|
5
|
-
shell_lite/interpreter.py,sha256=
|
|
5
|
+
shell_lite/interpreter.py,sha256=iMjaxHIjulm6Ed8A7ybrwQgx5OLq8e8g3LAiiOY4phE,75869
|
|
6
6
|
shell_lite/js_compiler.py,sha256=yEGIkkIvHGU7o1htHEqlQr6BE0wL35PtL5PssNld9fc,5606
|
|
7
7
|
shell_lite/lexer.py,sha256=cNLk_N59a7eKQaQp7Mqcnxy1um64-QgtDEi2eAsAWKE,14913
|
|
8
|
-
shell_lite/main.py,sha256=
|
|
8
|
+
shell_lite/main.py,sha256=Vj8hYF98GMDyze3wAQXHDkb0_jX8WXj7HTK0-ZALrmE,19927
|
|
9
9
|
shell_lite/parser.py,sha256=qsR2wQUWjUPXbXgnmv8pmOgfX99lYYH6tpxKH3PEnfQ,88471
|
|
10
10
|
shell_lite/parser_gbp.py,sha256=SoERuuuiL6cnFKtwZW2DQizDIgfwRCezX8l-P8V9qOs,10877
|
|
11
11
|
shell_lite/runtime.py,sha256=pSjBeA1dTQ-a94q3FLdv9lqZurdd6MJmfhFGHhOoQEM,16057
|
|
12
12
|
shell_lite/llvm_backend/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
13
13
|
shell_lite/llvm_backend/builder.py,sha256=WjDj65DePu8LPpOpnjfS2XREy9vQt7aySAqRYvBMq5w,1434
|
|
14
14
|
shell_lite/llvm_backend/codegen.py,sha256=sTpYxSdrOOqyjf9lj7TLQ5ZFOUM17RykL1QNeariZZM,15875
|
|
15
|
-
shell_lite-0.5.
|
|
16
|
-
shell_lite-0.5.
|
|
17
|
-
shell_lite-0.5.
|
|
18
|
-
shell_lite-0.5.
|
|
19
|
-
shell_lite-0.5.
|
|
20
|
-
shell_lite-0.5.
|
|
15
|
+
shell_lite-0.5.3.dist-info/LICENSE,sha256=LlK8rVgwqMiti6NfaXa8xfvXAwfYe5SVrvcz3YpwHgg,37277
|
|
16
|
+
shell_lite-0.5.3.dist-info/METADATA,sha256=SgVwBRE0f1LXu8wDCwcAx3_JEaSYUhct0R8Ur8yIeO8,10584
|
|
17
|
+
shell_lite-0.5.3.dist-info/WHEEL,sha256=hPN0AlP2dZM_3ZJZWP4WooepkmU9wzjGgCLCeFjkHLA,92
|
|
18
|
+
shell_lite-0.5.3.dist-info/entry_points.txt,sha256=tglL8tjyPIh1W85j6zFpNZjMpQe_xC-k-7BOhHLWfxc,45
|
|
19
|
+
shell_lite-0.5.3.dist-info/top_level.txt,sha256=hIln5ltrok_Mn3ijlQeqMFF6hHBHCyhzqCO7KL358cg,11
|
|
20
|
+
shell_lite-0.5.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|