scrall 0.8.8__py3-none-any.whl → 0.8.9__py3-none-any.whl

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/__init__.py CHANGED
@@ -1 +1 @@
1
- version = "0.8.8"
1
+ version = "0.8.9"
scrall/parse/scrall.peg CHANGED
@@ -61,10 +61,11 @@ DECISION_OP = '?'
61
61
  signal_action = signal_spec SP+ (signal_dest / ee_dest / SIGNAL_OP / ASYNCH)
62
62
  // SIGNAL_OP only destination means: copy dest from false result of decision action
63
63
  signal_spec = name supplied_params?
64
- signal_dest = SIGNAL_OP LINEWRAP? SP? instance_set assigner_partition? (SP+ delay)?
64
+ signal_dest = SIGNAL_OP LINEWRAP? SP? (assigner / instance_set) (SP+ delay)?
65
+ assigner = rnum assigner_partition?
65
66
  ee_dest = ASYNCH LINEWRAP? SP? name
66
67
  delay = DELAY_OP SP* scalar_expr
67
- assigner_partition = '|' instance_set
68
+ assigner_partition = '( ' instance_set ' )'
68
69
  DELAY_OP = '@'
69
70
  SIGNAL_OP = '->'
70
71
  ASYNCH = '=>'
scrall/parse/visitor.py CHANGED
@@ -22,8 +22,9 @@ Inst_Assignment_a = namedtuple('Inst_Assignment_a', 'lhs card rhs X')
22
22
  EE_Signal_a = namedtuple('EE_Signal_a', 'event supplied_params ee')
23
23
  Signal_a = namedtuple('Signal_a', 'event supplied_params dest')
24
24
  """Signal sent to trigger event at destination with optional supplied parameters"""
25
- Signal_Action_a = namedtuple('Signal_Action_a', 'event supplied_params dest delay assigner_partition')
26
- Signal_Dest_a = namedtuple('Signal_Dest_a', 'target_iset assigner_partition delay')
25
+ Signal_Action_a = namedtuple('Signal_Action_a', 'event supplied_params dest delay')
26
+ Signal_Dest_a = namedtuple('Signal_Dest_a', 'target_iset assigner_dest delay')
27
+ Assigner_Dest_a = namedtuple('Assigner_Dest_a', 'rnum partition')
27
28
  Signal_Choice_a = namedtuple('Signal_Choice_a', 'decision true_signal false_signal')
28
29
  Sequence_Token_a = namedtuple('Sequence_Token_a', 'name')
29
30
  Execution_Unit_a = namedtuple('Execution_Unit_a', 'statement_set output_token')
@@ -706,16 +707,32 @@ class ScrallVisitor(PTNodeVisitor):
706
707
  def visit_signal_dest(cls, node, children):
707
708
  """
708
709
  """
709
- _logger.info("signal_action = signal_spec SP+ (signal_dest / ee_dest / SIGNAL_OP / ASYNCH)")
710
+ _logger.info("signal_dest = SIGNAL_OP LINEWRAP? SP? (assigner / instance_set) (SP+ delay)?")
710
711
  _logger.info(f' :: {node.value}')
711
712
 
712
713
  _logger.info(f" < {children}")
713
- iset = children[0]
714
- ap = children.results.get('assigner_partition')
715
- ap = None if not ap else ap[0]
714
+ iset = children.results.get('instance_set')
715
+ iset = iset[0] if iset else None
716
+ assigner = children.results.get('assigner')
717
+ assigner = assigner[0] if assigner else None
716
718
  delay = children.results.get('delay')
717
719
  delay = 0 if not delay else delay[0]
718
- result = Signal_Dest_a(target_iset=iset, assigner_partition=N_a(ap), delay=delay)
720
+ result = Signal_Dest_a(target_iset=iset, assigner_dest=assigner, delay=delay)
721
+ _logger.info(f" > {result}")
722
+ return result
723
+
724
+ @classmethod
725
+ def visit_assigner(cls, node, children):
726
+ """
727
+ An instance set that partitions an assigner
728
+ """
729
+ _logger.info("assigner = rnum assigner_partition?")
730
+ _logger.info(f' :: {node.value}')
731
+
732
+ _logger.info(f" < {children}")
733
+ rnum = children.results.get('rnum')
734
+ ap = children.results.get('assigner_partition')
735
+ result = Assigner_Dest_a(rnum=rnum[0], partition=ap[0] if ap else None)
719
736
  _logger.info(f" > {result}")
720
737
  return result
721
738
 
@@ -724,7 +741,7 @@ class ScrallVisitor(PTNodeVisitor):
724
741
  """
725
742
  An instance set that partitions an assigner
726
743
  """
727
- _logger.info("assigner_partition = '(' instance_set ')'")
744
+ _logger.info("assigner_partition = '( ' instance_set ' )'")
728
745
  _logger.info(f' :: {node.value}')
729
746
 
730
747
  _logger.info(f" < {children}")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: scrall
3
- Version: 0.8.8
3
+ Version: 0.8.9
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
@@ -0,0 +1,14 @@
1
+ scrall/__init__.py,sha256=2l8zNYYLY80JtW1elN49pPxbG8Jx7EQy0n3sAYKRqbw,17
2
+ scrall/__main__.py,sha256=H5szTQUuBTrnCngyUv3EFj5eQyPY4j0NKf1q8DgK6E8,2187
3
+ scrall/exceptions.py,sha256=QU4mKLs7_ddGIznhh2HUpjb_PdPlxWZMMY_g0ELenSs,1764
4
+ scrall/log.conf,sha256=tERYKbCp9TgdAVTby6A7gUpnjurJKcX1tyAzG3ATORI,933
5
+ scrall/parse/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
+ scrall/parse/parser.py,sha256=k4SeWMtNzAUtwU_e15frvSL1D5G3RBU_jmLegZbIBnY,5221
7
+ scrall/parse/scrall.peg,sha256=Oe7E61fUBH0pvvuYJXHUeYMHn2mGouXmqQurKGMAFCg,7836
8
+ scrall/parse/visitor.py,sha256=gbK0l8TWUOWIQRY2Pk3f1mYhqInUKZ3TlfB4LL-vaOo,57228
9
+ scrall-0.8.9.dist-info/licenses/LICENSE,sha256=kL0xVrwl2i3Pk9mQXAVAPANCTaLGGOsoXgvqW7TBs20,1072
10
+ scrall-0.8.9.dist-info/METADATA,sha256=11YfNZFbNJgrAMiOiFHImV_PemWKmJOGaShjDdNSKHk,7208
11
+ scrall-0.8.9.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
12
+ scrall-0.8.9.dist-info/entry_points.txt,sha256=2fHG6VXtqSTEZXadsBe7XCFaLm4t3V1pFuqzgWWjBgA,48
13
+ scrall-0.8.9.dist-info/top_level.txt,sha256=SWvpMyNNJlrMWpSsK5RUL40ivQxQpKPbL86VrvNIUAE,7
14
+ scrall-0.8.9.dist-info/RECORD,,
@@ -1,14 +0,0 @@
1
- scrall/__init__.py,sha256=qHYh1pZe2XCAYi_96cwEgzxFda1VHX07ZOaysPqfgXk,17
2
- scrall/__main__.py,sha256=H5szTQUuBTrnCngyUv3EFj5eQyPY4j0NKf1q8DgK6E8,2187
3
- scrall/exceptions.py,sha256=QU4mKLs7_ddGIznhh2HUpjb_PdPlxWZMMY_g0ELenSs,1764
4
- scrall/log.conf,sha256=tERYKbCp9TgdAVTby6A7gUpnjurJKcX1tyAzG3ATORI,933
5
- scrall/parse/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
- scrall/parse/parser.py,sha256=k4SeWMtNzAUtwU_e15frvSL1D5G3RBU_jmLegZbIBnY,5221
7
- scrall/parse/scrall.peg,sha256=8qyy3W2aZhHION8DLNpYMX6jxpExmUDqpDWjhstvstk,7801
8
- scrall/parse/visitor.py,sha256=qEYhFuwqelS0vy9xAADojGXsOfPBdHjVoAAjV_eZbWc,56589
9
- scrall-0.8.8.dist-info/licenses/LICENSE,sha256=kL0xVrwl2i3Pk9mQXAVAPANCTaLGGOsoXgvqW7TBs20,1072
10
- scrall-0.8.8.dist-info/METADATA,sha256=IFx4qA4EKydnTloU2kd61SYdIJZYTeg0-eDukxbGABQ,7208
11
- scrall-0.8.8.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
12
- scrall-0.8.8.dist-info/entry_points.txt,sha256=2fHG6VXtqSTEZXadsBe7XCFaLm4t3V1pFuqzgWWjBgA,48
13
- scrall-0.8.8.dist-info/top_level.txt,sha256=SWvpMyNNJlrMWpSsK5RUL40ivQxQpKPbL86VrvNIUAE,7
14
- scrall-0.8.8.dist-info/RECORD,,
File without changes