ReForma 0.26__tar.gz → 0.28__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.
- {reforma-0.26 → reforma-0.28}/PKG-INFO +1 -1
- {reforma-0.26 → reforma-0.28}/ReForma.egg-info/PKG-INFO +1 -1
- {reforma-0.26 → reforma-0.28}/ReForma.egg-info/SOURCES.txt +1 -0
- {reforma-0.26 → reforma-0.28}/pyproject.toml +1 -1
- reforma-0.28/reforma/bin/RePATool.jar +0 -0
- {reforma-0.26 → reforma-0.28}/reforma/client.py +5 -5
- {reforma-0.26 → reforma-0.28}/MANIFEST.in +0 -0
- {reforma-0.26 → reforma-0.28}/README.md +0 -0
- {reforma-0.26 → reforma-0.28}/ReForma.egg-info/dependency_links.txt +0 -0
- {reforma-0.26 → reforma-0.28}/ReForma.egg-info/requires.txt +0 -0
- {reforma-0.26 → reforma-0.28}/ReForma.egg-info/top_level.txt +0 -0
- {reforma-0.26 → reforma-0.28}/reforma/__init__.py +0 -0
- {reforma-0.26 → reforma-0.28}/reforma/bin/js/cytoscape-dagre.js +0 -0
- {reforma-0.26 → reforma-0.28}/reforma/bin/js/cytoscape.min.js +0 -0
- {reforma-0.26 → reforma-0.28}/reforma/bin/js/dagre.js +0 -0
- {reforma-0.26 → reforma-0.28}/reforma/jar_bridge.py +0 -0
- {reforma-0.26 → reforma-0.28}/reforma/model.py +0 -0
- {reforma-0.26 → reforma-0.28}/setup.cfg +0 -0
- {reforma-0.26 → reforma-0.28}/tests/test_reforma.py +0 -0
|
Binary file
|
|
@@ -869,15 +869,16 @@ class ReForma:
|
|
|
869
869
|
enabled: list[Transition] = []
|
|
870
870
|
variables: dict[str, int] = {}
|
|
871
871
|
|
|
872
|
-
import re
|
|
872
|
+
import re
|
|
873
873
|
|
|
874
874
|
for line in lines:
|
|
875
875
|
if line.startswith("Estado Atual:"):
|
|
876
|
-
|
|
877
|
-
current_states = [s.strip() for s in
|
|
876
|
+
st_parts = line.split(":", 1)[1].strip()
|
|
877
|
+
current_states = [s.strip() for s in st_parts.split(",")]
|
|
878
878
|
|
|
879
879
|
elif line.startswith("Variaveis:"):
|
|
880
|
-
|
|
880
|
+
var_parts = line.split(":", 1)[1].strip()
|
|
881
|
+
matches = re.finditer(r"([a-zA-Z0-9_]+)\s*=\s*(?:VInt\(\s*([^,)]+)|VFloat\(\s*([^,)]+)|VBool\(\s*([^,)]+)|([^,]+))", var_parts)
|
|
881
882
|
|
|
882
883
|
for m in matches:
|
|
883
884
|
k = m.group(1)
|
|
@@ -912,7 +913,6 @@ class ReForma:
|
|
|
912
913
|
raw={},
|
|
913
914
|
)
|
|
914
915
|
|
|
915
|
-
|
|
916
916
|
def _get_local_js(filename: str) -> str:
|
|
917
917
|
"""Reads the local JS file to be injected into HTML."""
|
|
918
918
|
base_dir = os.path.dirname(__file__)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|