scrall 0.11.0__tar.gz → 0.12.0__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.

Files changed (31) hide show
  1. {scrall-0.11.0/src/scrall.egg-info → scrall-0.12.0}/PKG-INFO +1 -1
  2. {scrall-0.11.0 → scrall-0.12.0}/pyproject.toml +1 -1
  3. scrall-0.12.0/src/scrall/__init__.py +1 -0
  4. {scrall-0.11.0 → scrall-0.12.0}/src/scrall/parse/visitor.py +4 -3
  5. {scrall-0.11.0 → scrall-0.12.0/src/scrall.egg-info}/PKG-INFO +1 -1
  6. {scrall-0.11.0 → scrall-0.12.0}/tests/test_calls.py +2 -1
  7. {scrall-0.11.0 → scrall-0.12.0}/tests/test_decision_scalar_expr.py +2 -1
  8. {scrall-0.11.0 → scrall-0.12.0}/tests/test_ping_actions.py +3 -2
  9. {scrall-0.11.0 → scrall-0.12.0}/tests/test_state_actions.py +2 -2
  10. scrall-0.11.0/src/scrall/__init__.py +0 -1
  11. {scrall-0.11.0 → scrall-0.12.0}/LICENSE +0 -0
  12. {scrall-0.11.0 → scrall-0.12.0}/MANIFEST.in +0 -0
  13. {scrall-0.11.0 → scrall-0.12.0}/README.md +0 -0
  14. {scrall-0.11.0 → scrall-0.12.0}/setup.cfg +0 -0
  15. {scrall-0.11.0 → scrall-0.12.0}/src/scrall/__main__.py +0 -0
  16. {scrall-0.11.0 → scrall-0.12.0}/src/scrall/exceptions.py +0 -0
  17. {scrall-0.11.0 → scrall-0.12.0}/src/scrall/log.conf +0 -0
  18. {scrall-0.11.0 → scrall-0.12.0}/src/scrall/parse/__init__.py +0 -0
  19. {scrall-0.11.0 → scrall-0.12.0}/src/scrall/parse/parser.py +0 -0
  20. {scrall-0.11.0 → scrall-0.12.0}/src/scrall/parse/scrall.peg +0 -0
  21. {scrall-0.11.0 → scrall-0.12.0}/src/scrall.egg-info/SOURCES.txt +0 -0
  22. {scrall-0.11.0 → scrall-0.12.0}/src/scrall.egg-info/dependency_links.txt +0 -0
  23. {scrall-0.11.0 → scrall-0.12.0}/src/scrall.egg-info/entry_points.txt +0 -0
  24. {scrall-0.11.0 → scrall-0.12.0}/src/scrall.egg-info/requires.txt +0 -0
  25. {scrall-0.11.0 → scrall-0.12.0}/src/scrall.egg-info/top_level.txt +0 -0
  26. {scrall-0.11.0 → scrall-0.12.0}/tests/test_decision_wrap.py +0 -0
  27. {scrall-0.11.0 → scrall-0.12.0}/tests/test_decision_wrap_false.py +0 -0
  28. {scrall-0.11.0 → scrall-0.12.0}/tests/test_delete.py +0 -0
  29. {scrall-0.11.0 → scrall-0.12.0}/tests/test_operation.py +0 -0
  30. {scrall-0.11.0 → scrall-0.12.0}/tests/test_selection.py +0 -0
  31. {scrall-0.11.0 → scrall-0.12.0}/tests/test_signals.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: scrall
3
- Version: 0.11.0
3
+ Version: 0.12.0
4
4
  Summary: Starr's Concise Relational Action Language - For Shlaer-Mellor Executable UML
5
5
  Author-email: Leon Starr <leon_starr@modelint.com>
6
6
  License: MIT License
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "scrall"
7
- version = "0.11.0"
7
+ version = "0.12.0"
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.12.0"
@@ -46,7 +46,7 @@ Qualified_Name_a = namedtuple('Qualified_Name_a', 'iset cname aname')
46
46
  Flow_Output_a = namedtuple('Flow_Output_a', 'name exp_type')
47
47
  PATH_a = namedtuple('PATH_a', 'hops')
48
48
  INST_a = namedtuple('INST_a', 'components')
49
- INST_PROJ_a = namedtuple('INST_PROJ_a', 'iset projection')
49
+ INST_PROJ_a = namedtuple('INST_PROJ_a', 'iset projection op_chain')
50
50
  TEXPR_a = namedtuple('TEXPR_a', 'table hexpr selection projection')
51
51
  R_a = namedtuple('R_a', 'rnum')
52
52
  IN_a = namedtuple('IN_a', 'name')
@@ -1455,10 +1455,11 @@ class ScrallVisitor(PTNodeVisitor):
1455
1455
  iset = children.results.get('instance_set')
1456
1456
  if iset:
1457
1457
  p = children.results.get('projection')
1458
- result = INST_PROJ_a(iset=iset[0], projection=None if not p else p[0])
1458
+ o = children.results.get('op_chain')
1459
+ op_chain = None if not o else o[0]
1460
+ result = INST_PROJ_a(iset=iset[0], projection=None if not p else p[0], op_chain=op_chain)
1459
1461
  _logger.info(f" > {result}")
1460
1462
  return result
1461
- # TODO: include opchain if supplied
1462
1463
 
1463
1464
  result = children[:]
1464
1465
  _logger.info(f" > {result}")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: scrall
3
- Version: 0.11.0
3
+ Version: 0.12.0
4
4
  Summary: Starr's Concise Relational Action Language - For Shlaer-Mellor Executable UML
5
5
  Author-email: Leon Starr <leon_starr@modelint.com>
6
6
  License: MIT License
@@ -57,7 +57,8 @@ actions = [
57
57
  iset=N_a(name='Travel direction'),
58
58
  projection=Projection_a(
59
59
  expand=None, attrs=[N_a(name='opposite')]
60
- )
60
+ ),
61
+ op_chain=None
61
62
  )
62
63
  )
63
64
  ]
@@ -36,7 +36,8 @@ actions = [
36
36
  iset=N_a(name='Travel direction'),
37
37
  projection=Projection_a(
38
38
  expand=None,
39
- attrs=[N_a(name='opposite')]))]))]), X=(31, 81)), block=None),
39
+ attrs=[N_a(name='opposite')]), op_chain=None)
40
+ ]))]), X=(31, 81)), block=None),
40
41
  output_token=None),
41
42
  Execution_Unit_a(
42
43
  statement_set=Seq_Statement_Set_a(
@@ -99,8 +99,9 @@ actions = [
99
99
  Criteria_Selection_a(card='ALL', criteria=BOOL_a(op='AND', operands=[
100
100
  BOOL_a(op='==', operands=[N_a(name='Floor'),
101
101
  INST_PROJ_a(iset=N_a(name='nearest dest'),
102
- projection=Projection_a(expand=None, attrs=[N_a(name='Floor')]))]),
103
- N_a(name='Shaft')]))]), projection=None)), block=None), output_token=None
102
+ projection=Projection_a(expand=None, attrs=[N_a(name='Floor')]), op_chain=None)]),
103
+ N_a(name='Shaft')]))]), projection=None, op_chain=None)), block=None),
104
+ output_token=None
104
105
  )
105
106
  ),
106
107
  ]
@@ -19,7 +19,7 @@ actions = [
19
19
  statement=Decision_a(input=BOOL_a(
20
20
  op='NOT', operands=INST_PROJ_a(iset=INST_a(
21
21
  components=[PATH_a(hops=[R_a(rnum='R2'), N_a(name='Shaft')])]),
22
- projection=Projection_a(expand=None, attrs=[N_a(name='In service')]))),
22
+ projection=Projection_a(expand=None, attrs=[N_a(name='In service')]), op_chain=None)),
23
23
  true_result=Comp_Statement_Set_a(statement=
24
24
  Signal_a(event='Take out of service', supplied_params=[],
25
25
  dest=Signal_Dest_a(target_iset=N_a(name='ME'),
@@ -32,7 +32,7 @@ actions = [
32
32
  statement=Decision_a(input=BOOL_a(
33
33
  op='NOT', operands=INST_PROJ_a(iset=INST_a(
34
34
  components=[PATH_a(hops=[R_a(rnum='R2'), N_a(name='Shaft')])]),
35
- projection=Projection_a(expand=None, attrs=[N_a(name='In service')]))),
35
+ projection=Projection_a(expand=None, attrs=[N_a(name='In service')]), op_chain=None)),
36
36
  true_result=Comp_Statement_Set_a(statement=
37
37
  Signal_a(event='Take out of service', supplied_params=[],
38
38
  dest=Signal_Dest_a(target_iset=N_a(name='ME'),
@@ -1 +0,0 @@
1
- version = "0.11.0"
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