scrall 0.8.3__tar.gz → 0.8.5__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 (26) hide show
  1. {scrall-0.8.3/src/scrall.egg-info → scrall-0.8.5}/PKG-INFO +1 -1
  2. {scrall-0.8.3 → scrall-0.8.5}/pyproject.toml +1 -1
  3. scrall-0.8.5/src/scrall/__init__.py +1 -0
  4. {scrall-0.8.3 → scrall-0.8.5}/src/scrall/parse/visitor.py +2 -2
  5. {scrall-0.8.3 → scrall-0.8.5/src/scrall.egg-info}/PKG-INFO +1 -1
  6. {scrall-0.8.3 → scrall-0.8.5}/tests/test_delete.py +1 -1
  7. {scrall-0.8.3 → scrall-0.8.5}/tests/test_ping_actions.py +11 -11
  8. {scrall-0.8.3 → scrall-0.8.5}/tests/test_selection.py +7 -7
  9. {scrall-0.8.3 → scrall-0.8.5}/tests/test_signals.py +2 -2
  10. {scrall-0.8.3 → scrall-0.8.5}/tests/test_state_actions.py +2 -2
  11. scrall-0.8.3/src/scrall/__init__.py +0 -1
  12. {scrall-0.8.3 → scrall-0.8.5}/LICENSE +0 -0
  13. {scrall-0.8.3 → scrall-0.8.5}/MANIFEST.in +0 -0
  14. {scrall-0.8.3 → scrall-0.8.5}/README.md +0 -0
  15. {scrall-0.8.3 → scrall-0.8.5}/setup.cfg +0 -0
  16. {scrall-0.8.3 → scrall-0.8.5}/src/scrall/__main__.py +0 -0
  17. {scrall-0.8.3 → scrall-0.8.5}/src/scrall/exceptions.py +0 -0
  18. {scrall-0.8.3 → scrall-0.8.5}/src/scrall/log.conf +0 -0
  19. {scrall-0.8.3 → scrall-0.8.5}/src/scrall/parse/__init__.py +0 -0
  20. {scrall-0.8.3 → scrall-0.8.5}/src/scrall/parse/parser.py +0 -0
  21. {scrall-0.8.3 → scrall-0.8.5}/src/scrall/parse/scrall.peg +0 -0
  22. {scrall-0.8.3 → scrall-0.8.5}/src/scrall.egg-info/SOURCES.txt +0 -0
  23. {scrall-0.8.3 → scrall-0.8.5}/src/scrall.egg-info/dependency_links.txt +0 -0
  24. {scrall-0.8.3 → scrall-0.8.5}/src/scrall.egg-info/entry_points.txt +0 -0
  25. {scrall-0.8.3 → scrall-0.8.5}/src/scrall.egg-info/requires.txt +0 -0
  26. {scrall-0.8.3 → scrall-0.8.5}/src/scrall.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: scrall
3
- Version: 0.8.3
3
+ Version: 0.8.5
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.8.3"
7
+ version = "0.8.5"
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.8.5"
@@ -201,7 +201,7 @@ class ScrallVisitor(PTNodeVisitor):
201
201
  _logger.info(f">> {[k for k in children.results.keys()]}")
202
202
 
203
203
  _logger.info(f" < {children}")
204
- input_tokens = getresult('sequence_token', children)
204
+ input_tokens = children.results.get('sequence_token', [])
205
205
  b = getresult('block', children)
206
206
  s = getresult('statement', children)
207
207
  result = Seq_Statement_Set_a(input_tokens=input_tokens, statement=s, block=b)
@@ -1021,7 +1021,7 @@ class ScrallVisitor(PTNodeVisitor):
1021
1021
  _logger.info(f' :: {node.value}')
1022
1022
 
1023
1023
  _logger.info(f" < {children}")
1024
- result = children
1024
+ result = children.results.get('attr_value_init')
1025
1025
  _logger.info(f" > {result}")
1026
1026
  return result
1027
1027
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: scrall
3
- Version: 0.8.3
3
+ Version: 0.8.5
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
@@ -7,7 +7,7 @@ from scrall.parse.visitor import Execution_Unit_a, N_a, INST_a, PATH_a, R_a, Seq
7
7
  actions = [
8
8
  ("!* siamese, /R1/Cat",
9
9
  Execution_Unit_a(statement_set=Seq_Statement_Set_a(
10
- input_tokens=None, statement=Delete_Action_a(
10
+ input_tokens=[], statement=Delete_Action_a(
11
11
  instance_sets=[N_a(name='siamese'),
12
12
  INST_a(components=[PATH_a(hops=[R_a(rnum='R1'),
13
13
  N_a(name='Cat')])])]), block=None), output_token=None)
@@ -9,20 +9,20 @@ from scrall.parse.visitor import Execution_Unit_a, Signal_a, Signal_Dest_a, N_a,
9
9
 
10
10
  actions = [
11
11
  ("{\n a = b\n c = d\n}<1>",
12
- Execution_Unit_a(statement_set=Seq_Statement_Set_a(input_tokens=None, statement=None, block=[
12
+ Execution_Unit_a(statement_set=Seq_Statement_Set_a(input_tokens=[], statement=None, block=[
13
13
 
14
- Execution_Unit_a(statement_set=Seq_Statement_Set_a(input_tokens=None,
14
+ Execution_Unit_a(statement_set=Seq_Statement_Set_a(input_tokens=[],
15
15
  statement=Scalar_Assignment_a(
16
16
  lhs=[Flow_Output_a(name=N_a(name='a'), exp_type=None)],
17
17
  rhs=Scalar_RHS_a(expr=N_a(name='b'), attrs=None)), block=None), output_token=None),
18
18
 
19
- Execution_Unit_a(statement_set=Seq_Statement_Set_a(input_tokens=None,
19
+ Execution_Unit_a(statement_set=Seq_Statement_Set_a(input_tokens=[],
20
20
  statement=Scalar_Assignment_a(
21
21
  lhs=[Flow_Output_a(name=N_a(name='c'), exp_type=None)],
22
22
  rhs=Scalar_RHS_a(expr=N_a(name='d'), attrs=None)), block=None), output_token=None)]),
23
23
  output_token=Sequence_Token_a(name='1'))),
24
24
  ("^dir? {\n _up:\n a = b\n _down:\n a = c\n}\n",
25
- Execution_Unit_a(statement_set=Seq_Statement_Set_a(input_tokens=None,
25
+ Execution_Unit_a(statement_set=Seq_Statement_Set_a(input_tokens=[],
26
26
  statement=Switch_a(input_flow=IN_a(name='dir'), cases=[
27
27
  Case_a(enums=['up'], comp_statement_set=Comp_Statement_Set_a(
28
28
  statement=Scalar_Assignment_a(
@@ -36,7 +36,7 @@ actions = [
36
36
  ),
37
37
 
38
38
  ("stop here floors #= shaft aslevs( Stop requested ).Floor",
39
- Execution_Unit_a(statement_set=Seq_Statement_Set_a(input_tokens=None,
39
+ Execution_Unit_a(statement_set=Seq_Statement_Set_a(input_tokens=[],
40
40
  statement=Table_Assignment_a(type='implicit', assign_tuple=False,
41
41
  lhs='stop here floors',
42
42
  rhs=TEXPR_a(table=INST_a(components=[N_a(name='shaft aslevs')]), hexpr=None,
@@ -44,7 +44,7 @@ actions = [
44
44
  projection=Projection_a(expand=None, attrs=[N_a(name='Floor')])),
45
45
  X=(0, 56)), block=None), output_token=None)),
46
46
  ("Try redirect( ^new dest ) -> /R53/Cabin",
47
- Execution_Unit_a(statement_set=Seq_Statement_Set_a(input_tokens=None,
47
+ Execution_Unit_a(statement_set=Seq_Statement_Set_a(input_tokens=[],
48
48
  statement=Signal_a(event='Try redirect', supplied_params=[
49
49
  [Supplied_Parameter_a(pname='new dest', sval=IN_a(name='new dest'))]],
50
50
  dest=Signal_Dest_a(target_iset=
@@ -53,7 +53,7 @@ actions = [
53
53
  block=None), output_token=None)
54
54
  ),
55
55
  ("TRAN.Go to floor( Dest floor: ^new dest, Shaft )",
56
- Execution_Unit_a(statement_set=Seq_Statement_Set_a(input_tokens=None,
56
+ Execution_Unit_a(statement_set=Seq_Statement_Set_a(input_tokens=[],
57
57
  statement=Call_a(call=INST_a(components=[Op_a(owner='TRAN', op_name='Go to floor',
58
58
  supplied_params=[Supplied_Parameter_a(pname='Dest floor', sval=IN_a(name='new dest')),
59
59
  Supplied_Parameter_a(pname='Shaft', sval=N_a(name='Shaft'))])]
@@ -61,14 +61,14 @@ actions = [
61
61
  block=None), output_token=None)
62
62
  ),
63
63
  ("Change requested -> ME",
64
- Execution_Unit_a(statement_set=Seq_Statement_Set_a(input_tokens=None,
64
+ Execution_Unit_a(statement_set=Seq_Statement_Set_a(input_tokens=[],
65
65
  statement=Signal_a(event='Change requested', supplied_params=[],
66
66
  dest=Signal_Dest_a(target_iset=N_a(name='ME'),
67
67
  assigner_partition=N_a(name=None), delay=0)),
68
68
  block=None), output_token=None)
69
69
  ),
70
70
  ("shaft aslevs ..= /R2/R28/Shaft Level/R3/Accessible Shaft Level",
71
- Execution_Unit_a(statement_set=Seq_Statement_Set_a(input_tokens=None,
71
+ Execution_Unit_a(statement_set=Seq_Statement_Set_a(input_tokens=[],
72
72
  statement=Inst_Assignment_a(
73
73
  lhs=Flow_Output_a(name=N_a(name='shaft aslevs'), exp_type=None), card='M',
74
74
  rhs=INST_a(components=[PATH_a(hops=[
@@ -77,7 +77,7 @@ actions = [
77
77
  X=(0, 62)), block=None), output_token=None)
78
78
  ),
79
79
  ("requested stops ..= shaft aslevs( Stop requested: avalue )",
80
- Execution_Unit_a(statement_set=Seq_Statement_Set_a(input_tokens=None,
80
+ Execution_Unit_a(statement_set=Seq_Statement_Set_a(input_tokens=[],
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'), Criteria_Selection_a(card='ALL',
@@ -85,7 +85,7 @@ actions = [
85
85
  X=(0, 58)), block=None), output_token=None)
86
86
  ),
87
87
  ("=>> Accessible Shaft Level( Floor: nearest dest.Floor; Shaft )",
88
- Execution_Unit_a(statement_set=Seq_Statement_Set_a(input_tokens=None, statement=Output_Flow_a(
88
+ Execution_Unit_a(statement_set=Seq_Statement_Set_a(input_tokens=[], statement=Output_Flow_a(
89
89
  output=INST_PROJ_a(iset=INST_a(components=[N_a(name='Accessible Shaft Level'),
90
90
  Criteria_Selection_a(card='ALL', criteria=BOOL_a(op='AND', operands=[
91
91
  BOOL_a(op='==', operands=[N_a(name='Floor'),
@@ -7,7 +7,7 @@ from scrall.parse.visitor import Execution_Unit_a, Signal_a, Signal_Dest_a, N_a,
7
7
 
8
8
  actions = [
9
9
  ("s ..= Shaft(Inservice; Cleared)",
10
- Execution_Unit_a(statement_set=Seq_Statement_Set_a(input_tokens=None,
10
+ Execution_Unit_a(statement_set=Seq_Statement_Set_a(input_tokens=[],
11
11
  statement=Inst_Assignment_a(
12
12
  lhs=Flow_Output_a(name=N_a(name='s'), exp_type=None), card='M',
13
13
  rhs=INST_a(components=[N_a(name='Shaft'), Criteria_Selection_a(card='ALL',
@@ -15,7 +15,7 @@ actions = [
15
15
  X=(0, 31)), block=None), output_token=None)
16
16
  ),
17
17
  ("c ..= Cabin(Speed > slowest + buffer)",
18
- Execution_Unit_a(statement_set=Seq_Statement_Set_a(input_tokens=None,
18
+ Execution_Unit_a(statement_set=Seq_Statement_Set_a(input_tokens=[],
19
19
  statement=Inst_Assignment_a(
20
20
  lhs=Flow_Output_a(name=N_a(name='c'), exp_type=None), card='M',
21
21
  rhs=INST_a(components=[N_a(name='Cabin'), Criteria_Selection_a(card='ALL',
@@ -24,7 +24,7 @@ actions = [
24
24
  X=(0, 37)), block=None), output_token=None)
25
25
  ),
26
26
  ("c ..= Cabin(Speed > slowest)",
27
- Execution_Unit_a(statement_set=Seq_Statement_Set_a(input_tokens=None,
27
+ Execution_Unit_a(statement_set=Seq_Statement_Set_a(input_tokens=[],
28
28
  statement=Inst_Assignment_a(
29
29
  lhs=Flow_Output_a(name=N_a(name='c'), exp_type=None), card='M',
30
30
  rhs=INST_a(components=[N_a(name='Cabin'), Criteria_Selection_a(card='ALL',
@@ -32,7 +32,7 @@ actions = [
32
32
  X=(0, 28)), block=None), output_token=None)
33
33
  ),
34
34
  ("s ..= Shaft(In service: TRUE)",
35
- Execution_Unit_a(statement_set=Seq_Statement_Set_a(input_tokens=None,
35
+ Execution_Unit_a(statement_set=Seq_Statement_Set_a(input_tokens=[],
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'), Criteria_Selection_a(card='ALL',
@@ -40,14 +40,14 @@ actions = [
40
40
  X=(0, 29)), block=None), output_token=None)
41
41
  ),
42
42
  ("s ..= Shaft(In service)",
43
- Execution_Unit_a(statement_set=Seq_Statement_Set_a(input_tokens=None,
43
+ Execution_Unit_a(statement_set=Seq_Statement_Set_a(input_tokens=[],
44
44
  statement=Inst_Assignment_a(lhs=Flow_Output_a(name=N_a(name='s'), exp_type=None), card='M',
45
45
  rhs=INST_a(components=[N_a(name='Shaft'), Criteria_Selection_a(card='ALL',
46
46
  criteria=N_a(name='In service'))]),
47
47
  X=(0, 23)), block=None), output_token=None)
48
48
  ),
49
49
  ("x .= Bank(Max close attempts: (v or x) or Average cabin speed > mspeed)",
50
- Execution_Unit_a(statement_set=Seq_Statement_Set_a(input_tokens=None,
50
+ Execution_Unit_a(statement_set=Seq_Statement_Set_a(input_tokens=[],
51
51
  statement=Inst_Assignment_a(
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'), Criteria_Selection_a(card='ALL',
@@ -59,7 +59,7 @@ actions = [
59
59
  X=(0, 71)), block=None), output_token=None)
60
60
  ),
61
61
  ("x ..= car.findsome()(color: _red)",
62
- Execution_Unit_a(statement_set=Seq_Statement_Set_a(input_tokens=None,
62
+ Execution_Unit_a(statement_set=Seq_Statement_Set_a(input_tokens=[],
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=[]),
@@ -7,14 +7,14 @@ from scrall.parse.visitor import Execution_Unit_a, Signal_a, Signal_Dest_a, N_a,
7
7
 
8
8
  actions = [
9
9
  ("Change requested -> ME",
10
- Execution_Unit_a(statement_set=Seq_Statement_Set_a(input_tokens=None,
10
+ Execution_Unit_a(statement_set=Seq_Statement_Set_a(input_tokens=[],
11
11
  statement=Signal_a(event='Change requested', supplied_params=[],
12
12
  dest=Signal_Dest_a(target_iset=N_a(name='ME'),
13
13
  assigner_partition=N_a(name=None), delay=0)),
14
14
  block=None), output_token=None)
15
15
  ),
16
16
  ("Ready to go -> /R53/Transfer",
17
- Execution_Unit_a(statement_set=Seq_Statement_Set_a(input_tokens=None,
17
+ Execution_Unit_a(statement_set=Seq_Statement_Set_a(input_tokens=[],
18
18
  statement=Signal_a(event='Ready to go', supplied_params=[], dest=Signal_Dest_a(
19
19
  target_iset=INST_a(
20
20
  components=[PATH_a(hops=[R_a(rnum='R53'), N_a(name='Transfer')])]),
@@ -15,7 +15,7 @@ actions = [
15
15
  // this case
16
16
  Take out of service -> ME
17
17
  """,
18
- Execution_Unit_a(statement_set=Seq_Statement_Set_a(input_tokens=None,
18
+ Execution_Unit_a(statement_set=Seq_Statement_Set_a(input_tokens=[],
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')])]),
@@ -28,7 +28,7 @@ actions = [
28
28
  block=None), output_token=None)
29
29
  ),
30
30
  ("!(/R2/Shaft.In service) ? Take out of service -> ME",
31
- Execution_Unit_a(statement_set=Seq_Statement_Set_a(input_tokens=None,
31
+ Execution_Unit_a(statement_set=Seq_Statement_Set_a(input_tokens=[],
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')])]),
@@ -1 +0,0 @@
1
- version = "0.8.3"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes