scrall 0.4.0__tar.gz → 0.4.1__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 (25) hide show
  1. {scrall-0.4.0/src/scrall.egg-info → scrall-0.4.1}/PKG-INFO +1 -1
  2. {scrall-0.4.0 → scrall-0.4.1}/pyproject.toml +1 -1
  3. scrall-0.4.1/src/scrall/__init__.py +1 -0
  4. {scrall-0.4.0 → scrall-0.4.1}/src/scrall/parse/visitor.py +2 -2
  5. {scrall-0.4.0 → scrall-0.4.1/src/scrall.egg-info}/PKG-INFO +1 -1
  6. {scrall-0.4.0 → scrall-0.4.1}/tests/test_ping_actions.py +2 -2
  7. {scrall-0.4.0 → scrall-0.4.1}/tests/test_selection.py +3 -3
  8. scrall-0.4.0/src/scrall/__init__.py +0 -1
  9. {scrall-0.4.0 → scrall-0.4.1}/LICENSE +0 -0
  10. {scrall-0.4.0 → scrall-0.4.1}/MANIFEST.in +0 -0
  11. {scrall-0.4.0 → scrall-0.4.1}/README.md +0 -0
  12. {scrall-0.4.0 → scrall-0.4.1}/setup.cfg +0 -0
  13. {scrall-0.4.0 → scrall-0.4.1}/src/scrall/__main__.py +0 -0
  14. {scrall-0.4.0 → scrall-0.4.1}/src/scrall/exceptions.py +0 -0
  15. {scrall-0.4.0 → scrall-0.4.1}/src/scrall/log.conf +0 -0
  16. {scrall-0.4.0 → scrall-0.4.1}/src/scrall/parse/__init__.py +0 -0
  17. {scrall-0.4.0 → scrall-0.4.1}/src/scrall/parse/parser.py +0 -0
  18. {scrall-0.4.0 → scrall-0.4.1}/src/scrall/parse/scrall.peg +0 -0
  19. {scrall-0.4.0 → scrall-0.4.1}/src/scrall.egg-info/SOURCES.txt +0 -0
  20. {scrall-0.4.0 → scrall-0.4.1}/src/scrall.egg-info/dependency_links.txt +0 -0
  21. {scrall-0.4.0 → scrall-0.4.1}/src/scrall.egg-info/entry_points.txt +0 -0
  22. {scrall-0.4.0 → scrall-0.4.1}/src/scrall.egg-info/requires.txt +0 -0
  23. {scrall-0.4.0 → scrall-0.4.1}/src/scrall.egg-info/top_level.txt +0 -0
  24. {scrall-0.4.0 → scrall-0.4.1}/tests/test_signals.py +0 -0
  25. {scrall-0.4.0 → scrall-0.4.1}/tests/test_state_actions.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: scrall
3
- Version: 0.4.0
3
+ Version: 0.4.1
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.4.0"
7
+ version = "0.4.1"
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.4.1"
@@ -1228,8 +1228,8 @@ class ScrallVisitor(PTNodeVisitor):
1228
1228
  result = children[0]
1229
1229
  else:
1230
1230
  # Convert ':' to '==' if found
1231
- eq_map = ['==' if e in ('==',':') else '!=' for e in children.results['EQUAL']]
1232
- result = BOOL_a(eq_map, children.results['comparison'])
1231
+ eq_op = '==' if children.results['EQUAL'][0] == ':' else children.results['EQUAL'][0]
1232
+ result = BOOL_a(eq_op, children.results['comparison'])
1233
1233
 
1234
1234
  if children[0] != result:
1235
1235
  _logger.info(f"{node.rule_name} = comparison (EQUAL comparison)*")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: scrall
3
- Version: 0.4.0
3
+ Version: 0.4.1
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
@@ -81,14 +81,14 @@ actions = [
81
81
  statement=Inst_Assignment_a(
82
82
  lhs=Flow_Output_a(name=N_a(name='requested stops'), exp_type=None), card='M',
83
83
  rhs=INST_a(components=[N_a(name='shaft aslevs'), Selection_a(card='*',
84
- criteria=BOOL_a(op=['=='], operands=[N_a(name='Stop requested'), N_a(name='avalue')]))]),
84
+ criteria=BOOL_a(op='==', operands=[N_a(name='Stop requested'), N_a(name='avalue')]))]),
85
85
  X=(0, 58)), block=None), output_token=None)
86
86
  ),
87
87
  ("=>> Accessible Shaft Level( Floor: nearest dest.Floor; Shaft )",
88
88
  Output_Flow_a(output=
89
89
  INST_a(components=[N_a(name='Accessible Shaft Level'),
90
90
  Selection_a(card='*', criteria=BOOL_a(op='AND', operands=[
91
- BOOL_a(op=['=='], operands=[
91
+ BOOL_a(op='==', operands=[
92
92
  N_a(name='Floor'),
93
93
  INST_PROJ_a(iset=N_a(name='nearest dest'), projection=
94
94
  Projection_a(expand=None, attrs=[N_a(name='Floor')]))]),
@@ -36,7 +36,7 @@ actions = [
36
36
  statement=Inst_Assignment_a(
37
37
  lhs=Flow_Output_a(name=N_a(name='s'), exp_type=None), card='M',
38
38
  rhs=INST_a(components=[N_a(name='Shaft'), Selection_a(card='*',
39
- criteria=BOOL_a(op=['=='], operands=[N_a(name='In service'), 'true']))]),
39
+ criteria=BOOL_a(op='==', operands=[N_a(name='In service'), 'true']))]),
40
40
  X=(0, 29)), block=None), output_token=None)
41
41
  ),
42
42
  ("s ..= Shaft(In service)",
@@ -52,7 +52,7 @@ actions = [
52
52
  lhs=Flow_Output_a(name=N_a(name='x'), exp_type=None), card='1',
53
53
  rhs=INST_a(components=[N_a(name='Bank'), Selection_a(card='*',
54
54
  criteria=BOOL_a(op='OR', operands=[
55
- BOOL_a(op=['=='], operands=[
55
+ BOOL_a(op='==', operands=[
56
56
  N_a(name='Max close attempts'),
57
57
  BOOL_a(op='OR', operands=[N_a(name='v'), N_a(name='x')])]),
58
58
  BOOL_a(op='>', operands=[N_a(name='Average cabin speed'), N_a(name='mspeed')])]))]),
@@ -63,7 +63,7 @@ actions = [
63
63
  statement=Inst_Assignment_a(
64
64
  lhs=Flow_Output_a(name=N_a(name='x'), exp_type=None), card='M',
65
65
  rhs=INST_a(components=[Op_a(owner='car', op_name='findsome', supplied_params=[], order=None),
66
- Selection_a(card='*', criteria=BOOL_a(op=['=='],
66
+ Selection_a(card='*', criteria=BOOL_a(op='==',
67
67
  operands=[N_a(name='color'), Enum_a(value=N_a(name='red'))]))]),
68
68
  X=(0, 33)), block=None), output_token=None)
69
69
  ),
@@ -1 +0,0 @@
1
- version = "0.4.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