solpl 2.6.0__tar.gz → 2.6.6__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.
- {solpl-2.6.0 → solpl-2.6.6}/LICENSE +1 -1
- {solpl-2.6.0/solpl.egg-info → solpl-2.6.6}/PKG-INFO +1 -1
- {solpl-2.6.0 → solpl-2.6.6}/interpreter/sol.py +3 -3
- {solpl-2.6.0 → solpl-2.6.6}/pyproject.toml +2 -2
- {solpl-2.6.0 → solpl-2.6.6/solpl.egg-info}/PKG-INFO +1 -1
- {solpl-2.6.0 → solpl-2.6.6}/README.md +0 -0
- {solpl-2.6.0 → solpl-2.6.6}/setup.cfg +0 -0
- {solpl-2.6.0 → solpl-2.6.6}/solpl.egg-info/SOURCES.txt +0 -0
- {solpl-2.6.0 → solpl-2.6.6}/solpl.egg-info/dependency_links.txt +0 -0
- {solpl-2.6.0 → solpl-2.6.6}/solpl.egg-info/entry_points.txt +0 -0
- {solpl-2.6.0 → solpl-2.6.6}/solpl.egg-info/top_level.txt +0 -0
|
@@ -186,7 +186,7 @@
|
|
|
186
186
|
same "printed page" as the copyright notice for easier
|
|
187
187
|
identification within third-party archives.
|
|
188
188
|
|
|
189
|
-
Copyright
|
|
189
|
+
Copyright 2026 stefand-0
|
|
190
190
|
|
|
191
191
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
192
|
you may not use this file except in compliance with the License.
|
|
@@ -14,10 +14,10 @@ class SolInterpreter:
|
|
|
14
14
|
self.variables = {}
|
|
15
15
|
self.thread_local = threading.local()
|
|
16
16
|
self.functions = {}
|
|
17
|
-
self.struct_blueprints = {}
|
|
17
|
+
self.struct_blueprints = {}
|
|
18
18
|
self.lines = []
|
|
19
19
|
self.threads = []
|
|
20
|
-
self._server_started = False
|
|
20
|
+
self._server_started = False
|
|
21
21
|
|
|
22
22
|
@property
|
|
23
23
|
def scope_stack(self):
|
|
@@ -141,7 +141,6 @@ class SolInterpreter:
|
|
|
141
141
|
for scope in reversed(self.scope_stack):
|
|
142
142
|
if val in scope: return scope[val]
|
|
143
143
|
|
|
144
|
-
# FIX: Only try to parse as number if it looks like one
|
|
145
144
|
if val.replace('.', '', 1).isdigit() or (val.startswith('-') and val[1:].replace('.', '', 1).isdigit()):
|
|
146
145
|
return float(val) if '.' in val else int(val)
|
|
147
146
|
|
|
@@ -384,3 +383,4 @@ def main():
|
|
|
384
383
|
|
|
385
384
|
if __name__ == "__main__":
|
|
386
385
|
main()
|
|
386
|
+
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "solpl"
|
|
7
|
-
version = "2.6.
|
|
7
|
+
version = "2.6.6"
|
|
8
8
|
authors = [
|
|
9
9
|
{ name = "stefand-0", email = "stefand-0@users.noreply.github.com" }
|
|
10
10
|
]
|
|
@@ -22,4 +22,4 @@ solpl = "interpreter.sol:main"
|
|
|
22
22
|
|
|
23
23
|
[tool.setuptools.packages]
|
|
24
24
|
find = { include = ["interpreter"] }
|
|
25
|
-
|
|
25
|
+
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|