shell-lite 0.4.5__py3-none-any.whl → 0.4.6__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 +2 -2
- shell_lite/parser.py +1 -1
- {shell_lite-0.4.5.dist-info → shell_lite-0.4.6.dist-info}/METADATA +1 -1
- shell_lite-0.4.6.dist-info/RECORD +15 -0
- shell_lite-0.4.5.dist-info/RECORD +0 -15
- {shell_lite-0.4.5.dist-info → shell_lite-0.4.6.dist-info}/LICENSE +0 -0
- {shell_lite-0.4.5.dist-info → shell_lite-0.4.6.dist-info}/WHEEL +0 -0
- {shell_lite-0.4.5.dist-info → shell_lite-0.4.6.dist-info}/entry_points.txt +0 -0
- {shell_lite-0.4.5.dist-info → shell_lite-0.4.6.dist-info}/top_level.txt +0 -0
shell_lite/interpreter.py
CHANGED
|
@@ -1559,7 +1559,7 @@ class Interpreter:
|
|
|
1559
1559
|
self.wfile.write(str(e).encode())
|
|
1560
1560
|
except: pass
|
|
1561
1561
|
server = HTTPServer(('0.0.0.0', port_val), ShellLiteHandler)
|
|
1562
|
-
print(f"\n ShellLite Server v0.04.
|
|
1562
|
+
print(f"\n ShellLite Server v0.04.6 is running!")
|
|
1563
1563
|
print(f" \u001b[1;36m➜\u001b[0m Local: \u001b[1;4;36mhttp://localhost:{port_val}/\u001b[0m\n")
|
|
1564
1564
|
try: server.serve_forever()
|
|
1565
1565
|
except KeyboardInterrupt:
|
shell_lite/main.py
CHANGED
|
@@ -71,7 +71,7 @@ def run_repl():
|
|
|
71
71
|
print("\n" + "="*40)
|
|
72
72
|
print(" ShellLite REPL - English Syntax")
|
|
73
73
|
print("="*40)
|
|
74
|
-
print("Version: v0.04.
|
|
74
|
+
print("Version: v0.04.6 | Made by Shrey Naithani")
|
|
75
75
|
print("Commands: Type 'exit' to quit, 'help' for examples.")
|
|
76
76
|
print("Note: Terminal commands (like 'shl install') must be run in CMD/PowerShell, not here.")
|
|
77
77
|
|
|
@@ -202,7 +202,7 @@ def install_globally():
|
|
|
202
202
|
ps_cmd = f'$oldPath = [Environment]::GetEnvironmentVariable("Path", "User"); if ($oldPath -notlike "*ShellLite*") {{ [Environment]::SetEnvironmentVariable("Path", "$oldPath;{install_dir}", "User") }}'
|
|
203
203
|
subprocess.run(["powershell", "-Command", ps_cmd], capture_output=True)
|
|
204
204
|
|
|
205
|
-
print(f"\n[SUCCESS] ShellLite (v0.04.
|
|
205
|
+
print(f"\n[SUCCESS] ShellLite (v0.04.6) is installed!")
|
|
206
206
|
print(f"Location: {install_dir}")
|
|
207
207
|
print("\nIMPORTANT STEP REQUIRED:")
|
|
208
208
|
print("1. Close ALL open terminal windows (CMD, PowerShell, VS Code).")
|
shell_lite/parser.py
CHANGED
|
@@ -752,7 +752,7 @@ class Parser:
|
|
|
752
752
|
is_named_arg = False
|
|
753
753
|
if self.peek(1).type == 'ASSIGN':
|
|
754
754
|
t_type = self.peek().type
|
|
755
|
-
if t_type in ('ID', 'STRUCTURE', 'TYPE', 'FOR', 'IN', 'WHILE', 'IF', 'ELSE', 'FROM', 'TO', 'STRING', 'EXTENDS', 'WITH', 'PLACEHOLDER', 'NAME', 'VALUE', 'ACTION', 'METHOD', 'HREF', 'SRC', 'CLASS', 'STYLE'):
|
|
755
|
+
if t_type in ('ID', 'STRUCTURE', 'TYPE', 'FOR', 'IN', 'WHILE', 'IF', 'ELSE', 'FROM', 'TO', 'STRING', 'EXTENDS', 'WITH', 'PLACEHOLDER', 'NAME', 'VALUE', 'ACTION', 'METHOD', 'HREF', 'SRC', 'CLASS', 'STYLE', 'ONCLICK', 'REL', 'CHARSET', 'CONTENT'):
|
|
756
756
|
is_named_arg = True
|
|
757
757
|
if is_named_arg:
|
|
758
758
|
key_token = self.consume()
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
shell_lite/__init__.py,sha256=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN_XKdLCPjaYaY,2
|
|
2
|
+
shell_lite/ast_nodes.py,sha256=KGFlZmP21MJXo6uRYRJfo_R3BEspfDD8xMBtAVfUDgU,5873
|
|
3
|
+
shell_lite/cli.py,sha256=14Kq1ohSXS3p-xdh0DPi7eXskUtSX81huSyGhktoOMA,250
|
|
4
|
+
shell_lite/compiler.py,sha256=FcwDLbrjnMnH0VMzEeYPSqD3nIeFAwKIdvEDAT1e3GE,24984
|
|
5
|
+
shell_lite/interpreter.py,sha256=zN46kjaK60glywbKpPcfWPeGLMwvSRk2uB1m_T8F4X8,78408
|
|
6
|
+
shell_lite/lexer.py,sha256=TdU2QIfxjZqnKDUz_SBECNC74k4ZeQBpX27xFjZImEo,13441
|
|
7
|
+
shell_lite/main.py,sha256=a8toltP-LDET08v-zVzaYwe64e1KrMR40pXOqIFl7WE,22791
|
|
8
|
+
shell_lite/parser.py,sha256=PpdMy1vEXKVtPlAkpgjna7xohIvtBgiFodSPqat3omI,88251
|
|
9
|
+
shell_lite/runtime.py,sha256=pSjBeA1dTQ-a94q3FLdv9lqZurdd6MJmfhFGHhOoQEM,16057
|
|
10
|
+
shell_lite-0.4.6.dist-info/LICENSE,sha256=33eziKLPxbqGCqdHtEHAFe1KSOgqc0-jWUQmdgKq85Q,1092
|
|
11
|
+
shell_lite-0.4.6.dist-info/METADATA,sha256=NJwW6KUYTXKc5tAxN689mSGFNo5ITlIDadkVgelAjbY,2475
|
|
12
|
+
shell_lite-0.4.6.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
|
13
|
+
shell_lite-0.4.6.dist-info/entry_points.txt,sha256=tglL8tjyPIh1W85j6zFpNZjMpQe_xC-k-7BOhHLWfxc,45
|
|
14
|
+
shell_lite-0.4.6.dist-info/top_level.txt,sha256=hIln5ltrok_Mn3ijlQeqMFF6hHBHCyhzqCO7KL358cg,11
|
|
15
|
+
shell_lite-0.4.6.dist-info/RECORD,,
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
shell_lite/__init__.py,sha256=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN_XKdLCPjaYaY,2
|
|
2
|
-
shell_lite/ast_nodes.py,sha256=KGFlZmP21MJXo6uRYRJfo_R3BEspfDD8xMBtAVfUDgU,5873
|
|
3
|
-
shell_lite/cli.py,sha256=14Kq1ohSXS3p-xdh0DPi7eXskUtSX81huSyGhktoOMA,250
|
|
4
|
-
shell_lite/compiler.py,sha256=FcwDLbrjnMnH0VMzEeYPSqD3nIeFAwKIdvEDAT1e3GE,24984
|
|
5
|
-
shell_lite/interpreter.py,sha256=iyRlaCgLTpGQjeyn5hDm1_4BpztmBjH45QYwaDoOtBg,78408
|
|
6
|
-
shell_lite/lexer.py,sha256=TdU2QIfxjZqnKDUz_SBECNC74k4ZeQBpX27xFjZImEo,13441
|
|
7
|
-
shell_lite/main.py,sha256=xkUy2KHp8zpQ6yQ3TulwI86a-PX63-kqVGeaOf6lp8s,22791
|
|
8
|
-
shell_lite/parser.py,sha256=IznHJxopliPX3MsI-P9SzB5UOkBCJlxwatw9wxMzDK0,88211
|
|
9
|
-
shell_lite/runtime.py,sha256=pSjBeA1dTQ-a94q3FLdv9lqZurdd6MJmfhFGHhOoQEM,16057
|
|
10
|
-
shell_lite-0.4.5.dist-info/LICENSE,sha256=33eziKLPxbqGCqdHtEHAFe1KSOgqc0-jWUQmdgKq85Q,1092
|
|
11
|
-
shell_lite-0.4.5.dist-info/METADATA,sha256=FV-ta6IiRo6YdJ46ufi0yrF4Nec_9f13k2cMDj4aY4Q,2475
|
|
12
|
-
shell_lite-0.4.5.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
|
13
|
-
shell_lite-0.4.5.dist-info/entry_points.txt,sha256=tglL8tjyPIh1W85j6zFpNZjMpQe_xC-k-7BOhHLWfxc,45
|
|
14
|
-
shell_lite-0.4.5.dist-info/top_level.txt,sha256=hIln5ltrok_Mn3ijlQeqMFF6hHBHCyhzqCO7KL358cg,11
|
|
15
|
-
shell_lite-0.4.5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|