scrall 0.9.1__tar.gz → 0.9.2__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.
Potentially problematic release.
This version of scrall might be problematic. Click here for more details.
- {scrall-0.9.1/src/scrall.egg-info → scrall-0.9.2}/PKG-INFO +1 -1
- {scrall-0.9.1 → scrall-0.9.2}/pyproject.toml +1 -1
- scrall-0.9.2/src/scrall/__init__.py +1 -0
- {scrall-0.9.1 → scrall-0.9.2}/src/scrall/parse/visitor.py +5 -8
- {scrall-0.9.1 → scrall-0.9.2/src/scrall.egg-info}/PKG-INFO +1 -1
- {scrall-0.9.1 → scrall-0.9.2}/src/scrall.egg-info/SOURCES.txt +1 -0
- scrall-0.9.2/tests/test_operation.py +30 -0
- scrall-0.9.1/src/scrall/__init__.py +0 -1
- {scrall-0.9.1 → scrall-0.9.2}/LICENSE +0 -0
- {scrall-0.9.1 → scrall-0.9.2}/MANIFEST.in +0 -0
- {scrall-0.9.1 → scrall-0.9.2}/README.md +0 -0
- {scrall-0.9.1 → scrall-0.9.2}/setup.cfg +0 -0
- {scrall-0.9.1 → scrall-0.9.2}/src/scrall/__main__.py +0 -0
- {scrall-0.9.1 → scrall-0.9.2}/src/scrall/exceptions.py +0 -0
- {scrall-0.9.1 → scrall-0.9.2}/src/scrall/log.conf +0 -0
- {scrall-0.9.1 → scrall-0.9.2}/src/scrall/parse/__init__.py +0 -0
- {scrall-0.9.1 → scrall-0.9.2}/src/scrall/parse/parser.py +0 -0
- {scrall-0.9.1 → scrall-0.9.2}/src/scrall/parse/scrall.peg +0 -0
- {scrall-0.9.1 → scrall-0.9.2}/src/scrall.egg-info/dependency_links.txt +0 -0
- {scrall-0.9.1 → scrall-0.9.2}/src/scrall.egg-info/entry_points.txt +0 -0
- {scrall-0.9.1 → scrall-0.9.2}/src/scrall.egg-info/requires.txt +0 -0
- {scrall-0.9.1 → scrall-0.9.2}/src/scrall.egg-info/top_level.txt +0 -0
- {scrall-0.9.1 → scrall-0.9.2}/tests/test_calls.py +0 -0
- {scrall-0.9.1 → scrall-0.9.2}/tests/test_decision_wrap.py +0 -0
- {scrall-0.9.1 → scrall-0.9.2}/tests/test_decision_wrap_false.py +0 -0
- {scrall-0.9.1 → scrall-0.9.2}/tests/test_delete.py +0 -0
- {scrall-0.9.1 → scrall-0.9.2}/tests/test_ping_actions.py +0 -0
- {scrall-0.9.1 → scrall-0.9.2}/tests/test_selection.py +0 -0
- {scrall-0.9.1 → scrall-0.9.2}/tests/test_signals.py +0 -0
- {scrall-0.9.1 → scrall-0.9.2}/tests/test_state_actions.py +0 -0
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "scrall"
|
|
7
|
-
version = "0.9.
|
|
7
|
+
version = "0.9.2"
|
|
8
8
|
description = "Starr's Concise Relational Action Language - For Shlaer-Mellor Executable UML"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
authors = [{ name = "Leon Starr", email = "leon_starr@modelint.com" }]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
version = "0.9.2"
|
|
@@ -635,14 +635,6 @@ class ScrallVisitor(PTNodeVisitor):
|
|
|
635
635
|
_logger.info(f" > {result}")
|
|
636
636
|
return result
|
|
637
637
|
|
|
638
|
-
# # Asynch service
|
|
639
|
-
# @classmethod
|
|
640
|
-
# def visit_asynch_service(cls, node, children):
|
|
641
|
-
# """
|
|
642
|
-
# name '.' signal_spec ASYNCH ee
|
|
643
|
-
# """
|
|
644
|
-
# result = Asynch_a(*children)
|
|
645
|
-
|
|
646
638
|
@classmethod
|
|
647
639
|
def visit_signal_action(cls, node, children):
|
|
648
640
|
"""
|
|
@@ -847,6 +839,11 @@ class ScrallVisitor(PTNodeVisitor):
|
|
|
847
839
|
_logger.info(f" > {result}")
|
|
848
840
|
return result
|
|
849
841
|
|
|
842
|
+
@classmethod
|
|
843
|
+
def visit_owner(cls, node, children):
|
|
844
|
+
result = ''.join(children)
|
|
845
|
+
return result
|
|
846
|
+
|
|
850
847
|
@classmethod
|
|
851
848
|
def visit_supplied_params(cls, node, children):
|
|
852
849
|
"""
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
""" test_operation.py - Test the invocation of an operation"""
|
|
2
|
+
|
|
3
|
+
import pytest
|
|
4
|
+
from scrall.parse.parser import ScrallParser
|
|
5
|
+
from scrall.parse.visitor import *
|
|
6
|
+
|
|
7
|
+
actions = [
|
|
8
|
+
("dest aslev .= cabin in shaft.Ping both ways()",
|
|
9
|
+
Execution_Unit_a(statement_set=Seq_Statement_Set_a(
|
|
10
|
+
input_tokens=[],
|
|
11
|
+
statement=Inst_Assignment_a(
|
|
12
|
+
lhs=Flow_Output_a(name=N_a(name='dest aslev'), exp_type=None), card='1',
|
|
13
|
+
rhs=INST_a(
|
|
14
|
+
components=[
|
|
15
|
+
Op_a(
|
|
16
|
+
owner='cabin in shaft',
|
|
17
|
+
op_name='Ping both ways',
|
|
18
|
+
supplied_params=[])]
|
|
19
|
+
), X=(0, 45)
|
|
20
|
+
),
|
|
21
|
+
block=None), output_token=None)
|
|
22
|
+
),
|
|
23
|
+
]
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
@pytest.mark.parametrize("text, expected", actions)
|
|
27
|
+
def test_ping_action(text, expected):
|
|
28
|
+
parse = ScrallParser.parse_text(scrall_text=text, debug=False)[0]
|
|
29
|
+
print(parse)
|
|
30
|
+
assert parse[0] == expected
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
version = "0.9.1"
|
|
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
|
|
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
|