scrall 0.8.6__py3-none-any.whl → 0.8.8__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.6"
1
+ version = "0.8.8"
scrall/parse/scrall.peg CHANGED
@@ -91,7 +91,7 @@ output_flow = OUTPUT SP+ scalar_expr
91
91
  OUTPUT = '=>>'
92
92
 
93
93
  // Instance set
94
- instance_set = new_instance / ((operation / name / path) (reflexive_selection / selection / operation / path)*)
94
+ instance_set = new_instance / ((operation / input_param / name / path) (reflexive_selection / selection / operation / path)*)
95
95
  selection = '(' SP* (rank_selection / criteria_selection) SP* ')'
96
96
  rank_selection = CARD ', ' SP* RANKR name
97
97
  criteria_selection = (CARD ', ' SP* scalar_expr) / CARD / scalar_expr
scrall/parse/visitor.py CHANGED
@@ -916,7 +916,7 @@ class ScrallVisitor(PTNodeVisitor):
916
916
  by any sequence of selection, operation, and paths. The parser won't find two paths in sequence since
917
917
  any encounter path will be fully consumed
918
918
  """
919
- _logger.info("instance_set = new_instance / ((operation / prefix_name / path) (reflexive_selection / "
919
+ _logger.info("instance_set = new_instance / ((operation / input_param / name / path) (reflexive_selection / "
920
920
  "selection / operation / path)*)")
921
921
  _logger.info(f">> {[k for k in children.results.keys()]}")
922
922
  _logger.info(f' :: {node.value}')
@@ -925,7 +925,12 @@ class ScrallVisitor(PTNodeVisitor):
925
925
  if len(children) == 1 and isinstance(children[0], N_a):
926
926
  result = children[0]
927
927
  else:
928
- result = INST_a(children)
928
+ p = children.results.get('input_param')
929
+ if p:
930
+ # Just like above case, but returning an IN_a (parameter name)
931
+ result = p[0]
932
+ else:
933
+ result = INST_a(children)
929
934
  _logger.info(f" > {result}")
930
935
  return result
931
936
 
@@ -1008,7 +1013,7 @@ class ScrallVisitor(PTNodeVisitor):
1008
1013
  _logger.info(f" < {children}")
1009
1014
  a = children.results.get('attr_init')
1010
1015
  r = children.results.get('to_ref')
1011
- result = New_inst_a(cname=children[0], attrs=a[0] if a else [], rels=None if not r else r[0])
1016
+ result = New_inst_a(cname=children[0], attrs=a[0] if a else [], rels=None if not r else r)
1012
1017
  _logger.info(f" > {result}")
1013
1018
  return result
1014
1019
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: scrall
3
- Version: 0.8.6
3
+ Version: 0.8.8
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=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,,
@@ -1,14 +0,0 @@
1
- scrall/__init__.py,sha256=30YCGZ_PyUCGLazcflKR5pn72yUVkhTqyEK9tw1AmAA,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=5sZnsxNcu09eqwOZIH1gAoX3M0rlZAqZKbgCbYcc4Yc,7787
8
- scrall/parse/visitor.py,sha256=NRof5JPEWGCtUys2vChWQsA-P3Lo3SUVTlUCJFNeXQs,56384
9
- scrall-0.8.6.dist-info/licenses/LICENSE,sha256=kL0xVrwl2i3Pk9mQXAVAPANCTaLGGOsoXgvqW7TBs20,1072
10
- scrall-0.8.6.dist-info/METADATA,sha256=CNfRwjUVSVydsE6MnSxfNBKIWUoQNgpojM6j7ueeB8Y,7208
11
- scrall-0.8.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
12
- scrall-0.8.6.dist-info/entry_points.txt,sha256=2fHG6VXtqSTEZXadsBe7XCFaLm4t3V1pFuqzgWWjBgA,48
13
- scrall-0.8.6.dist-info/top_level.txt,sha256=SWvpMyNNJlrMWpSsK5RUL40ivQxQpKPbL86VrvNIUAE,7
14
- scrall-0.8.6.dist-info/RECORD,,
File without changes