solpl 2.4.0__tar.gz → 2.4.5__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: solpl
3
- Version: 2.4.0
3
+ Version: 2.4.5
4
4
  Summary: A lightweight, multi-threaded interpreter for the Sol programming language
5
5
  Author-email: stefand-0 <stefand-0@users.noreply.github.com>
6
6
  License-Expression: Apache-2.0
@@ -32,8 +32,7 @@ class SolInterpreter:
32
32
 
33
33
  with open(filename, "r") as f:
34
34
  code = f.read()
35
- base_name = file.path.basename(filename)
36
- module_name = base_name.replace(".sol", "")
35
+ module_name = os.path.splitext(os.path.basename(filename))[0]
37
36
  lines = [l.strip() for l in code.split('\n') if l.strip()]
38
37
  for pc, line in enumerate(lines):
39
38
  if "(" in line and ")" in line and "main" not in line and "end" not in line and "->" not in line and ">>" not in line and "?" not in line and not line.startswith(("if ", "while ", "for ", "elseif", "else")):
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "solpl"
7
- version = "2.4.0"
7
+ version = "2.4.5"
8
8
  authors = [
9
9
  { name = "stefand-0", email = "stefand-0@users.noreply.github.com" }
10
10
  ]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: solpl
3
- Version: 2.4.0
3
+ Version: 2.4.5
4
4
  Summary: A lightweight, multi-threaded interpreter for the Sol programming language
5
5
  Author-email: stefand-0 <stefand-0@users.noreply.github.com>
6
6
  License-Expression: Apache-2.0
File without changes
File without changes
File without changes
File without changes